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
bdec91bf
Commit
bdec91bf
authored
Dec 11, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hotfix/v5.0.7' into develop
parents
ba6c7e81
260c2edd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
20 deletions
+28
-20
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
+23
-19
ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.vcproj
ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.vcproj
+5
-1
No files found.
ASCOfficeRtfFile/RtfFormatLib/source/DestinationCommand.cpp
View file @
bdec91bf
...
...
@@ -1027,7 +1027,14 @@ bool RtfParagraphPropsCommand::ExecuteCommand(RtfDocument& oDocument, RtfReader&
}
}
COMMAND_RTF_BOOL
(
"intbl"
,
paragraphProps
->
m_bInTable
,
sCommand
,
hasParameter
,
parameter
)
COMMAND_RTF_INT
(
"itap"
,
paragraphProps
->
m_nItap
,
sCommand
,
hasParameter
,
parameter
)
else
if
(
"itap"
==
sCommand
&&
hasParameter
)
{
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
)
COMMAND_RTF_BOOL
(
"pagebb"
,
paragraphProps
->
m_bPageBB
,
sCommand
,
hasParameter
,
parameter
)
...
...
@@ -2283,7 +2290,8 @@ void RtfParagraphPropDestination::AddItem( RtfParagraphPtr oItem, RtfReader& oRe
{
// 1 != oItem->m_oProperty.m_bInTable - параграф не в таблице
// PROP_DEF != nTargetItap && oItem->m_oProperty.m_nItap <= nTargetItap - выставлено свойство,что вложенность - nTargetItap - это не таблица( Нужно для чтения параграфов в таблицах )
if
(
1
!=
oItem
->
m_oProperty
.
m_bInTable
||
(
PROP_DEF
!=
nTargetItap
&&
oItem
->
m_oProperty
.
m_nItap
<=
nTargetItap
)
)
if
(
(
1
!=
oItem
->
m_oProperty
.
m_bInTable
||
0
==
oItem
->
m_oProperty
.
m_nItap
)
//Платежное_поручение.rtf
||
(
PROP_DEF
!=
nTargetItap
&&
oItem
->
m_oProperty
.
m_nItap
<=
nTargetItap
)
)
{
if
(
nCurItap
>
0
)
//Если до этого были только параграфы в таблицах - завершаем таблицу
{
...
...
@@ -2292,15 +2300,13 @@ void RtfParagraphPropDestination::AddItem( RtfParagraphPtr oItem, RtfReader& oRe
for
(
int
k
=
(
int
)
aRows
.
size
()
-
1
;
k
>=
0
;
k
--
)
{
if
(
aRowItaps
[
k
]
==
nCurItap
)
{
oNewTable
->
InsertItem
(
aRows
[
k
],
0
);
aRows
.
erase
(
aRows
.
begin
()
+
k
);
aRowItaps
.
erase
(
aRowItaps
.
begin
()
+
k
);
}
else
if
(
aRowItaps
[
k
]
!=
nCurItap
)
break
;
oNewTable
->
InsertItem
(
aRows
[
k
],
0
);
aRows
.
erase
(
aRows
.
begin
()
+
k
);
aRowItaps
.
erase
(
aRowItaps
.
begin
()
+
k
);
}
//вычисляем свойства для OOX
oNewTable
->
CalculateGridProp
();
...
...
@@ -2339,15 +2345,13 @@ void RtfParagraphPropDestination::AddItem( RtfParagraphPtr oItem, RtfReader& oRe
for
(
int
k
=
(
int
)
aRows
.
size
()
-
1
;
k
>=
0
;
k
--
)
{
if
(
aRowItaps
[
k
]
==
nCurItap
)
{
oNewTable
->
InsertItem
(
aRows
[
k
],
0
);
aRows
.
erase
(
aRows
.
begin
()
+
k
);
aRowItaps
.
erase
(
aRowItaps
.
begin
()
+
k
);
}
else
if
(
aRowItaps
[
k
]
!=
nCurItap
)
break
;
oNewTable
->
InsertItem
(
aRows
[
k
],
0
);
aRows
.
erase
(
aRows
.
begin
()
+
k
);
aRowItaps
.
erase
(
aRowItaps
.
begin
()
+
k
);
}
//вычисляем свойства для OOX
oNewTable
->
CalculateGridProp
();
...
...
@@ -2386,7 +2390,7 @@ void RtfParagraphPropDestination::AddItem( RtfParagraphPtr oItem, RtfReader& oRe
//добавляем параграф во временные cell
aCellRenderables
.
push_back
(
oItem
);
//содержит все параграфы, не разложенные по cell
aItaps
.
push_back
(
nCurItap
);
//содержит все номера вложенности параграфов
if
(
bEndCell
)
{
RtfTableCellPtr
oNewTableCell
(
new
RtfTableCell
()
);
...
...
ASCOfficeRtfFile/RtfFormatTest/RtfFormatTest.vcproj
View file @
bdec91bf
...
...
@@ -65,7 +65,7 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"Urlmon.lib"
AdditionalDependencies=
"Urlmon.lib
Rpcrt4.lib
"
LinkIncremental=
"1"
IgnoreDefaultLibraryNames=
"LIBCMT.lib"
IgnoreEmbeddedIDL=
"true"
...
...
@@ -407,6 +407,10 @@
RelativePath=
"..\..\ASCOfficeOdfFile\src\odf\svg_parser.cpp"
>
</File>
<File
RelativePath=
"..\..\Common\DocxFormat\Source\Base\unicode_util.cpp"
>
</File>
<File
RelativePath=
"..\..\UnicodeConverter\UnicodeConverter.cpp"
>
...
...
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