]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderButton.h
InsetPhantom::latex(): use a switch
[lyx.git] / src / insets / RenderButton.h
index a828054c821a8819fb927afde2ab600f38464a63..5e6ad35a087374886b51b1a3a67e735bab66dc67 100644 (file)
@@ -13,7 +13,7 @@
 #define RENDERBUTTON_H
 
 #include "RenderBase.h"
-#include "box.h"
+#include "Box.h"
 #include "support/docstring.h"
 
 
@@ -25,10 +25,10 @@ class RenderButton : public RenderBase
 public:
        RenderButton();
 
-       std::auto_ptr<RenderBase> clone(InsetBase const *) const;
+       RenderBase * clone(Inset const *) const;
 
        /// compute the size of the object returned in dim
-       virtual bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// draw inset and update (xo, yo)-cache
        virtual void draw(PainterInfo & pi, int x, int y) const;