]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / inset.h
index 4cbf3e471938bb963e15c011cb5b945dbd11526e..edd4d01fffa275972c821d57ccb392573001bd22 100644 (file)
@@ -23,7 +23,6 @@
 #include <vector>
 
 class LyXFont;
-class Dimension;
 class Buffer;
 class Painter;
 class LatexRunParams;
@@ -35,8 +34,6 @@ class FuncRequest;
 class WordLangTuple;
 class ParagraphList;
 
-struct LaTeXFeatures;
-
 namespace grfx {
        class PreviewLoader;
 }
@@ -83,8 +80,6 @@ public:
                ///
                GRAPHICS_CODE,
                ///
-               PARENT_CODE,
-               ///
                BIBITEM_CODE,
                ///
                BIBTEX_CODE,
@@ -160,15 +155,11 @@ public:
        ///
        Inset(Inset const & in);
        ///
-       virtual void dimension(BufferView *, LyXFont const &, Dimension &) const = 0;
-       ///
        int ascent(BufferView *, LyXFont const &) const;
        ///
        int descent(BufferView *, LyXFont const &) const;
        ///
        int width(BufferView *, LyXFont const &) const;
-       ///
-       virtual void draw(BufferView *, LyXFont const &, int baseline, float & x) const = 0;
        /// update the inset representation
        virtual void update(BufferView *, bool = false)
                {}
@@ -198,8 +189,6 @@ public:
        virtual int linuxdoc(Buffer const *, std::ostream &) const = 0;
        ///
        virtual int docbook(Buffer const *, std::ostream &, bool) const = 0;
-       /// Updates needed features for this inset.
-       virtual void validate(LaTeXFeatures & features) const;
 
        /// returns LyX code associated with the inset. Used for TOC, ...)
        virtual Inset::Code lyxCode() const { return NO_CODE; }
@@ -209,7 +198,7 @@ public:
        }
 
        ///
-       virtual Inset * clone(Buffer const &) const = 0;
+       virtual Inset * clone() const = 0;
 
        /// returns true to override begin and end inset in file
        virtual bool directWrite() const;