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
474404a8
Commit
474404a8
authored
May 24, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f2f6483b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
+10
-5
No files found.
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
View file @
474404a8
...
@@ -811,10 +811,10 @@ namespace DocFileFormat
...
@@ -811,10 +811,10 @@ namespace DocFileFormat
{
{
Symbol
s
=
getSymbol
(
chpx
);
Symbol
s
=
getSymbol
(
chpx
);
m_pXmlWriter
->
WriteNodeBegin
(
L"w:sym"
,
true
);
//
m_pXmlWriter->WriteNodeBegin(L"w:sym", true);
m_pXmlWriter
->
WriteAttribute
(
L"w:font"
,
FormatUtils
::
XmlEncode
(
s
.
FontName
));
//
m_pXmlWriter->WriteAttribute(L"w:font", FormatUtils::XmlEncode(s.FontName));
m_pXmlWriter
->
WriteAttribute
(
L"w:char"
,
FormatUtils
::
XmlEncode
(
s
.
HexValue
));
//
m_pXmlWriter->WriteAttribute(L"w:char", FormatUtils::XmlEncode(s.HexValue));
m_pXmlWriter
->
WriteNodeEnd
(
L""
,
true
);
//
m_pXmlWriter->WriteNodeEnd(L"", true);
}
}
else
if
((
TextMark
::
DrawnObject
==
code
)
&&
fSpec
)
else
if
((
TextMark
::
DrawnObject
==
code
)
&&
fSpec
)
{
{
...
@@ -1663,12 +1663,17 @@ namespace DocFileFormat
...
@@ -1663,12 +1663,17 @@ namespace DocFileFormat
FontFamilyName
*
ffn
=
static_cast
<
FontFamilyName
*>
(
m_document
->
FontTable
->
operator
[]
(
fontIndex
)
);
FontFamilyName
*
ffn
=
static_cast
<
FontFamilyName
*>
(
m_document
->
FontTable
->
operator
[]
(
fontIndex
)
);
ret
.
FontName
=
ffn
->
xszFtn
;
ret
.
FontName
=
ffn
->
xszFtn
;
ret
.
HexValue
=
L"f0"
+
FormatUtils
::
IntToFormattedWideString
(
code
,
L"%02x"
);
ret
.
HexValue
=
L"f0"
+
FormatUtils
::
IntToFormattedWideString
(
code
,
L"%02x"
);
//-123 - ShortToFormattedWideString
break
;
break
;
}
}
}
}
if
(
ret
.
HexValue
.
length
()
>
4
)
{
ret
.
HexValue
=
ret
.
HexValue
.
substr
(
ret
.
HexValue
.
length
()
-
4
,
4
);
}
return
ret
;
return
ret
;
}
}
...
...
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