]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.h
Add ObsoletedBy tag to InsetLayout
[lyx.git] / src / insets / InsetLayout.h
index 2ef6be4fdfb30f4a47dde10ebdcb9c7d6dbdf227..cf5647dbc39b1132e8719acbf9573b7f15197b18 100644 (file)
@@ -175,6 +175,8 @@ public:
        bool isDisplay() const { return display_; }
        ///
        bool forcelocalfontswitch() const { return forcelocalfontswitch_; }
+       ///
+       docstring const & obsoleted_by() const { return obsoleted_by_; }
 private:
        ///
        void makeDefaultCSS() const;
@@ -277,6 +279,11 @@ private:
        bool display_;
        ///
        bool forcelocalfontswitch_;
+       /** Name of an insetlayout that has replaced this insetlayout.
+           This is used to rename an insetlayout, while keeping backward
+           compatibility
+       */
+       docstring obsoleted_by_;
        ///
        Layout::LaTeXArgMap latexargs_;
        ///