X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetbutton.h;h=26e2952e713c7d74d21f9899f526a3b17ce7a9ae;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=056c3fe98da65b53f0973d38a95e09472810cc54;hpb=b744c6ed9f4dab51e47e4a9bb0331f1740aad335;p=lyx.git diff --git a/src/insets/insetbutton.h b/src/insets/insetbutton.h index 056c3fe98d..26e2952e71 100644 --- a/src/insets/insetbutton.h +++ b/src/insets/insetbutton.h @@ -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. @@ -24,21 +24,17 @@ 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(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 -