mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60556 954022d7-b5bf-4e40-9824-e11837661b57
29 lines
974 B
C++
29 lines
974 B
C++
#include <QCoreApplication>
|
|
|
|
#include "../doctrenderer.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication a(argc, argv);
|
|
|
|
std::wstring strXml = L"<Settings>\
|
|
<SrcFileType>0</SrcFileType>\
|
|
<DstFileType>0</DstFileType>\
|
|
<SrcFilePath>D:\\build_doc</SrcFilePath>\
|
|
<DstFilePath>D:\\build_doc\\EditorWithChanges.bin</DstFilePath>\
|
|
<FontsDirectory>D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\OfficeWeb\\Fonts\\native</FontsDirectory>\
|
|
<ImagesDirectory>D:\\build_doc\\media</ImagesDirectory>\
|
|
<ThemesDirectory>D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\ServerComponents\\Test\\Applications\\TestAVSOfficeDocxFile2\\TestAVSOfficeDocxFile2\\bin\\x86\\presentationthemes</ThemesDirectory>\
|
|
<Changes TopItem=\"-1\">\
|
|
<Change>D:\\build_doc\\changes\\changes0.json</Change>\
|
|
</Changes>\
|
|
</Settings>";
|
|
|
|
NSDoctRenderer::CDoctrenderer oRenderer;
|
|
|
|
std::wstring sError;
|
|
oRenderer.Execute(strXml, sError);
|
|
|
|
return a.exec();
|
|
}
|