]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / inset.C
index 430dca4c75ec27d7872d3ea3402fe8ab5819a5ae..c07a0f384cb3fc9ebdb6d92aa8c88893e660df59 100644 (file)
@@ -122,6 +122,14 @@ void UpdatableInset::ToggleInsetCursor(BufferView *)
 {
 }
 
+void UpdatableInset::ShowInsetCursor(BufferView *)
+{
+}
+
+void UpdatableInset::HideInsetCursor(BufferView *)
+{
+}
+
 
 void UpdatableInset::Edit(BufferView * bv, int, int, unsigned int)
 {
@@ -134,11 +142,12 @@ void UpdatableInset::Edit(BufferView * bv, int, int, unsigned int)
 
 
 void UpdatableInset::draw(Painter &, LyXFont const &,
-                         int baseline, float & x) const
+                         int /* baseline */, float & x) const
 {
     if (scx) x += float(scx);
-    top_x = int(x);
-    top_baseline = baseline;
+// ATTENTION: this is not good doing here
+//    top_x = int(x);
+//    top_baseline = baseline;
 }
 
 
@@ -170,10 +179,9 @@ UpdatableInset::LocalDispatch(BufferView *, int, string const &)
     return UNDISPATCHED; 
 }
 
-int UpdatableInset::getMaxWidth(Painter & pain) const
+int UpdatableInset::getMaxWidth(Painter & pain, UpdatableInset const *inset) const
 {
-    if (owner_)
-        return owner_->getMaxWidth(pain);
+    if (owner())
+        return static_cast<UpdatableInset*>(owner())->getMaxWidth(pain, inset);
     return pain.paperWidth();
 }
-