]> 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 750a3508ad7ce47640d7195325397470c1befaf1..06aaa043b86b5b0011a503148861e288d8e0494d 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team
+ *           Copyright 1995-2001 The LyX Team
  *
  * ====================================================== */
 
 #endif
 
 #include "insetcommand.h"
-#include "LString.h"
 
-///
 class InsetLabel : public InsetCommand {
 public:
        ///
-       explicit
-       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);
+       }
        ///
-       Inset * Clone() const;
+       string const getScreenLabel(Buffer const *) const { return getContents(); }
        ///
-       Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       std::vector<string> getLabelList() const;
+       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
        ///
-       string getScreenLabel() const { return getContents(); }
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       void edit(BufferView * bv, bool front = true);
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       std::vector<string> const getLabelList() const;
        ///
-       int Latex(Buffer const *, std::ostream &,
-                 bool fragile, bool free_spc) const;
+       int latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Ascii(Buffer const *, std::ostream &) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(Buffer const *, std::ostream &) const;
-private:
-       /// This function escapes 8-bit characters
-       string escape(string const &) const;
+       int docbook(Buffer const *, std::ostream &) const;
 };
 
 #endif