F:/KPlato/koffice/libs/kotext/styles/ChangeFollower.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 CHANGEFOLLOWER_H
00020 #define CHANGEFOLLOWER_H
00021 
00022 #include "KoStyleManager.h"
00023 
00024 #include <QObject>
00025 #include <QTextDocument>
00026 #include <QPointer>
00027 
00033 class ChangeFollower : public QObject {
00034 public:
00046     ChangeFollower(QTextDocument *parent, KoStyleManager *manager);
00048     ~ChangeFollower();
00049 
00058     void processUpdates(const QList<int> &changedStyles);
00060     const QTextDocument *document() const { return m_document; }
00061 
00062 private:
00063     QTextDocument *m_document;
00064     QPointer<KoStyleManager> m_styleManager;
00065 };
00066 
00067 #endif

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