mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
x2t linux build version up
This commit is contained in:
@ -34,6 +34,13 @@
|
||||
#include "OpenXmlPackage.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 "VMLPictureMapping.h"
|
||||
|
||||
|
||||
@ -404,7 +404,7 @@ namespace DocFileFormat
|
||||
case sprmSLnc :
|
||||
{
|
||||
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() );
|
||||
}
|
||||
|
||||
@ -64,9 +64,9 @@ namespace DocFileFormat
|
||||
}
|
||||
|
||||
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 ) :
|
||||
|
||||
@ -89,7 +89,7 @@ namespace DocFileFormat
|
||||
int cc = tdef.numberOfColumns;
|
||||
|
||||
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 );
|
||||
|
||||
@ -114,8 +114,8 @@ namespace DocFileFormat
|
||||
appendValueElement( _tcPr, _T( "noWrap" ), _T( "" ), true );
|
||||
}
|
||||
|
||||
nComputedCellWidth = (short)( tdef.rgdxaCenter[(size_t)min(_cellIndex, (int)tdef.rgTc80.size() - 1) + 1] -
|
||||
tdef.rgdxaCenter[min(_cellIndex, (int)tdef.rgTc80.size() - 1)] ); // NOTE: fix for crash
|
||||
nComputedCellWidth = (short)( tdef.rgdxaCenter[(size_t)(std::min)(_cellIndex, (int)tdef.rgTc80.size() - 1) + 1] -
|
||||
tdef.rgdxaCenter[(std::min)(_cellIndex, (int)tdef.rgTc80.size() - 1)] ); // NOTE: fix for crash
|
||||
|
||||
//borders
|
||||
if (!IsTableBordersDefined(tapx->grpprl))
|
||||
@ -413,4 +413,4 @@ namespace DocFileFormat
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,10 +30,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "Converter.h"
|
||||
|
||||
#include "TextboxMapping.h"
|
||||
#include "TableMapping.h"
|
||||
#include "FooterMapping.h"
|
||||
#include "HeaderMapping.h"
|
||||
#include "MainDocumentMapping.h"
|
||||
|
||||
namespace DocFileFormat
|
||||
{
|
||||
|
||||
@ -424,7 +424,7 @@ namespace DocFileFormat
|
||||
{
|
||||
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";
|
||||
|
||||
|
||||
@ -92,8 +92,8 @@ QMAKE_MAC_SDK = macosx10.11
|
||||
|
||||
SOURCES += \
|
||||
../DocFormatLib.cpp \
|
||||
../../Common/MD4/md4c.cpp \
|
||||
../../../Common/3dParty/pole/pole.cpp
|
||||
../../../Common/3dParty/pole/pole.cpp \
|
||||
../../DocDocxConverter/EncryptionHeader.cpp
|
||||
|
||||
build_fast {
|
||||
SOURCES += \
|
||||
@ -328,7 +328,8 @@ HEADERS += \
|
||||
../../DocDocxConverter/OfficeDrawing/Shapetypes/SunType.h \
|
||||
../../DocDocxConverter/OfficeDrawing/Shapetypes/TextboxType.h \
|
||||
../../DocDocxConverter/OfficeDrawing/Shapetypes/TrapezoidType.h \
|
||||
../../../Common/3dParty/pole/pole.h
|
||||
../../../Common/3dParty/pole/pole.h \
|
||||
../../DocDocxConverter/EncryptionHeader.h
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
QT -= core
|
||||
QT -= gui
|
||||
|
||||
VERSION = 2.0.2.375
|
||||
VERSION = 2.0.2.376
|
||||
DEFINES += INTVER=$$VERSION
|
||||
|
||||
mac {
|
||||
|
||||
Reference in New Issue
Block a user