]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.h
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Counters.h
index e6554a284f37ae150e6fc709eab8c68a6567e98a..7a82df430148eb76ed8c8831409298d9f08ae965 100644 (file)
@@ -69,6 +69,8 @@ public:
        docstring const & prettyFormat() const { return prettyformat_; }
        ///
        docstring const & guiName() const { return guiname_; }
+       ///
+       docstring const & latexName() const { return latexname_; }
 
        /// Returns a map of LaTeX-like strings to format the counter.
        /** For each language, the string is similar to what one gets
@@ -101,6 +103,8 @@ private:
        docstring prettyformat_;
        ///
        docstring guiname_;
+       /// The name used for the counter in LaTeX
+       docstring latexname_;
        /// Cache of the labelstring with \\the<counter> expressions expanded,
        /// indexed by language
        mutable StringMap flatlabelstring_;
@@ -160,10 +164,6 @@ public:
        void reset(docstring const & match);
        /// Remove counter \p cnt.
        bool remove(docstring const & cnt);
-       /// Copy counters whose name matches match from the &from to
-       /// the &to array of counters. Empty string matches all.
-       void copy(Counters const & from, Counters & to,
-                 docstring const & match = docstring()) const;
        /** returns the expanded string representation of counter \c
         *  c. The \c lang code is used to translate the string.
         */
@@ -181,6 +181,8 @@ public:
                               std::string const & lang) const;
        ///
        docstring const & guiName(docstring const & cntr) const;
+       ///
+       docstring const & latexName(docstring const & cntr) const;
        /// Are we in appendix?
        bool appendix() const { return appendix_; }
        /// Set the state variable indicating whether we are in appendix.