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
2326b425
Commit
2326b425
authored
Jun 02, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OdfFormatWriter - правка багов по результатам тестирования пользовательских файлов
parent
98efbc3f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
57 deletions
+62
-57
ASCOfficeOdfFileW/source/OdfFormat/style_table_properties.h
ASCOfficeOdfFileW/source/OdfFormat/style_table_properties.h
+21
-20
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
+28
-25
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
+11
-10
ASCOfficeOdfFileW/win32/ASCOfficeOdfFileW.sln
ASCOfficeOdfFileW/win32/ASCOfficeOdfFileW.sln
+2
-2
No files found.
ASCOfficeOdfFileW/source/OdfFormat/style_table_properties.h
View file @
2326b425
...
...
@@ -180,6 +180,7 @@ public:
odf_types
::
common_rotation_angle_attlist
common_rotation_angle_attlist_
;
_CP_OPT
(
odf_types
::
wrap_option
)
fo_wrap_option_
;
_CP_OPT
(
odf_types
::
rotation_align
)
style_rotation_align_
;
_CP_OPT
(
std
::
wstring
)
style_cell_protect_
;
_CP_OPT
(
odf_types
::
Bool
)
style_print_content_
;
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
View file @
2326b425
...
...
@@ -1161,6 +1161,8 @@ void DocxConverter::convert(OOX::Logic::CSectionProperty *oox_section_pr, bool r
{
odt_context
->
add_section
(
continuous
);
if
(
oox_section_pr
->
m_oCols
.
IsInit
())
{
double
default_space_pt
=
-
1
;
if
(
oox_section_pr
->
m_oCols
->
m_oSpace
.
IsInit
())
default_space_pt
=
oox_section_pr
->
m_oCols
->
m_oSpace
->
ToPoints
();
...
...
@@ -1189,6 +1191,7 @@ void DocxConverter::convert(OOX::Logic::CSectionProperty *oox_section_pr, bool r
// width_space.push_back(std::pair<double,double>(-1, default_space_pt));
//}
odt_context
->
add_section_column
(
width_space
);
}
if
(
root
)
odt_context
->
flush_section
();
}
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
View file @
2326b425
...
...
@@ -914,35 +914,35 @@ void XlsxConverter::convert_styles()
OOX
::
Spreadsheet
::
CStyles
*
xlsx_styles
=
xlsx_document
->
GetStyles
();
if
(
!
xlsx_styles
)
return
;
//todooo ?? Count ??
////////////
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oNumFmts
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oNumFmts
->
m_oCount
->
GetValu
e
();
i
++
)
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oNumFmts
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oNumFmts
->
m_arrItems
.
siz
e
();
i
++
)
{
convert
(
xlsx_styles
->
m_oNumFmts
->
m_arrItems
[
i
]);
}
/////////////
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellStyleXfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellStyleXfs
->
m_oCount
->
GetValu
e
();
i
++
)
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellStyleXfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellStyleXfs
->
m_arrItems
.
siz
e
();
i
++
)
{
//automatical, root - noname - named
convert
(
xlsx_styles
->
m_oCellStyleXfs
->
m_arrItems
[
i
]
,
i
,
true
,
true
);
}
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellStyles
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellStyles
->
m_oCount
->
GetValu
e
();
i
++
)
//styles.xml
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellStyles
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellStyles
->
m_arrItems
.
siz
e
();
i
++
)
//styles.xml
{
//non automatical, root - named
convert
(
xlsx_styles
->
m_oCellStyles
->
m_arrItems
[
i
]);
}
//
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellXfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellXfs
->
m_oCount
->
GetValu
e
();
i
++
)
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oCellXfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oCellXfs
->
m_arrItems
.
siz
e
();
i
++
)
{
//automatical, non root
convert
(
xlsx_styles
->
m_oCellXfs
->
m_arrItems
[
i
],
i
,
true
,
false
);
convert
(
xlsx_styles
->
m_oCellXfs
->
m_arrItems
[
i
],
i
,
true
,
false
);
}
////////////
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oDxfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oDxfs
->
m_oCount
->
GetValu
e
();
i
++
)
for
(
unsigned
int
i
=
0
;
xlsx_styles
->
m_oDxfs
.
IsInit
()
&&
i
<
xlsx_styles
->
m_oDxfs
->
m_arrItems
.
siz
e
();
i
++
)
{
convert
(
xlsx_styles
->
m_oDxfs
->
m_arrItems
[
i
],
i
);
convert
(
xlsx_styles
->
m_oDxfs
->
m_arrItems
[
i
],
i
);
}
}
...
...
@@ -1287,9 +1287,10 @@ void XlsxConverter::convert(OOX::Spreadsheet::CColor *color, _CP_OPT(odf_types::
ucA
=
color
->
m_oRgb
->
Get_A
();
result
=
true
;
}
if
(
color
->
m_oThemeColor
.
IsInit
())
{
OOX
::
CTheme
*
xlsx_theme
=
xlsx_document
->
GetTheme
();
if
(
color
->
m_oThemeColor
.
IsInit
()
&&
xlsx_theme
)
{
int
theme_ind
=
color
->
m_oThemeColor
->
GetValue
();
switch
(
theme_ind
)
{
...
...
ASCOfficeOdfFileW/win32/ASCOfficeOdfFileW.sln
View file @
2326b425
...
...
@@ -659,8 +659,8 @@ Global
{C739151F-5384-41DF-A1A6-F089E2C1AD56}.Unicode Release|Win32.Build.0 = Release|Win32
{C739151F-5384-41DF-A1A6-F089E2C1AD56}.Unicode Release|x64.ActiveCfg = Release|x64
{C739151F-5384-41DF-A1A6-F089E2C1AD56}.Unicode Release|x64.Build.0 = Release|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.ActiveCfg = Debug Multithreaded|
Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.Build.0 = Debug Multithreaded|
Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.ActiveCfg = Debug Multithreaded|
x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.Build.0 = Debug Multithreaded|
x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|x64.ActiveCfg = Debug Multithreaded|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|x64.Build.0 = Debug Multithreaded|x64
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Singlethreaded|Win32.ActiveCfg = Debug Singlethreaded|Win32
...
...
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