* 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
#define LYXTEXTCLASS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "lyxlayout.h"
#include "LString.h"
#include "lyxlayout_ptr_fwd.h"
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(); }
///
void readOutputType(LyXLex &);
///
+ void readTitleType(LyXLex &);
+ ///
void readMaxCounter(LyXLex &);
///
void readClassOptions(LyXLex &);
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:
/// 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_;
/// Has this layout file been loaded yet?
mutable bool loaded;
+
+ /// Is the TeX class available?
+ bool texClassAvail_;
};