#endif
#include "lyxlayout.h"
+#include "LString.h"
+#include "lyxlayout_ptr_fwd.h"
+#include "FloatList.h"
#include "support/types.h"
-#include "LString.h"
-
#include <vector>
class LyXLex;
-
-
///
class LyXTextClass {
public:
///
- typedef std::vector<LyXLayout> LayoutList;
+ typedef std::vector<LyXLayout_ptr> LayoutList;
///
typedef LayoutList::const_iterator const_iterator;
///
string const & = string());
///
- const_iterator begin() const { return layoutlist.begin(); }
+ const_iterator begin() const { return layoutlist_.begin(); }
///
- const_iterator end() const { return layoutlist.end(); }
+ const_iterator end() const { return layoutlist_.end(); }
///
bool Read(string const & filename, bool merge = false);
bool hasLayout(string const & name) const;
///
- LyXLayout const & operator[](string const & vname) const;
+ LyXLayout_ptr const & operator[](string const & vname) const;
/// Sees to that the textclass structure has been loaded
bool load() const;
+ /// the list of floats defined in the class
+ FloatList & floats();
+ /// the list of floats defined in the class
+ FloatList const & floats() const;
+
///
string const defaultLayoutName() const;
///
- LyXLayout const & defaultLayout() const;
+ LyXLayout_ptr const & defaultLayout() const;
///
string const & name() const;
///
///
makeidx = 2,
///
- url = 4
+ url = 4,
+ ///
+ natbib = 8
};
///
bool provides(Provides p) const;
int maxcounter_; // add approp. signedness
///
- LayoutList layoutlist;
+ LayoutList layoutlist_;
+
+ ///
+ FloatList floatlist_;
/// Has this layout file been loaded yet?
mutable bool loaded;