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
60467b50
Commit
60467b50
authored
Apr 18, 2016
by
konovalovsergey
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ошибка конвертации при сохранение группы из chart и автофигуры в xlsx, docx, pptx.
parent
9c49255b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ASCOfficeDocxFile2/DocWrapper/XlsxSerializer.cpp
ASCOfficeDocxFile2/DocWrapper/XlsxSerializer.cpp
+1
-0
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
+2
-4
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
+4
-3
No files found.
ASCOfficeDocxFile2/DocWrapper/XlsxSerializer.cpp
View file @
60467b50
...
...
@@ -173,6 +173,7 @@ namespace BinXlsxRW{
if
(
oChartSpace
.
isValid
())
{
//todo не делать embeddings, если пишем xlsx
//save xlsx
if
(
!
sEmbedingPath
.
IsEmpty
())
{
...
...
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
60467b50
...
...
@@ -4880,7 +4880,7 @@ HRESULT CDrawingConverter::GetAdditionalParam(const CString& ParamName, VARIANT*
else
if
(
name
==
_T
(
"DocumentChartsCount"
))
{
ParamValue
->
vt
=
VT_I4
;
ParamValue
->
lVal
=
m_pReader
->
m_lChartNumber
;
ParamValue
->
lVal
=
m_pReader
->
m_lChartNumber
-
1
;
}
else
if
(
name
==
_T
(
"ContentTypes"
))
{
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
View file @
60467b50
...
...
@@ -211,10 +211,8 @@ xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"
strDstChart
=
strDstChart
.
Mid
(
0
,
nPos
);
strDstChart
+=
_T
(
"charts"
);
if
(
1
==
m_lChartNumber
)
{
FileSystem
::
Directory
::
CreateDirectory
(
strDstChart
);
}
//на всякий случай всегда создаем, нет уверенности что 1 == m_lChartNumber для первого chart
FileSystem
::
Directory
::
CreateDirectory
(
strDstChart
);
CString
strChart
=
_T
(
""
);
strChart
.
Format
(
_T
(
"chart%d.xml"
),
m_lChartNumber
);
...
...
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
View file @
60467b50
#pragma once
#
pragma
once
#ifndef OOX_CONTENT_TYPES_INCLUDE_H_
#define OOX_CONTENT_TYPES_INCLUDE_H_
...
...
@@ -108,7 +108,7 @@ namespace OOX
void
ReadAttributes
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
//
//
Читаем атрибуты
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_ReadSingle
(
oReader
,
_T
(
"Extension"
),
m_sExtension
)
WritingElement_ReadAttributes_End
(
oReader
)
...
...
@@ -163,7 +163,7 @@ namespace OOX
void
ReadAttributes
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
//
//
Читаем атрибуты
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_Read_if
(
oReader
,
_T
(
"PartName"
),
m_oPart
)
WritingElement_ReadAttributes_Read_else_if
(
oReader
,
_T
(
"ContentType"
),
m_sType
)
...
...
@@ -210,6 +210,7 @@ namespace OOX
AddDefault
(
OOX
::
CPath
(
_T
(
".emf"
)));
AddDefault
(
OOX
::
CPath
(
_T
(
".wmf"
)));
AddDefault
(
OOX
::
CPath
(
_T
(
".jpeg"
)));
AddDefault
(
OOX
::
CPath
(
_T
(
".xlsx"
)));
}
CContentTypes
(
const
CPath
&
oPath
)
{
...
...
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