1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_STARMATH_SOURCE_WORDEXPORTBASE_HXX
11 #define INCLUDED_STARMATH_SOURCE_WORDEXPORTBASE_HXX
22 class SmVerticalBraceNode
;
25 Base class implementing writing of formulas to Word.
27 class SmWordExportBase
30 explicit SmWordExportBase(const SmNode
* pIn
);
31 virtual ~SmWordExportBase();
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
; }
55 const SmNode
* const m_pTree
;
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */