]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbutton.h
add parOwner to Inset, optimize LyXText::workWidth, fix memory corruption with lots...
[lyx.git] / src / insets / insetbutton.h
index 917b57ff85eb616587227ddc8077494f1e9edd2e..26e2952e713c7d74d21f9899f526a3b17ce7a9ae 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -16,7 +16,7 @@
 #pragma interface
 #endif
 
-#include "lyxinset.h"
+#include "inset.h"
 #include "LString.h"
 
 /** Used to provide an inset that looks like a button.
 class InsetButton: public Inset {
 public:
        ///
-       InsetButton();
-
-       ///
-       int ascent(Painter &, LyXFont const &) const;
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       int descent(Painter &, LyXFont const &) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int width(Painter &, LyXFont const &) const;
+       int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
 
 protected:
        /// This should provide the text for the button
-       virtual string getScreenLabel() const = 0;
+       virtual string const getScreenLabel(Buffer const *) const = 0;
 };
 
 #endif
-