2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2003-02-27 15:57:11 +00:00
|
|
|
* \file FormRef.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.
|
2002-03-11 17:00:41 +00:00
|
|
|
*
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-08-08 15:36:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMREF_H
|
|
|
|
#define FORMREF_H
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
#include "FormDialogView.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
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.
|
|
|
|
*/
|
2003-02-25 14:51:38 +00:00
|
|
|
class FormRef : public FormController<ControlRef, FormView<FD_ref> > {
|
2000-08-08 15:36:25 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
FormRef(Dialog &);
|
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
|
|
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
void updateBrowser(std::vector<std::string> const &) const;
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-09-09 09:49:47 +00:00
|
|
|
///
|
|
|
|
void switch_go_button();
|
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
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> refs_;
|
2000-08-08 15:36:25 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
#endif // FORMREF_H
|