]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.h
Point fix, earlier forgotten
[lyx.git] / src / lyxtextclass.h
index 20f19476cfecb7f26e7bf1c95325c316ecbfde0b..485b8290b34429071cb23d9957d6e66f3884d251 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef LYXTEXTCLASS_H
@@ -35,7 +35,11 @@ public:
        explicit
        LyXTextClass(string const & = string(),
                     string const & = string(),
-                    string const & = string());
+                    string const & = string(),
+                    bool = false);
+
+       /// check whether the TeX class is available
+       bool isTeXClassAvailable() const;
 
        /// paragraph styles begin iterator.
        const_iterator begin() const { return layoutlist_.begin(); }
@@ -47,6 +51,8 @@ public:
        ///
        void readOutputType(LyXLex &);
        ///
+       void readTitleType(LyXLex &);
+       ///
        void readMaxCounter(LyXLex &);
        ///
        void readClassOptions(LyXLex &);
@@ -135,6 +141,12 @@ public:
        string const & rightmargin() const;
        ///
        int maxcounter() const;
+
+       /// The type of command used to produce a title
+       LYX_TITLE_LATEX_TYPES titletype() const;
+       /// The name of the title command
+       string const & titlename() const;
+
        ///
        int size() const;
 private:
@@ -186,6 +198,11 @@ private:
        /// highest header level used in this layout.
        int maxcounter_; // add approp. signedness
 
+       /// The type of command used to produce a title
+       LYX_TITLE_LATEX_TYPES titletype_;
+       /// The name of the title command
+       string titlename_;
+
        /// Paragraph styles used in this layout
        LayoutList layoutlist_;
 
@@ -197,6 +214,9 @@ private:
 
        /// Has this layout file been loaded yet?
        mutable bool loaded;
+
+       /// Is the TeX class available?
+       bool texClassAvail_;
 };