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
95c472c1
Commit
95c472c1
authored
Apr 17, 2017
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.3.2'
parents
2dcef226
51c77c3a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
21 deletions
+7
-21
ASCOfficeDocxFile2/BinReader/ChartWriter.h
ASCOfficeDocxFile2/BinReader/ChartWriter.h
+2
-14
ASCOfficeDocxFile2/BinReader/Readers.h
ASCOfficeDocxFile2/BinReader/Readers.h
+4
-6
Common/3dParty/icu/fetch.bat
Common/3dParty/icu/fetch.bat
+1
-1
No files found.
ASCOfficeDocxFile2/BinReader/ChartWriter.h
View file @
95c472c1
...
...
@@ -47,13 +47,11 @@ namespace Writers
};
std
::
vector
<
ChartElem
*>
m_aCharts
;
ContentTypesWriter
&
m_oContentTypesWriter
;
int
nChartCount
;
public:
std
::
wstring
m_sDir
;
public:
ChartWriter
(
std
::
wstring
sDir
,
ContentTypesWriter
&
oContentTypesWriter
)
:
m_sDir
(
sDir
),
m_oContentTypesWriter
(
oContentTypesWriter
)
{
nChartCount
=
0
;
}
~
ChartWriter
()
{
...
...
@@ -91,28 +89,18 @@ namespace Writers
}
}
}
void
AddChart
(
std
::
wstring
&
content
,
std
::
wstring
&
sRelsName
,
std
::
wstring
&
sFileName
,
int
&
index
)
void
AddChart
(
std
::
wstring
&
content
,
std
::
wstring
&
sRelsName
,
std
::
wstring
&
sFileName
,
int
index
)
{
ChartElem
*
pChartElem
=
new
ChartElem
();
pChartElem
->
content
=
content
;
pChartElem
->
index
=
nChartCount
+
1
;
nChartCount
++
;
pChartElem
->
index
=
index
;
pChartElem
->
filename
=
L"chart"
+
std
::
to_wstring
(
pChartElem
->
index
)
+
L".xml"
;
sRelsName
=
L"charts/"
+
pChartElem
->
filename
;
sFileName
=
pChartElem
->
filename
;
index
=
pChartElem
->
index
;
m_aCharts
.
push_back
(
pChartElem
);
}
int
getChartCount
()
{
return
nChartCount
;
}
void
setChartCount
(
int
val
)
{
nChartCount
=
val
;
}
};
}
#endif // #ifndef CHART_WRITER
ASCOfficeDocxFile2/BinReader/Readers.h
View file @
95c472c1
...
...
@@ -6287,15 +6287,11 @@ public:
std
::
wstring
sDrawingProperty
=
oCDrawingProperty
.
Write
();
if
(
false
==
sDrawingProperty
.
empty
())
{
m_oFileWriter
.
m_pDrawingConverter
->
SetDocumentChartsCount
(
m_oFileWriter
.
m_oChartWriter
.
getChartCount
());
long
nCurPos
=
m_oBufferedStream
.
GetPos
();
std
::
wstring
sDrawingXml
;
m_oFileWriter
.
m_pDrawingConverter
->
SaveObjectEx
(
oCDrawingProperty
.
DataPos
,
oCDrawingProperty
.
DataLength
,
sDrawingProperty
,
XMLWRITER_DOC_TYPE_DOCX
,
sDrawingXml
);
m_oBufferedStream
.
Seek
(
nCurPos
);
m_oFileWriter
.
m_oChartWriter
.
setChartCount
(
m_oFileWriter
.
m_pDrawingConverter
->
GetDocumentChartsCount
());
if
(
false
==
sDrawingXml
.
empty
())
{
GetRunStringWriter
().
WriteString
(
sDrawingXml
);
...
...
@@ -6606,7 +6602,10 @@ public:
oBinaryChartReader
.
ReadCT_ChartSpace
(
length
,
&
pChartSpace
->
m_oChartSpace
);
//save xlsx
std
::
wstring
sXlsxFilename
=
L"Microsoft_Excel_Worksheet"
+
std
::
to_wstring
(
m_oFileWriter
.
m_oChartWriter
.
getChartCount
()
+
1
)
+
L".xlsx"
;
_INT32
nChartCount
=
m_oFileWriter
.
m_pDrawingConverter
->
GetDocumentChartsCount
();
_INT32
nChartIndex
=
nChartCount
+
1
;
m_oFileWriter
.
m_pDrawingConverter
->
SetDocumentChartsCount
(
nChartCount
+
1
);
std
::
wstring
sXlsxFilename
=
L"Microsoft_Excel_Worksheet"
+
std
::
to_wstring
(
nChartIndex
)
+
L".xlsx"
;
std
::
wstring
sXlsxPath
=
pathChartsWorksheetDir
.
GetPath
()
+
FILE_SEPARATOR_STR
+
sXlsxFilename
;
BinXlsxRW
::
CXlsxSerializer
oXlsxSerializer
;
oXlsxSerializer
.
writeChartXlsx
(
sXlsxPath
,
*
pChartSpace
);
...
...
@@ -6629,7 +6628,6 @@ public:
std
::
wstring
sFilename
;
std
::
wstring
sRelsName
;
int
nChartIndex
;
std
::
wstring
sContent
=
sw
.
GetData
();
m_oFileWriter
.
m_oChartWriter
.
AddChart
(
sContent
,
sRelsName
,
sFilename
,
nChartIndex
);
...
...
Common/3dParty/icu/fetch.bat
View file @
95c472c1
...
...
@@ -23,7 +23,7 @@ if "%platform%" == "win_64" (
if
exist
"
%SCRIPTPATH%%
platform
%
\icu.zip"
(
echo
"icu already downloaded"
)
else
(
Powershell
.exe
Invoke
-WebRequest -OutFile
%platform%
\icu.zip
"
%URL%
"
Powershell
.exe
Invoke
-WebRequest -OutFile
%platform%
\icu.zip
-UserAgent
[
Microsoft
.PowerShell.Commands.PSUserAgent
]
::FireFox
"
%URL%
"
)
SET
UNSIP_PROGRAMM
=
"C:\Program Files\7-Zip\7z.exe"
...
...
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