]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetlabel.h
index bf7245493c2b1a47d9b814cce0e16d5f13ae5b89..06aaa043b86b5b0011a503148861e288d8e0494d 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team
+ *           Copyright 1995-2001 The LyX Team
  *
  * ====================================================== */
 
 #endif
 
 #include "insetcommand.h"
-#include "LString.h"
 
-///
-class InsetLabel: public InsetCommand {
+class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(string const & cmd);
+       InsetLabel(InsetCommandParams const &, bool same_id = false);
        ///
-       InsetLabel() : InsetCommand("label") {}
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetLabel(params(), same_id);
+       }
        ///
-       ~InsetLabel();
+       string const getScreenLabel(Buffer const *) const { return getContents(); }
        ///
-       Inset * Clone();
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
        ///
-       int GetNumberOfLabels() const;
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       string getLabel(int) const;
+       void edit(BufferView * bv, bool front = true);
        ///
-       string getScreenLabel() const { return getContents(); }
+       std::vector<string> const getLabelList() const;
        ///
-       unsigned char Editable() const { return 0; }
+       int latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Latex(FILE * file, signed char fragile);
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Latex(string & file, signed char fragile);
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int Linuxdoc(string & file);
-       ///
-       int DocBook(string & file);
-private:
-       /// This function escapes 8-bit characters
-       string escape(string const &) const;
+       int docbook(Buffer const *, std::ostream &) const;
 };
 
 #endif