Commit 091f0e22 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

сборка x2t для windows чтобы заменить конвертацию com dll и c# exe

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63748 954022d7-b5bf-4e40-9824-e11837661b57
parent b39c7801
...@@ -9,14 +9,52 @@ QT -= core gui ...@@ -9,14 +9,52 @@ QT -= core gui
TARGET = ASCHTMLRendererLib TARGET = ASCHTMLRendererLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
_LINUX_QT \
NODOCX \ NODOCX \
DESKTOP_EDITOR_GRAPHICS DESKTOP_EDITOR_GRAPHICS
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
}
#################### LINUX ########################
INCLUDEPATH += \ INCLUDEPATH += \
../../DesktopEditor/freetype-2.5.2/include \ ../../DesktopEditor/freetype-2.5.2/include \
../../DesktopEditor/agg-2.4/include ../../DesktopEditor/agg-2.4/include
......
...@@ -9,11 +9,40 @@ QT -= core gui ...@@ -9,11 +9,40 @@ QT -= core gui
TARGET = DocFormatLib TARGET = DocFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
LINUX \
_LINUX_QT\
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER \ USE_LITE_READER \
USE_ATL_CSTRING \ USE_ATL_CSTRING \
...@@ -21,13 +50,25 @@ DEFINES += UNICODE \ ...@@ -21,13 +50,25 @@ DEFINES += UNICODE \
LIBXML_READER_ENABLED LIBXML_READER_ENABLED
INCLUDEPATH += \ #################### WINDOWS #####################
../../Common/DocxFormat/Source/XML/libxml2/XML/include win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += \ INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
/usr/include/libxml2 }
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
LIBS += -lxml2 INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
SOURCES += \ SOURCES += \
../DocFormatLib.cpp \ ../DocFormatLib.cpp \
......
...@@ -9,12 +9,41 @@ QT -= core gui ...@@ -9,12 +9,41 @@ QT -= core gui
TARGET = ASCOfficeDocxFile2Lib TARGET = ASCOfficeDocxFile2Lib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++0x -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
_LINUX \
_LINUX_QT \
LINUX \
NODOCX \ NODOCX \
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER \ USE_LITE_READER \
...@@ -26,14 +55,25 @@ DEFINES += UNICODE \ ...@@ -26,14 +55,25 @@ DEFINES += UNICODE \
LIBXML_READER_ENABLED LIBXML_READER_ENABLED
INCLUDEPATH += \ INCLUDEPATH += \
../../DesktopEditor/freetype-2.5.2/include \ ../../DesktopEditor/freetype-2.5.2/include
../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += \ #################### WINDOWS #####################
/usr/include/libxml2 win32 {
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
LIBS += -lxml2
SOURCES += ../DocWrapper/DocxSerializer.cpp \ SOURCES += ../DocWrapper/DocxSerializer.cpp \
../DocWrapper/FontProcessor.cpp \ ../DocWrapper/FontProcessor.cpp \
../DocWrapper/XlsxSerializer.cpp \ ../DocWrapper/XlsxSerializer.cpp \
......
#pragma once #pragma once
#include <boost/optional/optional_io.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>
namespace cpdoccore namespace cpdoccore
......
...@@ -10,23 +10,70 @@ TARGET = OdfFileReaderLib ...@@ -10,23 +10,70 @@ TARGET = OdfFileReaderLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
_LINUX_QT \
LINUX \
_USE_LIBXML2_READER_ \ _USE_LIBXML2_READER_ \
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER USE_LITE_READER
INCLUDEPATH += /usr/include/libxml2
INCLUDEPATH += ../include INCLUDEPATH += ../include
INCLUDEPATH += ../../../ServerComponents/DesktopEditor/freetype-2.5.2/include INCLUDEPATH += ../../../ServerComponents/DesktopEditor/freetype-2.5.2/include
CONFIG(debug, debug|release){ CONFIG(debug, debug|release){
DEFINES += _DEBUG DEFINES += _DEBUG
} }
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
SOURCES += \ SOURCES += \
../formulasconvert/formulasconvert_odf.cpp \ ../formulasconvert/formulasconvert_odf.cpp \
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <cmath> #include <cmath>
#include <boost/optional/optional_io.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
......
...@@ -10,21 +10,68 @@ TARGET = OdfFileWriterLib ...@@ -10,21 +10,68 @@ TARGET = OdfFileWriterLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
_LINUX_QT \
LINUX \
_USE_LIBXML2_READER_ \ _USE_LIBXML2_READER_ \
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER USE_LITE_READER
INCLUDEPATH += /usr/include/libxml2
INCLUDEPATH += ../../DesktopEditor/freetype-2.5.2/include INCLUDEPATH += ../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += ../../ASCOfficeOdfFile/include INCLUDEPATH += ../../ASCOfficeOdfFile/include
INCLUDEPATH += ../../ASCOfficeOdfFile/src/odf/datatypes INCLUDEPATH += ../../ASCOfficeOdfFile/src/odf/datatypes
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
CONFIG(debug, debug|release){ CONFIG(debug, debug|release){
DEFINES += _DEBUG DEFINES += _DEBUG
......
...@@ -9,11 +9,39 @@ QT -= core gui ...@@ -9,11 +9,39 @@ QT -= core gui
TARGET = PptFormatLib TARGET = PptFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
LINUX \
_LINUX_QT\
USE_ATL_CSTRING \ USE_ATL_CSTRING \
PPTX_DEF \ PPTX_DEF \
PPT_DEF \ PPT_DEF \
...@@ -31,16 +59,28 @@ DEFINES += UNICODE \ ...@@ -31,16 +59,28 @@ DEFINES += UNICODE \
INCLUDEPATH += \ INCLUDEPATH += \
../../../Common/DocxFormat/Source/XML/libxml2/XML/include ../../../DesktopEditor/freetype-2.5.2/include
INCLUDEPATH += \ #################### WINDOWS #####################
/usr/include/libxml2 \ win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += \ INCLUDEPATH += ../../../ASCOfficeUtils/ZLIB/zlib-1.2.3
../../../DesktopEditor/freetype-2.5.2/include INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
LIBS += -lxml2 #################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
unix { unix {
target.path = /usr/lib target.path = /usr/lib
......
...@@ -269,27 +269,27 @@ public: ...@@ -269,27 +269,27 @@ public:
pHeader->Checksum ^= (pHeader->Reserved & 0x0000FFFFL); pHeader->Checksum ^= (pHeader->Reserved & 0x0000FFFFL);
pHeader->Checksum ^= ((pHeader->Reserved & 0xFFFF0000L) >> 16); pHeader->Checksum ^= ((pHeader->Reserved & 0xFFFF0000L) >> 16);
} }
//
static void DecompressDeflate(BYTE* pSrc, LONG lSrcSize, BYTE** ppDst, LONG& lDstSize) // static void DecompressDeflate(BYTE* pSrc, LONG lSrcSize, BYTE** ppDst, LONG& lDstSize)
{ // {
#if defined(_WIN32) || defined (_WIN64) //#if defined(_WIN32) || defined (_WIN64)
CComPtr<IEncodingFilterFactory> pEFF; // CComPtr<IEncodingFilterFactory> pEFF;
HRESULT hr = pEFF.CoCreateInstance(CLSID_StdEncodingFilterFac); // HRESULT hr = pEFF.CoCreateInstance(CLSID_StdEncodingFilterFac);
CComPtr<IDataFilter> pDF; // CComPtr<IDataFilter> pDF;
//accquire suitable filter // //accquire suitable filter
if (!pEFF || FAILED(pEFF->GetDefaultFilter( L"deflate", L"text", &pDF))) // if (!pEFF || FAILED(pEFF->GetDefaultFilter( L"deflate", L"text", &pDF)))
return; // return;
//temporary out buffers // //temporary out buffers
BYTE* outBuff = new BYTE[200000]; // BYTE* outBuff = new BYTE[200000];
DWORD dwOutBuffSize = sizeof(outBuff); // DWORD dwOutBuffSize = sizeof(outBuff);
long dwRead = 0, dwWritten = 0; // long dwRead = 0, dwWritten = 0;
//encode chunk of data // //encode chunk of data
//hr = pDF->DoDecode(0, lSrcSize, pSrc, lDstSize, *ppDst, lSrcSize, &dwRead, &dwWritten, 0); // //hr = pDF->DoDecode(0, lSrcSize, pSrc, lDstSize, *ppDst, lSrcSize, &dwRead, &dwWritten, 0);
hr = pDF->DoDecode(0, lSrcSize, pSrc, dwOutBuffSize, outBuff, lSrcSize, &dwRead, &dwWritten, 0); // hr = pDF->DoDecode(0, lSrcSize, pSrc, dwOutBuffSize, outBuff, lSrcSize, &dwRead, &dwWritten, 0);
#endif //#endif
} // }
}; };
class CMetaFileBuffer class CMetaFileBuffer
......
...@@ -25,13 +25,6 @@ using namespace NSFontCutter; ...@@ -25,13 +25,6 @@ using namespace NSFontCutter;
#include "../../Common/DocxFormat/Source/SystemUtility/SystemUtility.h" #include "../../Common/DocxFormat/Source/SystemUtility/SystemUtility.h"
#include <list> #include <list>
#ifndef min
#define min(a,b) (((a)<(b))?(a):(b))
#endif
#ifndef max
#define max(a,b) (((a)>(b))?(a):(b))
#endif
namespace NSShapeImageGen namespace NSShapeImageGen
{ {
const long c_nMaxImageSize = 2000; const long c_nMaxImageSize = 2000;
......
...@@ -9,13 +9,42 @@ QT -= core gui ...@@ -9,13 +9,42 @@ QT -= core gui
TARGET = PPTXFormatLib TARGET = PPTXFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
_USE_LIBXML2_READER_ \ _USE_LIBXML2_READER_ \
_LINUX_QT \
_LINUX \
LINUX \
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER \ USE_LITE_READER \
PPTX_DEF\ PPTX_DEF\
...@@ -29,8 +58,25 @@ DEFINES += UNICODE \ ...@@ -29,8 +58,25 @@ DEFINES += UNICODE \
DONT_WRITE_EMBEDDED_FONTS \ DONT_WRITE_EMBEDDED_FONTS \
CXIMAGE_DONT_DECLARE_TCHAR CXIMAGE_DONT_DECLARE_TCHAR
INCLUDEPATH += \ #################### WINDOWS #####################
/usr/include/libxml2 win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
INCLUDEPATH += \ INCLUDEPATH += \
../../../../DesktopEditor/freetype-2.5.2/include \ ../../../../DesktopEditor/freetype-2.5.2/include \
...@@ -86,14 +132,11 @@ SOURCES += pptxformatlib.cpp \ ...@@ -86,14 +132,11 @@ SOURCES += pptxformatlib.cpp \
../../../PPTXFormat/Folder.cpp \ ../../../PPTXFormat/Folder.cpp \
../../../Editor/BinaryFileReaderWriter.cpp \ ../../../Editor/BinaryFileReaderWriter.cpp \
../../../Editor/FontPicker.cpp \ ../../../Editor/FontPicker.cpp \
../../../../Common/DocxFormat/Source/SystemUtility/SystemUtility.cpp \
../../../../ASCPresentationEditor/OfficeDrawing/Layout.cpp \ ../../../../ASCPresentationEditor/OfficeDrawing/Layout.cpp \
../../../../ASCPresentationEditor/OfficeDrawing/TextAttributesEx.cpp \ ../../../../ASCPresentationEditor/OfficeDrawing/TextAttributesEx.cpp \
../../../../XlsxSerializerCom/Reader/CSVReader.cpp \ ../../../../XlsxSerializerCom/Reader/CSVReader.cpp \
../../../../XlsxSerializerCom/Writer/CSVWriter.cpp \ ../../../../XlsxSerializerCom/Writer/CSVWriter.cpp \
../../../../ASCPresentationEditor/OfficeDrawing/Elements.cpp \ ../../../../ASCPresentationEditor/OfficeDrawing/Elements.cpp \
../../../../Common/DocxFormat/Source/SystemUtility/FileSystem/DirectoryPosix.cpp \
../../../../Common/DocxFormat/Source/SystemUtility/FileSystem/FilePosix.cpp \
../../../PPTXFormat/Logic/Controls.cpp ../../../PPTXFormat/Logic/Controls.cpp
HEADERS += pptxformatlib.h \ HEADERS += pptxformatlib.h \
...@@ -510,17 +553,11 @@ HEADERS += pptxformatlib.h \ ...@@ -510,17 +553,11 @@ HEADERS += pptxformatlib.h \
../../../Editor/PPTXWriter.h \ ../../../Editor/PPTXWriter.h \
../../../Editor/WMFToImageConverter.h \ ../../../Editor/WMFToImageConverter.h \
../../../Editor/XmlWriter.h \ ../../../Editor/XmlWriter.h \
../../../../Common/DocxFormat/Source/SystemUtility/File.h \
../../../../Common/DocxFormat/Source/SystemUtility/FileSystem/FileSystem.h \
../../../../Common/DocxFormat/Source/SystemUtility/SystemUtility.h \
../../Settings.h \ ../../Settings.h \
../../../../ASCPresentationEditor/ASCPresentationEditorDef.h \ ../../../../ASCPresentationEditor/ASCPresentationEditorDef.h \
../../../../Common/FileDownloader.h \ ../../../../Common/FileDownloader.h \
../../../../Common/DocxFormat/Source/SystemUtility/FileSystem/Directory.h \
../../../../Common/DocxFormat/Source/SystemUtility/FileSystem/File.h \
../../../Editor/DefaultNotesMaster.h \ ../../../Editor/DefaultNotesMaster.h \
../../../Editor/DefaultNotesTheme.h \ ../../../Editor/DefaultNotesTheme.h \
../../../../Common/FileDownloader.h \
../../../PPTXFormat/DocxFormat/Drawing/LegacyDiagramText.h \ ../../../PPTXFormat/DocxFormat/Drawing/LegacyDiagramText.h \
../../../PPTXFormat/DocxFormat/Drawing/VmlDrawing.h \ ../../../PPTXFormat/DocxFormat/Drawing/VmlDrawing.h \
../../../PPTXFormat/Logic/Controls.h \ ../../../PPTXFormat/Logic/Controls.h \
......
...@@ -9,14 +9,60 @@ QT -= core gui ...@@ -9,14 +9,60 @@ QT -= core gui
TARGET = RtfFormatLib TARGET = RtfFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
DEFINES += _LINUX LINUX UNICODE _UNICODE _USE_LIBXML2_READER_ _LINUX_QT _USE_XMLLITE_READER_ USE_LITE_READER # WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
LIBS += -lxml2 linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
INCLUDEPATH += \ DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER
/usr/include/libxml2
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += C:/boost_1_58_0
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
SOURCES += \ SOURCES += \
../source/DestinationCommand.cpp \ ../source/DestinationCommand.cpp \
......
...@@ -9,12 +9,40 @@ QT -= core gui ...@@ -9,12 +9,40 @@ QT -= core gui
TARGET = TxtXmlFormatLib TARGET = TxtXmlFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE \
LINUX \
_LINUX_QT \
_USE_LIBXML2_READER_ \ _USE_LIBXML2_READER_ \
_USE_XMLLITE_READER_ \ _USE_XMLLITE_READER_ \
USE_LITE_READER \ USE_LITE_READER \
...@@ -22,9 +50,27 @@ DEFINES += UNICODE \ ...@@ -22,9 +50,27 @@ DEFINES += UNICODE \
DONT_WRITE_EMBEDDED_FONTS DONT_WRITE_EMBEDDED_FONTS
INCLUDEPATH += \ INCLUDEPATH += \
../../../../DesktopEditor/freetype-2.5.2/include ../../../DesktopEditor/freetype-2.5.2/include
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
INCLUDEPATH += ../../../Common/DocxFormat/Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2 INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
HEADERS += \ HEADERS += \
......
...@@ -9,12 +9,56 @@ QT -= core gui ...@@ -9,12 +9,56 @@ QT -= core gui
TARGET = ASCOfficeUtilsLib TARGET = ASCOfficeUtilsLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE \ DEFINES += UNICODE \
_UNICODE \ _UNICODE
LINUX \
_LINUX_QT #################### WINDOWS #####################
win32 {
INCLUDEPATH += \
../../ZLIB/zlib-1.2.3
}
#################### WINDOWS #####################
#################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
}
#################### LINUX ########################
#INCLUDEPATH += \ #INCLUDEPATH += \
# ../../ZLIB/zlib-1.2.3/contrib/minizip \ # ../../ZLIB/zlib-1.2.3/contrib/minizip \
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
#include "../../Metric.h" #include "../../Metric.h"
#include "../../Attributes.h" #include "../../Attributes.h"
#define _USE_MATH_DEFINES
#include <math.h>//M_PI
#include <vector> #include <vector>
namespace NSPresentationEditor namespace NSPresentationEditor
......
...@@ -9,13 +9,60 @@ QT -= core gui ...@@ -9,13 +9,60 @@ QT -= core gui
TARGET = DocxFormatLib TARGET = DocxFormatLib
TEMPLATE = lib TEMPLATE = lib
CONFIG += staticlib CONFIG += staticlib
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers win32 {
QMAKE_CXXFLAGS += -std=c++11
} else {
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wno-ignored-qualifiers
}
############### destination path ###############
DESTINATION_SDK_PATH = $$PWD/../../../SDK/lib
# WINDOWS
win32:contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_64/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_64
}
}
win32:!contains(QMAKE_TARGET.arch, x86_64):{
CONFIG(debug, debug|release) {
DESTDIR = $$DESTINATION_SDK_PATH/win_32/DEBUG
} else {
DESTDIR = $$DESTINATION_SDK_PATH/win_32
}
}
linux-g++:contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_64
}
linux-g++:!contains(QMAKE_HOST.arch, x86_64):{
DESTDIR = $$DESTINATION_SDK_PATH/linux_32
}
############### destination path ###############
DEFINES += UNICODE _UNICODE _USE_LIBXML2_READER_ _USE_XMLLITE_READER_ USE_LITE_READER
#################### WINDOWS #####################
win32 {
DEFINES += \
LIBXML_READER_ENABLED
DEFINES += _LINUX LINUX UNICODE _UNICODE _USE_LIBXML2_READER_ _LINUX_QT _USE_XMLLITE_READER_ USE_LITE_READER INCLUDEPATH += ../Source/XML/libxml2/XML/include
}
#################### WINDOWS #####################
LIBS += -lxml2 #################### LINUX ########################
linux-g++ | linux-g++-64 | linux-g++-32 {
DEFINES += \
LINUX \
_LINUX \
_LINUX_QT
INCLUDEPATH += /usr/include/libxml2 INCLUDEPATH += /usr/include/libxml2
}
#################### LINUX ########################
SOURCES += docxformatlib.cpp \ SOURCES += docxformatlib.cpp \
../Source/Common/Align.cpp \ ../Source/Common/Align.cpp \
...@@ -50,8 +97,6 @@ SOURCES += docxformatlib.cpp \ ...@@ -50,8 +97,6 @@ SOURCES += docxformatlib.cpp \
../Source/DocxFormat/Docx.cpp \ ../Source/DocxFormat/Docx.cpp \
../Source/DocxFormat/FileFactory.cpp \ ../Source/DocxFormat/FileFactory.cpp \
../Source/DocxFormat/IFileContainer.cpp \ ../Source/DocxFormat/IFileContainer.cpp \
../Source/SystemUtility/FileSystem/DirectoryPosix.cpp \
../Source/SystemUtility/FileSystem/FilePosix.cpp \
../Source/SystemUtility/SystemUtility.cpp \ ../Source/SystemUtility/SystemUtility.cpp \
../Source/Utility/codecvt.cpp \ ../Source/Utility/codecvt.cpp \
../Source/Utility/DateTime.cpp \ ../Source/Utility/DateTime.cpp \
...@@ -66,6 +111,16 @@ SOURCES += docxformatlib.cpp \ ...@@ -66,6 +111,16 @@ SOURCES += docxformatlib.cpp \
../Source/Base/unicode_util.cpp \ ../Source/Base/unicode_util.cpp \
../../3dParty/pole/pole.cpp ../../3dParty/pole/pole.cpp
win32 {
SOURCES += \
../Source/SystemUtility/FileSystem/Directory.cpp \
../Source/SystemUtility/FileSystem/File.cpp \
} else {
SOURCES += \
../Source/SystemUtility/FileSystem/DirectoryPosix.cpp \
../Source/SystemUtility/FileSystem/FilePosix.cpp \
}
HEADERS += docxformatlib.h \ HEADERS += docxformatlib.h \
../Source/Base/Base.h \ ../Source/Base/Base.h \
../Source/Base/Nullable.h \ ../Source/Base/Nullable.h \
......
...@@ -28,13 +28,13 @@ DateTime::DateTime() ...@@ -28,13 +28,13 @@ DateTime::DateTime()
DateTime::DateTime(const CString &sValue, const CString &sPattern) DateTime::DateTime(const CString &sValue, const CString &sPattern)
: :
m_nYear ( ParseValue( sValue, sPattern, "%YYYY") ), m_nYear ( ParseValue( sValue, sPattern, _T("%YYYY")) ),
m_nMonth ( ParseValue( sValue, sPattern, "%MM" ) ), m_nMonth ( ParseValue( sValue, sPattern, _T("%MM") ) ),
m_nDay ( ParseValue( sValue, sPattern, "%DD" ) ), m_nDay ( ParseValue( sValue, sPattern, _T("%DD") ) ),
m_nHour ( ParseValue( sValue, sPattern, "%hh" ) ), m_nHour ( ParseValue( sValue, sPattern, _T("%hh") ) ),
m_nMinute ( ParseValue( sValue, sPattern, "%mm" ) ), m_nMinute ( ParseValue( sValue, sPattern, _T("%mm") ) ),
m_nSecond ( ParseValue( sValue, sPattern, "%ss" ) ), m_nSecond ( ParseValue( sValue, sPattern, _T("%ss") ) ),
m_nMillisecond ( ParseValue( sValue, sPattern, "%ms" ) ) m_nMillisecond ( ParseValue( sValue, sPattern, _T("%ms") ) )
{ {
} }
......
#include "codecvt.h" #include "codecvt.h"
#include <algorithm>
using namespace std; using namespace std;
...@@ -10,7 +11,7 @@ ucs2_conversion::do_in(mbstate_t&, ...@@ -10,7 +11,7 @@ ucs2_conversion::do_in(mbstate_t&,
{ {
const int max_input = (from_end - from) & ~1; const int max_input = (from_end - from) & ~1;
const int max_output = (to_limit - to); const int max_output = (to_limit - to);
int count = min(max_input / 2, max_output); // TODO , int count = std::min(max_input / 2, max_output); // TODO ,
from_next = from; from_next = from;
to_next = to; to_next = to;
...@@ -35,7 +36,7 @@ ucs2_conversion::do_out(mbstate_t&, ...@@ -35,7 +36,7 @@ ucs2_conversion::do_out(mbstate_t&,
{ {
const int max_input = (from_end - from); const int max_input = (from_end - from);
const int max_output = (to_limit - to) & ~1; const int max_output = (to_limit - to) & ~1;
int count = min(max_input, max_output / 2); // TODO , int count = std::min(max_input, max_output / 2); // TODO ,
from_next = from; from_next = from;
to_next = to; to_next = to;
...@@ -57,7 +58,7 @@ ube_conversion::do_in(mbstate_t&, ...@@ -57,7 +58,7 @@ ube_conversion::do_in(mbstate_t&,
{ {
const int max_input = (from_end - from) & ~1; const int max_input = (from_end - from) & ~1;
const int max_output = (to_limit - to); const int max_output = (to_limit - to);
int count = min(max_input / 2, max_output); // TODO , int count = std::min(max_input / 2, max_output); // TODO ,
from_next = from; from_next = from;
to_next = to; to_next = to;
...@@ -81,7 +82,7 @@ ube_conversion::do_out(mbstate_t&, ...@@ -81,7 +82,7 @@ ube_conversion::do_out(mbstate_t&,
{ {
const int max_input = (from_end - from); const int max_input = (from_end - from);
const int max_output = (to_limit - to) & ~1; const int max_output = (to_limit - to) & ~1;
int count = min(max_input, max_output / 2); // TODO , int count = std::min(max_input, max_output / 2); // TODO ,
from_next = from; from_next = from;
to_next = to; to_next = to;
......
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