Commit ab3e457e authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59235 954022d7-b5bf-4e40-9824-e11837661b57
parent 0caf337d
...@@ -28,6 +28,11 @@ INCLUDEPATH += \ ...@@ -28,6 +28,11 @@ INCLUDEPATH += \
../../DesktopEditor/freetype-2.5.2/include \ ../../DesktopEditor/freetype-2.5.2/include \
../../Common/DocxFormat/Source/XML/libxml2/XML/include ../../Common/DocxFormat/Source/XML/libxml2/XML/include
INCLUDEPATH += \
/usr/include/libxml2
LIBS += -lxml2
SOURCES += ../DocWrapper/DocxSerializer.cpp \ SOURCES += ../DocWrapper/DocxSerializer.cpp \
../DocWrapper/FontProcessor.cpp \ ../DocWrapper/FontProcessor.cpp \
../DocWrapper/XlsxSerializer.cpp \ ../DocWrapper/XlsxSerializer.cpp \
...@@ -71,3 +76,10 @@ unix { ...@@ -71,3 +76,10 @@ unix {
target.path = /usr/lib target.path = /usr/lib
INSTALLS += target INSTALLS += target
} }
unix:!macx: LIBS += -L$$PWD/../../Common/DocxFormat/build-DocxFormatLib-Desktop-Debug/ -lDocxFormatLib
INCLUDEPATH += $$PWD/../../Common/DocxFormat/build-DocxFormatLib-Desktop-Debug
DEPENDPATH += $$PWD/../../Common/DocxFormat/build-DocxFormatLib-Desktop-Debug
unix:!macx: PRE_TARGETDEPS += $$PWD/../../Common/DocxFormat/build-DocxFormatLib-Desktop-Debug/libDocxFormatLib.a
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
#include "BinReaderWriterDefines.h" #include "BinReaderWriterDefines.h"
#include "../../Common/Base64.h" #include "../../Common/Base64.h"
#include "imagemanager.h"
#include "./imagemanager.h"
#include "./XmlWriter.h" #include "./XmlWriter.h"
#include "BinaryFileReaderWriter.h" #include "BinaryFileReaderWriter.h"
#include "../PPTXFormat/FileContainer.h" #include "../PPTXFormat/FileContainer.h"
......
...@@ -23,6 +23,13 @@ using namespace NSFontCutter; ...@@ -23,6 +23,13 @@ using namespace NSFontCutter;
#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;
...@@ -632,7 +639,8 @@ namespace NSShapeImageGen ...@@ -632,7 +639,8 @@ namespace NSShapeImageGen
//if (NULL == punkImage) //if (NULL == punkImage)
// return; // return;
BYTE* pBuffer = punkImage.get_Data(); BYTE* pBuffer = punkImage.
get_Data();
LONG lWidth = punkImage.get_Width(); LONG lWidth = punkImage.get_Width();
LONG lHeight = punkImage.get_Height(); LONG lHeight = punkImage.get_Height();
LONG lStride = punkImage.get_Stride(); LONG lStride = punkImage.get_Stride();
......
...@@ -36,7 +36,6 @@ namespace PPTX ...@@ -36,7 +36,6 @@ namespace PPTX
if(m_bCancelled) if(m_bCancelled)
return; return;
//POSITION pos = NULL;
smart_ptr<PPTX::Presentation> _presentation = FileContainer::get(PPTX::FileTypes::Presentation).smart_dynamic_cast<PPTX::Presentation>(); smart_ptr<PPTX::Presentation> _presentation = FileContainer::get(PPTX::FileTypes::Presentation).smart_dynamic_cast<PPTX::Presentation>();
if (_presentation.is_init()) if (_presentation.is_init())
{ {
......
...@@ -79,6 +79,7 @@ SOURCES += pptxformatlib.cpp \ ...@@ -79,6 +79,7 @@ SOURCES += pptxformatlib.cpp \
../../../Editor/BinaryFileReaderWriter.cpp \ ../../../Editor/BinaryFileReaderWriter.cpp \
../../../Editor/FontPicker.cpp \ ../../../Editor/FontPicker.cpp \
../../../../Common/DocxFormat/Source/SystemUtility/SystemUtility.cpp \ ../../../../Common/DocxFormat/Source/SystemUtility/SystemUtility.cpp \
../../../../ASCPresentationEditor/OfficeDrawing/Shapes/BaseShape/BaseShape.cpp
#../../../Directory.cpp \ #../../../Directory.cpp \
#../../File.cpp #../../File.cpp
......
...@@ -271,3 +271,4 @@ unix { ...@@ -271,3 +271,4 @@ unix {
target.path = /usr/lib target.path = /usr/lib
INSTALLS += target INSTALLS += target
} }
...@@ -27,15 +27,16 @@ ...@@ -27,15 +27,16 @@
* At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
*/ */
#include <win32config.h> #include <win32config.h>
#include <libxml/xmlversion.h> #include <libxml/xmlversion.h>
#else #else
/* /*
* Currently supported platforms use either autoconf or * Currently supported platforms use either autoconf or
* copy to config.h own "preset" configuration file. * copy to config.h own "preset" configuration file.
* As result ifdef HAVE_CONFIG_H is omited here. * As result ifdef HAVE_CONFIG_H is omited here.
*/ */
#include "config.h" //#include "config.h"
#include <libxml/xmlversion.h> #include <inttypes.h>
#include <libxml/xmlversion.h>
#endif #endif
#if defined(__Lynx__) #if defined(__Lynx__)
......
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