#include "debug.h"
#include "undo.h"
-#include "frontends/LyXView.h"
-
#include "insets/insetfloat.h"
#include "insets/insetoptarg.h"
#include "insets/insetwrap.h"
namespace lyx {
namespace toc {
-typedef map<Buffer const *, lyx::TocBackend> TocMap;
+typedef map<Buffer const *, TocBackend> TocMap;
static TocMap toc_backend_;
///////////////////////////////////////////////////////////////////////////
}
-void asciiTocList(string const & type, Buffer const & buf, ostream & os)
+void asciiTocList(string const & type, Buffer const & buf, odocstream & os)
{
toc_backend_[&buf].asciiTocList(type, os);
}
int const thistoclevel = s->layout()->toclevel;
int toclevel;
switch (mode) {
- case UP: {
+ case Up: {
if (p != end)
++p;
for (; p != end; ++p) {
pars.erase(s, t);
break;
}
- case DOWN: {
+ case Down: {
if (p != end)
++p;
for (; p != end; ++p) {
pars.erase(s, t);
break;
}
- case IN:
+ case In:
for (; lit != lend; ++lit) {
if ((*lit)->toclevel == thistoclevel + 1 &&
s->layout()->labeltype == (*lit)->labeltype) {
}
}
break;
- case OUT:
+ case Out:
for (; lit != lend; ++lit) {
if ((*lit)->toclevel == thistoclevel - 1 &&
s->layout()->labeltype == (*lit)->labeltype) {