]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlTabularCreate.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlTabularCreate.h
index b7b0e38267b1ac0346f30ff18b514fd98d098915..4382b54af981d69e57279de8c02b37e0c866538b 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /* This file is part of
  * ======================================================
  * 
@@ -13,6 +14,8 @@
 #ifndef CONTROLTABULARCREATE_H
 #define CONTROLTABULARCREATE_H
 
+#include <utility>
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -25,8 +28,11 @@ class ControlTabularCreate : public ControlDialog<ControlConnectBD> {
 public:
        /// 
        ControlTabularCreate(LyXView &, Dialogs &);
+       typedef std::pair<unsigned int, unsigned int> rowsCols;
+
        ///
-       string & params() const;
+       rowsCols & params();
 
 private:
        /// Apply from dialog
@@ -34,11 +40,9 @@ private:
 
        /// set the params before show or update
        virtual void setParams();
-       /// clean-up on hide.
-       virtual void clearParams();
     
-       ///
-       string * params_;
+       /// rows, cols params
+       rowsCols params_;
 };
 
 #endif // CONTROLTABULARCREATE_H