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
bd67f4bf
Commit
bd67f4bf
authored
Dec 13, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
475bfaf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
+7
-0
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
+9
-4
No files found.
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
View file @
bd67f4bf
...
...
@@ -827,6 +827,13 @@ namespace DocFileFormat
{
if
(
_fldCharCounter
>
0
)
{
if
(
_writeInstrText
==
true
&&
!
text
.
empty
())
{
writeTextElement
(
text
,
textType
);
text
.
clear
();
}
_writeInstrText
=
false
;
XMLTools
::
XMLElement
elem
(
L"w:fldChar"
);
elem
.
AppendAttribute
(
L"w:fldCharType"
,
L"end"
);
...
...
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
View file @
bd67f4bf
...
...
@@ -1029,11 +1029,13 @@ bool RtfParagraphPropsCommand::ExecuteCommand(RtfDocument& oDocument, RtfReader&
COMMAND_RTF_BOOL
(
"intbl"
,
paragraphProps
->
m_bInTable
,
sCommand
,
hasParameter
,
parameter
)
else
if
(
"itap"
==
sCommand
&&
hasParameter
)
{
//if (parameter == 0 && paragraphProps->m_bInTable && paragraphProps->m_nItap > 0)
//{
//
//// paragraphProps->m_bInTable = 0;
//}
//else
paragraphProps
->
m_nItap
=
parameter
;
if
(
parameter
==
0
)
{
paragraphProps
->
m_bInTable
=
0
;
}
}
COMMAND_RTF_BOOL
(
"keep"
,
paragraphProps
->
m_bKeep
,
sCommand
,
hasParameter
,
parameter
)
COMMAND_RTF_BOOL
(
"keepn"
,
paragraphProps
->
m_bKeepNext
,
sCommand
,
hasParameter
,
parameter
)
...
...
@@ -2460,6 +2462,9 @@ bool RtfParagraphPropDestination::ExecuteCommand(RtfDocument& oDocument, RtfRead
}
else
if
(
"cell"
==
sCommand
||
"nestcell"
==
sCommand
)
{
if
(
oReader
.
m_oState
->
m_oParagraphProp
.
m_bInTable
==
1
&&
0
==
oReader
.
m_oState
->
m_oParagraphProp
.
m_nItap
)
//Платежное_поручение.rtf (ели по другому сбойная строка заменяется параграфами
oReader
.
m_oState
->
m_oParagraphProp
.
m_nItap
=
1
;
m_oCurParagraph
->
m_oProperty
=
oReader
.
m_oState
->
m_oParagraphProp
;
m_oCurParagraph
->
m_oOldList
=
RtfOldListPtr
(
new
RtfOldList
()
);
*
m_oCurParagraph
->
m_oOldList
=
oReader
.
m_oState
->
m_oCurOldList
;
...
...
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