namespace lyx {
-class LaTeXFeatures;
-
/** Used to insert index labels
*/
class InsetIndex : public InsetCollapsable {
public:
///
- InsetIndex(BufferParams const &);
- ///
- InsetIndex(InsetIndex const &);
+ InsetIndex(Buffer const &);
+private:
///
EDITABLE editable() const { return IS_EDITABLE; }
///
///
docstring name() const { return from_ascii("Index"); }
///
- void write(Buffer const & buf, std::ostream & os) const;
+ void write(std::ostream & os) const;
///
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int docbook(odocstream &, OutputParams const &) const;
/// should paragraph indendation be omitted in any case?
- bool neverIndent(Buffer const &) const { return true; }
+ bool neverIndent() const { return true; }
///
- void addToToc(Buffer const &, ParConstIterator const &) const;
-private:
+ void addToToc(ParConstIterator const &) const;
///
- virtual Inset * clone() const;
+ Inset * clone() const { return new InsetIndex(*this); }
};
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;
///
///
DisplayType display() const { return AlignCenter; }
///
- docstring const getScreenLabel(Buffer const &) const;
- ///
- static ParamInfo const & findInfo(std::string const &);
- ///
- static std::string defaultCommand() { return "printindex"; };
+ docstring screenLabel() const;
///
- static bool isCompatibleCommand(std::string const & s)
- { return s == "printindex"; }
-private:
- virtual Inset * clone() const {
- return new InsetPrintIndex(params());
- }
+ Inset * clone() const { return new InsetPrintIndex(*this); }
};