]> 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 888f1dd3bce2252fb69dac9506c93d8688971b04..06aaa043b86b5b0011a503148861e288d8e0494d 100644 (file)
 class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(InsetCommandParams const &);
+       InsetLabel(InsetCommandParams const &, bool same_id = false);
        ///
-       Inset * Clone(Buffer const &) const { return new InsetLabel(params()); }
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetLabel(params(), same_id);
+       }
        ///
-       string const getScreenLabel() const { return getContents(); }
+       string const getScreenLabel(Buffer const *) 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> 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 &, int linelen) 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;
+       int docbook(Buffer const *, std::ostream &) const;
 };
 
 #endif