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

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59107 954022d7-b5bf-4e40-9824-e11837661b57
parent 53d4305f
...@@ -48,7 +48,7 @@ namespace PPTX ...@@ -48,7 +48,7 @@ namespace PPTX
public: public:
EffectDag cont; EffectDag cont;
protected: protected:
virtual void AlphaMod::FillParentPointersForChilds() virtual void FillParentPointersForChilds()
{ {
cont.SetParentPointer(this); cont.SetParentPointer(this);
} }
...@@ -56,4 +56,4 @@ namespace PPTX ...@@ -56,4 +56,4 @@ namespace PPTX
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
#endif // PPTX_LOGIC_ALPHAMOD_INCLUDE_H_ #endif // PPTX_LOGIC_ALPHAMOD_INCLUDE_H_
\ No newline at end of file
...@@ -29,9 +29,13 @@ namespace PPTX ...@@ -29,9 +29,13 @@ namespace PPTX
public: public:
virtual void fromXML(XmlUtils::CXmlNode& node) virtual void fromXML(XmlUtils::CXmlNode& node)
{ {
ClrFrom.GetColorFrom(node.ReadNode(_T("a:clrFrom"))); XmlUtils::CXmlNode node1 = node.ReadNode(_T("a:clrFrom"));
ClrTo.GetColorFrom(node.ReadNode(_T("a:clrTo"))); ClrFrom.GetColorFrom(node1);
node.ReadAttributeBase(L"useA", useA);
node1 = node.ReadNode(_T("a:clrTo"));
ClrTo.GetColorFrom(node1);
node.ReadAttributeBase(L"useA", useA);
FillParentPointersForChilds(); FillParentPointersForChilds();
} }
...@@ -75,4 +79,4 @@ namespace PPTX ...@@ -75,4 +79,4 @@ namespace PPTX
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
#endif // PPTX_LOGIC_CLRCHANGE_INCLUDE_H_ #endif // PPTX_LOGIC_CLRCHANGE_INCLUDE_H_
\ No newline at end of file
...@@ -184,12 +184,17 @@ xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" ...@@ -184,12 +184,17 @@ xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"
strChart = strDstChart + _T("\\") + strChart; strChart = strDstChart + _T("\\") + strChart;
CString* sContentTypes = NULL; CString* sContentTypes = NULL;
if (pReader->m_lDocumentType == XMLWRITER_DOC_TYPE_DOCX)
oXlsxSerializer.saveChart(*pReader, lLen, strChart, CString(L"/word/charts/"), &sContentTypes); CString strWordChartFolder = _T("/word/charts/");
CString strXlChartFolder = _T("/xl/charts/");
CString strPptChartFolder = _T("/ppt/charts/");
if (pReader->m_lDocumentType == XMLWRITER_DOC_TYPE_DOCX)
oXlsxSerializer.saveChart(*pReader, lLen, strChart, strWordChartFolder, &sContentTypes);
else if (pReader->m_lDocumentType == XMLWRITER_DOC_TYPE_XLSX) else if (pReader->m_lDocumentType == XMLWRITER_DOC_TYPE_XLSX)
oXlsxSerializer.saveChart(*pReader, lLen, strChart, CString(L"/xl/charts/"), &sContentTypes); oXlsxSerializer.saveChart(*pReader, lLen, strChart, strXlChartFolder, &sContentTypes);
else else
oXlsxSerializer.saveChart(*pReader, lLen, strChart, CString(L"/ppt/charts/"), &sContentTypes); oXlsxSerializer.saveChart(*pReader, lLen, strChart, strPptChartFolder, &sContentTypes);
pReader->m_strContentTypes += (*sContentTypes); pReader->m_strContentTypes += (*sContentTypes);
RELEASEOBJECT(sContentTypes); RELEASEOBJECT(sContentTypes);
......
...@@ -36,8 +36,8 @@ namespace PPTX ...@@ -36,8 +36,8 @@ namespace PPTX
CString Timing::toXML() const CString Timing::toXML() const
{ {
return XML::XElement(ns.p + "timing"); return XML::XElement(ns.p + _T("timing"));
} }
} // namespace Logic } // namespace Logic
} // namespace PPTX } // namespace PPTX
\ No newline at end of file
...@@ -68,7 +68,7 @@ SOURCES += pptxformatlib.cpp \ ...@@ -68,7 +68,7 @@ SOURCES += pptxformatlib.cpp \
../../../PPTXFormat/Logic/SpPr.cpp \ ../../../PPTXFormat/Logic/SpPr.cpp \
../../../PPTXFormat/Logic/SpTree.cpp \ ../../../PPTXFormat/Logic/SpTree.cpp \
../../../PPTXFormat/Logic/SpTreeElem.cpp \ ../../../PPTXFormat/Logic/SpTreeElem.cpp \
../../../PPTXFormat/Logic/Timing.cpp \ #../../../PPTXFormat/Logic/Timing.cpp \
../../../PPTXFormat/Logic/TxBody.cpp \ ../../../PPTXFormat/Logic/TxBody.cpp \
../../../PPTXFormat/Logic/UniColor.cpp \ ../../../PPTXFormat/Logic/UniColor.cpp \
../../../PPTXFormat/Logic/UniEffect.cpp \ ../../../PPTXFormat/Logic/UniEffect.cpp \
...@@ -491,7 +491,7 @@ HEADERS += pptxformatlib.h \ ...@@ -491,7 +491,7 @@ HEADERS += pptxformatlib.h \
../../../Editor/BinWriters.h \ ../../../Editor/BinWriters.h \
../../../Editor/CalculatorCRC32.h \ ../../../Editor/CalculatorCRC32.h \
../../../Editor/Converter.h \ ../../../Editor/Converter.h \
#../../../Editor/FontCutter.h \ ../../../Editor/FontCutter.h \
../../../Editor/FontPicker.h \ ../../../Editor/FontPicker.h \
../../../Editor/imagemanager.h \ ../../../Editor/imagemanager.h \
../../../Editor/PPTXWriter.h \ ../../../Editor/PPTXWriter.h \
......
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