namespace lyx {
-class LaTeXFeatures;
-
/** Used to insert index labels
*/
class InsetIndex : public InsetCollapsable {
public:
///
InsetIndex(Buffer const &);
- ///
- InsetIndex(InsetIndex const &);
+private:
///
EDITABLE editable() const { return IS_EDITABLE; }
///
bool neverIndent() const { return true; }
///
void addToToc(ParConstIterator const &) const;
-private:
///
- 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;
///
///
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); }
};