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
80d4e605
Commit
80d4e605
authored
Mar 03, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
2dc5c291
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
ASCOfficePPTXFile/PPTXFormat/Logic/TxBody.h
ASCOfficePPTXFile/PPTXFormat/Logic/TxBody.h
+9
-23
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/TxBody.h
View file @
80d4e605
...
@@ -129,9 +129,6 @@ namespace PPTX
...
@@ -129,9 +129,6 @@ namespace PPTX
}
}
virtual
std
::
wstring
toXML
()
const
virtual
std
::
wstring
toXML
()
const
{
{
if
(
!
bodyPr
.
IsInit
())
bodyPr
=
new
Logic
::
BodyPr
();
XmlUtils
::
CNodeValue
oValue
;
XmlUtils
::
CNodeValue
oValue
;
oValue
.
WriteNullable
(
bodyPr
);
oValue
.
WriteNullable
(
bodyPr
);
...
@@ -143,9 +140,6 @@ namespace PPTX
...
@@ -143,9 +140,6 @@ namespace PPTX
virtual
void
toXmlWriter
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
virtual
void
toXmlWriter
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
{
{
if
(
!
bodyPr
.
IsInit
())
bodyPr
=
new
Logic
::
BodyPr
();
pWriter
->
StartNode
(
m_name
);
pWriter
->
StartNode
(
m_name
);
pWriter
->
EndAttributes
();
pWriter
->
EndAttributes
();
...
@@ -167,9 +161,6 @@ namespace PPTX
...
@@ -167,9 +161,6 @@ namespace PPTX
void
toXmlWriterExcel
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
void
toXmlWriterExcel
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
{
{
if
(
!
bodyPr
.
IsInit
())
bodyPr
=
new
Logic
::
BodyPr
();
if
(
bodyPr
.
IsInit
())
if
(
bodyPr
.
IsInit
())
{
{
bodyPr
->
m_namespace
=
_T
(
"a"
);
bodyPr
->
m_namespace
=
_T
(
"a"
);
...
@@ -199,11 +190,11 @@ namespace PPTX
...
@@ -199,11 +190,11 @@ namespace PPTX
return
result
;
return
result
;
}
}
void
Merge
(
nullable
<
TxBody
>&
txBody
)
const
void
Merge
(
nullable
<
TxBody
>&
txBody
)
{
{
if
(
!
txBody
.
is_init
())
return
;
if
(
!
bodyPr
.
IsInit
())
bodyPr
=
new
Logic
::
BodyPr
();
if
(
bodyPr
.
IsInit
())
bodyPr
->
Merge
(
txBody
->
bodyPr
);
bodyPr
->
Merge
(
txBody
->
bodyPr
);
if
(
lstStyle
.
IsInit
())
if
(
lstStyle
.
IsInit
())
...
@@ -257,6 +248,9 @@ namespace PPTX
...
@@ -257,6 +248,9 @@ namespace PPTX
}
}
pReader
->
Seek
(
_end_rec
);
pReader
->
Seek
(
_end_rec
);
if
(
!
bodyPr
.
IsInit
())
bodyPr
=
new
Logic
::
BodyPr
();
}
}
nullable
<
BodyPr
>
bodyPr
;
nullable
<
BodyPr
>
bodyPr
;
...
@@ -279,14 +273,6 @@ namespace PPTX
...
@@ -279,14 +273,6 @@ namespace PPTX
}
}
public:
public:
bool
IsOneLineParagraphs
()
const
{
if
(
!
bodyPr
.
is_init
())
return
false
;
if
(
!
bodyPr
->
wrap
.
is_init
())
return
false
;
return
(
bodyPr
->
wrap
->
get
()
==
_T
(
"none"
));
}
std
::
wstring
GetDocxTxBoxContent
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
,
const
nullable
<
PPTX
::
Logic
::
ShapeStyle
>&
shape_style
);
std
::
wstring
GetDocxTxBoxContent
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
,
const
nullable
<
PPTX
::
Logic
::
ShapeStyle
>&
shape_style
);
};
};
...
...
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