mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
ee6357d4bb
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=357310
44 lines
1.2 KiB
C++
44 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 GList;
|
|
|
|
class PDFDoc;
|
|
class UnicodeMap;
|
|
|
|
class TOC : public KListView, public KPDFDocumentObserver
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
TOC(QWidget *parent, KPDFDocument *document);
|
|
|
|
uint observerId() const ;
|
|
void pageSetup( const QValueVector<KPDFPage*> & /*pages*/, bool documentChanged);
|
|
|
|
signals:
|
|
void hasTOC(bool has);
|
|
|
|
private slots:
|
|
void slotExecuted(QListViewItem *i);
|
|
|
|
private:
|
|
void addKids(KListViewItem *last, GList *items, UnicodeMap *uMap);
|
|
QString getTitle(Unicode *u, int length, UnicodeMap *uMap) const;
|
|
|
|
KPDFDocument *m_document;
|
|
};
|
|
|
|
#endif
|