]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
Some more changes for updating text-insets.
[lyx.git] / src / insets / insetlabel.h
index 92c8b43003ecebc9464693412edaa8beca5465b2..eb5bfe1b64c72e7201ab920e00d2ae6a3f260b06 100644 (file)
 #include "insetcommand.h"
 #include "LString.h"
 
-using std::ostream;
-
 ///
 class InsetLabel : public InsetCommand {
 public:
        ///
+       explicit
        InsetLabel(string const & cmd);
        ///
        InsetLabel() : InsetCommand("label") {}
@@ -33,19 +32,21 @@ public:
        ///
        Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
        ///
-       int GetNumberOfLabels() const;
-       ///
-       string getLabel(int) const;
+       std::vector<string> getLabelList() const;
        ///
        string getScreenLabel() const { return getContents(); }
        ///
-       EDITABLE Editable() const { return NOT_EDITABLE; }
+       EDITABLE Editable() const { return IS_EDITABLE; }
+       ///
+       void Edit(BufferView *, int, int, unsigned int);
+       ///
+       int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
        ///
-       int Latex(ostream &, signed char fragile, bool free_spc) const;
+       int Ascii(Buffer const *, std::ostream &) const;
        ///
-       int Linuxdoc(ostream &) const;
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(ostream &) const;
+       int DocBook(Buffer const *, std::ostream &) const;
 private:
        /// This function escapes 8-bit characters
        string escape(string const &) const;