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
8aefacd4
Commit
8aefacd4
authored
Feb 22, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new chart witout office_drawing(faster...)
parent
6cd5fbca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
2 deletions
+29
-2
ASCOfficePPTXFile/PPTXFormat/Logic/BodyPr.h
ASCOfficePPTXFile/PPTXFormat/Logic/BodyPr.h
+4
-0
ASCOfficePPTXFile/PPTXFormat/Logic/Paragraph.h
ASCOfficePPTXFile/PPTXFormat/Logic/Paragraph.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/TextListStyle.h
ASCOfficePPTXFile/PPTXFormat/Logic/TextListStyle.h
+3
-0
Common/DocxFormat/Source/XML/XmlSimple.h
Common/DocxFormat/Source/XML/XmlSimple.h
+10
-0
X2tConverter/test/win32Test/X2tTest.vcproj
X2tConverter/test/win32Test/X2tTest.vcproj
+8
-0
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
+3
-1
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/BodyPr.h
View file @
8aefacd4
...
...
@@ -147,6 +147,8 @@ namespace PPTX
virtual
std
::
wstring
toXML
()
const
{
if
(
m_namespace
.
empty
())
m_namespace
=
L"a"
;
XmlUtils
::
CAttribute
oAttr
;
oAttr
.
Write
(
_T
(
"rot"
),
rot
);
oAttr
.
Write
(
_T
(
"spcFirstLastPara"
),
spcFirstLastPara
);
...
...
@@ -186,6 +188,8 @@ namespace PPTX
virtual
void
toXmlWriter
(
NSBinPptxRW
::
CXmlWriter
*
pWriter
)
const
{
if
(
m_namespace
.
empty
())
m_namespace
=
L"a"
;
pWriter
->
StartNode
(
m_namespace
+
_T
(
":bodyPr"
));
pWriter
->
StartAttributes
();
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Paragraph.h
View file @
8aefacd4
...
...
@@ -127,7 +127,7 @@ namespace PPTX
int
nParentDepth
=
oReader
.
GetDepth
();
while
(
oReader
.
ReadNextSiblingNode
(
nParentDepth
)
)
{
std
::
wstring
strName
=
oReader
.
GetName
(
);
std
::
wstring
strName
=
XmlUtils
::
GetNameNoNS
(
oReader
.
GetName
()
);
WritingElement
*
pItem
=
NULL
;
if
(
_T
(
"pPr"
)
==
strName
)
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/TextListStyle.h
View file @
8aefacd4
...
...
@@ -104,6 +104,9 @@ namespace PPTX
}
virtual
std
::
wstring
toXML
()
const
{
if
(
m_name
.
empty
())
m_name
=
L"a:lstStyle"
;
XmlUtils
::
CNodeValue
oValue
;
oValue
.
WriteNullable
(
/*defPPr*/
levels
[
9
]);
oValue
.
WriteNullable
(
/*lvl1pPr*/
levels
[
0
]);
...
...
Common/DocxFormat/Source/XML/XmlSimple.h
View file @
8aefacd4
...
...
@@ -251,10 +251,14 @@ namespace XmlUtils
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
)
{
if
(
strName
.
empty
())
return
L""
;
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
(
strName
.
empty
())
return
L""
;
if
(
oNode
.
m_strValue
.
empty
())
return
L"<"
+
strName
+
L"/>"
;
...
...
@@ -262,6 +266,8 @@ namespace XmlUtils
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
,
const
CNodeValue
&
oNode
)
{
if
(
strName
.
empty
())
return
L""
;
if
(
oNode
.
m_strValue
.
empty
())
return
CreateNode
(
strName
,
oAttr
);
...
...
@@ -269,6 +275,8 @@ namespace XmlUtils
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
CAttribute
&
oAttr
,
const
std
::
wstring
&
strXml
)
{
if
(
strName
.
empty
())
return
L""
;
if
(
!
strXml
.
empty
())
return
L"<"
+
strName
+
(
oAttr
.
m_strValue
.
empty
()
?
L""
:
L" "
+
oAttr
.
m_strValue
)
+
L">"
+
strXml
+
L"</"
+
strName
+
L">"
;
...
...
@@ -276,6 +284,8 @@ namespace XmlUtils
}
AVSINLINE
std
::
wstring
CreateNode
(
const
std
::
wstring
&
strName
,
const
std
::
wstring
&
strXml
)
{
if
(
strName
.
empty
())
return
L""
;
return
L"<"
+
strName
+
L">"
+
strXml
+
L"</"
+
strName
+
L">"
;
}
...
...
X2tConverter/test/win32Test/X2tTest.vcproj
View file @
8aefacd4
...
...
@@ -666,6 +666,14 @@
<File
RelativePath=
"..\..\..\ASCOfficeDocxFile2\BinWriter\BinWriters.cpp"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
"/bigobj"
/>
</FileConfiguration>
</File>
<File
RelativePath=
"..\..\..\ASCOfficeDocxFile2\BinWriter\BinWriters.h"
...
...
XlsxSerializerCom/Reader/ChartFromToBinary.cpp
View file @
8aefacd4
...
...
@@ -1874,8 +1874,10 @@ namespace BinXlsxRW
CT_Tx
*
poVal
=
static_cast
<
CT_Tx
*>
(
poResult
);
if
(
c_oserct_txRICH
==
type
)
{
BYTE
typeRec1
=
m_oBufferedStream
.
GetUChar
();
poVal
->
m_oRich
=
new
PPTX
::
Logic
::
TxBody
;
res
=
Read1
(
length
,
&
BinaryChartReader
::
ReadCT_TxPr
,
this
,
poVal
->
m_oRich
.
GetPointer
()
);
poVal
->
m_oRich
->
fromPPTY
(
&
m_oBufferedStream
);
poVal
->
m_oRich
->
m_name
=
L"c:rich"
;
}
...
...
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