* ======================================================
*
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team
*
class InsetLabel : public InsetCommand {
public:
///
- InsetLabel(InsetCommandParams const &);
+ InsetLabel(InsetCommandParams const &, bool same_id = false);
+ ///
+ virtual Inset * clone(Buffer const &, bool same_id = false) const {
+ return new InsetLabel(params(), same_id);
+ }
///
- Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
+ string const getScreenLabel(Buffer const *) const { return getContents(); }
///
- string const getScreenLabel() const { return getContents(); }
+ EDITABLE editable() const { return IS_EDITABLE; }
///
- EDITABLE Editable() const { return IS_EDITABLE; }
+ Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
///
- Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+ void edit(BufferView *, int, int, mouse_button::state);
///
- void Edit(BufferView *, int, int, unsigned int);
+ void edit(BufferView * bv, bool front = true);
///
std::vector<string> const getLabelList() const;
///
- int Latex(Buffer const *, std::ostream &,
+ int latex(Buffer const *, std::ostream &,
bool fragile, bool free_spc) const;
///
- int Ascii(Buffer const *, std::ostream &, int linelen) const;
+ int ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int Linuxdoc(Buffer const *, std::ostream &) const;
+ int linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(Buffer const *, std::ostream &) const;
-private:
- /// This function escapes 8-bit characters
- string const escape(string const &) const;
+ int docbook(Buffer const *, std::ostream &) const;
};
#endif