X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormDocument.h;h=5b28972e5ca074c11c7af8c34461ea5006b70dd9;hb=06c830f488023d8ff5c22cccee22c4effc8f65c3;hp=2ac54e80dac006070de4b924a803ca582d864a32;hpb=4505b2f7b35d2d1e7f48128c41d3797dbd53fe97;p=lyx.git diff --git a/src/frontends/xforms/FormDocument.h b/src/frontends/xforms/FormDocument.h index 2ac54e80da..5b28972e5c 100644 --- a/src/frontends/xforms/FormDocument.h +++ b/src/frontends/xforms/FormDocument.h @@ -4,7 +4,7 @@ * * LyX, The Document Processor * - * Copyright (C) 2000 The LyX Team. + * Copyright 2000-2001 The LyX Team. * * @author Jürgen Vigna * @@ -13,15 +13,15 @@ #ifndef FORM_DOCUMENT_H #define FORM_DOCUMENT_H -#include "FormBase.h" #include +#include #ifdef __GNUG_ #pragma interface #endif -class LyXView; -class Dialogs; +#include "FormBaseDeprecated.h" + class Combox; class BufferParams; @@ -32,19 +32,15 @@ struct FD_form_doc_language; struct FD_form_doc_options; struct FD_form_doc_bullet; -/** This class provides an XForms implementation of the FormDocument Popup. +/** This class provides an XForms implementation of the FormDocument dialog. The table-layout-form here changes values for latex-tabulars @author Jürgen Vigna */ class FormDocument : public FormBaseBD { public: - /// #FormDocument x(Communicator ..., Popups ...);# FormDocument(LyXView *, Dialogs *); /// - ~FormDocument(); - /// static void ComboInputCB(int, void *, Combox *); - private: /// enum State { @@ -79,6 +75,8 @@ private: /// BULLETBMTABLE }; + /// Pointer to the actual instantiation of the ButtonController. + virtual xformsBC & bc(); /** Redraw the form (on receipt of a Signal indicating, for example, that the xforms colours have been re-mapped). */ virtual void redraw(); @@ -86,11 +84,11 @@ private: virtual void build(); /// Filter the inputs virtual bool input( FL_OBJECT *, long ); - /// Update the popup. + /// Update the dialog. virtual void update(); - /// Apply from popup + /// Apply from dialog virtual void apply(); - /// Cancel from popup + /// Cancel from dialog virtual void cancel(); /// @@ -139,7 +137,7 @@ private: /// void bullets_apply(); - /// Typedefinitions from the fdesign produced Header file + /// Fdesign generated methods FD_form_tabbed_document * build_tabbed_document(); /// FD_form_doc_paper * build_doc_paper(); @@ -153,17 +151,17 @@ private: FD_form_doc_bullet * build_doc_bullet(); /// Real GUI implementation. - FD_form_tabbed_document * dialog_; + boost::scoped_ptr dialog_; /// - FD_form_doc_paper * paper_; + boost::scoped_ptr paper_; /// - FD_form_doc_class * class_; + boost::scoped_ptr class_; /// - FD_form_doc_language * language_; + boost::scoped_ptr language_; /// - FD_form_doc_options * options_; + boost::scoped_ptr options_; /// - FD_form_doc_bullet * bullets_; + boost::scoped_ptr bullets_; /// int ActCell; /// @@ -175,9 +173,18 @@ private: /// FL_OBJECT * fbullet; /// - Combox * combo_language; + boost::scoped_ptr combo_language; /// - Combox * combo_doc_class; + boost::scoped_ptr combo_doc_class; + /// The ButtonController + ButtonController bc_; }; + +inline +xformsBC & FormDocument::bc() +{ + return bc_; +} + #endif