class InsetCommand : public Inset
{
public:
- /// FIXME: pass Buffer here!
- InsetCommand(InsetCommandParams const &, std::string const & mailer_name);
+ ///
+ InsetCommand(Buffer *, InsetCommandParams const &,
+ std::string const & mailer_name);
///
~InsetCommand();
docstring const getFirstNonOptParam() const { return p_.getFirstNonOptParam(); }
/// update label and references.
virtual void updateCommand(docstring const &, bool) {}
+ ///
+ virtual InsetCommand * asInsetCommand() { return this; }
+ ///
+ virtual InsetCommand const * asInsetCommand() const { return this; }
+ /// whether to include this inset in the strings generated for the TOC
+ virtual bool isInToc() const { return false; }
protected:
///
///
bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
///
- docstring const getCommand() const { return p_.getCommand(); }
+ docstring const getCommand(OutputParams & rp) const { return p_.getCommand(rp); }
///
std::string const & getCmdName() const { return p_.getCmdName(); }
///
virtual docstring screenLabel() const = 0;
///
bool showInsetDialog(BufferView * bv) const;
-
-private:
///
InsetCommandParams p_;
///