2000-10-24 13:13:59 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================*/
|
|
|
|
/* FormTabularCreate.h
|
|
|
|
* FormTabularCreate Interface Class
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMTABULARCREATE_H
|
|
|
|
#define FORMTABULARCREATE_H
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
2000-10-24 13:13:59 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include "FormBaseDeprecated.h"
|
|
|
|
|
2000-10-24 13:13:59 +00:00
|
|
|
struct FD_form_tabular_create;
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormTabularCreate
|
|
|
|
Dialog.
|
|
|
|
*/
|
|
|
|
class FormTabularCreate : public FormBaseBD {
|
|
|
|
public:
|
|
|
|
/// #FormTabularCreate x(LyXView ..., Dialogs ...);#
|
|
|
|
FormTabularCreate(LyXView *, Dialogs *);
|
|
|
|
|
|
|
|
private:
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Pointer to the actual instantiation of the ButtonController.
|
|
|
|
virtual xformsBC & bc();
|
2000-10-24 13:13:59 +00:00
|
|
|
/// Connect signals etc.
|
|
|
|
virtual void connect();
|
|
|
|
|
|
|
|
/// Apply from dialog
|
|
|
|
virtual void apply();
|
2000-11-28 06:46:06 +00:00
|
|
|
/// Update dialog before showing it
|
|
|
|
virtual void update();
|
2001-03-05 19:02:40 +00:00
|
|
|
/// Pointer to the actual instantiation of the xforms form
|
2000-10-24 13:13:59 +00:00
|
|
|
virtual FL_FORM * form() const;
|
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
|
|
|
|
|
|
|
///
|
|
|
|
FD_form_tabular_create * build_tabular_create();
|
|
|
|
|
|
|
|
/// Real GUI implementation.
|
2001-03-15 13:37:04 +00:00
|
|
|
boost::scoped_ptr<FD_form_tabular_create> dialog_;
|
|
|
|
/// The ButtonController
|
|
|
|
ButtonController<OkApplyCancelReadOnlyPolicy, xformsBC> bc_;
|
2000-10-24 13:13:59 +00:00
|
|
|
};
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
xformsBC & FormTabularCreate::bc()
|
|
|
|
{
|
|
|
|
return bc_;
|
|
|
|
}
|
2000-10-24 13:13:59 +00:00
|
|
|
#endif
|