LibreOffice Module starmath (master) 1
wordexportbase.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <node.hxx>
13
18{
19public:
20 explicit SmWordExportBase(const SmNode* pIn);
22
23protected:
24 void HandleNode(const SmNode* pNode, int nLevel);
25 void HandleAllSubNodes(const SmNode* pNode, int nLevel);
26 void HandleTable(const SmNode* pNode, int nLevel);
27 virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) = 0;
28 virtual void HandleText(const SmNode* pNode, int nLevel) = 0;
29 void HandleMath(const SmNode* pNode, int nLevel);
30 virtual void HandleFractions(const SmNode* pNode, int nLevel, const char* type) = 0;
31 void HandleUnaryOperation(const SmUnHorNode* pNode, int nLevel);
32 void HandleBinaryOperation(const SmBinHorNode* pNode, int nLevel);
33 virtual void HandleRoot(const SmRootNode* pNode, int nLevel) = 0;
34 virtual void HandleAttribute(const SmAttributeNode* pNode, int nLevel) = 0;
35 virtual void HandleOperator(const SmOperNode* pNode, int nLevel) = 0;
36 void HandleSubSupScript(const SmSubSupNode* pNode, int nLevel);
37 virtual void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) = 0;
38 virtual void HandleMatrix(const SmMatrixNode* pNode, int nLevel) = 0;
39 virtual void HandleBrace(const SmBraceNode* pNode, int nLevel) = 0;
40 virtual void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) = 0;
41 virtual void HandleBlank() = 0;
42 const SmNode* GetTree() const { return m_pTree; }
43
44private:
45 const SmNode* const m_pTree;
46};
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Attribute node.
Definition: node.hxx:1890
Binary horizontal node.
Definition: node.hxx:1368
Node for brace construction.
Definition: node.hxx:1646
Matrix node.
Definition: node.hxx:2000
Definition: node.hxx:125
Operation Node.
Definition: node.hxx:1811
Root node.
Definition: node.hxx:1307
Super- and subscript node.
Definition: node.hxx:1559
Unary horizontal node.
Definition: node.hxx:1272
Node for vertical brace construction.
Definition: node.hxx:1750
Base class implementing writing of formulas to Word.
virtual void HandleFractions(const SmNode *pNode, int nLevel, const char *type)=0
virtual void HandleSubSupScriptInternal(const SmSubSupNode *pNode, int nLevel, int flags)=0
virtual void HandleVerticalStack(const SmNode *pNode, int nLevel)=0
void HandleAllSubNodes(const SmNode *pNode, int nLevel)
SmWordExportBase(const SmNode *pIn)
virtual void HandleBrace(const SmBraceNode *pNode, int nLevel)=0
const SmNode *const m_pTree
void HandleMath(const SmNode *pNode, int nLevel)
void HandleBinaryOperation(const SmBinHorNode *pNode, int nLevel)
virtual void HandleVerticalBrace(const SmVerticalBraceNode *pNode, int nLevel)=0
virtual void HandleRoot(const SmRootNode *pNode, int nLevel)=0
virtual void HandleMatrix(const SmMatrixNode *pNode, int nLevel)=0
virtual void HandleOperator(const SmOperNode *pNode, int nLevel)=0
void HandleUnaryOperation(const SmUnHorNode *pNode, int nLevel)
virtual void HandleBlank()=0
const SmNode * GetTree() const
virtual void HandleText(const SmNode *pNode, int nLevel)=0
virtual void HandleAttribute(const SmAttributeNode *pNode, int nLevel)=0
void HandleSubSupScript(const SmSubSupNode *pNode, int nLevel)
void HandleNode(const SmNode *pNode, int nLevel)
void HandleTable(const SmNode *pNode, int nLevel)
virtual ~SmWordExportBase()