]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetfloatlist.h
index 52bedb6d29fe09b4a6b52bafae73305af6aeefb4..b4d14e035ca316fc8f232af2ac828fc01f1f4625 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_FLOATLIST_H
@@ -26,38 +26,39 @@ public:
        ///
        ~InsetFloatList();
        ///
-       Inset * clone(Buffer const &) const {
-               return new InsetFloatList(getCmdName());
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
        }
        ///
-       //Inset * clone(Buffer const &, bool = false) const {
-       //      return new InsetFloatList(getCmdName());
-       //}
+       void metrics(MetricsInfo &, Dimension &) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       string const getScreenLabel(Buffer const *) const;
+       string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       bool display() const { return true; }
-       ///
-       Inset::Code lyxCode() const;
+       InsetOld::Code lyxCode() const;
        ///
-       void write(Buffer const *, std::ostream &) const;
+       void write(Buffer const &, std::ostream &) const;
        ///
-       void read(Buffer const *, LyXLex &);
+       void read(Buffer const &, LyXLex &);
        ///
-       int latex(Buffer const *, std::ostream &,
+       int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
+       int linuxdoc(Buffer const &, std::ostream &) const { return 0; }
        ///
-       int docbook(Buffer const *, std::ostream &, bool) const { return 0; }
+       int docbook(Buffer const &, std::ostream &, bool) const { return 0; }
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const &, std::ostream &, int linelen) const;
        ///
        void validate(LaTeXFeatures & features) const;
+private:
+       ///
+       mutable unsigned int center_indent_;
 };
 
 #endif