#define QINDEX_H
#include "Qt2Base.h"
-#include "ControlIndex.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-class Dialogs;
-class LyXView;
+class ControlIndex;
class QIndexDialog;
-class QIndex :
- public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > {
+class QIndex :
+ public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> >
+{
friend class QIndexDialog;
-
-public:
- QIndex(ControlIndex &);
- ~QIndex();
-private:
+
+public:
+ QIndex();
+
+protected:
+ virtual bool isValid();
+
+private:
/// Apply changes
virtual void apply();
/// update
- virtual void update();
+ virtual void update_contents();
/// build the dialog
- virtual void build();
-
- /// create an Index inset
- void createIndex(string const &);
- /// edit an Index inset
- void showIndex(InsetCommand * const);
-
- /// is the inset we are reading from a readonly buffer ?
- bool readonly;
+ virtual void build_dialog();
};
#endif // QINDEX_H