X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlabel.h;h=06aaa043b86b5b0011a503148861e288d8e0494d;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=38b7c534b4fa7a1f5c7a7e0bdf74907e14130078;hpb=d0655188bcdbaeccc1fbcbb5ab997841da7ea6e1;p=lyx.git diff --git a/src/insets/insetlabel.h b/src/insets/insetlabel.h index 38b7c534b4..06aaa043b8 100644 --- a/src/insets/insetlabel.h +++ b/src/insets/insetlabel.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team + * Copyright 1995-2001 The LyX Team * * ====================================================== */ @@ -21,31 +21,32 @@ class InsetLabel : public InsetCommand { public: /// - InsetLabel(InsetCommandParams const &); + InsetLabel(InsetCommandParams const &, bool same_id = false); /// - Inset * Clone() const { return new InsetLabel(params()); } + virtual Inset * clone(Buffer const &, bool same_id = false) const { + return new InsetLabel(params(), same_id); + } /// - string const getScreenLabel() const { return getContents(); } + string const getScreenLabel(Buffer const *) 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, unsigned int); + void edit(BufferView *, int, int, unsigned int); + /// + void edit(BufferView * bv, bool front = true); /// std::vector const getLabelList() const; /// - int Latex(Buffer const *, std::ostream &, - bool fragile, bool free_spc) const; + 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