]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insettext.h
index d11bc97c887063a171f229a746a4d0a9ab9eb740..3b21200f3dfecd2387e8004f227bf51ab27f265b 100644 (file)
@@ -43,6 +43,9 @@ public:
        explicit InsetText(BufferParams const &);
        ///
        InsetText();
+       ///
+       virtual ~InsetText() {}
+
        /// empty inset to empty par
        void clear();
        ///
@@ -50,7 +53,7 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        /// draw inset selection
@@ -98,14 +101,14 @@ public:
                return (i == 0) ? const_cast<LyXText*>(&text_) : 0;
        }
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+       virtual bool getStatus(LCursor & cur, FuncRequest const & cmd, FuncStatus &) const;
 
        /// set the change for the entire inset
        void setChange(Change const & change);
        /// accept the changes within the inset
-       void acceptChanges();
+       void acceptChanges(BufferParams const & bparams);
        /// reject the changes within the inset
-       void rejectChanges();
+       void rejectChanges(BufferParams const & bparams);
 
        /// append text onto the existing text
        void appendParagraphs(Buffer * bp, ParagraphList &);
@@ -133,7 +136,7 @@ public:
        ///
        InsetText(InsetText const &);
        ///
-       bool Wide() const { return wide_inset_; }
+       virtual bool wide() const { return wide_inset_; }
        ///
        void setWide(bool wide_inset) { wide_inset_ = wide_inset; }
 
@@ -156,14 +159,14 @@ private:
        ///
        mutable pit_type old_pit;
        ///
-       static int border_;
-       ///
        bool wide_inset_;
 public:
        ///
        mutable LyXText text_;
        ///
        mutable LyXFont font_;
+       ///
+       static int border_;
 };
 
 } // namespace lyx