X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormMinipage.h;h=f905c1a2c9e33ef05a9588e8a4692a9a47637154;hb=3e39bef2c13125023f3b72532d90575bbe307335;hp=bba936b244a7f0a9ad5a8ddba7c59ecac097add9;hpb=3de10d0174eb3859b0080026fbf39e9467da8b26;p=lyx.git diff --git a/src/frontends/xforms/FormMinipage.h b/src/frontends/xforms/FormMinipage.h index bba936b244..f905c1a2c9 100644 --- a/src/frontends/xforms/FormMinipage.h +++ b/src/frontends/xforms/FormMinipage.h @@ -1,77 +1,44 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. +/** + * \file FormMinipage.h + * Copyright 2001 the LyX Team + * Read the file COPYING * - *======================================================*/ -/* FormMinipage.h - * FormMinipage Interface Class + * \author Jürgen Vigna, jug@sad.it */ #ifndef FORMMINIPAGE_H #define FORMMINIPAGE_H -#include - #ifdef __GNUG__ #pragma interface #endif -#include "FormInset.h" -#include "xformsBC.h" +#include "FormBase.h" -class LyXView; -class Dialogs; -class InsetMinipage; +class ControlMinipage; struct FD_form_minipage; -/** This class provides an XForms implementation of the FormMinipage +/** This class provides an XForms implementation of the Minipage Dialog. */ -class FormMinipage : public FormInset { +class FormMinipage + : public FormCB > { public: - /// #FormMinipage x(LyXView ..., Dialogs ...);# - FormMinipage(LyXView *, Dialogs *); - + /// + FormMinipage(ControlMinipage &); private: - /// Pointer to the actual instantiation of the ButtonController. - virtual xformsBC & bc(); - /// Connect signals etc. - virtual void connect(); - - /// Slot launching dialog to an existing inset - void showInset(InsetMinipage *); - /// Slot launching dialog to an existing inset - void updateInset(InsetMinipage *); - /// Apply from dialog + /// Set the Params variable for the Controller. virtual void apply(); - /// Update dialog before showing it - virtual void update(); - /// Pointer to the actual instantiation of the xforms form - virtual FL_FORM * form() const; - /// Build the dialog + /// Build the dialog. virtual void build(); + /// Update dialog before/whilst showing it. + virtual void update(); + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); - /// + /// Fdesign generated method FD_form_minipage * build_minipage(); - - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// The ButtonController - ButtonController bc_; - - /// pointer to the inset passed through showInset - InsetMinipage * inset_; }; - -inline -xformsBC & FormMinipage::bc() -{ - return bc_; -} -#endif +#endif // FORMMINIPAGE_H