mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
8b41489e2f
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522251
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2004-2006 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 _KPDF_TOC_H_
|
|
#define _KPDF_TOC_H_
|
|
|
|
#include <qdom.h>
|
|
#include <k3listview.h>
|
|
#include "core/document.h"
|
|
#include "core/observer.h"
|
|
|
|
class KPDFDocument;
|
|
|
|
class TOC : public K3ListView, public DocumentObserver
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
TOC(QWidget *parent, KPDFDocument *document);
|
|
~TOC();
|
|
|
|
// inherited from DocumentObserver
|
|
uint observerId() const;
|
|
void notifySetup( const QVector< KPDFPage * > & pages, bool documentChanged );
|
|
|
|
signals:
|
|
void hasTOC(bool has);
|
|
|
|
private slots:
|
|
void slotExecuted(Q3ListViewItem *i);
|
|
|
|
private:
|
|
void addChildren( const QDomNode & parentNode, K3ListViewItem * parentItem = 0 );
|
|
DocumentViewport getViewport( const QDomElement &e ) const;
|
|
KPDFDocument *m_document;
|
|
};
|
|
|
|
#endif
|