]> git.lyx.org Git - lyx.git/blobdiff - src/toc.h
oops again! hopefully this works now. Time to go to bed
[lyx.git] / src / toc.h
index 78ec77afa964da65921d5836a9e479e1e673cf45..e7f8e7daa9420d357351f90a2826f141589209db 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -16,9 +16,7 @@
 #ifndef TOC_H
 #define TOC_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include <config.h>
 
 #include "support/LOstream.h"
 #include "LString.h"
@@ -32,12 +30,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 +44,7 @@ struct TocItem {
        /// the action corresponding to the goTo above
        int action() const;
        ///
-       Paragraph * par;
+       Paragraph const * par;
        ///
        int depth;
        ///
@@ -65,8 +63,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);