#include "debug.h"
#include "buffer.h"
+
using std::vector;
+using std::ostream;
+
-string const InsetTOC::getScreenLabel() const
+string const InsetTOC::getScreenLabel(Buffer const *) const
{
string const cmdname(getCmdName());
}
-Inset::Code InsetTOC::LyxCode() const
+Inset::Code InsetTOC::lyxCode() const
{
string const cmdname(getCmdName());
if (cmdname == "tableofcontents")
}
-void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
+void InsetTOC::edit(BufferView * bv, int, int, unsigned int)
{
bv->owner()->getDialogs()->showTOC(this);
}
-int InsetTOC::Ascii(Buffer const * buffer, std::ostream & os, int) const
+void InsetTOC::edit(BufferView * bv, bool)
+{
+ edit(bv, 0, 0, 0);
+}
+
+
+int InsetTOC::ascii(Buffer const * buffer, ostream & os, int) const
{
- os << getScreenLabel() << "\n\n";
+ os << getScreenLabel(buffer) << "\n\n";
string type;
string const cmdname = getCmdName();
}
-int InsetTOC::Linuxdoc(Buffer const *, std::ostream & os) const
+int InsetTOC::linuxdoc(Buffer const *, ostream & os) const
{
if (getCmdName() == "tableofcontents")
os << "<toc>";
}
-int InsetTOC::DocBook(Buffer const *, std::ostream & os) const
+int InsetTOC::docbook(Buffer const *, ostream & os) const
{
if (getCmdName() == "tableofcontents")
os << "<toc></toc>";