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
83b25664
Commit
83b25664
authored
May 04, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
af81688a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
322 additions
and
23 deletions
+322
-23
ASCOfficeDocxFile2/X2tConverter_win_test.sln
ASCOfficeDocxFile2/X2tConverter_win_test.sln
+296
-1
ASCOfficeOdfFile/src/docx/oox_package.cpp
ASCOfficeOdfFile/src/docx/oox_package.cpp
+3
-3
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
+23
-19
No files found.
ASCOfficeDocxFile2/X2tConverter_win_test.sln
View file @
83b25664
This diff is collapsed.
Click to expand it.
ASCOfficeOdfFile/src/docx/oox_package.cpp
View file @
83b25664
...
...
@@ -198,8 +198,8 @@ void core_file::write(const std::wstring & RootPath)
L"xmlns:dc=
\"
http://purl.org/dc/elements/1.1/
\"
xmlns:dcmitype=
\"
http://purl.org/dc/dcmitype/
\"
"
L"xmlns:dcterms=
\"
http://purl.org/dc/terms/
\"
xmlns:xsi=
\"
http://www.w3.org/2001/XMLSchema-instance
\"
>"
;
resStream
<<
L"<dc:creator>ONLYOFFICE Online Editor</dc:creator>"
;
resStream
<<
L"<cp:lastModifiedBy>ONLYOFFICE Online Editor</cp:lastModifiedBy>"
;
//
resStream << L"<dc:creator>ONLYOFFICE Online Editor</dc:creator>";
//
resStream << L"<cp:lastModifiedBy>ONLYOFFICE Online Editor</cp:lastModifiedBy>";
resStream
<<
L"<cp:revision>1</cp:revision>"
;
resStream
<<
L"</cp:coreProperties>"
;
...
...
@@ -214,7 +214,7 @@ void app_file::write(const std::wstring & RootPath)
resStream
<<
L"<Properties xmlns=
\"
http://schemas.openxmlformats.org/officeDocument/2006/extended-properties
\"
"
L"xmlns:vt=
\"
http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
\"
>"
;
resStream
<<
L"<Application>O
NLYOFFICE Online Editor
</Application>"
;
resStream
<<
L"<Application>O
nlyOffice
</Application>"
;
resStream
<<
L"</Properties>"
;
simple_element
elm
(
L"app.xml"
,
resStream
.
str
());
...
...
ASCOfficeOdfFile/src/odf/draw_frame_docx.cpp
View file @
83b25664
...
...
@@ -1298,31 +1298,19 @@ void draw_object::docx_convert(oox::docx_conversion_context & Context)
drawing
.
name
=
Context
.
get_drawing_context
().
get_current_object_name
();
common_draw_docx_convert
(
Context
,
frame
->
common_draw_attlists_
,
drawing
);
const
std
::
wstring
&
content
=
Context
.
get_drawing_context
().
get_text_stream_frame
();
bool
in_frame
=
!
drawing
.
isInline
;
bool
runState
=
Context
.
get_run_state
();
bool
pState
=
Context
.
get_paragraph_state
();
if
(
drawing
.
isInline
)
if
(
drawing
.
fill
.
type
>
0
)
in_frame
=
true
;
if
(
in_frame
)
{
if
(
runState
)
Context
.
finish_run
();
if
(
pState
==
false
)
{
Context
.
output_stream
()
<<
L"<m:oMathPara>"
;
Context
.
output_stream
()
<<
L"<m:oMathParaPr/>"
;
}
Context
.
output_stream
()
<<
content
;
if
(
pState
==
false
)
{
Context
.
output_stream
()
<<
L"</m:oMathPara>"
;
}
if
(
runState
)
Context
.
add_new_run
(
_T
(
""
));
}
else
{
//in frame
drawing
.
additional
.
push_back
(
_property
(
L"text-content"
,
std
::
wstring
(
L"<w:p>"
)
+
content
+
L"</w:p>"
));
drawing
.
additional
.
push_back
(
_property
(
L"text-content"
,
std
::
wstring
(
L"<w:p><m:oMathPara><m:oMathParaPr/>"
)
+
content
+
std
::
wstring
(
L"</m:oMathPara></w:p>"
)));
Context
.
set_run_state
(
false
);
Context
.
set_paragraph_state
(
false
);
...
...
@@ -1335,6 +1323,22 @@ void draw_object::docx_convert(oox::docx_conversion_context & Context)
Context
.
set_run_state
(
runState
);
Context
.
set_paragraph_state
(
pState
);
}
else
{
//in text
if
(
runState
)
Context
.
finish_run
();
//if (pState == false)
{
Context
.
output_stream
()
<<
L"<m:oMathPara>"
;
Context
.
output_stream
()
<<
L"<m:oMathParaPr/>"
;
}
Context
.
output_stream
()
<<
content
;
//if (pState == false)
{
Context
.
output_stream
()
<<
L"</m:oMathPara>"
;
}
if
(
runState
)
Context
.
add_new_run
(
_T
(
""
));
}
Context
.
get_drawing_context
().
clear_stream_frame
();
}
else
if
(
objectBuild
.
object_type_
==
0
)
...
...
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