LibreOffice Module starmath (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SmWordExportBase Class Referenceabstract

Base class implementing writing of formulas to Word. More...

#include <wordexportbase.hxx>

Inheritance diagram for SmWordExportBase:
[legend]
Collaboration diagram for SmWordExportBase:
[legend]

Public Member Functions

 SmWordExportBase (const SmNode *pIn)
 
virtual ~SmWordExportBase ()
 

Protected Member Functions

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 SmNodeGetTree () const
 

Private Attributes

const SmNode *const m_pTree
 

Detailed Description

Base class implementing writing of formulas to Word.

Definition at line 17 of file wordexportbase.hxx.

Constructor & Destructor Documentation

◆ SmWordExportBase()

SmWordExportBase::SmWordExportBase ( const SmNode pIn)
explicit

Definition at line 14 of file wordexportbase.cxx.

◆ ~SmWordExportBase()

SmWordExportBase::~SmWordExportBase ( )
virtualdefault

Member Function Documentation

◆ GetTree()

const SmNode * SmWordExportBase::GetTree ( ) const
inlineprotected

Definition at line 42 of file wordexportbase.hxx.

References m_pTree.

Referenced by SmOoxmlExport::ConvertFromStarMath(), and SmRtfExport::ConvertFromStarMath().

◆ HandleAllSubNodes()

void SmWordExportBase::HandleAllSubNodes ( const SmNode pNode,
int  nLevel 
)
protected

◆ HandleAttribute()

virtual void SmWordExportBase::HandleAttribute ( const SmAttributeNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleBinaryOperation()

void SmWordExportBase::HandleBinaryOperation ( const SmBinHorNode pNode,
int  nLevel 
)
protected

◆ HandleBlank()

virtual void SmWordExportBase::HandleBlank ( )
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleBrace()

virtual void SmWordExportBase::HandleBrace ( const SmBraceNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleFractions()

virtual void SmWordExportBase::HandleFractions ( const SmNode pNode,
int  nLevel,
const char *  type 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleBinaryOperation(), and HandleNode().

◆ HandleMath()

void SmWordExportBase::HandleMath ( const SmNode pNode,
int  nLevel 
)
protected

Definition at line 157 of file wordexportbase.cxx.

References SmToken::eType, SmNode::GetToken(), HandleText(), SAL_INFO, TACUTE, and TDIVIDEBY.

Referenced by HandleNode().

◆ HandleMatrix()

virtual void SmWordExportBase::HandleMatrix ( const SmMatrixNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleNode()

void SmWordExportBase::HandleNode ( const SmNode pNode,
int  nLevel 
)
protected

◆ HandleOperator()

virtual void SmWordExportBase::HandleOperator ( const SmOperNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleRoot()

virtual void SmWordExportBase::HandleRoot ( const SmRootNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleSubSupScript()

void SmWordExportBase::HandleSubSupScript ( const SmSubSupNode pNode,
int  nLevel 
)
protected

Definition at line 172 of file wordexportbase.cxx.

References CSUB, CSUP, SmSubSupNode::GetSubSup(), HandleSubSupScriptInternal(), LSUB, LSUP, RSUB, and RSUP.

Referenced by HandleNode().

◆ HandleSubSupScriptInternal()

virtual void SmWordExportBase::HandleSubSupScriptInternal ( const SmSubSupNode pNode,
int  nLevel,
int  flags 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleSubSupScript().

◆ HandleTable()

void SmWordExportBase::HandleTable ( const SmNode pNode,
int  nLevel 
)
protected

Definition at line 106 of file wordexportbase.cxx.

References SmNode::GetNumSubNodes(), HandleAllSubNodes(), and HandleVerticalStack().

Referenced by HandleNode().

◆ HandleText()

virtual void SmWordExportBase::HandleText ( const SmNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleMath(), and HandleNode().

◆ HandleUnaryOperation()

void SmWordExportBase::HandleUnaryOperation ( const SmUnHorNode pNode,
int  nLevel 
)
protected

Definition at line 135 of file wordexportbase.cxx.

References SmToken::eType, SmNode::GetToken(), HandleAllSubNodes(), and SAL_INFO.

Referenced by HandleNode().

◆ HandleVerticalBrace()

virtual void SmWordExportBase::HandleVerticalBrace ( const SmVerticalBraceNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleNode().

◆ HandleVerticalStack()

virtual void SmWordExportBase::HandleVerticalStack ( const SmNode pNode,
int  nLevel 
)
protectedpure virtual

Implemented in SmOoxmlExport, and SmRtfExport.

Referenced by HandleTable().

Member Data Documentation

◆ m_pTree

const SmNode* const SmWordExportBase::m_pTree
private

Definition at line 45 of file wordexportbase.hxx.

Referenced by GetTree().


The documentation for this class was generated from the following files: