]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.h
Stupid bug fix.
[lyx.git] / src / insets / InsetIndex.h
index d25657e674cd7af79be39cbe1e1085e9c6aa8229..092311c64c269254bbc3fd009dab54d39f6a1c32 100644 (file)
 
 namespace lyx {
 
-class LaTeXFeatures;
-
 /** Used to insert index labels
   */
 class InsetIndex : public InsetCollapsable {
 public:
        ///
        InsetIndex(Buffer const &);
+private:
        ///
-       InsetIndex(InsetIndex const &);
-       ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
        InsetCode lyxCode() const { return INDEX_CODE; }
        ///
@@ -39,13 +36,14 @@ public:
        void write(std::ostream & os) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
+       ///
+       int latex(odocstream &, OutputParams const &) const;
        /// should paragraph indendation be omitted in any case?
        bool neverIndent() const { return true; }
        ///
-       void addToToc(ParConstIterator const &) const;
-private:
+       void addToToc(DocIterator const &);
        ///
-       Inset * clone() const;
+       Inset * clone() const { return new InsetIndex(*this); }
 };
 
 
@@ -53,6 +51,15 @@ class InsetPrintIndex : public InsetCommand {
 public:
        ///
        InsetPrintIndex(InsetCommandParams const &);
+
+       ///
+       static ParamInfo const & findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "printindex"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "printindex"; }
+private:
        /// Updates needed features for this inset.
        void validate(LaTeXFeatures & features) const;
        ///
@@ -64,14 +71,7 @@ public:
        ///
        docstring screenLabel() const;
        ///
-       static ParamInfo const & findInfo(std::string const &);
-       ///
-       static std::string defaultCommand() { return "printindex"; };
-       ///
-       static bool isCompatibleCommand(std::string const & s) 
-               { return s == "printindex"; }
-private:
-       Inset * clone() const { return new InsetPrintIndex(params()); }
+       Inset * clone() const { return new InsetPrintIndex(*this); }
 };