]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormTabular.h
use exclicit temp var
[lyx.git] / src / frontends / xforms / FormTabular.h
index bd890000d7176c597a830056f30074acf65a5838..08002a16b1df8b86460f3a981471f8ff4af7bdc0 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+ *          Copyright 1995-2001 The LyX Team.
  *
  *======================================================*/
 /* FormTabular.h
 #ifndef FORMTABULAR_H
 #define FORMTABULAR_H
 
+#include <boost/smart_ptr.hpp>
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "FormInset.h"
 
 class InsetTabular;
@@ -31,10 +37,10 @@ class FormTabular : public FormInset {
 public:
        /// #FormTabular x(LyXFunc ..., Dialogs ...);#
        FormTabular(LyXView *, Dialogs *);
-       ///
-       ~FormTabular();
 
 private:
+       /// 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();
@@ -53,6 +59,8 @@ private:
        virtual bool input(FL_OBJECT *, long);
        /// Pointer to the actual instantiation of the xforms form
        virtual FL_FORM * form() const;
+       ///
+       virtual int checkLongtableOptions(FL_OBJECT *, string &);
 
        /// Fdesign generated methods
        FD_form_tabular * build_tabular();
@@ -66,20 +74,30 @@ private:
        FD_form_longtable_options * build_longtable_options();
 
        /// Real GUI implementation.
-       FD_form_tabular * dialog_;
+       boost::scoped_ptr<FD_form_tabular> dialog_;
        ///
-       FD_form_tabular_options * tabular_options_;
+       boost::scoped_ptr<FD_form_tabular_options> tabular_options_;
        ///
-       FD_form_column_options * column_options_;
+       boost::scoped_ptr<FD_form_column_options> column_options_;
        ///
-       FD_form_cell_options * cell_options_;
+       boost::scoped_ptr<FD_form_cell_options> cell_options_;
        ///
-       FD_form_longtable_options * longtable_options_;
+       boost::scoped_ptr<FD_form_longtable_options> longtable_options_;
 
        /// pointer to the inset passed through showInset
        InsetTabular * inset_;
        ///
        int actCell_;
+       /// The ButtonController
+       ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
+       /// if we are applying stuff during a close of the dialog
+       bool closing_;
 };
 
+
+inline
+xformsBC & FormTabular::bc()
+{
+       return bc_;
+}
 #endif