]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.h
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / inseterror.h
index 93711de22e4e339728ce0df91e5e9903fbe40b9c..bbc787631d985bbe84c5281ef77151e57548cf43 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "inset.h"
 #include "LString.h"
+#include "dimension.h"
 
 /** Used for error messages from LaTeX runs.
 
@@ -24,22 +25,22 @@ class InsetError : public Inset {
 public:
        ///
        explicit
-       InsetError(string const &, bool same_id = false);
+       InsetError(string const &);
        ///
        ~InsetError();
        ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       void dimension(BufferView *, LyXFont const &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       void draw(BufferView *, LyXFont const &, int, float &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        void write(Buffer const *, std::ostream &) const {}
        ///
        void read(Buffer const *, LyXLex &) {}
        ///
-       int latex(Buffer const *, std::ostream &, LatexRunParams const &,
-                 bool, bool) const { return 0; }
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const { return 0; }
        ///
        int ascii(Buffer const *, std::ostream &, int) const { return 0; }
        ///
@@ -53,8 +54,8 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const {
-               return new InsetError(contents, same_id);
+       Inset * clone() const {
+               return new InsetError(contents);
        }
        ///
        Inset::Code lyxCode() const { return Inset::ERROR_CODE; }
@@ -65,5 +66,7 @@ public:
 private:
        ///
        string contents;
+       ///
+       mutable Dimension dim_;
 };
 #endif