]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
* BufferParams:
[lyx.git] / src / insets / inset.h
index 3344b8b2e8871b0a181ea6e0aa5f73f2e7b0bac7..a6f6a05a1b4eee6822098524aa0bf22c7bb17ddd 100644 (file)
 #include "insetbase.h"
 #include "dimension.h"
 
+
+namespace lyx {
+
 class LColor_color;
-class UpdatableInset;
 
 
 /// Insets
@@ -28,7 +30,7 @@ public:
        ///
        enum {
                ///
-               TEXT_TO_INSET_OFFSET = 2
+               TEXT_TO_INSET_OFFSET = 4
        };
 
        ///
@@ -41,31 +43,25 @@ public:
        int width() const;
 
        ///
-       void setInsetName(std::string const & s) { name_ = s; }
+       void setInsetName(docstring const & s) { name_ = s; }
        ///
-       std::string const & getInsetName() const { return name_; }
+       virtual docstring const & getInsetName() const { return name_; }
        ///
        virtual void setBackgroundColor(LColor_color);
        ///
        LColor_color backgroundColor() const;
        /// set x/y drawing position cache
        void setPosCache(PainterInfo const &, int, int) const;
-       /// returns the actual scroll-value
-       virtual int scroll(bool recursive = true) const;
 
 protected:
        ///
        InsetOld(InsetOld const & in);
-       ///
-       mutable int scx;
-       ///
-       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.
         */
@@ -84,4 +80,7 @@ public:
        operator InsetBase::Code() const { return val_; }
 };
 
+
+} // namespace lyx
+
 #endif