return cache.screen_label;
// The label has changed, so we have to re-create it.
- string const before = getSecOptions();
- string const after = getOptions();
-
docstring const glabel = generateLabel(buffer);
unsigned int const maxLabelChars = 45;
InsetCommandParams const & params() const { return p_; }
/// FIXME remove
std::string const getContents() const { return p_.getContents(); }
+protected:
/// FIXME remove
void setContents(std::string const & c)
{
updateButtonLabel_ = true;
p_.setContents(c);
}
+public:
///
void setParam(std::string const & name, docstring const & value)
{
}
/// FIXME remove
virtual void replaceContents(std::string const & from, std::string const & to);
- /// FIXME remove
- std::string const getOptions() const { return p_.getOptions(); }
- /// FIXME remove
- std::string const getSecOptions() const { return p_.getSecOptions(); }
///
RenderButton & button() const { return button_; }
///
p_.setCmdName(n);
}
///
- void setOptions(std::string const & o)
- {
- updateButtonLabel_ = true;
- p_.setOptions(o);
- }
- ///
- void setSecOptions(std::string const & s)
- {
- updateButtonLabel_ = true;
- p_.setSecOptions(s);
- }
- ///
void setParams(InsetCommandParams const &);
/// This should provide the text for the button
virtual docstring const getScreenLabel(Buffer const &) const = 0;
docstring const getCommand() const;
/// Return the command name
std::string const & getCmdName() const { return name_; }
+private:
/// FIXME remove
std::string const getOptions() const;
/// FIXME remove
std::string const getSecOptions() const;
+public:
/// FIXME remove
std::string const getContents() const;
/// Set the name to \p n. This must be a known name. All parameters
/// are cleared except those that exist also in the new command.
/// What matters here is the parameter name, not position.
void setCmdName(std::string const & n);
+private:
/// FIXME remove
void setOptions(std::string const &);
/// FIXME remove
void setSecOptions(std::string const &);
+public:
/// FIXME remove
void setContents(std::string const &);
/// get parameter \p name