]> git.lyx.org Git - lyx.git/blobdiff - src/toc.h
Boost.Format patch from Herber
[lyx.git] / src / toc.h
index 78ec77afa964da65921d5836a9e479e1e673cf45..6f45519de4e8ddd89bec963c4e1d6bfb0c7a719d 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -20,6 +20,8 @@
 #pragma interface
 #endif
 
+#include <config.h>
+
 #include "support/LOstream.h"
 #include "LString.h"
 
@@ -32,12 +34,12 @@ class Paragraph;
 
 /** Nice functions and objects to handle TOCs
  */
-namespace toc 
+namespace toc
 {
 
 ///
 struct TocItem {
-       TocItem(Paragraph * p, int d, string const & s)
+       TocItem(Paragraph const * p, int d, string const & s)
                : par(p), depth(d), str(s) {}
        ///
        string const asString() const;
@@ -46,7 +48,7 @@ struct TocItem {
        /// the action corresponding to the goTo above
        int action() const;
        ///
-       Paragraph * par;
+       Paragraph const * par;
        ///
        int depth;
        ///
@@ -65,8 +67,8 @@ TocList const getTocList(Buffer const *);
 std::vector<string> const getTypes(Buffer const *);
 
 ///
-void asciiTocList(string const &, Buffer const *, ostream &);
-       
+void asciiTocList(string const &, Buffer const *, std::ostream &);
+
 /** Given the cmdName of the TOC param, returns the type used
     by ControlToc::getContents() */
 string const getType(string const & cmdName);