LibreOffice Module starmath (master) 1
rtfexport.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 "wordexportbase.hxx"
13
14#include <rtl/strbuf.hxx>
15
20{
21public:
22 explicit SmRtfExport(const SmNode* pIn);
23 void ConvertFromStarMath(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
24
25private:
26 void HandleVerticalStack(const SmNode* pNode, int nLevel) override;
27 void HandleText(const SmNode* pNode, int nLevel) override;
28 void HandleFractions(const SmNode* pNode, int nLevel, const char* type) override;
29 void HandleRoot(const SmRootNode* pNode, int nLevel) override;
30 void HandleAttribute(const SmAttributeNode* pNode, int nLevel) override;
31 void HandleOperator(const SmOperNode* pNode, int nLevel) override;
32 void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) override;
33 void HandleMatrix(const SmMatrixNode* pNode, int nLevel) override;
34 void HandleBrace(const SmBraceNode* pNode, int nLevel) override;
35 void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) override;
36 void HandleBlank() override;
37
38 OStringBuffer* m_pBuffer;
39 rtl_TextEncoding m_nEncoding;
40};
41
42/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Attribute node.
Definition: node.hxx:1890
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
Class implementing writing of formulas to RTF.
Definition: rtfexport.hxx:20
void HandleBlank() override
Definition: rtfexport.cxx:495
OStringBuffer * m_pBuffer
Definition: rtfexport.hxx:38
void HandleText(const SmNode *pNode, int nLevel) override
Definition: rtfexport.cxx:49
void HandleVerticalStack(const SmNode *pNode, int nLevel) override
Definition: rtfexport.cxx:36
void HandleMatrix(const SmMatrixNode *pNode, int nLevel) override
Definition: rtfexport.cxx:386
void HandleFractions(const SmNode *pNode, int nLevel, const char *type) override
Definition: rtfexport.cxx:68
rtl_TextEncoding m_nEncoding
Definition: rtfexport.hxx:39
void HandleVerticalBrace(const SmVerticalBraceNode *pNode, int nLevel) override
Definition: rtfexport.cxx:451
void HandleBrace(const SmBraceNode *pNode, int nLevel) override
Definition: rtfexport.cxx:404
void HandleSubSupScriptInternal(const SmSubSupNode *pNode, int nLevel, int flags) override
Definition: rtfexport.cxx:274
void ConvertFromStarMath(OStringBuffer &rBuffer, rtl_TextEncoding nEncoding)
Definition: rtfexport.cxx:22
void HandleAttribute(const SmAttributeNode *pNode, int nLevel) override
Definition: rtfexport.cxx:89
SmRtfExport(const SmNode *pIn)
Definition: rtfexport.cxx:15
void HandleRoot(const SmRootNode *pNode, int nLevel) override
Definition: rtfexport.cxx:156
void HandleOperator(const SmOperNode *pNode, int nLevel) override
Definition: rtfexport.cxx:193
Super- and subscript node.
Definition: node.hxx:1559
Node for vertical brace construction.
Definition: node.hxx:1750
Base class implementing writing of formulas to Word.
ResultType type