kformula/flake

FencedElement.h

Go to the documentation of this file.
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    Copyright (C) 2006-2007 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
00006                  2007 Martin Pfeiffer <hubipete@gmx.net>
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License as published by the Free Software Foundation; either
00011    version 2 of the License, or (at your option) any later version.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public License
00019    along with this library; see the file COPYING.LIB.  If not, write to
00020    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021    Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef FENCEDELEMENT_H
00025 #define FENCEDELEMENT_H
00026 
00027 #include "RowElement.h"
00028 #include "kformula_export.h"
00029 #include <QPainterPath>
00030 
00034 class KOFORMULA_EXPORT FencedElement : public RowElement {
00035 public:
00037     FencedElement( BasicElement* parent = 0 );
00038 
00044     virtual void paint( QPainter& painter, AttributeManager* am );
00045 
00050     void layout( const AttributeManager* am );
00051 
00053     QString attributesDefaultValue( const QString& attribute ) const;
00054     
00056     ElementType elementType() const;
00057     
00058 private:
00060     QPainterPath m_fence;
00061 };
00062 
00063 #endif // FENCEDELEMENT_H