mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
f4b7b4b67c
commit
4ca3a3d59c
@ -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;
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user