#include "insetcommand.h"
-struct LaTeXFeatures;
+
+namespace lyx {
+
+class LaTeXFeatures;
/** Used to insert index labels
*/
///
InsetIndex(InsetCommandParams const &);
///
- ~InsetIndex();
- ///
- virtual std::auto_ptr<InsetBase> clone() const {
- return std::auto_ptr<InsetBase>(new InsetIndex(params()));
- }
- ///
- dispatch_result localDispatch(FuncRequest const & cmd);
- ///
- string const getScreenLabel(Buffer const *) const;
+ docstring const getScreenLabel(Buffer const &) const;
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- InsetOld::Code lyxCode() const;
+ InsetBase::Code lyxCode() const;
///
- int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+ int docbook(Buffer const &, odocstream &,
+ OutputParams const &) const;
+private:
+ virtual std::auto_ptr<InsetBase> doClone() const {
+ return std::auto_ptr<InsetBase>(new InsetIndex(params()));
+ }
};
public:
///
InsetPrintIndex(InsetCommandParams const &);
- ///
- ~InsetPrintIndex();
- ///
- virtual std::auto_ptr<InsetBase> clone() const {
- return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
- }
- ///
- //dispatch_result localDispatch(FuncRequest const & cmd);
/// Updates needed features for this inset.
void validate(LaTeXFeatures & features) const;
///
EDITABLE editable() const { return NOT_EDITABLE; }
///
- InsetOld::Code lyxCode() const;
- ///
- string const getScreenLabel(Buffer const *) const;
- ///
- //virtual bool needFullRow() const { return true; }
+ InsetBase::Code lyxCode() const;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ bool display() const { return true; }
///
- void draw(PainterInfo & pi, int x, int y) const;
+ docstring const getScreenLabel(Buffer const &) const;
private:
- ///
- mutable unsigned int center_indent_;
+ virtual std::auto_ptr<InsetBase> doClone() const {
+ return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
+ }
};
+
+} // namespace lyx
+
#endif