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/FormUrl.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-07-27 08:55:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMURL_H
|
|
|
|
#define FORMURL_H
|
|
|
|
|
2000-07-27 10:26:38 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-23 18:46:11 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-03-23 18:46:11 +00:00
|
|
|
class ControlUrl;
|
2000-08-01 17:33:32 +00:00
|
|
|
struct FD_form_url;
|
|
|
|
|
2001-03-23 18:46:11 +00:00
|
|
|
/** This class provides an XForms implementation of the Url Dialog.
|
2000-07-27 08:55:59 +00:00
|
|
|
*/
|
2001-03-23 18:46:11 +00:00
|
|
|
class FormUrl : public FormCB<ControlUrl, FormDB<FD_form_url> > {
|
2000-07-27 08:55:59 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-03-23 18:46:11 +00:00
|
|
|
FormUrl(ControlUrl &);
|
|
|
|
|
2000-07-27 08:55:59 +00:00
|
|
|
private:
|
2001-03-23 18:46:11 +00:00
|
|
|
/// Apply from dialog (modify or create inset)
|
|
|
|
virtual void apply();
|
2000-07-27 08:55:59 +00:00
|
|
|
/// Build the dialog
|
2000-08-03 12:56:25 +00:00
|
|
|
virtual void build();
|
|
|
|
/// Update dialog before showing it
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual void update();
|
2001-03-23 18:46:11 +00:00
|
|
|
/// Filter the inputs on callback from xforms
|
2000-07-27 08:55:59 +00:00
|
|
|
FD_form_url * build_url();
|
|
|
|
};
|
|
|
|
|
2001-03-23 18:46:11 +00:00
|
|
|
#endif // FORMURL_H
|