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
f6dbc6b9
Commit
f6dbc6b9
authored
Apr 17, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #34762
parent
c2c64304
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
21 deletions
+24
-21
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
+23
-8
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.h
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.h
+1
-13
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.cpp
View file @
f6dbc6b9
...
...
@@ -36,8 +36,11 @@
#include "../SlideMaster.h"
#include "../../ASCOfficeDrawingConverter.h"
#include "../../../XlsxSerializerCom/Reader/ChartFromToBinary.h"
#include "../../../ASCOfficeDocxFile2/DocWrapper/XlsxSerializer.h"
#include "../../../ASCOfficeDocxFile2/BinWriter/BinWriters.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/Diagram/DiagramData.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/Diagram/DiagramDrawing.h"
...
...
@@ -86,10 +89,10 @@ namespace PPTX
}
}
if
(
id_drawing
.
IsInit
())
if
(
id_drawing
.
IsInit
()
&&
pDiagramData
)
{
if
(
parentFileIs
<
OOX
::
IFileContainer
>
())
oFileDrawing
=
parentFileAs
<
OOX
::
IFileContainer
>
().
Find
(
*
id_drawing
);
else
if
(
pRels
!=
NULL
)
oFileDrawing
=
pRels
->
Find
(
*
id_d
ata
);
else
if
(
pRels
!=
NULL
)
oFileDrawing
=
pRels
->
Find
(
*
id_d
rawing
);
}
else
{
...
...
@@ -97,10 +100,7 @@ namespace PPTX
//пробуем по тому же пути с номером data.xml - ниже
}
}
if
(
oFileDrawing
.
IsInit
())
{
pDiagramDrawing
=
dynamic_cast
<
OOX
::
CDiagramDrawing
*>
(
oFileDrawing
.
operator
->
());
}
pDiagramDrawing
=
dynamic_cast
<
OOX
::
CDiagramDrawing
*>
(
oFileDrawing
.
operator
->
());
if
(
!
pDiagramDrawing
&&
pDiagramData
)
{
...
...
@@ -122,7 +122,7 @@ namespace PPTX
m_diag
=
pDiagramDrawing
->
m_oShapeTree
;
FillParentPointersForChilds
();
m_pFileContainer
=
smart_ptr
<
OOX
::
IFileContainer
>
(
pDiagramDrawing
);
m_pFileContainer
=
oFileDrawing
.
smart_dynamic_cast
<
OOX
::
IFileContainer
>
(
);
if
(
!
m_diag
->
grpSpPr
.
xfrm
.
IsInit
())
m_diag
->
grpSpPr
.
xfrm
=
new
PPTX
::
Logic
::
Xfrm
;
...
...
@@ -132,7 +132,22 @@ namespace PPTX
//parse pDiagramData !!
}
}
void
SmartArt
::
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
{
if
(
m_diag
.
is_init
())
{
smart_ptr
<
OOX
::
IFileContainer
>
old
=
*
pWriter
->
m_pCurrentContainer
;
*
pWriter
->
m_pCurrentContainer
=
m_pFileContainer
;
if
(
pWriter
->
m_pMainDocument
)
pWriter
->
m_pMainDocument
->
m_pParamsWriter
->
m_pCurRels
=
(
OOX
::
IFileContainer
*
)
m_pFileContainer
.
operator
->
();
m_diag
->
toPPTY
(
pWriter
);
*
pWriter
->
m_pCurrentContainer
=
old
;
if
(
pWriter
->
m_pMainDocument
)
pWriter
->
m_pMainDocument
->
m_pParamsWriter
->
m_pCurRels
=
old
.
operator
->
();
}
}
void
ChartRec
::
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
{
OOX
::
IFileContainer
*
pRels
=
NULL
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/SmartArt.h
View file @
f6dbc6b9
...
...
@@ -93,19 +93,7 @@ namespace PPTX
{
}
virtual
void
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
{
if
(
m_diag
.
is_init
())
{
smart_ptr
<
OOX
::
IFileContainer
>
old
=
*
pWriter
->
m_pCurrentContainer
;
*
pWriter
->
m_pCurrentContainer
=
m_pFileContainer
;
m_diag
->
toPPTY
(
pWriter
);
*
pWriter
->
m_pCurrentContainer
=
old
;
}
}
virtual
void
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
;
virtual
void
fromPPTY
(
NSBinPptxRW
::
CBinaryFileReader
*
pReader
)
{
pReader
->
SkipRecord
();
...
...
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