2001-05-04 10:36:36 +00:00
|
|
|
// -*- C++ -*-
|
2000-08-01 17:33:32 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-03-30 19:24:28 +00:00
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2000-08-01 17:33:32 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
2001-03-30 19:24:28 +00:00
|
|
|
*
|
|
|
|
* \file FormToc.h
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
2000-08-01 17:33:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMTOC_H
|
|
|
|
#define FORMTOC_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-30 19:24:28 +00:00
|
|
|
#include "FormBase.h"
|
2000-08-04 13:12:30 +00:00
|
|
|
#include "buffer.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-30 19:24:28 +00:00
|
|
|
class ControlToc;
|
2000-08-01 17:33:32 +00:00
|
|
|
struct FD_form_toc;
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormToc Dialog.
|
|
|
|
*/
|
2001-03-30 19:24:28 +00:00
|
|
|
class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
|
2000-08-01 17:33:32 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-03-30 19:24:28 +00:00
|
|
|
FormToc(ControlToc &);
|
|
|
|
private:
|
|
|
|
/// not needed
|
|
|
|
virtual void apply() {}
|
2000-08-01 17:33:32 +00:00
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
2000-08-03 12:56:25 +00:00
|
|
|
/// Update dialog before showing it
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual void update();
|
2000-11-28 06:46:06 +00:00
|
|
|
/// Filter the inputs on callback from xforms
|
2001-03-30 19:24:28 +00:00
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
|
2000-08-01 17:33:32 +00:00
|
|
|
///
|
2001-03-30 19:24:28 +00:00
|
|
|
void updateType();
|
2000-08-01 17:33:32 +00:00
|
|
|
///
|
2001-03-30 19:24:28 +00:00
|
|
|
void updateContents();
|
|
|
|
|
|
|
|
/// Fdesign generated method
|
2000-08-01 17:33:32 +00:00
|
|
|
FD_form_toc * build_toc();
|
|
|
|
|
2000-08-04 13:12:30 +00:00
|
|
|
///
|
2001-03-30 19:24:28 +00:00
|
|
|
Buffer::SingleList toclist_;
|
2000-08-01 17:33:32 +00:00
|
|
|
};
|
|
|
|
|
2001-03-30 19:24:28 +00:00
|
|
|
#endif // FORMTOC_H
|