]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
quick fix for commented out figures
[lyx.git] / src / insets / insetlabel.h
index 39cc24e8e0e55840981446076b0a845a59195160..bdd77f4e9c433f605a7c935bc4e4651b92aa6d44 100644 (file)
@@ -3,9 +3,9 @@
  * ======================================================
  *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team
+ *           Copyright 1995-2001 The LyX Team
  *
  * ====================================================== */
 
 class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(InsetCommandParams const &);
+       InsetLabel(InsetCommandParams const &, bool same_id = false);
+       ///
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetLabel(params(), same_id);
+       }
        ///
-       Inset * Clone() const { return new InsetLabel(params()); }
+       string const getScreenLabel(Buffer const *) const { return getContents(); }
        ///
-       string getScreenLabel() const { return getContents(); }
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       EDITABLE Editable() const { return IS_EDITABLE; }
+       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
        ///
-       Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+       void edit(BufferView *, int, int, unsigned int);
        ///
-       void Edit(BufferView *, int, int, unsigned int);
+       void edit(BufferView * bv, bool front = true);
        ///
-       std::vector<string> getLabelList() const;
+       std::vector<string> const getLabelList() const;
        ///
-       int Latex(Buffer const *, std::ostream &,
+       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