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
61a87a7c
Commit
61a87a7c
authored
Aug 31, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2t - fix bugs after testing
parent
c7dec2d2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
308 additions
and
285 deletions
+308
-285
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
+2
-2
ASCOfficeRtfFile/RtfFormatLib/source/RtfParagraph.h
ASCOfficeRtfFile/RtfFormatLib/source/RtfParagraph.h
+2
-0
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
+10
-4
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
+289
-278
DesktopEditor/common/Directory.h
DesktopEditor/common/Directory.h
+5
-1
No files found.
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
View file @
61a87a7c
...
...
@@ -1457,12 +1457,12 @@ void draw_object::docx_convert(oox::docx_conversion_context & Context)
Context
.
set_run_state
(
false
);
Context
.
set_paragraph_state
(
false
);
if
(
!
Context
.
get_drawing_context
().
in_group
())
if
(
!
Context
.
get_drawing_context
().
in_group
()
&&
!
runState
)
Context
.
add_new_run
(
_T
(
""
));
docx_serialize
(
Context
.
output_stream
(),
drawing
,
Context
.
get_drawing_state_content
());
if
(
!
Context
.
get_drawing_context
().
in_group
())
if
(
!
Context
.
get_drawing_context
().
in_group
()
&&
!
runState
)
Context
.
finish_run
();
Context
.
set_run_state
(
runState
);
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfParagraph.h
View file @
61a87a7c
...
...
@@ -169,6 +169,8 @@ public:
sResult
+=
_T
(
"<w:p>"
);
sResult
+=
_T
(
"<w:pPr>"
);
m_oProperty
.
m_bOldList
=
(
NULL
!=
m_oOldList
);
sResult
+=
m_oProperty
.
RenderToOOX
(
oRenderParameter
);
if
(
NULL
!=
m_oOldList
)
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
View file @
61a87a7c
...
...
@@ -1666,8 +1666,11 @@ CString RtfFrame::RenderToOOX(RenderParameter oRenderParameter)
else
if
(
PROP_DEF
!=
m_nAllSpace
)
sFrame
.
AppendFormat
(
_T
(
" w:vSpace=
\"
%d
\"
"
),
m_nAllSpace
);
if
(
!
sFrame
.
IsEmpty
()
)
{
sResult
=
_T
(
"<w:framePr "
)
+
sFrame
+
_T
(
"/>"
);
sResult
+=
_T
(
"<w:widowControl w:val=
\"
0
\"
/>"
);
}
return
sResult
;
}
CString
RtfParagraphProperty
::
RenderToRtf
(
RenderParameter
oRenderParameter
)
...
...
@@ -1922,10 +1925,13 @@ CString RtfParagraphProperty::RenderToOOX(RenderParameter oRenderParameter)
if
(
m_nIndFirstLine
>=
0
)
sIndent
.
AppendFormat
(
_T
(
" w:firstLine=
\"
%d
\"
"
),
m_nIndFirstLine
);
else
sIndent
.
AppendFormat
(
_T
(
" w:hanging=
\"
%d
\"
"
),
-
m_nIndFirstLine
);
}
RENDER_OOX_INT_ATTRIBUTE
(
m_nIndLeft
,
sIndent
,
_T
(
"w:left"
)
);
RENDER_OOX_INT_ATTRIBUTE
(
m_nIndRight
,
sIndent
,
_T
(
"w:right"
)
);
//RENDER_OOX_INT_ATTRIBUTE( m_nIndStart, sIndent, _T("w:start") );
//RENDER_OOX_INT_ATTRIBUTE( m_nIndEnd, sIndent, _T("w:end") );
else
if
(
m_bOldList
&&
PROP_DEF
!=
m_nIndLeft
)
sIndent
.
AppendFormat
(
_T
(
" w:firstLine=
\"
%d
\"
"
),
0
);
RENDER_OOX_INT_ATTRIBUTE
(
m_nIndLeft
,
sIndent
,
_T
(
"w:left"
)
);
RENDER_OOX_INT_ATTRIBUTE
(
m_nIndRight
,
sIndent
,
_T
(
"w:right"
)
);
//RENDER_OOX_INT_ATTRIBUTE ( m_nIndStart, sIndent, _T("w:start") );
//RENDER_OOX_INT_ATTRIBUTE ( m_nIndEnd, sIndent, _T("w:end") );
if
(
!
sIndent
.
IsEmpty
()
)
{
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.h
View file @
61a87a7c
This diff is collapsed.
Click to expand it.
DesktopEditor/common/Directory.h
View file @
61a87a7c
...
...
@@ -220,7 +220,11 @@ namespace NSDirectory
static
CArray
<
std
::
wstring
>
GetFiles
(
std
::
wstring
strDirectory
,
bool
bIsRecursion
=
false
)
{
CArray
<
std
::
wstring
>
oArray
;
GetFiles2
(
strDirectory
,
oArray
,
bIsRecursion
);
if
(
!
strDirectory
.
empty
())
{
GetFiles2
(
strDirectory
,
oArray
,
bIsRecursion
);
}
return
oArray
;
}
...
...
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