]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.h
fix two crashes related to dEPM. Some crashes remain
[lyx.git] / src / lyxtextclass.h
index 5f9ccca6908fb71eb94126feaacc0e33bf431bcf..e602b4041b453a6238509d191a3ff56905da67f1 100644 (file)
@@ -23,7 +23,8 @@ class FloatList;
 
 
 ///
-struct CharStyle {
+class CharStyle {
+public:
        std::string name;
        std::string latextype;
        std::string latexname;
@@ -84,6 +85,8 @@ public:
 
        /// Sees to that the textclass structure has been loaded
        bool load() const;
+       /// Has this layout file been loaded yet?
+       bool loaded() const { return loaded_; }
 
        /// the list of floats defined in the document class
        FloatList & floats();
@@ -169,6 +172,10 @@ public:
 
        ///
        int size() const;
+       /// The minimal TocLevel of sectioning layouts
+       int min_toclevel() const;
+       /// The maximal TocLevel of sectioning layouts
+       int max_toclevel() const;
 private:
        ///
        bool delete_layout(std::string const &);
@@ -235,10 +242,15 @@ private:
        boost::shared_ptr<Counters> ctrs_;
 
        /// Has this layout file been loaded yet?
-       mutable bool loaded;
+       mutable bool loaded_;
 
        /// Is the TeX class available?
        bool texClassAvail_;
+
+       /// The minimal TocLevel of sectioning layouts
+       int min_toclevel_;
+       /// The maximal TocLevel of sectioning layouts
+       int max_toclevel_;
 };