ooxmlexport.hxx 1.94 KB
Newer Older
1 2
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
3
 * This file is part of the LibreOffice project.
4
 *
5 6 7
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 9
 */

10 11
#ifndef INCLUDED_STARMATH_SOURCE_OOXMLEXPORT_HXX
#define INCLUDED_STARMATH_SOURCE_OOXMLEXPORT_HXX
12

13
#include "wordexportbase.hxx"
14 15

#include <sax/fshelper.hxx>
16
#include <oox/core/filterbase.hxx>
17
#include <oox/export/utils.hxx>
18 19 20 21

/**
 Class implementing writing of formulas to OOXML.
 */
22
class SmOoxmlExport : public SmWordExportBase
23 24
{
public:
25 26
    SmOoxmlExport(const SmNode* pIn, oox::core::OoxmlVersion version,
            oox::drawingml::DocumentType documentType);
27
    void ConvertFromStarMath( const ::sax_fastparser::FSHelperPtr& m_pSerializer );
28
private:
29 30 31 32 33 34 35 36 37 38 39
    void HandleVerticalStack( const SmNode* pNode, int nLevel ) override;
    void HandleText( const SmNode* pNode, int nLevel ) override;
    void HandleFractions( const SmNode* pNode, int nLevel, const char* type ) override;
    void HandleRoot( const SmRootNode* pNode, int nLevel ) override;
    void HandleAttribute( const SmAttributNode* pNode, int nLevel ) override;
    void HandleOperator( const SmOperNode* pNode, int nLevel ) override;
    void HandleSubSupScriptInternal( const SmSubSupNode* pNode, int nLevel, int flags ) override;
    void HandleMatrix( const SmMatrixNode* pNode, int nLevel ) override;
    void HandleBrace( const SmBraceNode* pNode, int nLevel ) override;
    void HandleVerticalBrace( const SmVerticalBraceNode* pNode, int nLevel ) override;
    void HandleBlank() override;
40
    ::sax_fastparser::FSHelperPtr m_pSerializer;
41
    oox::core::OoxmlVersion const version;
42 43
    /// needed to determine markup for nested run properties
    oox::drawingml::DocumentType const m_DocumentType;
44 45 46 47 48 49
};


#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */