]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.h
redraw fix 1.
[lyx.git] / src / lyxtextclass.h
index 975c01183c25ffd0d4323d7f6bcce6a62a85c34d..1a8a6e8633563dd1d35ab843c3a799c235180685 100644 (file)
@@ -1,9 +1,9 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
 #endif
 
 #include "lyxlayout.h"
+#include "LString.h"
+#include "lyxlayout_ptr_fwd.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;
        ///
        explicit
-       LyXTextClass (string const & = string(), 
-                     string const & = string(), 
+       LyXTextClass (string const & = string(),
+                     string const & = string(),
                      string const & = string());
 
        ///
        const_iterator begin() const { return layoutlist.begin(); }
        ///
        const_iterator end() const { return layoutlist.end(); }
-       
+
        ///
        bool Read(string const & filename, bool merge = false);
        ///
@@ -58,7 +56,7 @@ public:
        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;
@@ -66,7 +64,7 @@ public:
        ///
        string const defaultLayoutName() const;
        ///
-       LyXLayout const & defaultLayout() const;
+       LyXLayout_ptr const & defaultLayout() const;
        ///
        string const & name() const;
        ///
@@ -93,11 +91,13 @@ public:
                ///
                makeidx = 2,
                ///
-               url = 4
+               url = 4,
+               ///
+               natbib = 8
        };
        ///
        bool provides(Provides p) const;
-       
+
        ///
        unsigned int columns() const;
        ///
@@ -125,7 +125,7 @@ public:
 
        /// Text that dictates how wide the right margin is on the screen
        string const & rightmargin() const;
-        ///
+       ///
        int maxcounter() const;
        ///
        int size() const;