X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlabel.h;h=62196b7d8014c01f28e986616a15847ae7db77c1;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=229103330c8240d734e0f3c2239f778c01d44878;hpb=0eccdd1c3613e5170deb77b22174dd0afde833e9;p=lyx.git diff --git a/src/insets/insetlabel.h b/src/insets/insetlabel.h index 229103330c..62196b7d80 100644 --- a/src/insets/insetlabel.h +++ b/src/insets/insetlabel.h @@ -4,13 +4,13 @@ * * LyX, The Document Processor * - * Copyright (C) 1995 Matthias Ettrich - * 1995-1998 The LyX Team + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2000 The LyX Team * - *======================================================*/ + * ====================================================== */ -#ifndef _INSET_LABEL_H -#define _INSET_LABEL_H +#ifndef INSET_LABEL_H +#define INSET_LABEL_H #ifdef __GNUG__ #pragma interface @@ -20,16 +20,15 @@ #include "LString.h" /// -class InsetLabel: public InsetCommand { +class InsetLabel : public InsetCommand { public: /// + explicit InsetLabel(string const & cmd); /// - InsetLabel() : InsetCommand("label") {;} + InsetLabel() : InsetCommand("label") {} /// - ~InsetLabel(); - /// - Inset* Clone(); + Inset * Clone() const; /// Inset::Code LyxCode() const { return Inset::LABEL_CODE; } /// @@ -39,15 +38,15 @@ public: /// string getScreenLabel() const { return getContents(); } /// - unsigned char Editable() const { return 0; } + EDITABLE Editable() const { return NOT_EDITABLE; } /// - int Latex(FILE *file, signed char fragile); + int Latex(std::ostream &, bool fragile, bool free_spc) const; /// - int Latex(string &file, signed char fragile); + int Ascii(std::ostream &) const; /// - int Linuxdoc(string &file); + int Linuxdoc(std::ostream &) const; /// - int DocBook(string &file); + int DocBook(std::ostream &) const; private: /// This function escapes 8-bit characters string escape(string const &) const;