mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
linux build
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59547 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
08005ece99
commit
acca1077ec
316
ASCOfficeDocxFile2/BinReader/DefaultThemeWriterLinux.h
Normal file
316
ASCOfficeDocxFile2/BinReader/DefaultThemeWriterLinux.h
Normal file
@ -0,0 +1,316 @@
|
||||
#ifndef DEFAULTTHEMEWRITER_H
|
||||
#define DEFAULTTHEMEWRITER_H
|
||||
|
||||
#include "../../XlsxSerializerCom/Common/Common.h"
|
||||
|
||||
namespace Writers
|
||||
{
|
||||
class DefaultThemeWriter
|
||||
{
|
||||
XmlUtils::CStringWriter m_oWriter;
|
||||
CString m_sDir;
|
||||
public:
|
||||
DefaultThemeWriter(CString sDir):m_sDir(sDir)
|
||||
{
|
||||
}
|
||||
void Write()
|
||||
{
|
||||
CString s_Common;
|
||||
|
||||
s_Common = _T("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?> \
|
||||
<a:theme xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" name=\"Office Theme\"> \
|
||||
<a:themeElements> \
|
||||
<a:clrScheme name=\"Office\"> \
|
||||
<a:dk1> \
|
||||
<a:sysClr val=\"windowText\" lastClr=\"000000\"/> \
|
||||
</a:dk1> \
|
||||
<a:lt1> \
|
||||
<a:sysClr val=\"window\" lastClr=\"FFFFFF\"/> \
|
||||
</a:lt1> \
|
||||
<a:dk2> \
|
||||
<a:srgbClr val=\"1F497D\"/> \
|
||||
</a:dk2> \
|
||||
<a:lt2> \
|
||||
<a:srgbClr val=\"EEECE1\"/> \
|
||||
</a:lt2> \
|
||||
<a:accent1> \
|
||||
<a:srgbClr val=\"4F81BD\"/> \
|
||||
</a:accent1> \
|
||||
<a:accent2> \
|
||||
<a:srgbClr val=\"C0504D\"/> \
|
||||
</a:accent2> \
|
||||
<a:accent3> \
|
||||
<a:srgbClr val=\"9BBB59\"/> \
|
||||
</a:accent3> \
|
||||
<a:accent4> \
|
||||
<a:srgbClr val=\"8064A2\"/> \
|
||||
</a:accent4> \
|
||||
<a:accent5> \
|
||||
<a:srgbClr val=\"4BACC6\"/> \
|
||||
</a:accent5> \
|
||||
<a:accent6> \
|
||||
<a:srgbClr val=\"F79646\"/> \
|
||||
</a:accent6> \
|
||||
<a:hlink> \
|
||||
<a:srgbClr val=\"0000FF\"/> \
|
||||
</a:hlink> \
|
||||
<a:folHlink> \
|
||||
<a:srgbClr val=\"800080\"/> \
|
||||
</a:folHlink> \
|
||||
</a:clrScheme> ");
|
||||
s_Common +=
|
||||
_T("<a:fontScheme name=\"Office\"> \
|
||||
<a:majorFont> \
|
||||
<a:latin typeface=\"Cambria\"/> \
|
||||
<a:ea typeface=\"\"/> \
|
||||
<a:cs typeface=\"\"/> \
|
||||
<a:font script=\"Jpan\" typeface=\"?? ????\"/> \
|
||||
<a:font script=\"Hang\" typeface=\"?? ??\"/> \
|
||||
<a:font script=\"Hans\" typeface=\"??\"/> \
|
||||
<a:font script=\"Hant\" typeface=\"????\"/> \
|
||||
<a:font script=\"Arab\" typeface=\"Times New Roman\"/> \
|
||||
<a:font script=\"Hebr\" typeface=\"Times New Roman\"/> \
|
||||
<a:font script=\"Thai\" typeface=\"Angsana New\"/> \
|
||||
<a:font script=\"Ethi\" typeface=\"Nyala\"/> \
|
||||
<a:font script=\"Beng\" typeface=\"Vrinda\"/> \
|
||||
<a:font script=\"Gujr\" typeface=\"Shruti\"/> \
|
||||
<a:font script=\"Khmr\" typeface=\"MoolBoran\"/> \
|
||||
<a:font script=\"Knda\" typeface=\"Tunga\"/> \
|
||||
<a:font script=\"Guru\" typeface=\"Raavi\"/> \
|
||||
<a:font script=\"Cans\" typeface=\"Euphemia\"/> \
|
||||
<a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> \
|
||||
<a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> \
|
||||
<a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> \
|
||||
<a:font script=\"Thaa\" typeface=\"MV Boli\"/> \
|
||||
<a:font script=\"Deva\" typeface=\"Mangal\"/> \
|
||||
<a:font script=\"Telu\" typeface=\"Gautami\"/> \
|
||||
<a:font script=\"Taml\" typeface=\"Latha\"/> \
|
||||
<a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> \
|
||||
<a:font script=\"Orya\" typeface=\"Kalinga\"/> \
|
||||
<a:font script=\"Mlym\" typeface=\"Kartika\"/> \
|
||||
<a:font script=\"Laoo\" typeface=\"DokChampa\"/> \
|
||||
<a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> \
|
||||
<a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> \
|
||||
<a:font script=\"Viet\" typeface=\"Times New Roman\"/> \
|
||||
<a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> \
|
||||
</a:majorFont> \
|
||||
<a:minorFont> \
|
||||
<a:latin typeface=\"Calibri\"/> \
|
||||
<a:ea typeface=\"\"/> \
|
||||
<a:cs typeface=\"\"/> \
|
||||
<a:font script=\"Jpan\" typeface=\"?? ??\"/> \
|
||||
<a:font script=\"Hang\" typeface=\"?? ??\"/> \
|
||||
<a:font script=\"Hans\" typeface=\"??\"/> \
|
||||
<a:font script=\"Hant\" typeface=\"????\"/> \
|
||||
<a:font script=\"Arab\" typeface=\"Arial\"/> \
|
||||
<a:font script=\"Hebr\" typeface=\"Arial\"/> \
|
||||
<a:font script=\"Thai\" typeface=\"Cordia New\"/> \
|
||||
<a:font script=\"Ethi\" typeface=\"Nyala\"/> \
|
||||
<a:font script=\"Beng\" typeface=\"Vrinda\"/> \
|
||||
<a:font script=\"Gujr\" typeface=\"Shruti\"/> \
|
||||
<a:font script=\"Khmr\" typeface=\"DaunPenh\"/> \
|
||||
<a:font script=\"Knda\" typeface=\"Tunga\"/> \
|
||||
<a:font script=\"Guru\" typeface=\"Raavi\"/> \
|
||||
<a:font script=\"Cans\" typeface=\"Euphemia\"/> \
|
||||
<a:font script=\"Cher\" typeface=\"Plantagenet Cherokee\"/> \
|
||||
<a:font script=\"Yiii\" typeface=\"Microsoft Yi Baiti\"/> \
|
||||
<a:font script=\"Tibt\" typeface=\"Microsoft Himalaya\"/> \
|
||||
<a:font script=\"Thaa\" typeface=\"MV Boli\"/> \
|
||||
<a:font script=\"Deva\" typeface=\"Mangal\"/> \
|
||||
<a:font script=\"Telu\" typeface=\"Gautami\"/> \
|
||||
<a:font script=\"Taml\" typeface=\"Latha\"/> \
|
||||
<a:font script=\"Syrc\" typeface=\"Estrangelo Edessa\"/> \
|
||||
<a:font script=\"Orya\" typeface=\"Kalinga\"/> \
|
||||
<a:font script=\"Mlym\" typeface=\"Kartika\"/> \
|
||||
<a:font script=\"Laoo\" typeface=\"DokChampa\"/> \
|
||||
<a:font script=\"Sinh\" typeface=\"Iskoola Pota\"/> \
|
||||
<a:font script=\"Mong\" typeface=\"Mongolian Baiti\"/> \
|
||||
<a:font script=\"Viet\" typeface=\"Arial\"/> \
|
||||
<a:font script=\"Uigh\" typeface=\"Microsoft Uighur\"/> \
|
||||
</a:minorFont> \
|
||||
</a:fontScheme>");
|
||||
s_Common +=
|
||||
_T("<a:fmtScheme name=\"Office\"> \
|
||||
<a:fillStyleLst> \
|
||||
<a:solidFill> \
|
||||
<a:schemeClr val=\"phClr\"/> \
|
||||
</a:solidFill> \
|
||||
<a:gradFill rotWithShape=\"1\"> \
|
||||
<a:gsLst> \
|
||||
<a:gs pos=\"0\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"50000\"/> \
|
||||
<a:satMod val=\"300000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"35000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"37000\"/> \
|
||||
<a:satMod val=\"300000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"100000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"15000\"/> \
|
||||
<a:satMod val=\"350000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
</a:gsLst> \
|
||||
<a:lin ang=\"16200000\" scaled=\"1\"/> \
|
||||
</a:gradFill> \
|
||||
<a:gradFill rotWithShape=\"1\"> \
|
||||
<a:gsLst> \
|
||||
<a:gs pos=\"0\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"51000\"/> \
|
||||
<a:satMod val=\"130000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"80000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"93000\"/> \
|
||||
<a:satMod val=\"130000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"100000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"94000\"/> \
|
||||
<a:satMod val=\"135000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
</a:gsLst> \
|
||||
<a:lin ang=\"16200000\" scaled=\"0\"/> \
|
||||
</a:gradFill> \
|
||||
</a:fillStyleLst> \
|
||||
<a:lnStyleLst> \
|
||||
<a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> \
|
||||
<a:solidFill> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"95000\"/> \
|
||||
<a:satMod val=\"105000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:solidFill> \
|
||||
<a:prstDash val=\"solid\"/> \
|
||||
</a:ln> \
|
||||
<a:ln w=\"25400\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> \
|
||||
<a:solidFill> \
|
||||
<a:schemeClr val=\"phClr\"/> \
|
||||
</a:solidFill> \
|
||||
<a:prstDash val=\"solid\"/> \
|
||||
</a:ln> \
|
||||
<a:ln w=\"38100\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"> \
|
||||
<a:solidFill> \
|
||||
<a:schemeClr val=\"phClr\"/> \
|
||||
</a:solidFill> \
|
||||
<a:prstDash val=\"solid\"/> \
|
||||
</a:ln> \
|
||||
</a:lnStyleLst> \
|
||||
<a:effectStyleLst> \
|
||||
<a:effectStyle> \
|
||||
<a:effectLst> \
|
||||
<a:outerShdw blurRad=\"40000\" dist=\"20000\" dir=\"5400000\" rotWithShape=\"0\"> \
|
||||
<a:srgbClr val=\"000000\"> \
|
||||
<a:alpha val=\"38000\"/> \
|
||||
</a:srgbClr> \
|
||||
</a:outerShdw> \
|
||||
</a:effectLst> \
|
||||
</a:effectStyle> \
|
||||
<a:effectStyle> \
|
||||
<a:effectLst> \
|
||||
<a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> \
|
||||
<a:srgbClr val=\"000000\"> \
|
||||
<a:alpha val=\"35000\"/> \
|
||||
</a:srgbClr> \
|
||||
</a:outerShdw> \
|
||||
</a:effectLst> \
|
||||
</a:effectStyle> \
|
||||
<a:effectStyle> \
|
||||
<a:effectLst> \
|
||||
<a:outerShdw blurRad=\"40000\" dist=\"23000\" dir=\"5400000\" rotWithShape=\"0\"> \
|
||||
<a:srgbClr val=\"000000\"> \
|
||||
<a:alpha val=\"35000\"/> \
|
||||
</a:srgbClr> \
|
||||
</a:outerShdw> \
|
||||
</a:effectLst> \
|
||||
<a:scene3d> \
|
||||
<a:camera prst=\"orthographicFront\"> \
|
||||
<a:rot lat=\"0\" lon=\"0\" rev=\"0\"/> \
|
||||
</a:camera > \
|
||||
<a:lightRig rig=\"threePt\" dir=\"t\"> \
|
||||
<a:rot lat=\"0\" lon=\"0\" rev=\"1200000\"/> \
|
||||
</a:lightRig> \
|
||||
</a:scene3d> \
|
||||
<a:sp3d> \
|
||||
<a:bevelT w=\"63500\" h=\"25400\"/> \
|
||||
</a:sp3d> \
|
||||
</a:effectStyle> \
|
||||
</a:effectStyleLst> \
|
||||
<a:bgFillStyleLst> \
|
||||
<a:solidFill> \
|
||||
<a:schemeClr val=\"phClr\"/> \
|
||||
</a:solidFill> \
|
||||
<a:gradFill rotWithShape=\"1\"> \
|
||||
<a:gsLst> \
|
||||
<a:gs pos=\"0\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"40000\"/> \
|
||||
<a:satMod val=\"350000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"40000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"45000\"/> \
|
||||
<a:shade val=\"99000\"/> \
|
||||
<a:satMod val=\"350000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"100000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"20000\"/> \
|
||||
<a:satMod val=\"255000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
</a:gsLst> \
|
||||
<a:path path=\"circle\"> \
|
||||
<a:fillToRect l=\"50000\" t=\"-80000\" r=\"50000\" b=\"180000\"/> \
|
||||
</a:path> \
|
||||
</a:gradFill> \
|
||||
<a:gradFill rotWithShape=\"1\"> \
|
||||
<a:gsLst> \
|
||||
<a:gs pos=\"0\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:tint val=\"80000\"/> \
|
||||
<a:satMod val=\"300000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
<a:gs pos=\"100000\"> \
|
||||
<a:schemeClr val=\"phClr\"> \
|
||||
<a:shade val=\"30000\"/> \
|
||||
<a:satMod val=\"200000\"/> \
|
||||
</a:schemeClr> \
|
||||
</a:gs> \
|
||||
</a:gsLst> \
|
||||
<a:path path=\"circle\"> \
|
||||
<a:fillToRect l=\"50000\" t=\"50000\" r=\"50000\" b=\"50000\"/> \
|
||||
</a:path> \
|
||||
</a:gradFill> \
|
||||
</a:bgFillStyleLst> \
|
||||
</a:fmtScheme> \
|
||||
</a:themeElements> \
|
||||
<a:objectDefaults/> \
|
||||
<a:extraClrSchemeLst/> \
|
||||
</a:theme>");
|
||||
|
||||
m_oWriter.WriteString(s_Common);
|
||||
|
||||
OOX::CPath fileName = m_sDir + _T("\\word\\theme\\theme1.xml");
|
||||
|
||||
CFile oFile;
|
||||
oFile.CreateFile(fileName.GetPath());
|
||||
oFile.WriteStringUTF8(m_oWriter.GetData());
|
||||
oFile.CloseFile();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // DEFAULTTHEMEWRITER_H
|
||||
@ -125,29 +125,29 @@ bool BinDocxRW::CDocxSerializer::saveToFile(const CString& sSrcFileName, const C
|
||||
void BinDocxRW::CDocxSerializer::CreateDocxFolders(CString strDirectory, CString& sThemePath, CString& sMediaPath)
|
||||
{
|
||||
// rels
|
||||
OOX::CPath pathRels = strDirectory + _T("\\_rels");
|
||||
CreateDirectory(pathRels.GetPath(), NULL);
|
||||
OOX::CPath pathRels = strDirectory + FILE_SEPARATOR_STR + _T("_rels");
|
||||
FileSystem::Directory::CreateDirectory(pathRels.GetPath());
|
||||
|
||||
// word
|
||||
OOX::CPath pathWord = strDirectory + _T("\\word");
|
||||
CreateDirectory(pathWord.GetPath(), NULL);
|
||||
OOX::CPath pathWord = strDirectory + FILE_SEPARATOR_STR + _T("word");
|
||||
FileSystem::Directory::CreateDirectory(pathWord.GetPath());
|
||||
|
||||
// documentRels
|
||||
OOX::CPath pathWordRels = pathWord.GetPath() + _T("\\_rels");
|
||||
CreateDirectory(pathWordRels.GetPath(), NULL);
|
||||
OOX::CPath pathWordRels = pathWord + FILE_SEPARATOR_STR + _T("_rels");
|
||||
FileSystem::Directory::CreateDirectory(pathWordRels.GetPath());
|
||||
|
||||
//media
|
||||
OOX::CPath pathMedia = pathWord.GetPath() + _T("\\media");
|
||||
OOX::CPath pathMedia = pathWord + FILE_SEPARATOR_STR + _T("media");
|
||||
sMediaPath = pathMedia.GetPath();
|
||||
|
||||
// theme
|
||||
OOX::CPath pathTheme = pathWord.GetPath() + _T("\\theme");
|
||||
CreateDirectory(pathTheme.GetPath(), NULL);
|
||||
OOX::CPath pathTheme = pathWord + FILE_SEPARATOR_STR + _T("theme");
|
||||
FileSystem::Directory::CreateDirectory(pathTheme.GetPath());
|
||||
|
||||
OOX::CPath pathThemeRels = pathTheme.GetPath() + _T("\\_rels");
|
||||
CreateDirectory(pathThemeRels.GetPath(), NULL);
|
||||
OOX::CPath pathThemeRels = pathTheme + FILE_SEPARATOR_STR + _T("_rels");
|
||||
FileSystem::Directory::CreateDirectory(pathThemeRels.GetPath());
|
||||
|
||||
pathTheme = pathTheme.GetPath() + _T("\\theme1.xml");
|
||||
pathTheme = pathTheme + FILE_SEPARATOR_STR + _T("theme1.xml");
|
||||
sThemePath = pathTheme.GetPath();
|
||||
}
|
||||
bool BinDocxRW::CDocxSerializer::loadFromFile(const CString& sSrcFileName, const CString& sDstPath, const CString& sXMLOptions, const CString& sThemePath, const CString& sMediaPath)
|
||||
@ -241,17 +241,17 @@ bool BinDocxRW::CDocxSerializer::loadFromFile(const CString& sSrcFileName, const
|
||||
var.bstrVal = sFileInDir.GetString();
|
||||
oDrawingConverter.SetAdditionalParam(CString(L"SourceFileDir"), var);
|
||||
#endif
|
||||
m_pCurFileWriter->m_oDefaultTheme.Write();
|
||||
// m_pCurFileWriter->m_oDefaultTheme.Write();
|
||||
|
||||
BinaryFileReader oBinaryFileReader(sFileInDir, oBufferedStream, *m_pCurFileWriter);
|
||||
oBinaryFileReader.ReadFile();
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
OOX::CContentTypes oContentTypes;
|
||||
//docProps
|
||||
OOX::CPath pathDocProps = sDstPath + _T("\\docProps");
|
||||
CreateDirectory(pathDocProps.GetPath(), NULL);
|
||||
OOX::CPath pathDocProps = sDstPath + FILE_SEPARATOR_STR + _T("docProps");
|
||||
FileSystem::Directory::CreateDirectory(pathDocProps.GetPath());
|
||||
|
||||
OOX::CPath DocProps = L"docProps";
|
||||
OOX::CPath DocProps = CString(_T("docProps"));
|
||||
|
||||
OOX::CApp* pApp = new OOX::CApp();
|
||||
if (pApp)
|
||||
|
||||
@ -1,79 +1,81 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-10-10T14:24:04
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT -= core gui
|
||||
|
||||
TARGET = ASCOfficeDocxFile2Lib
|
||||
TEMPLATE = lib
|
||||
CONFIG += staticlib
|
||||
QMAKE_CXXFLAGS += -std=c++0x -Wall -Wno-ignored-qualifiers -g
|
||||
DEFINES += UNICODE \
|
||||
_UNICODE \
|
||||
LINUX \
|
||||
_LINUX_QT \
|
||||
NODOCX \
|
||||
_USE_XMLLITE_READER_ \
|
||||
USE_LITE_READER \
|
||||
USE_ATL_CSTRING \
|
||||
USE_AVSOFFICESTUDIO_XMLUTILS \
|
||||
SOLUTION_ASCOFFICEDOCXFILE2 \
|
||||
DISABLE_FILE_DOWNLOADER \
|
||||
_USE_LIBXML2_READER_ \
|
||||
LIBXML_READER_ENABLED
|
||||
|
||||
INCLUDEPATH += \
|
||||
../../DesktopEditor/freetype-2.5.2/include \
|
||||
../../Common/DocxFormat/Source/XML/libxml2/XML/include
|
||||
|
||||
INCLUDEPATH += \
|
||||
/usr/include/libxml2
|
||||
|
||||
LIBS += -lxml2
|
||||
|
||||
SOURCES += ../DocWrapper/DocxSerializer.cpp \
|
||||
../DocWrapper/FontProcessor.cpp \
|
||||
../DocWrapper/XlsxSerializer.cpp \
|
||||
../../XlsxSerializerCom/Common/Common.cpp \
|
||||
../../XlsxSerializerCom/Reader/ChartFromToBinary.cpp \
|
||||
../../XlsxSerializerCom/Reader/CommonWriter.cpp \
|
||||
../../XlsxSerializerCom/Reader/CSVReader.cpp \
|
||||
../../XlsxSerializerCom/Writer/CSVWriter.cpp
|
||||
|
||||
HEADERS += ../DocWrapper/DocxSerializer.h \
|
||||
../DocWrapper/FontProcessor.h \
|
||||
../DocWrapper/XlsxSerializer.h \
|
||||
../BinReader/ChartWriter.h \
|
||||
../BinReader/CommentsWriter.h \
|
||||
../BinReader/ContentTypesWriter.h \
|
||||
../BinReader/DocumentRelsWriter.h \
|
||||
../BinReader/DocumentWriter.h \
|
||||
../BinReader/FileWriter.h \
|
||||
../BinReader/fontTableWriter.h \
|
||||
../BinReader/HeaderFooterWriter.h \
|
||||
../BinReader/MediaWriter.h \
|
||||
../BinReader/NumberingWriter.h \
|
||||
../BinReader/ReaderClasses.h \
|
||||
../BinReader/Readers.h \
|
||||
../BinReader/SettingWriter.h \
|
||||
../BinReader/StylesWriter.h \
|
||||
../BinWriter/BinEquationWriter.h \
|
||||
../BinWriter/BinReaderWriterDefines.h \
|
||||
../BinWriter/BinWriters.h \
|
||||
../../XlsxSerializerCom/Common/BinReaderWriterDefines.h \
|
||||
../../XlsxSerializerCom/Common/Common.h \
|
||||
../../XlsxSerializerCom/Reader/BinaryWriter.h \
|
||||
../../XlsxSerializerCom/Reader/ChartFromToBinary.h \
|
||||
../../XlsxSerializerCom/Reader/CommonWriter.h \
|
||||
../../XlsxSerializerCom/Reader/CSVReader.h \
|
||||
../../XlsxSerializerCom/Writer/BinaryCommonReader.h \
|
||||
../../XlsxSerializerCom/Writer/BinaryReader.h \
|
||||
../../XlsxSerializerCom/Writer/CSVWriter.h
|
||||
|
||||
unix {
|
||||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-10-10T14:24:04
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT -= core gui
|
||||
|
||||
TARGET = ASCOfficeDocxFile2Lib
|
||||
TEMPLATE = lib
|
||||
CONFIG += staticlib
|
||||
QMAKE_CXXFLAGS += -std=c++0x -Wall -Wno-ignored-qualifiers -g
|
||||
DEFINES += UNICODE \
|
||||
_UNICODE \
|
||||
LINUX \
|
||||
_LINUX_QT \
|
||||
NODOCX \
|
||||
_USE_XMLLITE_READER_ \
|
||||
USE_LITE_READER \
|
||||
USE_ATL_CSTRING \
|
||||
USE_AVSOFFICESTUDIO_XMLUTILS \
|
||||
SOLUTION_ASCOFFICEDOCXFILE2 \
|
||||
DISABLE_FILE_DOWNLOADER \
|
||||
_USE_LIBXML2_READER_ \
|
||||
LIBXML_READER_ENABLED
|
||||
|
||||
INCLUDEPATH += \
|
||||
../../DesktopEditor/freetype-2.5.2/include \
|
||||
../../Common/DocxFormat/Source/XML/libxml2/XML/include
|
||||
|
||||
INCLUDEPATH += \
|
||||
/usr/include/libxml2
|
||||
|
||||
LIBS += -lxml2
|
||||
|
||||
SOURCES += ../DocWrapper/DocxSerializer.cpp \
|
||||
../DocWrapper/FontProcessor.cpp \
|
||||
../DocWrapper/XlsxSerializer.cpp \
|
||||
../../XlsxSerializerCom/Common/Common.cpp \
|
||||
../../XlsxSerializerCom/Reader/ChartFromToBinary.cpp \
|
||||
../../XlsxSerializerCom/Reader/CommonWriter.cpp \
|
||||
../../XlsxSerializerCom/Reader/CSVReader.cpp \
|
||||
../../XlsxSerializerCom/Writer/CSVWriter.cpp
|
||||
|
||||
HEADERS += ../DocWrapper/DocxSerializer.h \
|
||||
../DocWrapper/FontProcessor.h \
|
||||
../DocWrapper/XlsxSerializer.h \
|
||||
../BinReader/ChartWriter.h \
|
||||
../BinReader/CommentsWriter.h \
|
||||
../BinReader/ContentTypesWriter.h \
|
||||
../BinReader/DocumentRelsWriter.h \
|
||||
../BinReader/DocumentWriter.h \
|
||||
../BinReader/FileWriter.h \
|
||||
../BinReader/fontTableWriter.h \
|
||||
../BinReader/HeaderFooterWriter.h \
|
||||
../BinReader/MediaWriter.h \
|
||||
../BinReader/NumberingWriter.h \
|
||||
../BinReader/ReaderClasses.h \
|
||||
../BinReader/Readers.h \
|
||||
../BinReader/SettingWriter.h \
|
||||
../BinReader/StylesWriter.h \
|
||||
../BinWriter/BinEquationWriter.h \
|
||||
../BinWriter/BinReaderWriterDefines.h \
|
||||
../BinWriter/BinWriters.h \
|
||||
../../XlsxSerializerCom/Common/BinReaderWriterDefines.h \
|
||||
../../XlsxSerializerCom/Common/Common.h \
|
||||
../../XlsxSerializerCom/Reader/BinaryWriter.h \
|
||||
../../XlsxSerializerCom/Reader/ChartFromToBinary.h \
|
||||
../../XlsxSerializerCom/Reader/CommonWriter.h \
|
||||
../../XlsxSerializerCom/Reader/CSVReader.h \
|
||||
../../XlsxSerializerCom/Writer/BinaryCommonReader.h \
|
||||
../../XlsxSerializerCom/Writer/BinaryReader.h \
|
||||
../../XlsxSerializerCom/Writer/CSVWriter.h \
|
||||
../BinReader/webSettingsWriter.h \
|
||||
../BinReader/DefaultThemeWriterLinux.h
|
||||
|
||||
unix {
|
||||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#include "CSVReader.h"
|
||||
|
||||
#include <map>
|
||||
#include "..\..\DesktopEditor\Common\File.h"
|
||||
#include "../../DesktopEditor/common/File.h"
|
||||
|
||||
namespace CSVReader
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user