]> 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 b5a4531f17083cf87eb62abb39cfe2cb4bce8cb8..3b21200f3dfecd2387e8004f227bf51ab27f265b 100644 (file)
@@ -43,6 +43,9 @@ public:
        explicit InsetText(BufferParams const &);
        ///
        InsetText();
+       ///
+       virtual ~InsetText() {}
+
        /// empty inset to empty par
        void clear();
        ///
@@ -98,7 +101,7 @@ 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);
@@ -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