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:
///
virtual docstring screenLabel() const = 0;
///
bool showInsetDialog(BufferView * bv) const;
-
-private:
///
InsetCommandParams p_;
///