2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2002-03-11 22:47:41 +00:00
|
|
|
* \file xforms/FormRef.h
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 2000-2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
2000-08-08 15:36:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMREF_H
|
|
|
|
#define FORMREF_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
class ControlRef;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_ref;
|
2000-08-08 15:36:25 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormRef Dialog.
|
|
|
|
*/
|
2002-06-13 13:43:51 +00:00
|
|
|
class FormRef : public FormCB<ControlRef, FormDB<FD_ref> > {
|
2000-08-08 15:36:25 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-03-26 13:16:57 +00:00
|
|
|
FormRef(ControlRef &);
|
2000-10-13 05:57:05 +00:00
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
private:
|
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
virtual void apply();
|
2000-08-08 15:36:25 +00:00
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
2001-03-26 13:16:57 +00:00
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2000-08-08 15:36:25 +00:00
|
|
|
/// Update dialog before showing it
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual void update();
|
2000-08-08 15:36:25 +00:00
|
|
|
|
|
|
|
///
|
2000-11-14 02:01:57 +00:00
|
|
|
void updateBrowser(std::vector<string> const &) const;
|
2001-03-27 10:44:14 +00:00
|
|
|
|
2000-08-08 15:36:25 +00:00
|
|
|
///
|
2001-03-26 13:16:57 +00:00
|
|
|
bool at_ref_;
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2001-03-26 13:16:57 +00:00
|
|
|
std::vector<string> refs_;
|
2000-08-08 15:36:25 +00:00
|
|
|
};
|
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
#endif // FORMREF_H
|