]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / InsetRef.h
index d18f61939c86a72c6c1bbc0caff5ba780512be52..57377e1fd6f5377f50c115f6da92be6cda00c0d5 100644 (file)
@@ -90,6 +90,13 @@ public:
        //@}
        ///
        bool outputActive() const { return active_; }
+       /// \return the command for a formatted reference to ref
+       /// \param label we're cross-referencing
+       /// \param argument for reference command
+       /// \param prefix of the label (before :)
+       /// Also used by InsetMathRef
+       static docstring getFormattedCmd(docstring const & ref, docstring & label,
+                       docstring & prefix, bool use_refstyle, bool use_caps = false);
 
 protected:
        ///
@@ -110,12 +117,6 @@ private:
 
        /// \return the label with things that need to be escaped escaped
        docstring getEscapedLabel(OutputParams const &) const;
-       /// \return the command for a formatted reference to ref
-       /// \param label we're cross-referencing
-       /// \param argument for reference command
-       /// \param prefix of the label (before :)
-       docstring getFormattedCmd(docstring const & ref, docstring & label,
-                       docstring & prefix, docstring const & caps) const;
 
        ///
        mutable docstring screen_label_;