9 #include "BufferView.h"
11 #include "frontends/Dialogs.h"
17 string const InsetTOC::getScreenLabel() const
19 string cmdname( getCmdName() );
20 if( cmdname == "tableofcontents" )
21 return _("Table of Contents");
22 else if( cmdname == "listofalgorithms" )
23 return _("List of Algorithms");
24 else if( cmdname == "listoffigures" )
25 return _("List of Figures");
27 return _("List of Tables");
31 Inset::Code InsetTOC::LyxCode() const
33 string cmdname( getCmdName() );
34 if( cmdname == "tableofcontents" )
35 return Inset::TOC_CODE;
36 else if( cmdname == "listofalgorithms" )
37 return Inset::LOA_CODE;
38 else if( cmdname == "listoffigures" )
39 return Inset::LOF_CODE;
41 return Inset::LOT_CODE;
45 void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
47 bv->owner()->getDialogs()->showTOC( this );
51 int InsetTOC::Linuxdoc(Buffer const *, ostream & os) const
53 if( getCmdName() == "tableofcontents" )
59 int InsetTOC::DocBook(Buffer const *, ostream & os) const
61 if( getCmdName() == "tableofcontents" )