2001-03-15 13:37:04 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-12 14:09:09 +00:00
|
|
|
/**
|
|
|
|
* \file FormInclude.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-02-12 14:09:09 +00:00
|
|
|
*
|
|
|
|
* \author Alejandro Aguilar Sierra
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author John Levon
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-02-12 14:09:09 +00:00
|
|
|
*/
|
|
|
|
#ifndef FORMINCLUDE_H
|
|
|
|
#define FORMINCLUDE_H
|
|
|
|
|
|
|
|
|
2003-03-05 14:59:37 +00:00
|
|
|
#include "FormDialogView.h"
|
2003-02-27 13:53:23 +00:00
|
|
|
#include "RadioButtonGroup.h"
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2003-03-05 14:59:37 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
class ControlInclude;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_include;
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
/** This class provides an XForms implementation of the Include Dialog.
|
2001-02-12 14:09:09 +00:00
|
|
|
*/
|
2003-03-05 14:59:37 +00:00
|
|
|
class FormInclude
|
|
|
|
: public FormController<ControlInclude, FormView<FD_include> > {
|
2001-02-12 14:09:09 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-05 14:59:37 +00:00
|
|
|
FormInclude(Dialog &);
|
2001-03-23 17:09:34 +00:00
|
|
|
private:
|
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
virtual void apply();
|
2001-02-12 14:09:09 +00:00
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
|
|
|
/// Update dialog before showing it
|
|
|
|
virtual void update();
|
2001-03-23 17:09:34 +00:00
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2003-02-27 13:53:23 +00:00
|
|
|
|
|
|
|
/// include type
|
|
|
|
RadioButtonGroup type_;
|
2001-02-12 14:09:09 +00:00
|
|
|
};
|
|
|
|
|
2003-02-27 13:53:23 +00:00
|
|
|
#endif // FORMINCLUDE_H
|