=?utf-8?q?great=20patch=20from=20Bernhard=20Beschow=20<bbeschow=20cs=20tu-berlin...
[kdelibs.git] / kformula / ErrorElement.h
blobef4b0acb3bbc2d08fb4021be424c9afe74eedaf0
1 /* This file is part of the KDE project
2 Copyright (C) 2006-2007 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef ERRORELEMENT_H
21 #define ERRORELEMENT_H
23 #include "RowElement.h"
25 /**
26 * @short Implementation of the MathML merror element
28 class KFORMULA_EXPORT ErrorElement : public RowElement {
29 public:
30 /// The standart constructor
31 ErrorElement( BasicElement* parent = 0 );
33 /**
34 * Render the element to the given QPainter
35 * @param painter The QPainter to paint the element to
36 * @param am AttributeManager containing style info
38 virtual void paint( QPainter& painter, AttributeManager* am );
40 /// @return The element's ElementType
41 ElementType elementType() const;
44 #endif // ERRORELEMENT_H