diff --git a/DesktopEditor/doctrenderer/linux enviroment setup.txt b/DesktopEditor/doctrenderer/linux enviroment setup.txt index 295c2dcd9e..3364fafc71 100644 --- a/DesktopEditor/doctrenderer/linux enviroment setup.txt +++ b/DesktopEditor/doctrenderer/linux enviroment setup.txt @@ -38,4 +38,7 @@ cd v8 make dependencies // make native CFLAGS="-fPIC" CXXFLAGS="-fPIC" make native ---------------------------------------------------------------------------------------------------------- \ No newline at end of file +--------------------------------------------------------------------------------------------------------- + +# additionals +zlib: sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev \ No newline at end of file diff --git a/HtmlRenderer/htmlrenderer.pro b/HtmlRenderer/htmlrenderer.pro index 96f3238387..4401671646 100644 --- a/HtmlRenderer/htmlrenderer.pro +++ b/HtmlRenderer/htmlrenderer.pro @@ -46,7 +46,7 @@ linux-g++:!contains(QMAKE_HOST.arch, x86_64):{ ############# dynamic dependencies ############# shared { - DEFINES += PDF_USE_DYNAMIC_LIBRARY + DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY LIBS += -L$$DESTDIR -lASCOfficeUtilsLib LIBS += -L$$DESTDIR -lgraphics diff --git a/HtmlRenderer/include/HTMLRenderer3.h b/HtmlRenderer/include/HTMLRenderer3.h index 4b8f4fa91b..c43fa3dd7d 100644 --- a/HtmlRenderer/include/HTMLRenderer3.h +++ b/HtmlRenderer/include/HTMLRenderer3.h @@ -1,12 +1,19 @@ #ifndef _ASC_HTMLRENDERER3_H_ #define _ASC_HTMLRENDERER3_H_ -#include "../../../DesktopEditor/graphics/IRenderer.h" +#include "../../DesktopEditor/graphics/IRenderer.h" + +#ifndef HTMLRENDERER_USE_DYNAMIC_LIBRARY +#define HTMLRENDERER_DECL_EXPORT +#else +#include "../../DesktopEditor/common/base_export.h" +#define HTMLRENDERER_DECL_EXPORT Q_DECL_EXPORT +#endif namespace NSHtmlRenderer { class CASCHTMLRenderer3_Private; - class CASCHTMLRenderer3 : public IRenderer + class HTMLRENDERER_DECL_EXPORT CASCHTMLRenderer3 : public IRenderer { public: CASCHTMLRenderer3(); diff --git a/HtmlRenderer/src/CanvasWriter.h b/HtmlRenderer/src/CanvasWriter.h index 973d17fe93..bb5fb7e978 100644 --- a/HtmlRenderer/src/CanvasWriter.h +++ b/HtmlRenderer/src/CanvasWriter.h @@ -2,7 +2,7 @@ #define _ASC_HTMLRENDERER_CANVASWRITER_H_ #include "Common.h" -#include "../../../DesktopEditor/graphics/GraphicsPath.h" +#include "../../DesktopEditor/graphics/GraphicsPath.h" namespace NSHtmlRenderer { diff --git a/HtmlRenderer/src/Common.h b/HtmlRenderer/src/Common.h index 82c9be0c42..6c7127d30a 100644 --- a/HtmlRenderer/src/Common.h +++ b/HtmlRenderer/src/Common.h @@ -1,16 +1,16 @@ #ifndef _ASC_HTMLRENDERER_COMMON_H_ #define _ASC_HTMLRENDERER_COMMON_H_ -#include "../../../DesktopEditor/common/Types.h" -#include "../../../DesktopEditor/common/File.h" -#include "../../../DesktopEditor/common/Directory.h" -#include "../../../DesktopEditor/raster/BgraFrame.h" -#include "../../../DesktopEditor/graphics/Matrix.h" -#include "../../../DesktopEditor/graphics/structures.h" -#include "../../../DesktopEditor/fontengine/ApplicationFonts.h" -#include "../../../DesktopEditor/common/StringBuilder.h" -#include "../../../DesktopEditor/graphics/IRenderer.h" -#include "../../../DesktopEditor/xml/include/xmlutils.h" +#include "../../DesktopEditor/common/Types.h" +#include "../../DesktopEditor/common/File.h" +#include "../../DesktopEditor/common/Directory.h" +#include "../../DesktopEditor/raster/BgraFrame.h" +#include "../../DesktopEditor/graphics/Matrix.h" +#include "../../DesktopEditor/graphics/structures.h" +#include "../../DesktopEditor/fontengine/ApplicationFonts.h" +#include "../../DesktopEditor/common/StringBuilder.h" +#include "../../DesktopEditor/graphics/IRenderer.h" +#include "../../DesktopEditor/xml/include/xmlutils.h" namespace NSHtmlRenderer { diff --git a/HtmlRenderer/src/Document.h b/HtmlRenderer/src/Document.h index 490fcb8482..fd720ba2c0 100644 --- a/HtmlRenderer/src/Document.h +++ b/HtmlRenderer/src/Document.h @@ -3,7 +3,7 @@ #include "Common.h" #include -#include "../../../DesktopEditor/graphics/GraphicsRenderer.h" +#include "../../DesktopEditor/graphics/GraphicsRenderer.h" namespace NSHtmlRenderer { diff --git a/HtmlRenderer/src/SVGWriter.h b/HtmlRenderer/src/SVGWriter.h index d8314d632e..25d5e855c5 100644 --- a/HtmlRenderer/src/SVGWriter.h +++ b/HtmlRenderer/src/SVGWriter.h @@ -3,7 +3,7 @@ #include "Common.h" #include -#include "../../../DesktopEditor/graphics/GraphicsPath.h" +#include "../../DesktopEditor/graphics/GraphicsPath.h" namespace NSHtmlRenderer { diff --git a/HtmlRenderer/src/SVGWriter2.h b/HtmlRenderer/src/SVGWriter2.h index b5f4ae78e3..6522db6ad7 100644 --- a/HtmlRenderer/src/SVGWriter2.h +++ b/HtmlRenderer/src/SVGWriter2.h @@ -2,7 +2,7 @@ #define _ASC_HTMLRENDERER_SVGWRITER2_H_ #include "SVGWriter.h" -#include "../../../DesktopEditor/graphics/GraphicsRenderer.h" +#include "../../DesktopEditor/graphics/GraphicsRenderer.h" #define SVG_INLINE_MAX_SIZE 500000 // 500Kb #define SVG_TO_RASTER_MIN_SIZE 50000000 // 1Mb diff --git a/HtmlRenderer/src/Text.h b/HtmlRenderer/src/Text.h index 99fcc3c6ff..a4d3f79c86 100644 --- a/HtmlRenderer/src/Text.h +++ b/HtmlRenderer/src/Text.h @@ -2,7 +2,7 @@ #define _ASC_HTMLRENDERER_TEXT_H_ #include "FontManager.h" -#include "../../../Common/OfficeFileFormats.h" +#include "../../Common/OfficeFileFormats.h" #ifdef min #undef min diff --git a/HtmlRenderer/src/VectorGraphicsWriter.h b/HtmlRenderer/src/VectorGraphicsWriter.h index 9121081748..c9b329d1ef 100644 --- a/HtmlRenderer/src/VectorGraphicsWriter.h +++ b/HtmlRenderer/src/VectorGraphicsWriter.h @@ -2,7 +2,7 @@ #define _ASC_HTMLRENDERER_VGW_H_ #include "Common.h" -#include "../../../DesktopEditor/graphics/GraphicsPath.h" +#include "../../DesktopEditor/graphics/GraphicsPath.h" #include namespace NSHtmlRenderer diff --git a/HtmlRenderer/src/Writer.h b/HtmlRenderer/src/Writer.h index 6b937491ba..338eb364e2 100644 --- a/HtmlRenderer/src/Writer.h +++ b/HtmlRenderer/src/Writer.h @@ -3,11 +3,11 @@ #include "SVGWriter2.h" #include -#include "../../../DesktopEditor/xml/include/xmlutils.h" -#include "../../../DesktopEditor/common/CalculatorCRC32.h" +#include "../../DesktopEditor/xml/include/xmlutils.h" +#include "../../DesktopEditor/common/CalculatorCRC32.h" #include "Text.h" #include "Document.h" -#include "../../../DesktopEditor/fontengine/FontConverter.h" +#include "../../DesktopEditor/fontengine/FontConverter.h" namespace NSHtmlRenderer { diff --git a/HtmlRenderer/test/main.cpp b/HtmlRenderer/test/main.cpp index ba414469e6..da976bbd77 100644 --- a/HtmlRenderer/test/main.cpp +++ b/HtmlRenderer/test/main.cpp @@ -1,8 +1,9 @@ #include -#include "../../../PdfReader/PdfReader.h" +#include "../../DesktopEditor/fontengine/ApplicationFonts.h" + +#include "../../PdfReader/PdfReader.h" #include "../include/HTMLRenderer3.h" -#include "../../../DesktopEditor/fontengine/ApplicationFonts.h" int main(int argc, char *argv[]) { diff --git a/HtmlRenderer/test/test.pro b/HtmlRenderer/test/test.pro index 24818c0c4b..45485d8ea5 100644 --- a/HtmlRenderer/test/test.pro +++ b/HtmlRenderer/test/test.pro @@ -12,16 +12,19 @@ TARGET = test CONFIG += console CONFIG -= app_bundle +DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY +DEFINES += HTMLRENDERER_USE_DYNAMIC_LIBRARY + INCLUDEPATH += \ - ../../../DesktopEditor/freetype-2.5.2/include \ + ../../DesktopEditor/freetype-2.5.2/include TEMPLATE = app -LIBS += -L../../../../SDK/lib/win_64/DEBUG -lASCOfficeUtilsLib -LIBS += -L../../../../SDK/lib/win_64/DEBUG -lgraphics -LIBS += -L../../../../SDK/lib/win_64/DEBUG -lHtmlRenderer -LIBS += -L../../../../SDK/lib/win_64/DEBUG -llibxml -LIBS += -L../../../../SDK/lib/win_64/DEBUG -lPdfReader +LIBS += -L../../../SDK/lib/win_64/DEBUG -lASCOfficeUtilsLib +LIBS += -L../../../SDK/lib/win_64/DEBUG -lgraphics +LIBS += -L../../../SDK/lib/win_64/DEBUG -lHtmlRenderer +LIBS += -L../../../SDK/lib/win_64/DEBUG -llibxml +LIBS += -L../../../SDK/lib/win_64/DEBUG -lPdfReader LIBS += -lgdi32 \ -ladvapi32 \ -luser32 \ diff --git a/PdfReader/PdfReader.h b/PdfReader/PdfReader.h index 9ca9820624..4c4c8f7130 100644 --- a/PdfReader/PdfReader.h +++ b/PdfReader/PdfReader.h @@ -7,11 +7,11 @@ class IRenderer; class CFontManager; class CApplicationFonts; -#ifndef PDF_USE_DYNAMIC_LIBRARY -#define PDF_DECL_EXPORT +#ifndef PDFREADER_USE_DYNAMIC_LIBRARY +#define PDFREADER_DECL_EXPORT #else #include "../DesktopEditor/common/base_export.h" -#define PDF_DECL_EXPORT Q_DECL_EXPORT +#define PDFREADER_DECL_EXPORT Q_DECL_EXPORT #endif namespace PdfReader @@ -20,7 +20,7 @@ namespace PdfReader class GlobalParams; class CFontList; - class PDF_DECL_EXPORT CPdfReader + class PDFREADER_DECL_EXPORT CPdfReader { public: diff --git a/PdfReader/PdfReader.pro b/PdfReader/PdfReader.pro index fdce037186..7188486bcb 100644 --- a/PdfReader/PdfReader.pro +++ b/PdfReader/PdfReader.pro @@ -43,7 +43,7 @@ linux-g++:!contains(QMAKE_HOST.arch, x86_64):{ ############# dynamic dependencies ############# shared { - DEFINES += PDF_USE_DYNAMIC_LIBRARY + DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY LIBS += -L$$DESTDIR -lASCOfficeUtilsLib LIBS += -L$$DESTDIR -lgraphics