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
383486cb
Commit
383486cb
authored
Oct 05, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix blip fill in text box with math in xlsx(pptx)
add xfrm for text in smart art
parent
d1e9176e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
2 deletions
+13
-2
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
+2
-2
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.cpp
+2
-0
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.h
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.h
+3
-0
Common/DocxFormat/Source/DocxFormat/Diagram/DiagramDrawing.h
Common/DocxFormat/Source/DocxFormat/Diagram/DiagramDrawing.h
+3
-0
Common/DocxFormat/Source/DocxFormat/Drawing/DrawingTransform.h
...n/DocxFormat/Source/DocxFormat/Drawing/DrawingTransform.h
+2
-0
Common/DocxFormat/Source/DocxFormat/WritingElement.h
Common/DocxFormat/Source/DocxFormat/WritingElement.h
+1
-0
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
View file @
383486cb
...
...
@@ -133,14 +133,14 @@ namespace PPTX
BinDocxRW
::
CDocxSerializer
oDocxSerializer
;
NSBinPptxRW
::
CDrawingConverter
oDrawingConverter
;
NSBinPptxRW
::
CBinaryFileWriter
*
pOldWriter
=
oDrawingConverter
.
m_pBinaryWriter
;
NSCommon
::
smart_ptr
<
PPTX
::
CCommonRels
>
pOldRels
=
*
oDrawingConverter
.
m_pBinaryWriter
->
m_pCommonRels
;
//
NSCommon::smart_ptr<PPTX::CCommonRels> pOldRels = *oDrawingConverter.m_pBinaryWriter->m_pCommonRels;
oDrawingConverter
.
m_pBinaryWriter
=
pWriter
;
DocWrapper
::
FontProcessor
fp
;
BinDocxRW
::
ParamsWriter
oParamsWriter
(
pWriter
,
&
fp
,
&
oDrawingConverter
,
NULL
);
oDocxSerializer
.
m_pParamsWriter
=
&
oParamsWriter
;
oDocxSerializer
.
getBinaryContentElem
(
eElemType
,
pElem
,
*
pWriter
,
lDataSize
);
*
oDrawingConverter
.
m_pBinaryWriter
->
m_pCommonRels
=
pOldRels
;
//
*oDrawingConverter.m_pBinaryWriter->m_pCommonRels = pOldRels;
oDrawingConverter
.
m_pBinaryWriter
=
pOldWriter
;
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.cpp
View file @
383486cb
...
...
@@ -83,6 +83,8 @@ namespace PPTX
style
=
oNode
;
else
if
(
_T
(
"txBody"
)
==
strName
)
txBody
=
oNode
;
else
if
(
_T
(
"txXfrm"
)
==
strName
)
txXfrm
=
oNode
;
else
if
(
_T
(
"txbx"
)
==
strName
||
_T
(
"textbox"
)
==
strName
)
{
XmlUtils
::
CXmlNode
_node
=
oNode
.
ReadNode
(
_T
(
"w:txbxContent"
));
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.h
View file @
383486cb
...
...
@@ -127,6 +127,8 @@ namespace PPTX
{
pWriter
->
WriteRecord2
(
3
,
txBody
);
}
pWriter
->
WriteRecord2
(
6
,
txXfrm
);
pWriter
->
EndRecord
();
}
...
...
@@ -317,6 +319,7 @@ namespace PPTX
SpPr
spPr
;
nullable
<
ShapeStyle
>
style
;
nullable
<
TxBody
>
txBody
;
nullable
<
Xfrm
>
txXfrm
;
nullable_string
TextBoxShape
;
nullable
<
BodyPr
>
TextBoxBodyPr
;
...
...
Common/DocxFormat/Source/DocxFormat/Diagram/DiagramDrawing.h
View file @
383486cb
...
...
@@ -98,6 +98,8 @@ namespace Diagram
m_oShapeStyle
=
oReader
;
else
if
(
_T
(
"dsp:txBody"
)
==
sName
)
m_oTxBody
=
oReader
;
else
if
(
_T
(
"dsp:txXfrm"
)
==
sName
)
m_oTxXfrm
=
oReader
;
}
}
...
...
@@ -116,6 +118,7 @@ namespace Diagram
nullable
<
OOX
::
Drawing
::
CShapeProperties
>
m_oSpPr
;
nullable
<
OOX
::
Drawing
::
CShapeStyle
>
m_oShapeStyle
;
nullable
<
OOX
::
Drawing
::
CTxBody
>
m_oTxBody
;
nullable
<
OOX
::
Drawing
::
CTransform2D
>
m_oTxXfrm
;
//extLst (Extension List) І20.1.2.2.15
...
...
Common/DocxFormat/Source/DocxFormat/Drawing/DrawingTransform.h
View file @
383486cb
...
...
@@ -195,6 +195,8 @@ namespace OOX
CString
sName
=
oReader
.
GetName
();
if
(
_T
(
"a:xfrm"
)
==
sName
)
m_eType
=
et_a_xfrm
;
else
if
(
_T
(
"dsp:txXfrm"
)
==
sName
)
m_eType
=
et_dsp_txXfrm
;
else
return
;
...
...
Common/DocxFormat/Source/DocxFormat/WritingElement.h
View file @
383486cb
...
...
@@ -331,6 +331,7 @@ namespace OOX
et_dsp_style
,
// <dsp:style>
et_dsp_groupSpPr
,
// <dsp:grpSpPr>
et_dsp_cNvPr
,
et_dsp_txXfrm
,
et_a_p
,
// <a:p>
et_a_pPr
,
// <a:pPr>
...
...
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