Bump version to 21.06.18.1
[LibreOffice.git] / starmath / source / ooxmlimport.hxx
blob5fc7a6a335e89f055b9e30560b97bbdaab8af59c
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 #ifndef INCLUDED_STARMATH_SOURCE_OOXMLIMPORT_HXX
11 #define INCLUDED_STARMATH_SOURCE_OOXMLIMPORT_HXX
13 #include <rtl/ustring.hxx>
15 namespace oox::formulaimport { class XmlStream; }
16 /**
17 Class implementing reading of formulas from OOXML. The toplevel element is expected
18 to be oMath (handle oMathPara outside of this code).
20 class SmOoxmlImport
22 public:
23 explicit SmOoxmlImport( oox::formulaimport::XmlStream& stream );
24 OUString ConvertToStarMath();
25 private:
26 OUString handleStream();
27 OUString handleAcc();
28 OUString handleBar();
29 OUString handleBox();
30 OUString handleBorderBox();
31 OUString handleD();
32 OUString handleEqArr();
33 OUString handleF();
34 OUString handleFunc();
35 enum LimLowUpp_t { LimLow, LimUpp };
36 OUString handleLimLowUpp( LimLowUpp_t limlowupp );
37 OUString handleGroupChr();
38 OUString handleM();
39 OUString handleNary();
40 OUString handleR();
41 OUString handleRad();
42 OUString handleSpre();
43 OUString handleSsub();
44 OUString handleSsubsup();
45 OUString handleSsup();
46 OUString readOMathArg( int stoptoken );
47 OUString readOMathArgInElement( int token );
49 oox::formulaimport::XmlStream& m_rStream;
52 #endif
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */