2001-03-30 09:51:46 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2001-03-12 12:47:07 +00:00
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file FormExternal.h
|
|
|
|
* \author Asger Alstrup
|
2001-03-12 12:47:07 +00:00
|
|
|
* \author John Levon
|
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
|