Commit 1a120b65 authored by ElenaSubbotina's avatar ElenaSubbotina

DocFormatReader - fix/add wordArts

parent 5e9d676e
...@@ -217,9 +217,18 @@ namespace DocFileFormat ...@@ -217,9 +217,18 @@ namespace DocFileFormat
case msosptTextStop : { pShape = new WordArtTextStop(); } break; case msosptTextStop : { pShape = new WordArtTextStop(); } break;
case msosptTextArchUpCurve : { pShape = new WordArtTextArchUpCurve(); } break; case msosptTextArchUpCurve : { pShape = new WordArtTextArchUpCurve(); } break;
case msosptTextPlainText : case msosptTextSlantUp : { pShape = new WordArtTextSlantUp(); } break;
//без детализаций - todooo прописать формулы case msosptTextDeflate : { pShape = new WordArtTextDeflate(); } break;
case msosptTextTriangle : case msosptTextCanDown : { pShape = new WordArtTextCanDown(); } break;
case msosptTextWave1 : { pShape = new WordArtTextWave1(); } break;
case msosptTextWave3 : { pShape = new WordArtTextWave3(); } break;
case msosptTextWave4 : { pShape = new WordArtTextWave4(); } break;
case msosptTextCurveUp : { pShape = new WordArtTextCurveUp(); } break;
case msosptTextFadeUp : { pShape = new WordArtTextFadeUp(); } break;
case msosptTextTriangle : { pShape = new WordArtTextTriangle(); } break;
case msosptTextCascadeUp : { pShape = new WordArtTextCascadeUp(); } break;
case msosptTextDeflateBottom : { pShape = new WordArtTextDeflateBottom(); } break;
case msosptTextTriangleInverted : case msosptTextTriangleInverted :
case msosptTextChevron : case msosptTextChevron :
case msosptTextChevronInverted : case msosptTextChevronInverted :
...@@ -232,30 +241,21 @@ namespace DocFileFormat ...@@ -232,30 +241,21 @@ namespace DocFileFormat
case msosptTextArchDownPour : case msosptTextArchDownPour :
case msosptTextCirclePour : case msosptTextCirclePour :
case msosptTextButtonPour : case msosptTextButtonPour :
case msosptTextCurveUp :
case msosptTextCurveDown : case msosptTextCurveDown :
case msosptTextCascadeUp :
case msosptTextCascadeDown : case msosptTextCascadeDown :
case msosptTextWave1 :
case msosptTextWave2 : case msosptTextWave2 :
case msosptTextWave3 :
case msosptTextWave4 :
case msosptTextInflate : case msosptTextInflate :
case msosptTextDeflate :
case msosptTextInflateBottom : case msosptTextInflateBottom :
case msosptTextDeflateBottom :
case msosptTextInflateTop : case msosptTextInflateTop :
case msosptTextDeflateTop : case msosptTextDeflateTop :
case msosptTextDeflateInflate : case msosptTextDeflateInflate :
case msosptTextDeflateInflateDeflate : case msosptTextDeflateInflateDeflate :
case msosptTextFadeRight : case msosptTextFadeRight :
case msosptTextFadeLeft : case msosptTextFadeLeft :
case msosptTextFadeUp :
case msosptTextFadeDown : case msosptTextFadeDown :
case msosptTextSlantUp :
case msosptTextSlantDown : case msosptTextSlantDown :
case msosptTextCanUp : case msosptTextCanUp :
case msosptTextCanDown : case msosptTextPlainText :
{ pShape = new WordArtTextType(TypeCode); } break; { pShape = new WordArtTextType(TypeCode); } break;
default : { pShape = NULL; } break; default : { pShape = NULL; } break;
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "VMLShapeTypeMapping.h" #include "VMLShapeTypeMapping.h"
#include "OfficeDrawing/Shapetypes/OvalType.h" #include "OfficeDrawing/Shapetypes/OvalType.h"
#include "OfficeDrawing/Shapetypes/WordArtText.h"
namespace DocFileFormat namespace DocFileFormat
{ {
...@@ -160,6 +161,11 @@ namespace DocFileFormat ...@@ -160,6 +161,11 @@ namespace DocFileFormat
if (pShape->ConnectorAngles.length()) if (pShape->ConnectorAngles.length())
m_pXmlWriter->WriteAttribute( _T( "o:connectangles" ), pShape->ConnectorAngles.c_str() ); m_pXmlWriter->WriteAttribute( _T( "o:connectangles" ), pShape->ConnectorAngles.c_str() );
} }
WordArtTextType* wordArt = dynamic_cast<WordArtTextType*>(pShape);
if (wordArt)
{
m_pXmlWriter->WriteAttribute( _T( "textpathok" ), _T( "t" ) );
}
m_pXmlWriter->WriteNodeEnd( _T( "" ), true ); m_pXmlWriter->WriteNodeEnd( _T( "" ), true );
......
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