]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.h
Update the GuiLabel view when the document is read-only. Also disable the text field.
[lyx.git] / src / Counters.h
index fdae212a262ee9947b82abfea786f09ea85abf1c..3a04d0313b9d159dc9cb2a38f2335d1550da016c 100644 (file)
@@ -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<counter> macro in the
         *  labelstring of \c counter.  The \c lang code is used to