]> 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 8260ab3ed6aca08c25166807712b13c2b5ad168f..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
        //@{
@@ -87,6 +91,8 @@ public:
        ///
        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(); }
@@ -99,9 +105,6 @@ protected:
        std::string contextMenuName() const;
        ///
        bool showInsetDialog(BufferView * bv) const;
-       ///
-       Dimension const dimension(BufferView const &) const 
-               { return button_.dimension(); }
        //@}
 
 protected:
@@ -109,7 +112,7 @@ 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
@@ -119,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:
@@ -146,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.