F:/KPlato/koffice/libs/kformula/FormulaShape.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C)  2006 Martin Pfeiffer <hubipete@gmx.net>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef FORMULASHAPE_H
00021 #define FORMULASHAPE_H
00022 
00023 #include <KoShape.h>
00024 #include <QDomDocument>
00025 class KoXmlWriter;
00026 
00027 #define FormulaShape_SHAPEID "FormulaShapeID"
00028 
00029 namespace KFormula {
00030 
00031 class BasicElement;
00032 
00038 class KOFORMULA_EXPORT FormulaShape : public KoShape {
00039 public:
00041     FormulaShape();
00042 
00044     ~FormulaShape();
00045 
00047     void paint( QPainter &painter, KoViewConverter &converter );
00048 
00050     void paintDecorations( QPainter &painter, const KoViewConverter &converter,
00051                            bool selected );
00052 
00054     BasicElement* elementAt( const QPointF& p );
00055 
00057     void resize( const QSizeF &size );
00058     
00060     QSizeF size() const; 
00061 
00063     QRectF boundingRect() const;
00064 
00066     BasicElement* formulaElement() const;
00067     
00073     void loadMathML( const QDomDocument &doc, bool oasisFormat = false );
00074     
00080     void saveMathML( KoXmlWriter* writer, bool oasisFormat = false );
00081 
00082 private:
00084     BasicElement* m_formulaElement;
00085 };
00086 
00087 } // namespace KFormula
00088 
00089 #endif // FORMULASHAPE_H

Généré le Wed Nov 22 23:41:01 2006 pour KPlato par  doxygen 1.5.1-p1