]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetlabel.h
index 4cb3b2657d8b261ec543285f70bc65269fe35564..60af5c7f6b26cc7ea73f514311300e700743cc78 100644 (file)
@@ -6,7 +6,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_LABEL_H
 class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(InsetCommandParams const &, bool same_id = false);
+       InsetLabel(InsetCommandParams const &);
        ///
-       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(); }
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetLabel(params()));
+       }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
+       string const getScreenLabel(Buffer const &) const { return getContents(); }
        ///
-       void edit(BufferView *, int, int, mouse_button::state);
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void edit(BufferView * bv, bool front = true);
+       InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
        ///
-       std::vector<string> const getLabelList() const;
+       void getLabelList(std::vector<string> &) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool free_spc) const;
+       int latex(Buffer const &, std::ostream &,
+                 LatexRunParams const &) 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 &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
 };
 
 #endif