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
d012433a
Commit
d012433a
authored
Apr 25, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - перемещение математических формул (oMath) из Run объекта во вне.
parent
f68a3f15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
+15
-7
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
+1
-0
No files found.
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
View file @
d012433a
...
...
@@ -382,6 +382,12 @@ namespace DocFileFormat
{
m_pXmlWriter
->
WriteNodeEnd
(
_T
(
"w:ins"
));
}
if
(
!
_writeAfterRun
.
empty
())
{
m_pXmlWriter
->
WriteString
(
_writeAfterRun
.
c_str
());
_writeAfterRun
.
clear
();
}
}
else
{
...
...
@@ -571,6 +577,12 @@ namespace DocFileFormat
RevisionData
oData
=
RevisionData
(
chpxPic
);
CharacterPropertiesMapping
*
rPr
=
new
CharacterPropertiesMapping
(
m_pXmlWriter
,
m_document
,
&
oData
,
_lastValidPapx
,
false
);
if
(
rPr
)
{
chpxPic
->
Convert
(
rPr
);
RELEASEOBJECT
(
rPr
);
}
XmlUtils
::
CXmlWriter
OleWriter
;
OleWriter
.
WriteNodeBegin
(
_T
(
"w:object"
),
TRUE
);
...
...
@@ -607,16 +619,12 @@ namespace DocFileFormat
if
(
!
oVmlMapper
.
m_isEmbedded
&&
oVmlMapper
.
m_isEquation
)
{
m_pXmlWriter
->
WriteString
(
oVmlMapper
.
m_equationXml
.
c_str
());
//нельзя в Run писать oMath
//m_pXmlWriter->WriteString(oVmlMapper.m_equationXml.c_str());
_writeAfterRun
=
oVmlMapper
.
m_equationXml
;
}
else
{
CharacterPropertiesMapping
*
rPr
=
new
CharacterPropertiesMapping
(
m_pXmlWriter
,
m_document
,
&
oData
,
_lastValidPapx
,
false
);
if
(
rPr
)
{
chpxPic
->
Convert
(
rPr
);
RELEASEOBJECT
(
rPr
);
}
m_pXmlWriter
->
WriteString
(
OleWriter
.
GetXmlString
());
}
}
...
...
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
View file @
d012433a
...
...
@@ -111,5 +111,6 @@ namespace DocFileFormat
bool
_writeInstrText
;
unsigned
int
_fldCharCounter
;
IMapping
*
_caller
;
std
::
wstring
_writeAfterRun
;
};
}
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