1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include <rtl/ustring.hxx>
13 #include <sal/types.h>
14 #include <tools/fract.hxx>
16 // MathML 3: 2.1.5.1 Syntax notation used in the MathML specification
17 // <https://www.w3.org/TR/MathML/chapter2.html#id.2.1.5.1>
18 // MathML 2: 2.4.4.2 Attributes with units
19 // <https://www.w3.org/TR/MathML2/chapter2.html#fund.attval>
20 // MathML 3: 2.1.5.2 Length Valued Attributes
21 // <https://www.w3.org/TR/MathML/chapter2.html#fund.units>
23 enum class MathMLLengthUnit
37 struct MathMLAttributeLengthValue
40 MathMLLengthUnit eUnit
;
41 MathMLAttributeLengthValue()
42 : eUnit(MathMLLengthUnit::None
)
47 sal_Int32
ParseMathMLAttributeLengthValue(const OUString
& rStr
, MathMLAttributeLengthValue
& rV
);
49 // MathML 3: 3.2.2 Mathematics style attributes common to token elements
50 // <https://www.w3.org/TR/MathML3/chapter3.html#presm.commatt>
52 enum class MathMLMathvariantValue
74 bool GetMathMLMathvariantValue(const OUString
& rStr
, MathMLMathvariantValue
& rV
);
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */