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
09ef46f3
Commit
09ef46f3
authored
Apr 25, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #34836
parent
18393505
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
+13
-5
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
+2
-2
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
View file @
09ef46f3
...
...
@@ -120,21 +120,29 @@ namespace PPTX
oAttr
.
Write
(
_T
(
"noResize"
),
noResize
);
oAttr
.
Write
(
_T
(
"noSelect"
),
noSelect
);
return
XmlUtils
::
CreateNode
(
m_namespace
+
L":cNvGraphicFramePr"
,
oAttr
.
m_strValue
.
empty
()
?
L""
:
XmlUtils
::
CreateNode
(
L"a:graphicFrameLocks"
,
oAttr
));
std
::
wstring
namespaceLocks
=
L"a"
;
if
(
m_namespace
==
L"wp"
)
namespaceLocks
=
L"wp"
;
return
XmlUtils
::
CreateNode
(
m_namespace
+
L":cNvGraphicFramePr"
,
oAttr
.
m_strValue
.
empty
()
?
L""
:
XmlUtils
::
CreateNode
(
namespaceLocks
+
L":graphicFrameLocks"
,
oAttr
));
}
virtual
void
toXmlWriter
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
{
std
::
wstring
namespace_
=
m_namespace
;
std
::
wstring
namespace_
=
m_namespace
;
std
::
wstring
namespaceLock_
=
L"a"
;
if
(
pWriter
->
m_lDocType
==
XMLWRITER_DOC_TYPE_XLSX
)
namespace_
=
L"xdr"
;
if
(
pWriter
->
m_lDocType
==
XMLWRITER_DOC_TYPE_DOCX
)
namespace_
=
L"wp"
;
if
(
pWriter
->
m_lDocType
==
XMLWRITER_DOC_TYPE_DOCX
)
{
namespaceLock_
=
L"wp"
;
namespace_
=
L"wp"
;
}
pWriter
->
StartNode
(
namespace_
+
L":cNvGraphicFramePr"
);
pWriter
->
EndAttributes
();
pWriter
->
StartNode
(
_T
(
"a:graphicFrameLocks"
)
);
pWriter
->
StartNode
(
namespaceLock_
+
L"graphicFrameLocks"
);
pWriter
->
StartAttributes
();
...
...
@@ -147,7 +155,7 @@ namespace PPTX
pWriter
->
EndAttributes
();
pWriter
->
EndNode
(
_T
(
"a:graphicFrameLocks"
)
);
pWriter
->
EndNode
(
namespaceLock_
+
L":graphicFrameLocks"
);
pWriter
->
EndNode
(
namespace_
+
L":cNvGraphicFramePr"
);
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
View file @
09ef46f3
...
...
@@ -122,8 +122,8 @@ namespace PPTX
if
(
L"xfrm"
==
strName
&&
strNamespace
!=
L"xdr"
)
xfrm
=
oReader
;
else
if
(
L"
n
vGraphicFramePr"
==
strName
)
nvGraphicFramePr
.
fromXML
(
oReader
);
else
if
(
L"
cN
vGraphicFramePr"
==
strName
)
nvGraphicFramePr
.
cNvGraphicFramePr
.
fromXML
(
oReader
);
else
if
(
L"graphic"
==
strName
)
{
...
...
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