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
bc4abd5b
Commit
bc4abd5b
authored
Sep 21, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix errors
parent
7c8602d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
+8
-8
ASCOfficePPTXFile/PPTXFormat/PresProps.h
ASCOfficePPTXFile/PPTXFormat/PresProps.h
+2
-0
ASCOfficeXlsFile2/source/XlsFormat/Logic/GlobalsSubstream.cpp
...fficeXlsFile2/source/XlsFormat/Logic/GlobalsSubstream.cpp
+3
-2
No files found.
ASCOfficeOdfFileW/source/OdfFormat/ods_table_state.cpp
View file @
bc4abd5b
...
...
@@ -48,6 +48,8 @@
#include "style_paragraph_properties.h"
#include "style_graphic_properties.h"
#include <boost/date_time.hpp>
namespace
cpdoccore
{
using
namespace
odf_types
;
...
...
@@ -74,16 +76,14 @@ std::wstring convert_date(const std::wstring & oox_date)
{
return
oox_date
;
}
//todoooo ПЕРЕПИСАТЬ !!!!
//boost::gregorian::date date_ = boost::gregorian::date(1900, 1, 1) + boost::gregorian::date_duration(iDate-2);
boost
::
gregorian
::
date
date_
=
boost
::
gregorian
::
date
(
1900
,
1
,
1
)
+
boost
::
gregorian
::
date_duration
(
iDate
-
2
);
////to for example, "1899-12-31T05:37:46.66569
std
::
wstring
date_str
=
L""
;
//
boost::lexical_cast<std::wstring>(date_.year())
//
+ L"-" +
// (date_.month() < 10 ? L"0": L"") + boost::lexical_cast<std::wstring>(date_.month
())
//
+ L"-" +
//
(date_.day() < 10 ? L"0": L"") + boost::lexical_cast<std::wstring>(date_.day());
std
::
wstring
date_str
=
boost
::
lexical_cast
<
std
::
wstring
>
(
date_
.
year
())
+
L"-"
+
(
date_
.
month
()
<
10
?
L"0"
:
L""
)
+
boost
::
lexical_cast
<
std
::
wstring
>
(
date_
.
month
().
as_number
())
+
L"-"
+
(
date_
.
day
()
<
10
?
L"0"
:
L""
)
+
boost
::
lexical_cast
<
std
::
wstring
>
(
date_
.
day
());
return
date_str
;
}
...
...
ASCOfficePPTXFile/PPTXFormat/PresProps.h
View file @
bc4abd5b
...
...
@@ -135,9 +135,11 @@ namespace PPTX
for
(
ULONG
i
=
0
;
i
<
_c
;
++
i
)
{
pReader
->
Skip
(
1
);
// type (0)
LONG
pos
=
pReader
->
GetPos
();
LONG
nElemLength
=
pReader
->
GetLong
();
// len
if
(
nElemLength
>
0
)
{
pReader
->
Seek
(
pos
);
Logic
::
UniColor
elm
;
ClrMru
.
push_back
(
elm
);
ClrMru
.
back
().
fromPPTY
(
pReader
);
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/GlobalsSubstream.cpp
View file @
bc4abd5b
...
...
@@ -314,14 +314,15 @@ const bool GlobalsSubstream::loadContent(BinProcessor& proc)
{
if
(
proc
.
mandatory
<
FORMATTING
>
())
{
if
(
!
m_Formating
)
if
(
!
m_Formating
)
//todooo concatinate?
{
m_Formating
=
elements_
.
back
();
elements_
.
pop_back
();
FORMATTING
*
fmts
=
dynamic_cast
<
FORMATTING
*>
(
m_Formating
.
get
());
if
(
fmts
)
{
proc
.
getGlobalWorkbookInfo
()
->
m_arFonts
=
&
fmts
->
m_arFonts
;
proc
.
getGlobalWorkbookInfo
()
->
cellStyleDxfs_count
=
fmts
->
m_arDXF
.
size
();
// + будут юзерские
proc
.
getGlobalWorkbookInfo
()
->
m_arFonts
=
&
fmts
->
m_arFonts
;
}
}
}
...
...
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