X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.h;h=57fff35faee57d094245a4870e88955f338fc6d3;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=4708f5a331f8759f8f34cc41ba114247b4658033;hpb=39f997048e40e8ee965b4abbb88d41a11b3f8069;p=lyx.git diff --git a/src/Counters.h b/src/Counters.h index 4708f5a331..57fff35fae 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -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 expressions expanded, /// indexed by language mutable StringMap flatlabelstring_; @@ -158,12 +162,10 @@ public: void reset(); /// Reset counters matched by match string. void reset(docstring const & match); + /// Copy counter \p cnt to \p newcnt. + bool copy(docstring const & cnt, docstring const & newcnt); /// 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()); /** returns the expanded string representation of counter \c * c. The \c lang code is used to translate the string. */ @@ -181,6 +183,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.