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
c18d5a82
Commit
c18d5a82
authored
Aug 26, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o:allowincell -> layoutInCell
parent
d2b76089
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+19
-0
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/CustomGeomShape.h
...ditor/Drawing/Shapes/BaseShape/PPTShape/CustomGeomShape.h
+7
-0
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
c18d5a82
...
...
@@ -2989,6 +2989,17 @@ CString CDrawingConverter::GetDrawingMainProps(XmlUtils::CXmlNode& oNode, PPTX::
*/
}
nullable_bool
isAllowInCell
;
nullable_string
sAllowInCell
;
oNode
.
ReadAttributeBase
(
L"o:allowincell"
,
sAllowInCell
);
if
(
sAllowInCell
.
is_init
())
{
if
((
L"f"
==
*
sAllowInCell
)
||
(
L"false"
==
*
sAllowInCell
))
isAllowInCell
=
false
;
if
((
L"t"
==
*
sAllowInCell
)
||
(
L"true"
==
*
sAllowInCell
))
isAllowInCell
=
true
;
}
CString
strWrapPoints
=
oNode
.
GetAttribute
(
_T
(
"wrapcoords"
));
CString
strWrapPointsResult
=
_T
(
""
);
if
(
_T
(
""
)
!=
strWrapPoints
)
...
...
@@ -3029,6 +3040,14 @@ CString CDrawingConverter::GetDrawingMainProps(XmlUtils::CXmlNode& oNode, PPTX::
}
}
if
(
isAllowInCell
.
is_init
())
{
if
(
*
isAllowInCell
)
oWriter
.
WriteAttribute
(
_T
(
"layoutInCell"
),
(
CString
)
_T
(
"1"
));
else
oWriter
.
WriteAttribute
(
_T
(
"layoutInCell"
),
(
CString
)
_T
(
"0"
));
}
oWriter
.
EndAttributes
();
oWriter
.
StartNode
(
_T
(
"wp:positionH"
));
...
...
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/CustomGeomShape.h
View file @
c18d5a82
...
...
@@ -36,6 +36,13 @@
#include "../../../Attributes.h"
#include "Formula.h"
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
namespace
NSCustomVML
{
using
namespace
NSPresentationEditor
;
...
...
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