X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.h;h=3a04d0313b9d159dc9cb2a38f2335d1550da016c;hb=0a7705a6736a85c3c751f7b4e9998833cdb71fc9;hp=fdae212a262ee9947b82abfea786f09ea85abf1c;hpb=e9d19b82d492c1cce34e5c2be453f56bb0e33c30;p=lyx.git diff --git a/src/Counters.h b/src/Counters.h index fdae212a26..3a04d0313b 100644 --- a/src/Counters.h +++ b/src/Counters.h @@ -99,8 +99,10 @@ public: /// Checks whether the given counter exists. bool hasCounter(docstring const & c) const; /// reads the counter name + /// \param makeNew whether to make a new counter if one + /// doesn't already exist /// \return true on success - bool read(Lexer & lex, docstring const & name); + bool read(Lexer & lex, docstring const & name, bool makenew); /// void set(docstring const & ctr, int val); /// @@ -133,9 +135,9 @@ public: docstring counterLabel(docstring const & format, std::string const & lang) const; /// Are we in appendix? - bool appendix() const { return appendix_; }; + bool appendix() const { return appendix_; } /// Set the state variable indicating whether we are in appendix. - void appendix(bool a) { appendix_ = a; }; + void appendix(bool a) { appendix_ = a; } /// Returns the current enclosing float. std::string const & current_float() const { return current_float_; } /// Sets the current enclosing float. @@ -143,7 +145,7 @@ public: /// Are we in a subfloat? bool isSubfloat() const { return subfloat_; } /// Set the state variable indicating whether we are in a subfloat. - void isSubfloat(bool s) { subfloat_ = s; }; + void isSubfloat(bool s) { subfloat_ = s; } private: /** expands recusrsively any \\the macro in the * labelstring of \c counter. The \c lang code is used to