lib Library API Documentation

kformulamathmlread.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Andrea Rizzi <rizzi@kde.org> 00003 Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef KFORMULAMATHMLREAD_H 00022 #define KFORMULAMATHMLREAD_H 00023 00024 #include <qobject.h> 00025 #include <qdom.h> 00026 #include "kformulainputfilter.h" 00027 #include "contextstyle.h" 00028 00029 KFORMULA_NAMESPACE_BEGIN 00030 00031 class MathML2KFormulaPrivate; 00032 00037 class MathML2KFormula : public KFInputFilter 00038 { 00039 Q_OBJECT 00040 00041 friend class MathML2KFormulaPrivate; 00042 00043 public: 00044 00051 MathML2KFormula( QDomDocument mmldoc, const ContextStyle &contextStyle ); 00052 00053 /* 00054 * Get the just created DOM. 00055 */ 00056 virtual QDomDocument getKFormulaDom(); 00057 00058 00059 public slots: 00060 virtual void startConversion(); 00061 00062 private: 00063 00064 bool processElement( QDomNode node, QDomDocument doc, 00065 QDomNode docnode ); 00066 00067 QDomDocument origdoc; 00068 QDomDocument formuladoc; 00069 00070 const ContextStyle& context; 00071 00072 MathML2KFormulaPrivate* impl; 00073 00074 enum Type { 00075 // Presentation Markup 00076 UNKNOWN = 1, 00077 TOKEN = 2, // Token Elements 00078 LAYOUT = 3, // General Layout Schemata 00079 SCRIPT = 4, // Script and Limit Schemata 00080 TABLE = 5, // Tables and Matrices 00081 EE = 6, // Enlivening Expressions 00082 00083 // Content Markup 00084 CONTENT = 12 00085 }; 00086 }; 00087 00088 KFORMULA_NAMESPACE_END 00089 00090 #endif // KFORMULAMATHMLREAD_H
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:03:58 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003