]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetlabel.h
index 7fcb8ef91cdfe38e6c7597cbcee1846f63e909a0..62196b7d8014c01f28e986616a15847ae7db77c1 100644 (file)
@@ -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
 #include "LString.h"
 
 ///
-class InsetLabel: public InsetCommand {
+class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(LString const & cmd);
+       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; }
        ///
        int GetNumberOfLabels() const;
        ///
-       LString getLabel(int) const;
+       string getLabel(int) const;
        ///
-       LString getScreenLabel() const { return getContents(); }
+       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(LString &file, signed char fragile);
+       int Ascii(std::ostream &) const;
        ///
-       int Linuxdoc(LString &file);
+       int Linuxdoc(std::ostream &) const;
        ///
-       int DocBook(LString &file);
+       int DocBook(std::ostream &) const;
 private:
        /// This function escapes 8-bit characters
-       LString escape(LString const &) const;
+       string escape(string const &) const;
 };
 
 #endif