You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.4 KiB
44 lines
1.4 KiB
/***************************************************************************
|
|
* 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 <tqdom.h>
|
|
#include <klistview.h>
|
|
#include "core/document.h"
|
|
#include "core/observer.h"
|
|
|
|
class KPDFDocument;
|
|
|
|
class TOC : public KListView, public DocumentObserver
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
TOC(TQWidget *parent, KPDFDocument *document);
|
|
~TOC();
|
|
|
|
// inherited from DocumentObserver
|
|
uint observerId() const;
|
|
void notifySetup( const TQValueVector< KPDFPage * > & pages, bool documentChanged );
|
|
|
|
signals:
|
|
void hasTOC(bool has);
|
|
|
|
private slots:
|
|
void slotExecuted(TQListViewItem *i);
|
|
|
|
private:
|
|
void addChildren( const TQDomNode & parentNode, KListViewItem * parentItem = 0 );
|
|
DocumentViewport getViewport( const TQDomElement &e ) const;
|
|
KPDFDocument *m_document;
|
|
};
|
|
|
|
#endif
|