Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / starmath / source / rtfexport.hxx
blobe8c38aaa6c51a7cd008959d726d9e7e49c8297cb
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 #pragma once
12 #include "wordexportbase.hxx"
14 #include <rtl/strbuf.hxx>
16 /**
17 Class implementing writing of formulas to RTF.
19 class SmRtfExport : public SmWordExportBase
21 public:
22 explicit SmRtfExport(const SmNode* pIn);
23 void ConvertFromStarMath(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
25 private:
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;
38 OStringBuffer* m_pBuffer;
39 rtl_TextEncoding m_nEncoding;
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */