void setParam(std::string const & name, docstring const & value);
/// FIXME Remove
docstring const getFirstNonOptParam() const { return p_.getFirstNonOptParam(); }
+ ///
+ void setBroken(bool const b) const { broken_ = b; }
+ ///
+ bool isBroken() const { return broken_; }
/// \name Public functions inherited from Inset class
//@{
///
int docbook(odocstream &, OutputParams const & runparams) const;
///
+ void validate(LaTeXFeatures & features) const;
+ ///
bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
///
bool clickable(BufferView const &, int, int) const { return hasSettings(); }
std::string contextMenuName() const;
///
bool showInsetDialog(BufferView * bv) const;
- ///
- Dimension const dimension(BufferView const &) const
- { return button_.dimension(); }
//@}
protected:
//@{
/// Build the complete LaTeX command
/// \see InsetCommandParams::getCommand
- docstring const getCommand(OutputParams const & rp) const
+ docstring const getCommand(OutputParams const & rp) const
{ return p_.getCommand(rp); }
/// Return the command name
/// \see InsetCommandParams::getCmdName
/// What matters here is the parameter name, not position.
/// \see InsetCommandParams::setCmdName
void setCmdName(std::string const & n) { p_.setCmdName(n); }
+ ///
+ void changeCmdName(std::string const & new_name);
//@}
private:
mutable std::map<BufferView const *, bool> mouse_hover_;
///
mutable RenderButton button_;
+ ///
+ mutable bool broken_;
};
/// Decode InsetCommand considering Inset name and data.