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
d87649f0
Commit
d87649f0
authored
Jul 21, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
c55af15c
c4447d73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+20
-9
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
...ficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
+2
-0
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
d87649f0
...
...
@@ -4581,10 +4581,13 @@ std::wstring CDrawingConverter::SaveObjectBackground(LONG lStart, LONG lLength)
NSBinPptxRW
::
CXmlWriter
oXmlWriter
;
SaveObjectExWriterInit
(
oXmlWriter
,
XMLWRITER_DOC_TYPE_DOCX
);
if
(
oElem
.
is
<
PPTX
::
Logic
::
Shape
>
())
{
oXmlWriter
.
m_bIsTop
=
true
;
// не забыть скинуть в самом шейпе
PPTX
::
Logic
::
Shape
&
oShape
=
oElem
.
as
<
PPTX
::
Logic
::
Shape
>
();
oShape
.
toXmlWriterVMLBackground
(
&
oXmlWriter
,
*
m_pTheme
,
*
m_pClrMap
);
}
--
m_nCurrentIndexObject
;
SaveObjectExWriterRelease
(
oXmlWriter
);
...
...
@@ -4606,18 +4609,26 @@ void CDrawingConverter::ConvertShapeVML(PPTX::Logic::SpTreeElem& oElem, const st
{
ConvertMainPropsToVML
(
bsMainProps
,
oWriter
,
oElem
);
if
(
oElem
.
is
<
PPTX
::
Logic
::
Shape
>
())
{
oWriter
.
m_bIsTop
=
true
;
// не забыть скинуть в самом шейпе
PPTX
::
Logic
::
Shape
&
oShape
=
oElem
.
as
<
PPTX
::
Logic
::
Shape
>
();
oShape
.
toXmlWriterVML
(
&
oWriter
,
*
m_pTheme
,
*
m_pClrMap
,
false
,
bSignature
);
}
}
void
CDrawingConverter
::
ConvertGroupVML
(
PPTX
::
Logic
::
SpTreeElem
&
oElem
,
const
std
::
wstring
&
bsMainProps
,
NSBinPptxRW
::
CXmlWriter
&
oWriter
)
{
ConvertMainPropsToVML
(
bsMainProps
,
oWriter
,
oElem
);
if
(
oElem
.
is
<
PPTX
::
Logic
::
SpTree
>
())
{
oWriter
.
m_bIsTop
=
true
;
// не забыть скинуть в самом шейпе (вместе с остальными параметрами)
PPTX
::
Logic
::
SpTree
&
oGroup
=
oElem
.
as
<
PPTX
::
Logic
::
SpTree
>
();
oGroup
.
toXmlWriterVML
(
&
oWriter
,
*
m_pTheme
,
*
m_pClrMap
);
}
}
void
CDrawingConverter
::
ConvertTextVML
(
XmlUtils
::
CXmlNode
&
nodeTextBox
,
PPTX
::
Logic
::
Shape
*
pShape
)
{
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
View file @
d87649f0
...
...
@@ -969,6 +969,8 @@ void OOXShapeReader::Parse( ReaderParameter oParam, RtfShapePtr& pOutput, PPTX::
PPTX
::
Theme
*
theme
=
oParam
.
oDocx
->
GetTheme
();
if
(
!
theme
||
fmt_index
<
0
)
return
;
if
(
style_ref
->
Color
.
is
<
PPTX
::
Logic
::
SchemeClr
>
()
==
false
)
return
;
PPTX
::
Logic
::
SchemeClr
&
schemeClr
=
style_ref
->
Color
.
as
<
PPTX
::
Logic
::
SchemeClr
>
();
std
::
wstring
color
=
schemeClr
.
val
.
get
();
...
...
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