]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insettoc.h
index d9e542cfef646f9f6d685faf03df92f553ad7243..77ce3e338ea216c3321c24b046dd3434fe279fb7 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_TOC_H
@@ -14,6 +14,7 @@
 
 
 #include "insetcommand.h"
+#include "metricsinfo.h"
 
 /** Used to insert table of contents
  */
@@ -28,21 +29,26 @@ public:
                return std::auto_ptr<InsetBase>(new InsetTOC(params()));
        }
        ///
+       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; }
-       ///
        InsetOld::Code lyxCode() 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;
+private:
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       mutable unsigned int center_indent_;
 };
 
 #endif