* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team
+ * Copyright 1995-2000 The LyX Team
*
* ====================================================== */
#endif
#include "insetcommand.h"
-#include "LString.h"
-///
-class InsetLabel: public InsetCommand {
+class InsetLabel : public InsetCommand {
public:
///
- InsetLabel(string const & cmd);
+ InsetLabel(InsetCommandParams const &);
///
- InsetLabel() : InsetCommand("label") {}
+ Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
///
- InsetLabel * Clone() const;
+ string const getScreenLabel() const { return getContents(); }
///
- Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
- ///
- int GetNumberOfLabels() const;
+ EDITABLE Editable() const { return IS_EDITABLE; }
///
- string getLabel(int) const;
+ Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
///
- string getScreenLabel() const { return getContents(); }
+ void Edit(BufferView *, int, int, unsigned int);
///
- unsigned char Editable() const { return 0; }
+ std::vector<string> const getLabelList() const;
///
- int Latex(FILE * file, signed char fragile);
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
///
- int Latex(string & file, signed char fragile);
+ int Ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int Linuxdoc(string & file);
+ int Linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(string & file);
+ 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