Bump version to 21.06.18.1
[LibreOffice.git] / starmath / source / wordexportbase.hxx
blobaf66167a17fb5c85aeeda6fb7da5e1b2216e088d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_STARMATH_SOURCE_WORDEXPORTBASE_HXX
11 #define INCLUDED_STARMATH_SOURCE_WORDEXPORTBASE_HXX
13 class SmAttributNode;
14 class SmBinHorNode;
15 class SmBraceNode;
16 class SmMatrixNode;
17 class SmNode;
18 class SmOperNode;
19 class SmRootNode;
20 class SmSubSupNode;
21 class SmUnHorNode;
22 class SmVerticalBraceNode;
24 /**
25 Base class implementing writing of formulas to Word.
27 class SmWordExportBase
29 public:
30 explicit SmWordExportBase(const SmNode* pIn);
31 virtual ~SmWordExportBase();
33 protected:
34 void HandleNode(const SmNode* pNode, int nLevel);
35 void HandleAllSubNodes(const SmNode* pNode, int nLevel);
36 void HandleTable(const SmNode* pNode, int nLevel);
37 virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) = 0;
38 virtual void HandleText(const SmNode* pNode, int nLevel) = 0;
39 void HandleMath(const SmNode* pNode, int nLevel);
40 virtual void HandleFractions(const SmNode* pNode, int nLevel, const char* type) = 0;
41 void HandleUnaryOperation(const SmUnHorNode* pNode, int nLevel);
42 void HandleBinaryOperation(const SmBinHorNode* pNode, int nLevel);
43 virtual void HandleRoot(const SmRootNode* pNode, int nLevel) = 0;
44 virtual void HandleAttribute(const SmAttributNode* pNode, int nLevel) = 0;
45 virtual void HandleOperator(const SmOperNode* pNode, int nLevel) = 0;
46 void HandleSubSupScript(const SmSubSupNode* pNode, int nLevel);
47 virtual void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) = 0;
48 virtual void HandleMatrix(const SmMatrixNode* pNode, int nLevel) = 0;
49 virtual void HandleBrace(const SmBraceNode* pNode, int nLevel) = 0;
50 virtual void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) = 0;
51 virtual void HandleBlank() = 0;
52 const SmNode* GetTree() const { return m_pTree; }
54 private:
55 const SmNode* const m_pTree;
58 #endif
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */