]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetIndex.h
Make the generation of children's tocs more robust
[features.git] / src / insets / InsetIndex.h
index 40b450be0b49e4be77d41c05d47037c221cbca25..80d8149bc4cab58a93814baafe6eef8270800343 100644 (file)
@@ -49,7 +49,7 @@ private:
        ///
        InsetCode lyxCode() const { return INDEX_CODE; }
        ///
-       docstring name() const { return from_ascii("Index"); }
+       docstring layoutName() const { return from_ascii("Index"); }
        ///
        ColorCode labelColor() const;
        ///
@@ -71,7 +71,8 @@ private:
        /// should paragraph indendation be omitted in any case?
        bool neverIndent() const { return true; }
        ///
-       void addToToc(DocIterator const &) const;
+       void addToToc(DocIterator const & di, bool output_active,
+                                 UpdateType utype, TocBackend & backend) const;
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
@@ -79,9 +80,11 @@ private:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        ///
        Inset * clone() const { return new InsetIndex(*this); }
+       /// Is the content of this inset part of the immediate text sequence?
+       bool isPartOfTextSequence() const { return false; }
 
        ///
        friend class InsetIndexParams;
@@ -108,7 +111,7 @@ public:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///