]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.h
another fix
[lyx.git] / src / lyxtextclass.h
index 2d1021f792d438591087ed20f1887b4a27c2f246..5063a13b0f2adb61840a9ae134df087740697bd0 100644 (file)
 
 #include "support/types.h"
 
+#include <boost/shared_ptr.hpp>
+
 #include <vector>
 
 class LyXLex;
+class Counters;
 
 ///
 class LyXTextClass {
@@ -36,9 +39,9 @@ public:
        typedef LayoutList::const_iterator const_iterator;
        ///
        explicit
-       LyXTextClass (string const & = string(),
-                     string const & = string(),
-                     string const & = string());
+       LyXTextClass(string const & = string(),
+                    string const & = string(),
+                    string const & = string());
 
        ///
        const_iterator begin() const { return layoutlist_.begin(); }
@@ -54,6 +57,10 @@ public:
        ///
        void readClassOptions(LyXLex &);
        ///
+       void readFloat(LyXLex &);
+       ///
+       void readCounter(LyXLex &);
+       ///
        bool hasLayout(string const & name) const;
 
        ///
@@ -66,9 +73,10 @@ public:
        FloatList & floats();
        /// the list of floats defined in the class
        FloatList const & floats() const;
-
+       /// The Counters present in this textclass.
+       Counters & counters() const;
        ///
-       string const defaultLayoutName() const;
+       string const defaultLayoutName() const;
        ///
        LyXLayout_ptr const & defaultLayout() const;
        ///
@@ -190,6 +198,9 @@ private:
        ///
        FloatList floatlist_;
 
+       ///
+       boost::shared_ptr<Counters> ctrs_;
+
        /// Has this layout file been loaded yet?
        mutable bool loaded;
 };