okular/kpdf/toc.h
Enrico Ros 8aaec0dd08 TOC displays the Synopsis DomTree and reacts on clicks. Viewport changes
moved to #1 in TODO list. Let's hope next items won't start from #2..

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=370056
2004-12-12 11:11:57 +00:00

39 lines
1.2 KiB
C++

/***************************************************************************
* Copyright (C) 2004 by Albert Astals Cid <tsdgeos@terra.es> *
* *
* 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 TOC_H
#define TOC_H
#include <klistview.h>
#include "document.h"
class TOC : public KListView, public KPDFDocumentObserver
{
Q_OBJECT
public:
TOC(QWidget *parent, KPDFDocument *document);
// inherited from KPDFDocumentObserver
uint observerId() const;
void pageSetup( 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 );
KPDFDocument *m_document;
};
#endif