]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlMinipage.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlMinipage.C
index 3ac3f38b8df5b3296c18c41c31ff884ce026fc93..7c7f2ee9406f749dbcfec73ecf2155cbcd443bea 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -24,6 +23,7 @@
 #include "Dialogs.h"
 #include "LyXView.h"
 #include "buffer.h"
+#include "BufferView.h"
 
 using std::vector;
 using SigC::slot;
@@ -71,14 +71,16 @@ MinipageParams::MinipageParams(InsetMinipage const & inset)
        : width(inset.width()), pos(inset.pos())
 {}
 
-bool MinipageParams::operator==(MinipageParams const & o) const
+
+bool operator==(MinipageParams const & p1, MinipageParams const & p2)
 {
-       return (width == o.width && pos == o.pos);
+       return (p1.width == p2.width && p1.pos == p2.pos);
 }
 
-bool MinipageParams::operator!=(MinipageParams const & o) const
+
+bool operator!=(MinipageParams const & p1, MinipageParams const & p2)
 {
-       return !(*this == o);
+       return !(p1 == p2);
 }
 
 namespace minipage {
@@ -87,7 +89,7 @@ vector<string> const getUnits()
 {
        vector<string> units;
        const char * str;
-       for(int i=0;(str=stringFromUnit(i));++i)
+       for(int i=0; (str = stringFromUnit(i)); ++i)
            units.push_back(str);
 
        return units;