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
6fc4c6a2
Commit
6fc4c6a2
authored
Jun 23, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OdfFormatWriter - fix chart data
parent
4e58b2ce
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
54 deletions
+67
-54
ASCOfficeOdfFileW/source/OdfFormat/odf_chart_context.cpp
ASCOfficeOdfFileW/source/OdfFormat/odf_chart_context.cpp
+9
-3
ASCOfficeOdfFileW/source/OdfFormat/odf_conversion_context.cpp
...fficeOdfFileW/source/OdfFormat/odf_conversion_context.cpp
+2
-2
ASCOfficeOdfFileW/source/OdfFormat/odf_conversion_context.h
ASCOfficeOdfFileW/source/OdfFormat/odf_conversion_context.h
+9
-2
ASCOfficeOdfFileW/source/OdfFormat/ods_conversion_context.cpp
...fficeOdfFileW/source/OdfFormat/ods_conversion_context.cpp
+2
-1
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
+3
-3
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
...fficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
+2
-1
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
+40
-42
No files found.
ASCOfficeOdfFileW/source/OdfFormat/odf_chart_context.cpp
View file @
6fc4c6a2
...
...
@@ -128,7 +128,15 @@ public:
{
styles_context_
=
NULL
;
current_series_count_
=
0
;
local_table_enabled_
=
true
;
// false; - пока тока КЭШ .. demo.docx
if
(
odf_context
->
type
==
SpreadsheetDocument
)
{
local_table_enabled_
=
false
;
}
else
{
local_table_enabled_
=
true
;
}
}
...
...
@@ -1441,8 +1449,6 @@ void odf_chart_context::set_cash(std::wstring format, std::vector<std::wstring>
void
odf_chart_context
::
set_local_table
(
bool
Val
)
{
if
(
Val
==
false
)
return
;
impl_
->
local_table_enabled_
=
Val
;
}
...
...
ASCOfficeOdfFileW/source/OdfFormat/odf_conversion_context.cpp
View file @
6fc4c6a2
...
...
@@ -55,10 +55,10 @@ namespace odf_writer {
//////////////////////////////////////////////////////////////////////////////////////////////////
odf_conversion_context
::
odf_conversion_context
(
package
::
odf_document
*
outputDocument
)
:
chart_context_
(
this
),
page_layout_context_
(
this
)
odf_conversion_context
::
odf_conversion_context
(
_office_type_document
type_
,
package
::
odf_document
*
outputDocument
)
:
type
(
type_
),
chart_context_
(
this
),
page_layout_context_
(
this
)
{
output_document_
=
outputDocument
;
current_object_
=
0
;
applicationFonts_
=
new
CApplicationFonts
();
...
...
ASCOfficeOdfFileW/source/OdfFormat/odf_conversion_context.h
View file @
6fc4c6a2
...
...
@@ -52,7 +52,12 @@ class office_element;
typedef
shared_ptr
<
office_element
>::
Type
office_element_ptr
;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
enum
_office_type_document
{
TextDocument
,
SpreadsheetDocument
,
PresentationDocument
};
class
odf_conversion_context
:
boost
::
noncopyable
{
struct
_object
...
...
@@ -70,7 +75,9 @@ class odf_conversion_context : boost::noncopyable
};
public:
odf_conversion_context
(
package
::
odf_document
*
outputDocument
);
const
_office_type_document
type
;
odf_conversion_context
(
_office_type_document
type
,
package
::
odf_document
*
outputDocument
);
virtual
~
odf_conversion_context
();
void
set_fonts_directory
(
std
::
wstring
pathFonts
);
...
...
ASCOfficeOdfFileW/source/OdfFormat/ods_conversion_context.cpp
View file @
6fc4c6a2
...
...
@@ -74,7 +74,8 @@ void calculate_size_font_symbols(_font_metrix & metrix, CApplicationFonts *appFo
}
}
ods_conversion_context
::
ods_conversion_context
(
package
::
odf_document
*
outputDocument
)
:
odf_conversion_context
(
outputDocument
),
table_context_
(
*
this
),
current_text_context_
(
NULL
)
:
odf_conversion_context
(
SpreadsheetDocument
,
outputDocument
),
table_context_
(
*
this
),
current_text_context_
(
NULL
)
{
font_metrix_
=
_font_metrix
();
}
...
...
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
View file @
6fc4c6a2
...
...
@@ -60,7 +60,7 @@ int ods_table_state::current_table_row_ = 0;
int
ods_table_state
::
tmp_column_
=
0
;
int
ods_table_state
::
tmp_row_
=
0
;
namespace
utils
//////////////////////////////////////////// ОБ
ўАя
хрень .. вытащить что ли в utils ???
namespace
utils
//////////////////////////////////////////// ОБ
ЩАЯ
хрень .. вытащить что ли в utils ???
{
std
::
wstring
convert_date
(
const
std
::
wstring
&
oox_date
)
...
...
@@ -74,7 +74,7 @@ std::wstring convert_date(const std::wstring & oox_date)
{
return
oox_date
;
}
//todoooo ПЕРЕПИСА
T
Ь !!!!
//todoooo ПЕРЕПИСА
Т
Ь !!!!
//boost::gregorian::date date_ = boost::gregorian::date(1900, 1, 1) + boost::gregorian::date_duration(iDate-2);
...
...
@@ -103,7 +103,7 @@ std::wstring convert_time(const std::wstring & oox_time)
int
hours
=
0
,
minutes
=
0
;
double
sec
=
0
;
//todooo ПЕРЕПИСА
T
Ь !!!
//todooo ПЕРЕПИСА
Т
Ь !!!
//boost::posix_time::time_duration day(24, 0, 0);
//
//double millisec = day.total_milliseconds() * dTime;
...
...
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
View file @
6fc4c6a2
...
...
@@ -72,7 +72,8 @@ double calculate_size_font_symbols(std::wstring str_test, std::wstring font_name
}
}
odt_conversion_context
::
odt_conversion_context
(
package
::
odf_document
*
outputDocument
)
:
odf_conversion_context
(
outputDocument
),
comment_context_
(
this
),
main_text_context_
(
NULL
),
table_context_
(
this
)
:
odf_conversion_context
(
TextDocument
,
outputDocument
),
comment_context_
(
this
),
main_text_context_
(
NULL
),
table_context_
(
this
)
{
current_field_
.
enabled
=
false
;
current_field_
.
started
=
false
;
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/XlsxConverter.cpp
View file @
6fc4c6a2
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