00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef POPPLER_OPTCONTENT_H
00022 #define POPPLER_OPTCONTENT_H
00023
00024 #include <QtCore/QAbstractListModel>
00025
00026 #include "poppler-export.h"
00027
00028 class OCGs;
00029
00030 namespace Poppler
00031 {
00032 class Document;
00033 class OptContentModelPrivate;
00034
00046 class POPPLER_QT4_EXPORT OptContentModel : public QAbstractItemModel
00047 {
00048 friend class Document;
00049
00050 Q_OBJECT
00051
00052 public:
00053 virtual ~OptContentModel();
00054
00055 QModelIndex index(int row, int column, const QModelIndex &parent) const;
00056 QModelIndex parent(const QModelIndex &child) const;
00057
00058 int rowCount(const QModelIndex &parent = QModelIndex()) const;
00059 int columnCount(const QModelIndex &parent) const;
00060
00061 QVariant data(const QModelIndex &index, int role) const;
00062 virtual bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole );
00063
00064 Qt::ItemFlags flags ( const QModelIndex & index ) const;
00065
00066 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
00067
00068 private:
00069 OptContentModel( OCGs *optContent, QObject *parent = 0);
00070
00071 friend class OptContentModelPrivate;
00072 OptContentModelPrivate *d;
00073 };
00074 }
00075
00076 #endif