2001-03-15 13:37:04 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-20 13:34:05 +00:00
|
|
|
/**
|
|
|
|
* \file FormPreamble.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMPREAMBLE_H
|
|
|
|
#define FORMPREAMBLE_H
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
#include "FormBaseDeprecated.h"
|
|
|
|
#include "xformsBC.h"
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
2001-02-20 13:34:05 +00:00
|
|
|
|
|
|
|
struct FD_form_preamble;
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormPreamble Dialog.
|
|
|
|
*/
|
|
|
|
class FormPreamble : public FormBaseBD {
|
|
|
|
public:
|
2001-03-15 13:37:04 +00:00
|
|
|
///
|
|
|
|
FormPreamble(LyXView *, Dialogs *);
|
2001-02-20 13:34:05 +00:00
|
|
|
private:
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Pointer to the actual instantiation of the ButtonController.
|
|
|
|
virtual xformsBC & bc();
|
2001-02-20 13:34:05 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Filter the inputs
|
|
|
|
// virtual bool input(FL_OBJECT *, long);
|
2001-02-20 13:34:05 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Build the popup
|
|
|
|
virtual void build();
|
|
|
|
/// Apply from popup
|
|
|
|
virtual void apply();
|
|
|
|
/// Update the popup.
|
|
|
|
virtual void update();
|
|
|
|
///
|
|
|
|
virtual FL_FORM * form() const;
|
2001-02-20 13:34:05 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Typedefinitions from the fdesign produced Header file
|
|
|
|
FD_form_preamble * build_preamble();
|
2001-02-20 13:34:05 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Real GUI implementation.
|
|
|
|
boost::scoped_ptr<FD_form_preamble> dialog_;
|
|
|
|
/// The ButtonController
|
|
|
|
ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
|
2001-02-20 13:34:05 +00:00
|
|
|
};
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
xformsBC & FormPreamble::bc()
|
|
|
|
{
|
|
|
|
return bc_;
|
|
|
|
}
|
2001-02-20 13:34:05 +00:00
|
|
|
#endif
|