]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
reformatting and remove using delc
[lyx.git] / src / insets / insetlabel.h
index bebe75df8729469ac20c31ff230b95309658eec6..87211ae6fe600aacd986174a9d4d98e7200c326a 100644 (file)
@@ -5,9 +5,9 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team
+ *           Copyright 1995-2000 The LyX Team
  *
- *======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_LABEL_H
 #define INSET_LABEL_H
 #endif
 
 #include "insetcommand.h"
-#include "LString.h"
 
-///
-class InsetLabel: public InsetCommand {
+class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(string const & cmd);
+       InsetLabel(InsetCommandParams const &);
        ///
-       InsetLabel() : InsetCommand("label") {}
+       Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
        ///
-       ~InsetLabel();
+       string const getScreenLabel() const { return getContents(); }
        ///
-       Inset * Clone();
+       EDITABLE Editable() const { return IS_EDITABLE; }
        ///
        Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
        ///
-       int GetNumberOfLabels() const;
+       void Edit(BufferView *, int, int, unsigned int);
        ///
-       string getLabel(int) const;
+       std::vector<string> const getLabelList() const;
        ///
-       string getScreenLabel() const { return getContents(); }
+       int Latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       unsigned char Editable() const { return 0; }
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Latex(FILE * file, signed char fragile);
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int Latex(string & file, signed char fragile);
-       ///
-       int Linuxdoc(string & file);
-       ///
-       int DocBook(string & file);
+       int DocBook(Buffer const *, std::ostream &) const;
 private:
        /// This function escapes 8-bit characters
-       string escape(string const &) const;
+       string const escape(string const &) const;
 };
 
 #endif