okular/kpdf/toc.h
Laurent Montel ee6357d4bb Add const
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=357310
2004-10-24 13:08:31 +00:00

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