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

Aller à la documentation de ce fichier.
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                  2006 Martin Pfeiffer <hubipete@gmx.net>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef MATRIXENTRYELEMENT_H
00023 #define MATRIXENTRYELEMENT_H
00024 
00025 #include "SequenceElement.h"
00026 
00027 namespace KFormula {
00028         
00037 class MatrixEntryElement : public SequenceElement {
00038 public:
00040     MatrixEntryElement( BasicElement* parent = 0 );
00041 
00043     const QList<BasicElement*> childElements();
00044 
00045     void readMathML( const QDomElement& element );
00046     
00047     void writeMathML( KoXmlWriter* writer, bool oasisFormat = false );
00048 
00049 
00050 
00051 
00052 
00053 
00055     virtual void calcSizes( const ContextStyle& context, 
00056                             ContextStyle::TextStyle tstyle,
00057                             ContextStyle::IndexStyle istyle,
00058                             StyleAttributes& style );
00059         
00060     virtual void registerTab( BasicElement* tab );
00061         
00062          int tabCount() const { return tabs.count(); }
00063          BasicElement* tab( int i ) { return tabs.at( i ); }
00064                  
00066          void moveTabTo( int i, luPixel pos );
00067 
00069          int tabBefore( int pos );
00070          
00072          int tabPos( int i );
00073 
00074 private:
00075     QList<BasicElement*> tabs;
00076 };
00077 
00078 } // namespace KFormula
00079 
00080 #endif

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