]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
* BufferParams:
[lyx.git] / src / insets / inset.h
index 13a1109236ec78f1bd9acfe91e6f72bc9f166d16..a6f6a05a1b4eee6822098524aa0bf22c7bb17ddd 100644 (file)
@@ -30,7 +30,7 @@ public:
        ///
        enum {
                ///
-               TEXT_TO_INSET_OFFSET = 2
+               TEXT_TO_INSET_OFFSET = 4
        };
 
        ///
@@ -43,9 +43,9 @@ public:
        int width() const;
 
        ///
-       void setInsetName(std::string const & s) { name_ = s; }
+       void setInsetName(docstring const & s) { name_ = s; }
        ///
-       virtual std::string const & getInsetName() const { return name_; }
+       virtual docstring const & getInsetName() const { return name_; }
        ///
        virtual void setBackgroundColor(LColor_color);
        ///
@@ -56,14 +56,12 @@ public:
 protected:
        ///
        InsetOld(InsetOld const & in);
-       ///
-       mutable Dimension dim_;
 
 private:
        InsetOld & operator=(InsetOld const &) const;
 
        ///
-       std::string name_;
+       docstring name_;
        /** We store the LColor::color value as an int to get LColor.h out
         *  of the header file.
         */