]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / inset.h
index be38ca8cf18ecc98e2fe28ccc8363da2e3d59731..e7f4ea68f679a9c6aab330145dc63d010fdfb1a4 100644 (file)
@@ -18,6 +18,9 @@
 #include "insetbase.h"
 #include "dimension.h"
 
+
+namespace lyx {
+
 class LColor_color;
 
 
@@ -40,9 +43,9 @@ 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);
        ///
@@ -60,7 +63,7 @@ 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.
         */
@@ -79,4 +82,7 @@ public:
        operator InsetBase::Code() const { return val_; }
 };
 
+
+} // namespace lyx
+
 #endif