2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file FormExternal.h
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 2000-2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Asger Alstrup Nielsen
|
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
2001-03-30 09:51:46 +00:00
|
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
2001-03-12 12:47:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMEXTERNAL_H
|
|
|
|
#define FORMEXTERNAL_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
#include "insets/insetexternal.h"
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
class ControlExternal;
|
2001-03-15 13:37:04 +00:00
|
|
|
struct FD_form_external;
|
|
|
|
|
2001-03-12 12:47:07 +00:00
|
|
|
/// The class for editing External insets via a dialog
|
2001-03-30 09:51:46 +00:00
|
|
|
class FormExternal : public FormCB<ControlExternal, FormDB<FD_form_external> > {
|
2001-03-12 12:47:07 +00:00
|
|
|
public:
|
2001-03-15 13:37:04 +00:00
|
|
|
///
|
2001-03-30 09:51:46 +00:00
|
|
|
FormExternal(ControlExternal &);
|
2001-03-12 12:47:07 +00:00
|
|
|
|
|
|
|
private:
|
2001-03-30 09:51:46 +00:00
|
|
|
/// apply changes
|
|
|
|
void apply();
|
2001-03-12 12:47:07 +00:00
|
|
|
|
|
|
|
/// build the dialog
|
|
|
|
void build();
|
|
|
|
|
|
|
|
/// update the dialog
|
|
|
|
void update();
|
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2001-03-12 12:47:07 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
///
|
|
|
|
void updateComboChange();
|
2001-03-12 12:47:07 +00:00
|
|
|
|
2001-03-30 09:51:46 +00:00
|
|
|
/// Fdesign generated method
|
2001-03-12 12:47:07 +00:00
|
|
|
FD_form_external * build_external();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FORMEXTERNAL_H
|