Line data Source code
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 : #ifndef INCLUDED_OOX_MATHML_IMPORT_HXX
10 : #define INCLUDED_OOX_MATHML_IMPORT_HXX
11 :
12 : #include <com/sun/star/embed/XEmbeddedObject.hpp>
13 : #include <tools/gen.hxx>
14 :
15 : #include <oox/dllapi.h>
16 :
17 : namespace oox
18 : {
19 :
20 : namespace formulaimport
21 : {
22 : class XmlStream;
23 : }
24 :
25 : /**
26 : Interface class, StarMath will implement readFormulaOoxml() to read OOXML
27 : representing the formula and getFormulaSize() to provide the size of the resulting
28 : formula.
29 : */
30 : class OOX_DLLPUBLIC FormulaImportBase
31 : {
32 : public:
33 : virtual void readFormulaOoxml( oox::formulaimport::XmlStream& stream ) = 0;
34 : virtual Size getFormulaSize() const = 0;
35 :
36 : protected:
37 : FormulaImportBase();
38 :
39 323 : ~FormulaImportBase() {}
40 : };
41 :
42 : } // namespace
43 :
44 : #endif
45 :
46 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|