]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / inset.C
index ef46cd2406ce3d107e117606a01c08a60a018312..5f0b633794979a5e7b0c6f9fb2c615067bc68579 100644 (file)
@@ -14,7 +14,6 @@
 #include <config.h>
 
 #include "inset.h"
-#include "updatableinset.h"
 
 #include "BufferView.h"
 #include "debug.h"
 #include "metricsinfo.h"
 #include "coordcache.h"
 
+
+namespace lyx {
+
 using std::string;
 
 
 InsetOld::InsetOld()
-       : scx(0),
-         //background_color_(LColor::inherit)
+       : //background_color_(LColor::inherit)
          background_color_(LColor::background)
 {}
 
 
 InsetOld::InsetOld(InsetOld const & in)
-       : InsetBase(in), scx(0), name_(in.name_),
+       : InsetBase(in), name_(in.name_),
          background_color_(in.background_color_)
 {}
 
@@ -70,14 +71,11 @@ int InsetOld::width() const
 }
 
 
-int InsetOld::scroll(bool) const
+void InsetOld::setPosCache(PainterInfo const & pi, int x, int y) const
 {
-       return scx;
+       //lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;
+       pi.base.bv->coordCache().insets().add(this, x, y);
 }
 
 
-void InsetOld::setPosCache(PainterInfo const &, int x, int y) const
-{
-       //lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;
-       theCoords.insets().add(this, x, y);
-}
+} // namespace lyx