]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.h
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insettext.h
index e54ec3c309e9deb671913b631b1de75a230d31af..52f76e7e2c9c7f05b2a8360c47f0d6f72aa02d49 100644 (file)
@@ -75,14 +75,9 @@ public:
        explicit
        InsetText(InsetText const &);
        ///
-       //explicit
-       //InsetText(InsetText const &, bool same_id);
-       ///
        ~InsetText();
        ///
-       Inset * clone(Buffer const &) const;
-       ///
-       //Inset * clone(Buffer const &, bool same_id) const;
+       Inset * clone() const;
        ///
        InsetText & operator=(InsetText const & it);
        /// empty inset to empty par, or just mark as erased
@@ -92,11 +87,11 @@ public:
        ///
        void write(Buffer const *, std::ostream &) const;
        ///
-       void dimension(BufferView *, LyXFont const &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        int textWidth(BufferView *, bool fordraw = false) const;
        ///
-       void draw(BufferView *, LyXFont const &, int , float &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        void update(BufferView *, bool = false);
        ///
@@ -154,14 +149,10 @@ public:
        ///
        void init(InsetText const * ins);
        ///
-       //void init(InsetText const * ins, bool same_id);
-       ///
        void writeParagraphData(Buffer const *, std::ostream &) const;
        ///
        void setParagraphData(ParagraphList const &);
        ///
-       //void setParagraphData(ParagraphList const &, bool same_id);
-       ///
        void setText(string const &, LyXFont const &);
        ///
        void setAutoBreakRows(bool);