1 /***************************************************************************
2 * Copyright (C) 2004-2006 by Albert Astals Cid <tsdgeos@terra.es> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_TOC_H_
11 #define _OKULAR_TOC_H_
14 #include "core/observer.h"
19 class KTreeViewSearchLine
;
26 class TOC
: public QWidget
, public Okular::DocumentObserver
30 TOC(QWidget
*parent
, Okular::Document
*document
);
33 // inherited from DocumentObserver
34 uint
observerId() const;
35 void notifySetup( const QVector
< Okular::Page
* > & pages
, int setupFlags
);
36 void notifyViewportChanged( bool smoothMove
);
41 void hasTOC(bool has
);
44 void slotExecuted( const QModelIndex
& );
47 Okular::Document
*m_document
;
48 QTreeView
*m_treeView
;
49 KTreeViewSearchLine
*m_searchLine
;