]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlMinipage.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlMinipage.h
index bc7222734d906306d6ac8dedc0ba0bc7ea8408f6..04fe73176672244a3f20a0079d0308daba07f2c6 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /* This file is part of
  * ======================================================
  * 
@@ -15,6 +16,8 @@
 #ifndef CONTROLMINIPAGE_H
 #define CONTROLMINIPAGE_H
 
+#include <vector>
+
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -30,22 +33,18 @@ struct MinipageParams {
        MinipageParams();
        ///
        MinipageParams(InsetMinipage const &);
-       ///
-       bool operator==(MinipageParams const &) const;
-       ///
-       bool operator!=(MinipageParams const &) const;
-       
        ///
        string width;
        ///
-       int widthp;
-       ///
        InsetMinipage::Position pos;
 };
 
 
-class InsetMinipage;
-class MinipageParams;
+///
+bool operator==(MinipageParams const &, MinipageParams const &);
+///
+bool operator!=(MinipageParams const &, MinipageParams const &);
+
 
 /** A controller for Minipage dialogs.
  */
@@ -59,8 +58,6 @@ private:
        virtual void applyParamsToInset();
        /// 
        virtual void applyParamsNoInset();
-       /// 
-       virtual void clearDaughterParams() {}
        /// get the parameters from the string passed to createInset.
        virtual MinipageParams const getParams(string const &)
                { return MinipageParams(); }
@@ -68,4 +65,11 @@ private:
        virtual MinipageParams const getParams(InsetMinipage const &);
 };
 
+/// Helper functions
+namespace minipage {
+
+       std::vector<string> const getUnits();
+
+} //  namespace minipage
+
 #endif