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
//@{
//@{
/// 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:
RenderButton & button() const { return button_; }
/// This should provide the text for the button
virtual docstring screenLabel() const = 0;
- /// This should return true when font is inherited from text
- virtual bool inheritFont() const { return false; }
/// \name Static public methods obligated for InsetCommand derived classes
//@{
mutable std::map<BufferView const *, bool> mouse_hover_;
///
mutable RenderButton button_;
+ ///
+ mutable bool broken_;
};
/// Decode InsetCommand considering Inset name and data.