using support::ExceptionMessage;
using support::WarningException;
-ICPInfo::ICPInfo(std::string const & s, bool b)
- : paramName(s), optional(b)
-{}
-
-
-void ICPList::addParam(std::string const & s, bool b) {
- plist_.push_back(ICPInfo(s, b));
-}
-
-
-bool ICPList::hasParam(std::string const & s) {
- PList::const_iterator it = begin();
- PList::const_iterator et = end();
- for (; it != et; ++it) {
- if (it->paramName == s)
- return true;
- }
- return false;
-}
-
-
InsetCommandParams::InsetCommandParams(InsetCode code)
: insetCode_(code), preview_(false)
{
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:
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:
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: