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
81f8b67d
Commit
81f8b67d
authored
Sep 16, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - fix bugs + 3d word art
parent
b785b16b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
10 deletions
+41
-10
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
...ceDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
+5
-2
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
+36
-8
No files found.
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
View file @
81f8b67d
...
...
@@ -83,8 +83,11 @@ namespace DocFileFormat
WideString
*
author_str
=
static_cast
<
WideString
*>
(
_doc
->
RevisionAuthorTable
->
operator
[](
_revisionData
->
Isbt
));
XMLTools
::
XMLAttribute
<
wchar_t
>
author
(
_T
(
"w:author"
),
FormatUtils
::
XmlEncode
(
*
author_str
).
c_str
());
rPrChange
.
AppendAttribute
(
author
);
if
(
author_str
)
{
XMLTools
::
XMLAttribute
<
wchar_t
>
author
(
_T
(
"w:author"
),
FormatUtils
::
XmlEncode
(
*
author_str
).
c_str
());
rPrChange
.
AppendAttribute
(
author
);
}
//convert revision stack
convertSprms
(
_revisionData
->
Changes
,
&
rPrChange
);
...
...
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
View file @
81f8b67d
...
...
@@ -596,8 +596,34 @@ namespace DocFileFormat
case
c3DExtrudeBackward
:
{
EmuValue
backwardValue
(
(
int
)
iter
->
op
);
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"backdepth"
),
FormatUtils
::
DoubleToWideString
(
backwardValue
.
ToPoints
()
).
c_str
());
std
::
wstring
depth
=
FormatUtils
::
DoubleToWideString
(
backwardValue
.
ToPoints
()
)
+
L"pt"
;
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"backdepth"
),
depth
.
c_str
());
}
break
;
case
c3DAmbientIntensity
:
{
std
::
wstring
intens
=
FormatUtils
::
IntToWideString
((
int
)
iter
->
op
)
+
L"f"
;
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"brightness"
),
intens
.
c_str
());
}
break
;
case
c3DSpecularAmt
:
{
std
::
wstring
amt
=
FormatUtils
::
IntToWideString
((
int
)
iter
->
op
)
+
L"f"
;
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"specularity"
),
amt
.
c_str
());
}
break
;
case
c3DDiffuseAmt
:
{
std
::
wstring
amt
=
FormatUtils
::
IntToWideString
((
int
)
iter
->
op
)
+
L"f"
;
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"diffusity"
),
amt
.
c_str
());
}
break
;
case
c3DKeyIntensity
:
{
std
::
wstring
amt
=
FormatUtils
::
IntToWideString
((
int
)
iter
->
op
);
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"lightlevel"
),
amt
.
c_str
());
}
break
;
case
c3DExtrusionColor
:
{
std
::
wstring
color
=
FormatUtils
::
IntToFormattedWideString
(
iter
->
op
,
L"#%06x"
);
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"color"
),
color
.
c_str
());
}
break
;
case
c3DSkewAngle
:
{
FixedPointNumber
skewAngle
(
iter
->
op
);
...
...
@@ -729,6 +755,10 @@ namespace DocFileFormat
if
(
false
==
path
.
empty
())
m_pXmlWriter
->
WriteAttribute
(
_T
(
"path"
),
path
.
c_str
());
}
break
;
default:
{
int
val
=
iter
->
op
;
}
break
;
}
}
...
...
@@ -856,19 +886,17 @@ namespace DocFileFormat
if
(
ViewPointX
!=
0
)
{
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointX
);
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointX
)
+
L"pt"
;
}
viewPoint
+=
_T
(
","
);
if
(
ViewPointY
!=
0
)
{
viewPoint
+=
_T
(
","
);
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointY
);
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointY
)
+
L"pt"
;
}
viewPoint
+=
_T
(
","
);
if
(
ViewPointZ
!=
0
)
{
viewPoint
+=
_T
(
","
);
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointZ
);
viewPoint
+=
FormatUtils
::
IntToWideString
(
ViewPointZ
)
+
L"pt"
;
}
appendValueAttribute
(
&
m_3dstyle
,
_T
(
"viewpoint"
),
viewPoint
.
c_str
());
...
...
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