LibreOffice Module starmath (master) 1
|
Class implementing writing of formulas to OOXML. More...
#include <ooxmlexport.hxx>
Public Member Functions | |
SmOoxmlExport (const SmNode *pIn, oox::core::OoxmlVersion version, oox::drawingml::DocumentType documentType) | |
void | ConvertFromStarMath (const ::sax_fastparser::FSHelperPtr &m_pSerializer, const sal_Int8) |
Public Member Functions inherited from SmWordExportBase | |
SmWordExportBase (const SmNode *pIn) | |
virtual | ~SmWordExportBase () |
Private Member Functions | |
void | HandleVerticalStack (const SmNode *pNode, int nLevel) override |
void | HandleText (const SmNode *pNode, int nLevel) override |
void | HandleFractions (const SmNode *pNode, int nLevel, const char *type) override |
void | HandleRoot (const SmRootNode *pNode, int nLevel) override |
void | HandleAttribute (const SmAttributeNode *pNode, int nLevel) override |
void | HandleOperator (const SmOperNode *pNode, int nLevel) override |
void | HandleSubSupScriptInternal (const SmSubSupNode *pNode, int nLevel, int flags) override |
void | HandleMatrix (const SmMatrixNode *pNode, int nLevel) override |
void | HandleBrace (const SmBraceNode *pNode, int nLevel) override |
void | HandleVerticalBrace (const SmVerticalBraceNode *pNode, int nLevel) override |
void | HandleBlank () override |
Private Attributes | |
::sax_fastparser::FSHelperPtr | m_pSerializer |
oox::core::OoxmlVersion | version |
oox::drawingml::DocumentType const | m_DocumentType |
needed to determine markup for nested run properties More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SmWordExportBase | |
void | HandleNode (const SmNode *pNode, int nLevel) |
void | HandleAllSubNodes (const SmNode *pNode, int nLevel) |
void | HandleTable (const SmNode *pNode, int nLevel) |
virtual void | HandleVerticalStack (const SmNode *pNode, int nLevel)=0 |
virtual void | HandleText (const SmNode *pNode, int nLevel)=0 |
void | HandleMath (const SmNode *pNode, int nLevel) |
virtual void | HandleFractions (const SmNode *pNode, int nLevel, const char *type)=0 |
void | HandleUnaryOperation (const SmUnHorNode *pNode, int nLevel) |
void | HandleBinaryOperation (const SmBinHorNode *pNode, int nLevel) |
virtual void | HandleRoot (const SmRootNode *pNode, int nLevel)=0 |
virtual void | HandleAttribute (const SmAttributeNode *pNode, int nLevel)=0 |
virtual void | HandleOperator (const SmOperNode *pNode, int nLevel)=0 |
void | HandleSubSupScript (const SmSubSupNode *pNode, int nLevel) |
virtual void | HandleSubSupScriptInternal (const SmSubSupNode *pNode, int nLevel, int flags)=0 |
virtual void | HandleMatrix (const SmMatrixNode *pNode, int nLevel)=0 |
virtual void | HandleBrace (const SmBraceNode *pNode, int nLevel)=0 |
virtual void | HandleVerticalBrace (const SmVerticalBraceNode *pNode, int nLevel)=0 |
virtual void | HandleBlank ()=0 |
const SmNode * | GetTree () const |
Class implementing writing of formulas to OOXML.
Definition at line 21 of file ooxmlexport.hxx.
SmOoxmlExport::SmOoxmlExport | ( | const SmNode * | pIn, |
oox::core::OoxmlVersion | version, | ||
oox::drawingml::DocumentType | documentType | ||
) |
Definition at line 20 of file ooxmlexport.cxx.
References v.
void SmOoxmlExport::ConvertFromStarMath | ( | const ::sax_fastparser::FSHelperPtr & | m_pSerializer, |
const sal_Int8 | nAlign | ||
) |
Definition at line 28 of file ooxmlexport.cxx.
References FSNS(), SmWordExportBase::GetTree(), SmWordExportBase::HandleNode(), and m_pSerializer.
Referenced by SmDocShell::writeFormulaOoxml().
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 193 of file ooxmlexport.cxx.
References SmAttributeNode::Attribute(), SmAttributeNode::Body(), SmToken::cMathChar, SmToken::eType, FSNS(), SmNode::GetToken(), SmWordExportBase::HandleAllSubNodes(), SmWordExportBase::HandleNode(), m_pSerializer, OUStringToOString(), TACUTE, TBAR, TBREVE, TCHECK, TCIRCLE, TDDDOT, TDDOT, TDOT, TGRAVE, THAT, TOVERLINE, TOVERSTRIKE, TTILDE, TUNDERLINE, TVEC, TWIDEHARPOON, TWIDEHAT, TWIDETILDE, TWIDEVEC, and value.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 587 of file ooxmlexport.cxx.
References FSNS(), and m_pSerializer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 495 of file ooxmlexport.cxx.
References SmBraceNode::Body(), Bracebody, SmBraceNode::ClosingBrace(), SmToken::eType, FSNS(), SmStructureNode::GetNumSubNodes(), SmStructureNode::GetSubNode(), SmNode::GetToken(), SmNode::GetType(), SmWordExportBase::HandleNode(), i, m_pSerializer, Math, MathIdent, mathSymbolToString(), SmBraceNode::OpeningBrace(), and TNONE.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 174 of file ooxmlexport.cxx.
References FSNS(), SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmWordExportBase::HandleNode(), m_pSerializer, type, and XML_type.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 477 of file ooxmlexport.cxx.
References col, SmMatrixNode::GetNumCols(), SmMatrixNode::GetNumRows(), SmStructureNode::GetSubNode(), SmWordExportBase::HandleNode(), and m_pSerializer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 288 of file ooxmlexport.cxx.
References CSUB, CSUP, SmToken::eType, FSNS(), SmSubSupNode::GetBody(), SmStructureNode::GetSubNode(), SmSubSupNode::GetSubSup(), SmOperNode::GetSymbol(), SmNode::GetToken(), SmNode::GetType(), SmWordExportBase::HandleAllSubNodes(), SmWordExportBase::HandleNode(), m_pSerializer, mathSymbolToString(), SAL_INFO, SAL_WARN, SubSup, TCOPROD, TIIINT, TIINT, TINT, TINTD, TLIM, TLINT, TLLINT, TLLLINT, TPROD, and TSUM.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 257 of file ooxmlexport.cxx.
References argument, SmRootNode::Argument(), SmRootNode::Body(), FSNS(), SmWordExportBase::HandleNode(), and m_pSerializer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 367 of file ooxmlexport.cxx.
References CSUB, CSUP, SmSubSupNode::GetBody(), SmSubSupNode::GetSubSup(), SmWordExportBase::HandleNode(), HandleSubSupScriptInternal(), LSUB, LSUP, m_pSerializer, RSUB, RSUP, and SAL_WARN.
Referenced by HandleSubSupScriptInternal().
Implements SmWordExportBase.
Definition at line 97 of file ooxmlexport.cxx.
References CHAR, SmTextNode::ConvertSymbolToUnicode(), ECMA_376_1ST_EDITION, END, SmToken::eType, FSNS(), SmNode::GetFont(), vcl::Font::GetItalic(), getLength(), SmTextNode::GetText(), SmNode::GetToken(), vcl::Font::GetWeight(), i, ITALIC_NORMAL, m_DocumentType, m_pSerializer, pS, SAL_INFO, TTEXT, version, and WEIGHT_BOLD.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 548 of file ooxmlexport.cxx.
References SmVerticalBraceNode::Body(), SmVerticalBraceNode::Brace(), SmToken::eType, FSNS(), SmNode::GetToken(), SmWordExportBase::HandleAllSubNodes(), SmWordExportBase::HandleNode(), m_pSerializer, mathSymbolToString(), SAL_INFO, SAL_WARN, SmVerticalBraceNode::Script(), top, TOVERBRACE, and TUNDERBRACE.
Implements SmWordExportBase.
Definition at line 82 of file ooxmlexport.cxx.
References SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmWordExportBase::HandleNode(), i, m_pSerializer, and size.
|
private |
needed to determine markup for nested run properties
Definition at line 43 of file ooxmlexport.hxx.
Referenced by HandleText().
|
private |
Definition at line 40 of file ooxmlexport.hxx.
Referenced by ConvertFromStarMath(), HandleAttribute(), HandleBlank(), HandleBrace(), HandleFractions(), HandleMatrix(), HandleOperator(), HandleRoot(), HandleSubSupScriptInternal(), HandleText(), HandleVerticalBrace(), and HandleVerticalStack().
|
private |
Definition at line 41 of file ooxmlexport.hxx.
Referenced by HandleText().