InsetIndex is no longer an InsetCommand.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21210 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-10-25 22:29:45 +00:00
parent f4b7b4b67c
commit 4ca3a3d59c
4 changed files with 0 additions and 25 deletions

View File

@ -436,9 +436,6 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
case INCLUDE_CODE:
inset.reset(new InsetInclude(inscmd));
break;
case INDEX_CODE:
inset.reset(new InsetIndex(buf.params()));
break;
case INDEX_PRINT_CODE:
inset.reset(new InsetPrintIndex(inscmd));
break;

View File

@ -86,8 +86,6 @@ CommandInfo const * InsetCommandParams::findInfo(
return InsetHyperlink::findInfo(cmdName);
case INCLUDE_CODE:
return InsetInclude::findInfo(cmdName);
case INDEX_CODE:
return InsetIndex::findInfo(cmdName);
case INDEX_PRINT_CODE:
return InsetPrintIndex::findInfo(cmdName);
case LABEL_CODE:
@ -123,8 +121,6 @@ std::string InsetCommandParams::getDefaultCmd(InsetCode code) {
return InsetHyperlink::defaultCommand();
case INCLUDE_CODE:
return InsetInclude::defaultCommand();
case INDEX_CODE:
return InsetIndex::defaultCommand();
case INDEX_PRINT_CODE:
return InsetPrintIndex::defaultCommand();
case LABEL_CODE:
@ -162,8 +158,6 @@ bool InsetCommandParams::isCompatibleCommand(
return InsetHyperlink::isCompatibleCommand(s);
case INCLUDE_CODE:
return InsetInclude::isCompatibleCommand(s);
case INDEX_CODE:
return InsetIndex::isCompatibleCommand(s);
case INDEX_PRINT_CODE:
return InsetPrintIndex::isCompatibleCommand(s);
case LABEL_CODE:

View File

@ -40,15 +40,6 @@ InsetIndex::InsetIndex(InsetIndex const & in)
{}
CommandInfo const * InsetIndex::findInfo(std::string const & /* cmdName */)
{
static const char * const paramnames[] = {"name", ""};
static const bool isoptional[] = {false};
static const CommandInfo info = {1, paramnames, isoptional};
return &info;
}
int InsetIndex::docbook(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{

View File

@ -49,13 +49,6 @@ public:
OutputParams const &) const;
/// should paragraph indendation be omitted in any case?
bool neverIndent(Buffer const &) const { return true; }
///
static CommandInfo const * findInfo(std::string const & cmdName = "");
///
static std::string defaultCommand() { return "index"; };
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "index"; }
private:
///
bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;