- lyx::docstring const & match = lyx::docstring());
- /// A complete expanded label, like 2.1.4 for a subsubsection
- /// according to the given format
- lyx::docstring counterLabel(lyx::docstring const & format);
+ docstring const & match = docstring());
+ /** returns the expanded string representation of counter \c
+ * c. The \c lang code is used to translate the string.
+ */
+ docstring theCounter(docstring const & c,
+ std::string const & lang) const;
+ /** Replace in \c format all the LaTeX-like macros that depend
+ * on counters. The \c lang code is used to translate the
+ * string.
+ */
+ docstring counterLabel(docstring const & format,
+ std::string const & lang) const;
+ /// Are we in appendix?
+ bool appendix() const { return appendix_; }
+ /// Set the state variable indicating whether we are in appendix.
+ 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.
+ void current_float(std::string const & f) { current_float_ = f; }
+ /// 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; }