]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.h
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetCommand.h
index f51f8c939a05452be85e4971ab5df44b3094772e..58d2345841b7c25b194957da4edaa084eff6547f 100644 (file)
@@ -62,6 +62,10 @@ public:
        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
        //@{
@@ -118,6 +122,8 @@ protected:
        /// 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:
@@ -145,6 +151,8 @@ private:
        mutable std::map<BufferView const *, bool> mouse_hover_;
        ///
        mutable RenderButton button_;
+       ///
+       mutable bool broken_;
 };
 
 /// Decode InsetCommand considering Inset name and data.