]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.h
de.po
[lyx.git] / src / insets / InsetIndex.h
index 8ac0e5e125c1bfe069753405f0fc33b7efa16092..01bf7096b08b5d0b8f074b92103df8f2d2eb53e2 100644 (file)
@@ -13,7 +13,7 @@
 #define INSET_INDEX_H
 
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 #include "InsetCommand.h"
 
 
@@ -35,7 +35,7 @@ public:
 
 /** Used to insert index labels
   */
-class InsetIndex : public InsetCollapsable {
+class InsetIndex : public InsetCollapsible {
 public:
        ///
        InsetIndex(Buffer *, InsetIndexParams const &);
@@ -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;
        ///
@@ -58,10 +58,10 @@ private:
        void read(Lexer & lex);
        ///
        int docbook(odocstream &, OutputParams const &) const;
-       /// 
+       ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
        bool showInsetDialog(BufferView *) 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;
@@ -100,15 +103,17 @@ public:
        ///
        InsetCode lyxCode() const { return INDEX_PRINT_CODE; }
        ///
-       int latex(odocstream &, OutputParams const &) const;
-       /// 
+       void latex(otexstream &, OutputParams const &) const;
+       ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
-       docstring contextMenuName() const;
+       void updateBuffer(ParIterator const & it, UpdateType);
+       ///
+       std::string contextMenuName() const;
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///