tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / starmath / source / ooxmlexport.hxx
blobcd2e9d4465850d7a2a5d061f9d331c5f6ec021be
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 <sax/fshelper.hxx>
15 #include <oox/core/filterbase.hxx>
16 #include <oox/export/utils.hxx>
18 /**
19 Class implementing writing of formulas to OOXML.
21 class SmOoxmlExport : public SmWordExportBase
23 public:
24 SmOoxmlExport(const SmNode* pIn, oox::core::OoxmlVersion version,
25 oox::drawingml::DocumentType documentType);
26 void ConvertFromStarMath(const ::sax_fastparser::FSHelperPtr& m_pSerializer, const sal_Int8);
28 private:
29 void HandleVerticalStack(const SmNode* pNode, int nLevel) override;
30 void HandleText(const SmNode* pNode, int nLevel) override;
31 void HandleFractions(const SmNode* pNode, int nLevel, const char* type) override;
32 void HandleRoot(const SmRootNode* pNode, int nLevel) override;
33 void HandleAttribute(const SmAttributeNode* pNode, int nLevel) override;
34 void HandleOperator(const SmOperNode* pNode, int nLevel) override;
35 void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) override;
36 void HandleMatrix(const SmMatrixNode* pNode, int nLevel) override;
37 void HandleBrace(const SmBraceNode* pNode, int nLevel) override;
38 void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) override;
39 void HandleBlank() override;
40 ::sax_fastparser::FSHelperPtr m_pSerializer;
41 oox::core::OoxmlVersion version;
42 /// needed to determine markup for nested run properties
43 oox::drawingml::DocumentType const m_DocumentType;
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */