2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 Matthias Ettrich
8 * 1995-1998 The LyX Team
10 *======================================================*/
12 #ifndef _INSET_LABEL_H
13 #define _INSET_LABEL_H
19 #include "insetcommand.h"
23 class InsetLabel: public InsetCommand {
26 InsetLabel(LString const & cmd);
28 InsetLabel() : InsetCommand("label") {;}
34 Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
36 int GetNumberOfLabels() const;
38 LString getLabel(int) const;
40 LString getScreenLabel() const { return getContents(); }
42 unsigned char Editable() const { return 0; }
44 int Latex(FILE *file, signed char fragile);
46 int Latex(LString &file, signed char fragile);
48 int Linuxdoc(LString &file);
50 int DocBook(LString &file);
52 /// This function escapes 8-bit characters
53 LString escape(LString const &) const;