X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftoc.h;h=6f45519de4e8ddd89bec963c4e1d6bfb0c7a719d;hb=a4c9f5fdf42f07019b6893236700434463bddb06;hp=78ec77afa964da65921d5836a9e479e1e673cf45;hpb=1c52d8f898a221afca246a808df86266023d022e;p=lyx.git diff --git a/src/toc.h b/src/toc.h index 78ec77afa9..6f45519de4 100644 --- a/src/toc.h +++ b/src/toc.h @@ -20,6 +20,8 @@ #pragma interface #endif +#include + #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 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);