=?utf-8?q?great=20patch=20from=20Bernhard=20Beschow=20<bbeschow=20cs=20tu-berlin...
[kdelibs.git] / kformula / TextElement.h
blobbcb03407bdab1b6bb48d94d53c3d10213b219cf9
1 /* This file is part of the KDE project
2 Copyright (C) 2001 Andrea Rizzi <rizzi@kde.org>
3 Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de>
4 Copyright (C) 2006 Martin Pfeiffer <hubipete@gmx.net>
5 Copyright (C) 2006 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef TEXTELEMENT_H
24 #define TEXTELEMENT_H
26 #include "TokenElement.h"
27 #include "kformula_export.h"
29 /**
30 * @short Implementation of the MathML
31 * An element that represents one char.
33 class KFORMULA_EXPORT TextElement : public TokenElement {
34 public:
35 /// The standard constructor
36 TextElement( BasicElement* parent = 0 );
38 /// @return The element's ElementType
39 ElementType elementType() const;
41 QRectF renderToPath( const QString& raw, QPainterPath& path, const AttributeManager *am );
44 #endif // TEXTELEMENT_H