X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlabel.h;h=06aaa043b86b5b0011a503148861e288d8e0494d;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=be251cb1defbba005bcba9d5e1e40b36fc529e6d;hpb=def72111a5ac739cf8c5377a67adeee64c37e1ab;p=lyx.git diff --git a/src/insets/insetlabel.h b/src/insets/insetlabel.h index be251cb1de..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-1999 The LyX Team + * Copyright 1995-2001 The LyX Team * * ====================================================== */ @@ -17,45 +17,36 @@ #endif #include "insetcommand.h" -#include "LString.h" -/// class InsetLabel : public InsetCommand { public: /// - InsetLabel(string const & cmd); + InsetLabel(InsetCommandParams const &, bool same_id = false); /// - InsetLabel() : InsetCommand("label") {} + virtual Inset * clone(Buffer const &, bool same_id = false) const { + return new InsetLabel(params(), same_id); + } /// - Inset * Clone() const; + string const getScreenLabel(Buffer const *) 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(); } + void edit(BufferView * bv, bool front = true); /// - unsigned char Editable() const { return 0; } + std::vector const getLabelList() const; /// - int Latex(ostream &, signed char fragile) const; -#ifndef USE_OSTREAM_ONLY + int latex(Buffer const *, std::ostream &, + bool fragile, bool free_spc) const; /// - int Latex(string & file, signed char fragile) const; + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int Linuxdoc(string & file) const; + int linuxdoc(Buffer const *, std::ostream &) const; /// - int DocBook(string & file) const; -#else - /// - int Linuxdoc(ostream &) const; - /// - int DocBook(ostream &) const; -#endif -private: - /// This function escapes 8-bit characters - string escape(string const &) const; + int docbook(Buffer const *, std::ostream &) const; }; #endif