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
daba1ad2
Commit
daba1ad2
authored
Nov 29, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - fix bug #33397
parent
755ea97a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
+13
-12
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
+1
-0
No files found.
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
View file @
daba1ad2
...
...
@@ -41,7 +41,7 @@
namespace
DocFileFormat
{
DocumentMapping
::
DocumentMapping
(
ConversionContext
*
context
,
IMapping
*
caller
)
:
_skipRuns
(
0
),
_lastValidPapx
(
NULL
),
_lastValidSepx
(
NULL
),
_writeInstrText
(
false
),
DocumentMapping
::
DocumentMapping
(
ConversionContext
*
context
,
IMapping
*
caller
)
:
_skipRuns
(
0
),
_lastValidPapx
(
NULL
),
_lastValidSepx
(
NULL
),
_fldCharCounter
(
0
),
AbstractOpenXmlMapping
(
new
XMLTools
::
CStringXmlWriter
()
),
_sectionNr
(
0
),
_footnoteNr
(
0
),
_endnoteNr
(
0
),
_commentNr
(
0
),
_caller
(
caller
)
{
...
...
@@ -53,6 +53,10 @@ namespace DocFileFormat
_writeInstrText
=
false
;
_isSectionPageBreak
=
0
;
_isTextBoxContent
=
false
;
//--------------------------------------------
_embeddedObject
=
false
;
_writeInstrText
=
false
;
}
DocumentMapping
::
DocumentMapping
(
ConversionContext
*
context
,
XMLTools
::
CStringXmlWriter
*
writer
,
IMapping
*
caller
)
:
_skipRuns
(
0
),
_lastValidPapx
(
NULL
),
_lastValidSepx
(
NULL
),
_writeInstrText
(
false
),
...
...
@@ -67,6 +71,7 @@ namespace DocFileFormat
_writeInstrText
=
false
;
_isSectionPageBreak
=
0
;
_isTextBoxContent
=
false
;
_embeddedObject
=
false
;
}
DocumentMapping
::~
DocumentMapping
()
...
...
@@ -643,7 +648,7 @@ namespace DocFileFormat
}
cpFieldSep1
=
cpFieldSep2
;
}
_skipRuns
=
5
;
_skipRuns
=
5
;
//with separator
}
}
else
if
(
bEMBED
||
bLINK
||
bQUOTE
)
...
...
@@ -731,14 +736,8 @@ namespace DocFileFormat
}
}
if
(
bEMBED
)
{
//Приложения_011015.doc(9 стр) ellipt_eq.doc конфликтные
cp
=
cpFieldEnd
;
_skipRuns
=
3
;
}
else
_skipRuns
=
5
;
_embeddedObject
=
true
;
}
else
{
...
...
@@ -759,6 +758,7 @@ namespace DocFileFormat
m_pXmlWriter
->
WriteString
(
elem
.
GetXMLString
().
c_str
()
);
}
if
(
_embeddedObject
)
_skipRuns
+=
2
;
}
else
if
(
TextMark
::
FieldEndMark
==
code
)
{
...
...
@@ -781,6 +781,7 @@ namespace DocFileFormat
{
_writeInstrText
=
false
;
}
_embeddedObject
=
false
;
}
else
if
((
TextMark
::
Symbol
==
code
)
&&
fSpec
)
{
...
...
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.h
View file @
daba1ad2
...
...
@@ -137,6 +137,7 @@ namespace DocFileFormat
ParagraphPropertyExceptions
*
_lastValidPapx
;
SectionPropertyExceptions
*
_lastValidSepx
;
bool
_embeddedObject
;
int
_skipRuns
;
int
_sectionNr
;
int
_footnoteNr
;
...
...
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