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

ENABLE_ODP_TO_PPTX_CONVERT вытерт

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59035 954022d7-b5bf-4e40-9824-e11837661b57
parent b0ae2fed
...@@ -556,6 +556,14 @@ ...@@ -556,6 +556,14 @@
<File <File
RelativePath=".\OfficeDrawing\Theme.cpp" RelativePath=".\OfficeDrawing\Theme.cpp"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath=".\OfficeDrawing\Theme.h" RelativePath=".\OfficeDrawing\Theme.h"
......
...@@ -11,16 +11,6 @@ ...@@ -11,16 +11,6 @@
#include "../PPTXWriter/FileDownloader.h" #include "../PPTXWriter/FileDownloader.h"
#endif #endif
#ifdef ENABLE_ODP_TO_PPTX_CONVERT
// enable ppt to pptx shape convertation
#ifndef ENABLE_PPT_TO_PPTX_CONVERT
#define ENABLE_PPT_TO_PPTX_CONVERT
#endif
#include "Shapes/BaseShape/PPTShape/PPT2PPTXShapeConverter.h"
#include "Shapes/BaseShape/ODPShape/ODP2PPTXShapeConverter.h"
#endif
#ifdef ENABLE_PPT_TO_PPTX_CONVERT #ifdef ENABLE_PPT_TO_PPTX_CONVERT
#include "Shapes/BaseShape/PPTShape/PPT2PPTXShapeConverter.h" #include "Shapes/BaseShape/PPTShape/PPT2PPTXShapeConverter.h"
...@@ -946,10 +936,6 @@ namespace NSPresentationEditor ...@@ -946,10 +936,6 @@ namespace NSPresentationEditor
strPPTXShape = ConvertPPTShapeToPPTX(); strPPTXShape = ConvertPPTShapeToPPTX();
#endif #endif
#ifdef ENABLE_ODP_TO_PPTX_CONVERT
if (eShapeType == NSBaseShape::odp)
strPPTXShape = ConvertODPShapeToPPTX();
#endif
CGeomShapeInfo oInfo; CGeomShapeInfo oInfo;
oInfo.SetBounds(m_rcBounds); oInfo.SetBounds(m_rcBounds);
...@@ -1253,42 +1239,6 @@ namespace NSPresentationEditor ...@@ -1253,42 +1239,6 @@ namespace NSPresentationEditor
} }
#endif #endif
#ifdef ENABLE_ODP_TO_PPTX_CONVERT
CString ConvertODPShapeToPPTX()
{
CString strPPTXXml = _T("");
COdpShape* pODPShape = dynamic_cast<COdpShape*>(m_oShape.m_pShape);
NSGuidesVML::CFormulaConverterODP2PPT pODPConverter;
if(!pODPShape->m_eType || pODPShape->m_eType == 1)
return _T("");
pODPConverter.ConvertOdp ( pODPShape );
pODPConverter.ConvertType ( pODPShape->m_eType);
//CSupportShape pSupShapeODP (pODPShape, pODPConverter);
/*CBaseShape->m_strPath = pODPConverter.strPath;*/
CPPTShape* pPPTShape = new CPPTShape();
pPPTShape->m_strPath = pODPConverter.strPath;
pPPTShape->m_oManager.m_arFormulas = pODPConverter.m_arFormulas;
pPPTShape->m_arAdjustments = pODPShape->m_arAdjustments;
pPPTShape->m_oPath = pODPShape->m_oPath;
pPPTShape->m_arStringTextRects[0] = pODPConverter.strRect;
//pPPTShape->m_eType = pODPShape->m_eType;
pPPTShape->m_arHandles = pODPConverter.m_arHandles;
NSGuidesVML::CFormParam pParamCoef;
pParamCoef.m_eType = ptFormula;
pParamCoef.m_lParam = pODPConverter.m_lPiFormulaNum;
pParamCoef.m_lCoef = 1;
strPPTXXml = ConvertPPTtoPPTX ( pPPTShape, pParamCoef );
return strPPTXXml;
}
#endif
#ifdef ENABLE_PPT_TO_PPTX_CONVERT #ifdef ENABLE_PPT_TO_PPTX_CONVERT
......
...@@ -34,7 +34,6 @@ namespace NSPresentationEditor ...@@ -34,7 +34,6 @@ namespace NSPresentationEditor
if (m_bIsBackground) if (m_bIsBackground)
{ {
// background // background
#ifndef ENABLE_ODP_TO_PPTX_CONVERT
#ifdef PPT_DEF #ifdef PPT_DEF
CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect);
#else #else
...@@ -46,9 +45,6 @@ namespace NSPresentationEditor ...@@ -46,9 +45,6 @@ namespace NSPresentationEditor
CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect);
#endif #endif
#endif #endif
#else
CShapeElement oElem(NSPresentationEditor::NSBaseShape::odp, OdpShapes::sptCRect);
#endif
oElem.m_oMetric = oInfo; oElem.m_oMetric = oInfo;
oElem.m_rcBoundsOriginal.left = 0.0; oElem.m_rcBoundsOriginal.left = 0.0;
......
...@@ -342,7 +342,6 @@ namespace NSPresentationEditor ...@@ -342,7 +342,6 @@ namespace NSPresentationEditor
if (m_bIsBackground) if (m_bIsBackground)
{ {
// background // background
#ifndef ENABLE_ODP_TO_PPTX_CONVERT
#ifdef PPT_DEF #ifdef PPT_DEF
CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect);
#else #else
...@@ -354,9 +353,6 @@ namespace NSPresentationEditor ...@@ -354,9 +353,6 @@ namespace NSPresentationEditor
CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect);
#endif #endif
#endif #endif
#else
CShapeElement oElem(NSPresentationEditor::NSBaseShape::odp, OdpShapes::sptCRect);
#endif
oElem.m_oMetric = oInfo; oElem.m_oMetric = oInfo;
oElem.m_rcBoundsOriginal.left = 0.0; oElem.m_rcBoundsOriginal.left = 0.0;
......
...@@ -70,7 +70,6 @@ namespace NSPresentationEditor ...@@ -70,7 +70,6 @@ namespace NSPresentationEditor
// ----------------- // -----------------
// background // background
#ifndef ENABLE_ODP_TO_PPTX_CONVERT
#ifdef PPT_DEF #ifdef PPT_DEF
CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::ppt, PPTShapes::sptCRect);
#else #else
...@@ -82,9 +81,6 @@ namespace NSPresentationEditor ...@@ -82,9 +81,6 @@ namespace NSPresentationEditor
CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect); CShapeElement oElem(NSPresentationEditor::NSBaseShape::pptx, OOXMLShapes::sptCRect);
#endif #endif
#endif #endif
#else
CShapeElement oElem(NSPresentationEditor::NSBaseShape::odp, OdpShapes::sptCRect);
#endif
oElem.m_oMetric = oInfo; oElem.m_oMetric = oInfo;
oElem.m_rcBoundsOriginal.left = 0.0; oElem.m_rcBoundsOriginal.left = 0.0;
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
//1 //1
//0 //0
//0 //0
//123 //126
#define INTVER 1,0,0,123 #define INTVER 1,0,0,126
#define STRVER "1,0,0,123\0" #define STRVER "1,0,0,126\0"
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