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
9ecf5b78
Commit
9ecf5b78
authored
Apr 17, 2017
by
Alexey Golubev
Committed by
GitHub
Apr 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from ONLYOFFICE/hotfix/v4.3.2
Hotfix/v4.3.2
parents
1d003863
774561bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
22 deletions
+8
-22
ASCOfficeDocxFile2/BinReader/ChartWriter.h
ASCOfficeDocxFile2/BinReader/ChartWriter.h
+2
-14
ASCOfficeDocxFile2/BinReader/Readers.h
ASCOfficeDocxFile2/BinReader/Readers.h
+5
-7
Common/3dParty/icu/fetch.bat
Common/3dParty/icu/fetch.bat
+1
-1
No files found.
ASCOfficeDocxFile2/BinReader/ChartWriter.h
View file @
9ecf5b78
...
...
@@ -45,13 +45,11 @@ namespace Writers
int
index
;
};
std
::
vector
<
_chartElem
>
m_aCharts
;
int
nChartCount
;
public:
std
::
wstring
m_sDir
;
ChartWriter
(
std
::
wstring
sDir
)
:
m_sDir
(
sDir
)
{
nChartCount
=
0
;
}
~
ChartWriter
()
{
...
...
@@ -80,30 +78,20 @@ namespace Writers
}
return
true
;
}
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
oChartElem
;
oChartElem
.
content
=
content
;
oChartElem
.
index
=
nChartCount
+
1
;
nChartCount
++
;
oChartElem
.
index
=
index
;
oChartElem
.
filename
=
L"chart"
+
std
::
to_wstring
(
oChartElem
.
index
)
+
L".xml"
;
sRelsName
=
L"charts/"
+
oChartElem
.
filename
;
sFileName
=
oChartElem
.
filename
;
index
=
oChartElem
.
index
;
m_aCharts
.
push_back
(
oChartElem
);
}
int
getChartCount
()
{
return
nChartCount
;
}
void
setChartCount
(
int
val
)
{
nChartCount
=
val
;
}
};
}
#endif // #ifndef CHART_WRITER
ASCOfficeDocxFile2/BinReader/Readers.h
View file @
9ecf5b78
...
...
@@ -6292,15 +6292,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,8 +6602,11 @@ public:
OOX
::
Spreadsheet
::
CChartSpace
*
pChartSpace
=
new
OOX
::
Spreadsheet
::
CChartSpace
();
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"
;
//save 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
);
...
...
@@ -6632,7 +6631,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 @
9ecf5b78
...
...
@@ -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