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
6cd5fbca
Commit
6cd5fbca
authored
Feb 21, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7c964b3f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
54 deletions
+55
-54
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
+1
-1
Common/DocxFormat/Source/XML/XmlSimple.h
Common/DocxFormat/Source/XML/XmlSimple.h
+11
-10
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
+43
-43
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/UniFill.h
View file @
6cd5fbca
...
...
@@ -197,7 +197,7 @@ namespace PPTX
virtual
std
::
wstring
toXML
()
const
{
if
(
Fill
.
IsInit
())
Fill
->
toXML
();
return
Fill
->
toXML
();
return
_T
(
""
);
}
...
...
Common/DocxFormat/Source/XML/XmlSimple.h
View file @
6cd5fbca
...
...
@@ -251,31 +251,32 @@ namespace XmlUtils
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
)
{
return
_T
(
"<"
)
+
strName
+
_T
(
" "
)
+
oAttr
.
m_strValue
+
_T
(
" />"
)
;
return
L"<"
+
strName
+
(
oAttr
.
m_strValue
.
empty
()
?
L""
:
L" "
+
oAttr
.
m_strValue
)
+
L"/>"
;
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CNodeValue
&
oNode
)
{
if
(
_T
(
""
)
==
oNode
.
m_strValue
)
return
_T
(
"<"
)
+
strName
+
_T
(
"/>"
)
;
if
(
oNode
.
m_strValue
.
empty
()
)
return
L"<"
+
strName
+
L"/>"
;
return
_T
(
"<"
)
+
strName
+
_T
(
">"
)
+
oNode
.
m_strValue
+
_T
(
"</"
)
+
strName
+
_T
(
">"
)
;
return
L"<"
+
strName
+
L">"
+
oNode
.
m_strValue
+
L"</"
+
strName
+
L">"
;
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
,
const
CNodeValue
&
oNode
)
{
if
(
_T
(
""
)
==
oNode
.
m_strValue
)
if
(
oNode
.
m_strValue
.
empty
()
)
return
CreateNode
(
strName
,
oAttr
);
return
_T
(
"<"
)
+
strName
+
_T
(
" "
)
+
oAttr
.
m_strValue
+
_T
(
">"
)
+
oNode
.
m_strValue
+
_T
(
"</"
)
+
strName
+
_T
(
">"
)
;
return
L"<"
+
strName
+
(
oAttr
.
m_strValue
.
empty
()
?
L""
:
L" "
+
oAttr
.
m_strValue
)
+
L">"
+
oNode
.
m_strValue
+
L"</"
+
strName
+
L">"
;
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
,
const
std
::
wstring
&
strXml
)
{
if
(
_T
(
""
)
!=
strXml
)
return
_T
(
"<"
)
+
strName
+
_T
(
" "
)
+
oAttr
.
m_strValue
+
_T
(
">"
)
+
strXml
+
_T
(
"</"
)
+
strName
+
_T
(
">"
);
return
_T
(
"<"
)
+
strName
+
_T
(
" "
)
+
oAttr
.
m_strValue
+
_T
(
"/>"
);
if
(
!
strXml
.
empty
())
return
L"<"
+
strName
+
(
oAttr
.
m_strValue
.
empty
()
?
L""
:
L" "
+
oAttr
.
m_strValue
)
+
L">"
+
strXml
+
L"</"
+
strName
+
L">"
;
return
L"<"
+
strName
+
(
oAttr
.
m_strValue
.
empty
()
?
L""
:
L" "
+
oAttr
.
m_strValue
)
+
L"/>"
;
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
std
::
wstring
&
strXml
)
{
return
_T
(
"<"
)
+
strName
+
_T
(
">"
)
+
strXml
+
_T
(
"</"
)
+
strName
+
_T
(
">"
)
;
return
L"<"
+
strName
+
L">"
+
strXml
+
L"</"
+
strName
+
L">"
;
}
AVSINLINE
void
SaveToFile
(
const
std
::
wstring
&
strFile
,
const
std
::
wstring
&
strXml
)
...
...
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
View file @
6cd5fbca
This diff is collapsed.
Click to expand it.
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