#ifndef TOC_H
#define TOC_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include <config.h>
-
+
#include "support/LOstream.h"
#include "LString.h"
/** 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;
/// the action corresponding to the goTo above
int action() const;
///
- Paragraph * par;
+ Paragraph const * par;
///
int depth;
///
///
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);