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
7496de06
Commit
7496de06
authored
Feb 21, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fdd443a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
3 deletions
+55
-3
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
+6
-0
ASCOfficePPTXFile/PPTXFormat/Logic/Xfrm.h
ASCOfficePPTXFile/PPTXFormat/Logic/Xfrm.h
+49
-3
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
View file @
7496de06
...
@@ -51,6 +51,12 @@ namespace PPTX
...
@@ -51,6 +51,12 @@ namespace PPTX
WritingElement_AdditionConstructors
(
UniFill
)
WritingElement_AdditionConstructors
(
UniFill
)
PPTX_LOGIC_BASE2
(
UniFill
)
PPTX_LOGIC_BASE2
(
UniFill
)
virtual
OOX
::
EElementType
getType
()
const
{
if
(
Fill
.
IsInit
())
return
Fill
->
getType
();
return
OOX
::
et_Unknown
;
}
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
{
std
::
wstring
name
=
oReader
.
GetName
();
std
::
wstring
name
=
oReader
.
GetName
();
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Xfrm.h
View file @
7496de06
...
@@ -47,7 +47,8 @@ namespace PPTX
...
@@ -47,7 +47,8 @@ namespace PPTX
m_ns
=
_T
(
"a"
);
m_ns
=
_T
(
"a"
);
}
}
virtual
~
Xfrm
()
{}
virtual
~
Xfrm
()
{}
explicit
Xfrm
(
XmlUtils
::
CXmlNode
&
node
)
{
fromXML
(
node
);
}
explicit
Xfrm
(
XmlUtils
::
CXmlNode
&
node
)
{
fromXML
(
node
);
}
explicit
Xfrm
(
XmlUtils
::
CXmlLiteReader
&
oReader
){
fromXML
(
oReader
);
}
const
Xfrm
&
operator
=
(
XmlUtils
::
CXmlNode
&
node
)
const
Xfrm
&
operator
=
(
XmlUtils
::
CXmlNode
&
node
)
{
{
fromXML
(
node
);
fromXML
(
node
);
...
@@ -57,9 +58,54 @@ namespace PPTX
...
@@ -57,9 +58,54 @@ namespace PPTX
virtual
OOX
::
EElementType
getType
()
const
virtual
OOX
::
EElementType
getType
()
const
{
{
return
OOX
::
et_
p
_xfrm
;
return
OOX
::
et_
a
_xfrm
;
}
}
public:
virtual
void
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
ReadAttributes
(
oReader
);
if
(
oReader
.
IsEmptyNode
()
)
return
;
int
nParentDepth
=
oReader
.
GetDepth
();
while
(
oReader
.
ReadNextSiblingNode
(
nParentDepth
)
)
{
std
::
wstring
sName
=
oReader
.
GetName
();
if
(
sName
==
L"a:off"
)
ReadAttributes1
(
oReader
,
offX
,
offY
);
else
if
(
sName
==
L"a:ext"
)
ReadAttributes2
(
oReader
,
extX
,
extY
);
else
if
(
sName
==
L"a:chOff"
)
ReadAttributes1
(
oReader
,
chOffX
,
chOffY
);
else
if
(
sName
==
L"a:chExt"
)
ReadAttributes2
(
oReader
,
chExtX
,
chExtY
);
}
}
void
ReadAttributes
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_Read_if
(
oReader
,
_T
(
"flipH"
),
flipH
)
WritingElement_ReadAttributes_Read_else_if
(
oReader
,
_T
(
"flipV"
),
flipV
)
WritingElement_ReadAttributes_Read_else_if
(
oReader
,
_T
(
"rot"
),
rot
)
WritingElement_ReadAttributes_End
(
oReader
)
}
void
ReadAttributes1
(
XmlUtils
::
CXmlLiteReader
&
oReader
,
nullable_int
&
x
,
nullable_int
&
y
)
{
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_Read_if
(
oReader
,
_T
(
"x"
),
x
)
WritingElement_ReadAttributes_Read_else_if
(
oReader
,
_T
(
"y"
),
y
)
WritingElement_ReadAttributes_End
(
oReader
)
}
void
ReadAttributes2
(
XmlUtils
::
CXmlLiteReader
&
oReader
,
nullable_int
&
cx
,
nullable_int
&
cy
)
{
WritingElement_ReadAttributes_Start
(
oReader
)
WritingElement_ReadAttributes_Read_if
(
oReader
,
_T
(
"cx"
),
cx
)
WritingElement_ReadAttributes_Read_else_if
(
oReader
,
_T
(
"cy"
),
cy
)
WritingElement_ReadAttributes_End
(
oReader
)
}
virtual
void
fromXML
(
XmlUtils
::
CXmlNode
&
node
)
virtual
void
fromXML
(
XmlUtils
::
CXmlNode
&
node
)
{
{
m_ns
=
XmlUtils
::
GetNamespace
(
node
.
GetName
());
m_ns
=
XmlUtils
::
GetNamespace
(
node
.
GetName
());
...
...
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