Commit 7e52ebca authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 4925b470
...@@ -963,4 +963,3 @@ namespace DocFormatUtils ...@@ -963,4 +963,3 @@ namespace DocFormatUtils
}; };
} }
using namespace DocFormatUtils;
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "AnnotationReferenceDescriptor.h" #include "AnnotationReferenceDescriptor.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
ByteStructure* AnnotationReferenceDescriptor::ConstructObject(VirtualStreamReader* reader, int length) ByteStructure* AnnotationReferenceDescriptor::ConstructObject(VirtualStreamReader* reader, int length)
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include "IVisitable.h" #include "IVisitable.h"
#include "Global.h" #include "Global.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
typedef enum _BorderType typedef enum _BorderType
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "../Common/FormatUtils.h" #include "../Common/FormatUtils.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
class DateAndTime class DateAndTime
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "DrawingPrimitives.h" #include "DrawingPrimitives.h"
#include "VirtualStreamReader.h" #include "VirtualStreamReader.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include "VirtualStreamReader.h" #include "VirtualStreamReader.h"
#include "../../ASCOfficeXlsFile2/source/XlsFormat/Crypt/Decryptor.h" #include "../../ASCOfficeXlsFile2/source/XlsFormat/Crypt/Decryptor.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
typedef enum FibVersion typedef enum FibVersion
......
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
if (m_Data) if (m_Data)
{ {
rdUShort = FormatUtils::BytesToUInt16 (m_Data, m_Position, m_Size); rdUShort = DocFormatUtils::FormatUtils::BytesToUInt16 (m_Data, m_Position, m_Size);
m_Position += sizeof(rdUShort); m_Position += sizeof(rdUShort);
} }
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
if (m_Data) if (m_Data)
{ {
rdShort = FormatUtils::BytesToInt16 (m_Data, m_Position, m_Size); rdShort = DocFormatUtils::FormatUtils::BytesToInt16 (m_Data, m_Position, m_Size);
m_Position += sizeof(rdShort); m_Position += sizeof(rdShort);
} }
...@@ -98,7 +98,7 @@ public: ...@@ -98,7 +98,7 @@ public:
if (m_Data) if (m_Data)
{ {
rdInt = FormatUtils::BytesToInt32 (m_Data, m_Position, m_Size); rdInt = DocFormatUtils::FormatUtils::BytesToInt32 (m_Data, m_Position, m_Size);
m_Position += sizeof(rdInt); m_Position += sizeof(rdInt);
} }
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
if (m_Data ) if (m_Data )
{ {
rdUInt = FormatUtils::BytesToUInt32 (m_Data, m_Position, m_Size); rdUInt = DocFormatUtils::FormatUtils::BytesToUInt32 (m_Data, m_Position, m_Size);
m_Position += sizeof(rdUInt); m_Position += sizeof(rdUInt);
} }
......
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#include "Spa.h" #include "Spa.h"
#include "VirtualStreamReader.h" #include "VirtualStreamReader.h"
using namespace DocFormatUtils;
namespace DocFileFormat namespace DocFileFormat
{ {
......
...@@ -197,20 +197,20 @@ public: ...@@ -197,20 +197,20 @@ public:
int cchSize = 1; int cchSize = 1;
cch = ReadBytes( cchSize, true ); cch = ReadBytes( cchSize, true );
int xstzSize = FormatUtils::BytesToUChar( cch, 0, cchSize ) * 1; int xstzSize = DocFormatUtils::FormatUtils::BytesToUChar( cch, 0, cchSize ) * 1;
xstz = ReadBytes(xstzSize, true); xstz = ReadBytes(xstzSize, true);
FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &wstrResult, xstz, xstzSize, ENCODING_WINDOWS_1250 ); DocFormatUtils::FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &wstrResult, xstz, xstzSize, ENCODING_WINDOWS_1250 );
} }
else else
{ {
int cchSize = 2; int cchSize = 2;
cch = ReadBytes( cchSize, true ); cch = ReadBytes( cchSize, true );
int xstzSize = FormatUtils::BytesToInt16( cch, 0, cchSize ) * 2; int xstzSize = DocFormatUtils::FormatUtils::BytesToInt16( cch, 0, cchSize ) * 2;
xstz = ReadBytes(xstzSize, true); xstz = ReadBytes(xstzSize, true);
FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &wstrResult, xstz, xstzSize, ENCODING_UTF16 ); DocFormatUtils::FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &wstrResult, xstz, xstzSize, ENCODING_UTF16 );
} }
RELEASEARRAYOBJECTS(xstz); RELEASEARRAYOBJECTS(xstz);
...@@ -234,7 +234,7 @@ public: ...@@ -234,7 +234,7 @@ public:
//dont read the terminating zero //dont read the terminating zero
unsigned char* stringBytes = ReadBytes( ( cch * 2 ), true ); unsigned char* stringBytes = ReadBytes( ( cch * 2 ), true );
FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &result, stringBytes, ( ( cch * 2 ) - 2 ), ENCODING_UTF16 ); DocFormatUtils::FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &result, stringBytes, ( ( cch * 2 ) - 2 ), ENCODING_UTF16 );
RELEASEARRAYOBJECTS( stringBytes ); RELEASEARRAYOBJECTS( stringBytes );
} }
...@@ -278,7 +278,7 @@ public: ...@@ -278,7 +278,7 @@ public:
//dont read the terminating zero //dont read the terminating zero
stringBytes = ReadBytes( cch, true ); stringBytes = ReadBytes( cch, true );
FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &result, stringBytes, ( cch - 1 ), ENCODING_WINDOWS_1250); DocFormatUtils::FormatUtils::GetSTLCollectionFromBytes<std::wstring>( &result, stringBytes, ( cch - 1 ), ENCODING_WINDOWS_1250);
} }
RELEASEARRAYOBJECTS( stringBytes ); RELEASEARRAYOBJECTS( stringBytes );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment