X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlabel.h;h=06aaa043b86b5b0011a503148861e288d8e0494d;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=7fcb8ef91cdfe38e6c7597cbcee1846f63e909a0;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/insets/insetlabel.h b/src/insets/insetlabel.h index 7fcb8ef91c..06aaa043b8 100644 --- a/src/insets/insetlabel.h +++ b/src/insets/insetlabel.h @@ -4,53 +4,49 @@ * * LyX, The Document Processor * - * Copyright (C) 1995 Matthias Ettrich - * 1995-1998 The LyX Team + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2001 The LyX Team * - *======================================================*/ + * ====================================================== */ -#ifndef _INSET_LABEL_H -#define _INSET_LABEL_H +#ifndef INSET_LABEL_H +#define INSET_LABEL_H #ifdef __GNUG__ #pragma interface #endif #include "insetcommand.h" -#include "LString.h" -/// -class InsetLabel: public InsetCommand { +class InsetLabel : public InsetCommand { public: /// - InsetLabel(LString 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); + } /// - ~InsetLabel(); + string const getScreenLabel(Buffer const *) const { return getContents(); } /// - Inset* Clone(); + EDITABLE editable() const { return IS_EDITABLE; } /// - Inset::Code LyxCode() const { return Inset::LABEL_CODE; } + Inset::Code lyxCode() const { return Inset::LABEL_CODE; } /// - int GetNumberOfLabels() const; + void edit(BufferView *, int, int, unsigned int); /// - LString getLabel(int) const; + void edit(BufferView * bv, bool front = true); /// - LString getScreenLabel() const { return getContents(); } + std::vector const getLabelList() const; /// - unsigned char Editable() const { return 0; } + int latex(Buffer const *, std::ostream &, + bool fragile, bool free_spc) const; /// - int Latex(FILE *file, signed char fragile); + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int Latex(LString &file, signed char fragile); + int linuxdoc(Buffer const *, std::ostream &) const; /// - int Linuxdoc(LString &file); - /// - int DocBook(LString &file); -private: - /// This function escapes 8-bit characters - LString escape(LString const &) const; + int docbook(Buffer const *, std::ostream &) const; }; #endif