2001-03-15 13:37:04 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-12 14:09:09 +00:00
|
|
|
/**
|
|
|
|
* \file FormInclude.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* See the file COPYING
|
|
|
|
*
|
|
|
|
* \author Alejandro Aguilar Sierra
|
2001-03-23 17:09:34 +00:00
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
2001-02-12 14:09:09 +00:00
|
|
|
*/
|
|
|
|
#ifndef FORMINCLUDE_H
|
|
|
|
#define FORMINCLUDE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
#include "FormBase.h"
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
class ControlInclude;
|
2001-02-12 14:09:09 +00:00
|
|
|
struct FD_form_include;
|
|
|
|
|
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
|
|
|
*/
|
2001-03-23 17:09:34 +00:00
|
|
|
class FormInclude : public FormCB<ControlInclude, FormDB<FD_form_include> > {
|
2001-02-12 14:09:09 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-03-23 17:09:34 +00:00
|
|
|
FormInclude(ControlInclude &);
|
2001-03-14 10:57:39 +00:00
|
|
|
|
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);
|
2001-02-12 14:09:09 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
///
|
|
|
|
ButtonPolicy::SMInput inputBrowse();
|
2001-03-27 10:44:14 +00:00
|
|
|
|
|
|
|
/// Fdesign generated method
|
2001-02-12 14:09:09 +00:00
|
|
|
FD_form_include * build_include();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|