1 // Copyright (C) 2000-2007, Luca Padovani <padovani@sti.uniurb.it>.
2 //
3 // This file is part of GtkMathView, a flexible, high-quality rendering
4 // engine for MathML documents.
5 //
6 // GtkMathView is free software; you can redistribute it and/or modify it
7 // under the terms of the GNU Lesser General Public License as published
8 // by the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // GtkMathView is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 
19 #ifndef __MathMLValueConversion_hh__
20 #define __MathMLValueConversion_hh__
21 
22 #include "ValueConversion.hh"
23 // full path needed for Win32
24 #include "../../common/mathvariants/MathVariant.hh"
25 
26 bool isTokenId(const SmartPtr<Value>&, TokenId);
27 MathVariant toMathVariant(TokenId);
28 MathVariant toMathVariant(const SmartPtr<Value>&);
29 Length toLength(const SmartPtr<Value>&, const class FormattingContext&);
30 Length resolveLength(const class FormattingContext&, const SmartPtr<Value>&, int = -1, int = -1);
31 
32 #endif // __MathMLValueConversion_hh__
33