blob: 9ed1d55cbeed7552efe16b6aae9fb853d3992caf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/***************************************************************************
* 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 <tqdom.h>
#include <tdelistview.h>
#include "core/document.h"
#include "core/observer.h"
class KPDFDocument;
class TOC : public TDEListView, public DocumentObserver
{
TQ_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, TDEListViewItem * parentItem = 0 );
DocumentViewport getViewport( const TQDomElement &e ) const;
KPDFDocument *m_document;
};
#endif
|