Commit 9405b068 authored by ElenaSubbotina's avatar ElenaSubbotina

x2t linux build version up

parent 286f15c1
...@@ -34,6 +34,13 @@ ...@@ -34,6 +34,13 @@
#include "OpenXmlPackage.h" #include "OpenXmlPackage.h"
#include "Converter.h" #include "Converter.h"
#include "NumberingMapping.h"
#include "CommentsMapping.h"
#include "EndnotesMapping.h"
#include "FootnotesMapping.h"
#include "FooterMapping.h"
#include "HeaderMapping.h"
#include "MainDocumentMapping.h"
#include "OleObjectMapping.h" #include "OleObjectMapping.h"
#include "VMLPictureMapping.h" #include "VMLPictureMapping.h"
......
...@@ -404,7 +404,7 @@ namespace DocFileFormat ...@@ -404,7 +404,7 @@ namespace DocFileFormat
case sprmSLnc : case sprmSLnc :
{ {
SLncOperand mode = (SLncOperand)FormatUtils::BytesToUChar (iter->Arguments, 0, iter->argumentsSize); SLncOperand mode = (SLncOperand)FormatUtils::BytesToUChar (iter->Arguments, 0, iter->argumentsSize);
mode = (SLncOperand)min(max(mode,lncPerPage),lncContinue); mode = (SLncOperand)(std::min)((std::max)(mode,lncPerPage),lncContinue);
appendValueAttribute (&lnNumType, _T("w:restart"), LineNumberRestart[mode].c_str() ); appendValueAttribute (&lnNumType, _T("w:restart"), LineNumberRestart[mode].c_str() );
} }
......
...@@ -64,9 +64,9 @@ namespace DocFileFormat ...@@ -64,9 +64,9 @@ namespace DocFileFormat
} }
StringTable( VirtualStreamReader *reader, int code_page_ ): StringTable( VirtualStreamReader *reader, int code_page_ ):
code_page(code_page_), fExtend(false), cData(0), cbExtra(0) code_page(code_page_), fExtend(false), cbData(0), cbExtra(0)
{ {
parse( reader, (unsigned int)reader->GetPosition() ); parse( reader, (unsigned int)reader->GetPosition() );
} }
StringTable( POLE::Stream* tableStream, unsigned int fc, unsigned int lcb, bool older ) : StringTable( POLE::Stream* tableStream, unsigned int fc, unsigned int lcb, bool older ) :
......
...@@ -89,7 +89,7 @@ namespace DocFileFormat ...@@ -89,7 +89,7 @@ namespace DocFileFormat
int cc = tdef.numberOfColumns; int cc = tdef.numberOfColumns;
this->_tGrid = tdef.rgdxaCenter; this->_tGrid = tdef.rgdxaCenter;
this->_tcDef = tdef.rgTc80[min(_cellIndex, (int)tdef.rgTc80.size() - 1)]; // NOTE: fix for crash this->_tcDef = tdef.rgTc80[(std::min)(_cellIndex, (int)tdef.rgTc80.size() - 1)]; // NOTE: fix for crash
appendValueElement( this->_tcPr, _T( "textDirection" ), FormatUtils::MapValueToWideString( this->_tcDef.textFlow, &Global::TextFlowMap[0][0], 6, 6 ).c_str(), false ); appendValueElement( this->_tcPr, _T( "textDirection" ), FormatUtils::MapValueToWideString( this->_tcDef.textFlow, &Global::TextFlowMap[0][0], 6, 6 ).c_str(), false );
...@@ -114,8 +114,8 @@ namespace DocFileFormat ...@@ -114,8 +114,8 @@ namespace DocFileFormat
appendValueElement( _tcPr, _T( "noWrap" ), _T( "" ), true ); appendValueElement( _tcPr, _T( "noWrap" ), _T( "" ), true );
} }
nComputedCellWidth = (short)( tdef.rgdxaCenter[(size_t)min(_cellIndex, (int)tdef.rgTc80.size() - 1) + 1] - nComputedCellWidth = (short)( tdef.rgdxaCenter[(size_t)(std::min)(_cellIndex, (int)tdef.rgTc80.size() - 1) + 1] -
tdef.rgdxaCenter[min(_cellIndex, (int)tdef.rgTc80.size() - 1)] ); // NOTE: fix for crash tdef.rgdxaCenter[(std::min)(_cellIndex, (int)tdef.rgTc80.size() - 1)] ); // NOTE: fix for crash
//borders //borders
if (!IsTableBordersDefined(tapx->grpprl)) if (!IsTableBordersDefined(tapx->grpprl))
...@@ -413,4 +413,4 @@ namespace DocFileFormat ...@@ -413,4 +413,4 @@ namespace DocFileFormat
return false; return false;
} }
} }
\ No newline at end of file
...@@ -30,10 +30,13 @@ ...@@ -30,10 +30,13 @@
* *
*/ */
#include "Converter.h" #include "Converter.h"
#include "TextboxMapping.h" #include "TextboxMapping.h"
#include "TableMapping.h" #include "TableMapping.h"
#include "FooterMapping.h"
#include "HeaderMapping.h"
#include "MainDocumentMapping.h"
namespace DocFileFormat namespace DocFileFormat
{ {
......
...@@ -424,7 +424,7 @@ namespace DocFileFormat ...@@ -424,7 +424,7 @@ namespace DocFileFormat
{ {
if (m_sTempFolder.empty()) if (m_sTempFolder.empty())
{ {
m_sTempFolder = FileSystem::Directory::GetTempPathW().GetBuffer(); m_sTempFolder = FileSystem::Directory::GetTempPath().GetBuffer();
} }
m_sTempDecryptFileName = m_sTempFolder + FILE_SEPARATOR_STR + L"~tempFile.doc"; m_sTempDecryptFileName = m_sTempFolder + FILE_SEPARATOR_STR + L"~tempFile.doc";
......
...@@ -92,8 +92,8 @@ QMAKE_MAC_SDK = macosx10.11 ...@@ -92,8 +92,8 @@ QMAKE_MAC_SDK = macosx10.11
SOURCES += \ SOURCES += \
../DocFormatLib.cpp \ ../DocFormatLib.cpp \
../../Common/MD4/md4c.cpp \ ../../../Common/3dParty/pole/pole.cpp \
../../../Common/3dParty/pole/pole.cpp ../../DocDocxConverter/EncryptionHeader.cpp
build_fast { build_fast {
SOURCES += \ SOURCES += \
...@@ -328,7 +328,8 @@ HEADERS += \ ...@@ -328,7 +328,8 @@ HEADERS += \
../../DocDocxConverter/OfficeDrawing/Shapetypes/SunType.h \ ../../DocDocxConverter/OfficeDrawing/Shapetypes/SunType.h \
../../DocDocxConverter/OfficeDrawing/Shapetypes/TextboxType.h \ ../../DocDocxConverter/OfficeDrawing/Shapetypes/TextboxType.h \
../../DocDocxConverter/OfficeDrawing/Shapetypes/TrapezoidType.h \ ../../DocDocxConverter/OfficeDrawing/Shapetypes/TrapezoidType.h \
../../../Common/3dParty/pole/pole.h ../../../Common/3dParty/pole/pole.h \
../../DocDocxConverter/EncryptionHeader.h
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
QT -= core QT -= core
QT -= gui QT -= gui
VERSION = 2.0.2.375 VERSION = 2.0.2.376
DEFINES += INTVER=$$VERSION DEFINES += INTVER=$$VERSION
mac { mac {
......
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