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
5f1d429b
Commit
5f1d429b
authored
Nov 01, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
42d1b8df
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
58 deletions
+79
-58
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
...fficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
+14
-10
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.h
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.h
+2
-2
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
+63
-46
No files found.
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
View file @
5f1d429b
...
...
@@ -794,9 +794,12 @@ void odt_conversion_context::end_note()
text_context
()
->
current_level_
.
pop_back
();
}
//--------------------------------------------------------------------------------------------------------
void
odt_conversion_context
::
start_change
(
int
id
,
int
type
,
std
::
wstring
&
author
,
std
::
wstring
&
userId
,
std
::
wstring
&
date
,
std
::
wstring
style_name
)
bool
odt_conversion_context
::
start_change
(
int
id
,
int
type
,
std
::
wstring
&
author
,
std
::
wstring
&
userId
,
std
::
wstring
&
date
,
std
::
wstring
style_name
)
{
if
(
id
<
0
)
return
;
if
(
id
<
0
)
return
false
;
if
(
!
text_changes_state_
.
current_types
.
empty
()
&&
text_changes_state_
.
current_types
.
back
()
==
2
)
return
false
;
//if (!text_changes_state_.main_text_context)
//{
// text_changes_state_.main_text_context = text_context();
...
...
@@ -877,6 +880,7 @@ void odt_conversion_context::start_change (int id, int type, std::wstring &autho
text_context
()
->
start_element
(
child_elm
);
text_context
()
->
start_paragraph
();
//ваще то не по стандарту .. может мы уже в параграфе (ради Libra! ... гы)
}
return
true
;
}
void
odt_conversion_context
::
end_change
(
int
id
,
int
type
)
{
...
...
@@ -902,14 +906,14 @@ void odt_conversion_context::end_change (int id, int type)
add_to_root
();
text_context
()
->
end_element
();
}
text_changes_state_
.
current_types
.
pop_back
();
}
bool
odt_conversion_context
::
is_delete_changes
()
{
if
(
text_changes_state_
.
current_types
.
empty
())
return
false
;
return
(
text_changes_state_
.
current_types
.
back
()
==
2
);
}
text_changes_state_
.
current_types
.
pop_back
();
//todooo map?? удаление без проверки чего удаляешь
}
//
bool odt_conversion_context::is_delete_changes()
//
{
//
if (text_changes_state_.current_types.empty()) return false;
//
//
return (text_changes_state_.current_types.back() == 2);
//
}
//--------------------------------------------------------------------------------------------------------
void
odt_conversion_context
::
start_image
(
const
std
::
wstring
&
image_file_name
)
{
...
...
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.h
View file @
5f1d429b
...
...
@@ -123,9 +123,9 @@ public:
void
end_note_content
();
void
end_note
();
void
start_change
(
int
id
,
int
type
,
std
::
wstring
&
author
,
std
::
wstring
&
userId
,
std
::
wstring
&
date
,
std
::
wstring
style_name
=
L""
);
bool
start_change
(
int
id
,
int
type
,
std
::
wstring
&
author
,
std
::
wstring
&
userId
,
std
::
wstring
&
date
,
std
::
wstring
style_name
=
L""
);
void
end_change
(
int
id
,
int
type
);
bool
is_delete_changes
();
//
bool is_delete_changes ();
void
start_table
(
bool
styled
=
false
);
void
start_table_columns
();
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
View file @
5f1d429b
This diff is collapsed.
Click to expand it.
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