]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetTOC.cpp
index 60f2b174f0944037dab0e7b2149e37c51c321172..9f91c06f192e24e04d629791c06caf2c4d7a7abe 100644 (file)
@@ -34,6 +34,15 @@ InsetTOC::InsetTOC(InsetCommandParams const & p)
 {}
 
 
+CommandInfo const * InsetTOC::findInfo(std::string const & /* cmdName */)
+{
+       static const char * const paramnames[] = {"type", ""};
+       static const bool isoptional[] = {false};
+       static const CommandInfo info = {1, paramnames, isoptional};
+       return &info;
+}
+
+
 Inset * InsetTOC::clone() const
 {
        return new InsetTOC(*this);
@@ -48,14 +57,6 @@ docstring const InsetTOC::getScreenLabel(Buffer const & buf) const
 }
 
 
-InsetCode InsetTOC::lyxCode() const
-{
-       if (getCmdName() == "tableofcontents")
-               return TOC_CODE;
-       return NO_CODE;
-}
-
-
 int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
                        OutputParams const &) const
 {