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