LibreOffice Module starmath (master) 1
|
Class implementing writing of formulas to RTF. More...
#include <rtfexport.hxx>
Public Member Functions | |
SmRtfExport (const SmNode *pIn) | |
void | ConvertFromStarMath (OStringBuffer &rBuffer, rtl_TextEncoding nEncoding) |
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 | |
OStringBuffer * | m_pBuffer |
rtl_TextEncoding | m_nEncoding |
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 RTF.
Definition at line 19 of file rtfexport.hxx.
|
explicit |
Definition at line 15 of file rtfexport.cxx.
References m_pBuffer.
void SmRtfExport::ConvertFromStarMath | ( | OStringBuffer & | rBuffer, |
rtl_TextEncoding | nEncoding | ||
) |
Definition at line 22 of file rtfexport.cxx.
References SmWordExportBase::GetTree(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MOMATH, m_nEncoding, m_pBuffer, and OOO_STRING_SVTOOLS_RTF_IGNORE.
Referenced by SmDocShell::writeFormulaRtf().
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 89 of file rtfexport.cxx.
References SmAttributeNode::Attribute(), SmAttributeNode::Body(), SmToken::cMathChar, SmToken::eType, SmNode::GetToken(), SmWordExportBase::HandleAllSubNodes(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MACC, LO_STRING_SVTOOLS_RTF_MACCPR, LO_STRING_SVTOOLS_RTF_MBAR, LO_STRING_SVTOOLS_RTF_MBARPR, LO_STRING_SVTOOLS_RTF_MBORDERBOX, LO_STRING_SVTOOLS_RTF_MBORDERBOXPR, LO_STRING_SVTOOLS_RTF_MCHR, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MHIDEBOT, LO_STRING_SVTOOLS_RTF_MHIDELEFT, LO_STRING_SVTOOLS_RTF_MHIDERIGHT, LO_STRING_SVTOOLS_RTF_MHIDETOP, LO_STRING_SVTOOLS_RTF_MPOS, LO_STRING_SVTOOLS_RTF_MSTRIKEH, m_nEncoding, m_pBuffer, msfilter::rtfutil::OutString(), TACUTE, TBAR, TBREVE, TCHECK, TCIRCLE, TDDDOT, TDDOT, TDOT, TGRAVE, THAT, TOVERLINE, TOVERSTRIKE, TTILDE, TUNDERLINE, TVEC, TWIDEHARPOON, TWIDEHAT, TWIDETILDE, and TWIDEVEC.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 495 of file rtfexport.cxx.
References LO_STRING_SVTOOLS_RTF_MR, and m_pBuffer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 404 of file rtfexport.cxx.
References SmBraceNode::Body(), Bracebody, SmBraceNode::ClosingBrace(), SmNode::GetSubNode(), SmNode::GetType(), SmWordExportBase::HandleNode(), i, LO_STRING_SVTOOLS_RTF_MBEGCHR, LO_STRING_SVTOOLS_RTF_MD, LO_STRING_SVTOOLS_RTF_MDPR, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MENDCHR, LO_STRING_SVTOOLS_RTF_MSEPCHR, m_nEncoding, m_pBuffer, Math, MathIdent, mathSymbolToString(), and SmBraceNode::OpeningBrace().
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 68 of file rtfexport.cxx.
References SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MDEN, LO_STRING_SVTOOLS_RTF_MF, LO_STRING_SVTOOLS_RTF_MFPR, LO_STRING_SVTOOLS_RTF_MNUM, LO_STRING_SVTOOLS_RTF_MTYPE, m_pBuffer, and type.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 386 of file rtfexport.cxx.
References col, SmMatrixNode::GetNumCols(), SmMatrixNode::GetNumRows(), SmStructureNode::GetSubNode(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MM, LO_STRING_SVTOOLS_RTF_MMR, and m_pBuffer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 193 of file rtfexport.cxx.
References CSUB, CSUP, SmToken::eType, SmSubSupNode::GetBody(), SmStructureNode::GetSubNode(), SmSubSupNode::GetSubSup(), SmOperNode::GetSymbol(), SmNode::GetToken(), SmNode::GetType(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MCHR, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MFNAME, LO_STRING_SVTOOLS_RTF_MFUNC, LO_STRING_SVTOOLS_RTF_MLIM, LO_STRING_SVTOOLS_RTF_MLIMLOW, LO_STRING_SVTOOLS_RTF_MNARY, LO_STRING_SVTOOLS_RTF_MNARYPR, LO_STRING_SVTOOLS_RTF_MSUB, LO_STRING_SVTOOLS_RTF_MSUBHIDE, LO_STRING_SVTOOLS_RTF_MSUP, LO_STRING_SVTOOLS_RTF_MSUPHIDE, m_nEncoding, m_pBuffer, mathSymbolToString(), SAL_INFO, SubSup, TCOPROD, TIIINT, TIINT, TINT, TINTD, TLIM, TLINT, TLLINT, TLLLINT, TPROD, and TSUM.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 156 of file rtfexport.cxx.
References argument, SmRootNode::Argument(), SmRootNode::Body(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MDEG, LO_STRING_SVTOOLS_RTF_MDEGHIDE, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MRAD, LO_STRING_SVTOOLS_RTF_MRADPR, and m_pBuffer.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 274 of file rtfexport.cxx.
References CSUB, CSUP, SmSubSupNode::GetBody(), SmSubSupNode::GetSubSup(), SmWordExportBase::HandleNode(), HandleSubSupScriptInternal(), LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MLIM, LO_STRING_SVTOOLS_RTF_MLIMLOW, LO_STRING_SVTOOLS_RTF_MLIMUPP, LO_STRING_SVTOOLS_RTF_MSPRE, LO_STRING_SVTOOLS_RTF_MSSUB, LO_STRING_SVTOOLS_RTF_MSSUBSUP, LO_STRING_SVTOOLS_RTF_MSSUP, LO_STRING_SVTOOLS_RTF_MSUB, LO_STRING_SVTOOLS_RTF_MSUP, LSUB, LSUP, m_pBuffer, RSUB, RSUP, and SAL_INFO.
Referenced by HandleSubSupScriptInternal().
Implements SmWordExportBase.
Definition at line 49 of file rtfexport.cxx.
References SmTextNode::ConvertSymbolToUnicode(), SmToken::eType, getLength(), SmNode::GetToken(), i, LO_STRING_SVTOOLS_RTF_MNOR, LO_STRING_SVTOOLS_RTF_MR, m_nEncoding, m_pBuffer, msfilter::rtfutil::OutString(), SAL_INFO, and TTEXT.
|
overrideprivatevirtual |
Implements SmWordExportBase.
Definition at line 451 of file rtfexport.cxx.
References SmVerticalBraceNode::Body(), SmVerticalBraceNode::Brace(), SmToken::eType, SmNode::GetToken(), SmWordExportBase::HandleNode(), LO_STRING_SVTOOLS_RTF_MCHR, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MGROUPCHR, LO_STRING_SVTOOLS_RTF_MGROUPCHRPR, LO_STRING_SVTOOLS_RTF_MLIM, LO_STRING_SVTOOLS_RTF_MLIMLOW, LO_STRING_SVTOOLS_RTF_MLIMUPP, LO_STRING_SVTOOLS_RTF_MPOS, LO_STRING_SVTOOLS_RTF_MVERTJC, m_nEncoding, m_pBuffer, mathSymbolToString(), SAL_INFO, SmVerticalBraceNode::Script(), top, TOVERBRACE, and TUNDERBRACE.
Implements SmWordExportBase.
Definition at line 36 of file rtfexport.cxx.
References SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmWordExportBase::HandleNode(), i, LO_STRING_SVTOOLS_RTF_ME, LO_STRING_SVTOOLS_RTF_MEQARR, m_pBuffer, and size.
|
private |
Definition at line 39 of file rtfexport.hxx.
Referenced by ConvertFromStarMath(), HandleAttribute(), HandleBrace(), HandleOperator(), HandleText(), and HandleVerticalBrace().
|
private |
Definition at line 38 of file rtfexport.hxx.
Referenced by ConvertFromStarMath(), HandleAttribute(), HandleBlank(), HandleBrace(), HandleFractions(), HandleMatrix(), HandleOperator(), HandleRoot(), HandleSubSupScriptInternal(), HandleText(), HandleVerticalBrace(), and HandleVerticalStack().