#endif
#include "insetcommand.h"
-#include "LString.h"
-///
class InsetLabel : public InsetCommand {
public:
///
- explicit
- InsetLabel(string const & cmd);
+ InsetLabel(InsetCommandParams const &);
///
- InsetLabel() : InsetCommand("label") {}
+ Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
///
- Inset * Clone() const;
+ string const getScreenLabel() const { return getContents(); }
///
- Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+ EDITABLE Editable() const { return IS_EDITABLE; }
///
- int GetNumberOfLabels() const;
+ Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
///
- string getLabel(int) const;
+ void Edit(BufferView *, int, int, unsigned int);
///
- string getScreenLabel() const { return getContents(); }
+ std::vector<string> const getLabelList() const;
///
- EDITABLE Editable() const { return NOT_EDITABLE; }
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
///
- int Latex(std::ostream &, signed char fragile, bool free_spc) const;
+ int Ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int Linuxdoc(std::ostream &) const;
+ int Linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(std::ostream &) const;
+ int DocBook(Buffer const *, std::ostream &) const;
private:
/// This function escapes 8-bit characters
- string escape(string const &) const;
+ string const escape(string const &) const;
};
#endif