diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kpdf/ui/toc.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpdf/ui/toc.h')
-rw-r--r-- | kpdf/ui/toc.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/kpdf/ui/toc.h b/kpdf/ui/toc.h new file mode 100644 index 00000000..eaa398a5 --- /dev/null +++ b/kpdf/ui/toc.h @@ -0,0 +1,43 @@ +/*************************************************************************** + * Copyright (C) 2004-2006 by Albert Astals Cid <[email protected]> * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + ***************************************************************************/ + +#ifndef _KPDF_TOC_H_ +#define _KPDF_TOC_H_ + +#include <qdom.h> +#include <klistview.h> +#include "core/document.h" +#include "core/observer.h" + +class KPDFDocument; + +class TOC : public KListView, public DocumentObserver +{ +Q_OBJECT + public: + TOC(QWidget *parent, KPDFDocument *document); + ~TOC(); + + // inherited from DocumentObserver + uint observerId() const; + void notifySetup( const QValueVector< KPDFPage * > & pages, bool documentChanged ); + + signals: + void hasTOC(bool has); + + private slots: + void slotExecuted(QListViewItem *i); + + private: + void addChildren( const QDomNode & parentNode, KListViewItem * parentItem = 0 ); + DocumentViewport getViewport( const QDomElement &e ) const; + KPDFDocument *m_document; +}; + +#endif |