Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
1a120b65
Commit
1a120b65
authored
Aug 02, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - fix/add wordArts
parent
5e9d676e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
465 additions
and
16 deletions
+465
-16
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/ShapeTypeFactory.cpp
...cFile/DocDocxConverter/OfficeDrawing/ShapeTypeFactory.cpp
+13
-13
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/Shapetypes/WordArtText.h
...e/DocDocxConverter/OfficeDrawing/Shapetypes/WordArtText.h
+445
-2
ASCOfficeDocFile/DocDocxConverter/VMLShapeTypeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeTypeMapping.cpp
+7
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/ShapeTypeFactory.cpp
View file @
1a120b65
...
@@ -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
msosptText
CanDown
:
case
msosptText
PlainText
:
{
pShape
=
new
WordArtTextType
(
TypeCode
);
}
break
;
{
pShape
=
new
WordArtTextType
(
TypeCode
);
}
break
;
default
:
{
pShape
=
NULL
;
}
break
;
default
:
{
pShape
=
NULL
;
}
break
;
...
...
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/Shapetypes/WordArtText.h
View file @
1a120b65
This diff is collapsed.
Click to expand it.
ASCOfficeDocFile/DocDocxConverter/VMLShapeTypeMapping.cpp
View file @
1a120b65
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment