X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettoc.C;h=88a46f1ea52b7545d63eb9359a5471cf9e329dfa;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=77ad1928d9aa324dde00bdcf88c7f61b6c7c13b3;hpb=dfe1bc44b44903faf77ef454c98c4c3e56c1d5e3;p=lyx.git diff --git a/src/insets/insettoc.C b/src/insets/insettoc.C index 77ad1928d9..88a46f1ea5 100644 --- a/src/insets/insettoc.C +++ b/src/insets/insettoc.C @@ -10,23 +10,31 @@ #include "commandtags.h" #include "lyxfunc.h" #include "LyXView.h" +#include "BufferView.h" -extern BufferView * current_view; +using std::ostream; -void InsetTOC::Edit(int, int) + +string InsetTOC::getScreenLabel() const +{ + return _("Table of Contents"); +} + + +void InsetTOC::Edit(BufferView * bv, int, int, unsigned int) { - current_view->getOwner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW); + bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW); } -int InsetTOC::Linuxdoc(string & file) +int InsetTOC::Linuxdoc(ostream & os) const { - file += ""; + os << ""; return 0; } -int InsetTOC::DocBook(string & file) +int InsetTOC::DocBook(ostream & os) const { - file += ""; + os << ""; return 0; }