F:/KPlato/koffice/libs/kotext/KoTextBlockData.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002  * Copyright (C) 2006 Thomas Zander <zander@kde.org>
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; version 2.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public License
00014  * along with this library; see the file COPYING.LIB.  If not, write to
00015  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017  */
00018 
00019 #ifndef KOTEXTBLOCKDATA_H
00020 #define KOTEXTBLOCKDATA_H
00021 
00022 #include <QTextBlockUserData>
00023 
00024 #include <koffice_export.h>
00025 
00030 class KOTEXT_EXPORT KoTextBlockData : public QTextBlockUserData {
00031 public:
00032     KoTextBlockData();
00033     ~KoTextBlockData();
00034 
00036     bool hasCounterData() const;
00038     double counterWidth() const { return m_counterWidth; }
00040     void setCounterWidth(double width) { m_counterWidth = width; }
00042     void setCounterText(const QString &text) { m_counterText = text; }
00044     const QString &counterText() const { return m_counterText; }
00045 
00051     void setPartialCounterText(const QString &text) { m_partialCounterText = text; }
00053     const QString &partialCounterText() const { return m_partialCounterText; }
00054 
00055     void setCounterPosition(QPointF position) { m_counterPos = position; }
00056     QPointF counterPosition() const { return m_counterPos; }
00057 
00058 private:
00059     double m_counterWidth;
00060     QString m_counterText;
00061     QString m_partialCounterText;
00062     QPointF m_counterPos;
00063 };
00064 
00065 #endif

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