* 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
#include "lyxlayout.h"
-#include "LString.h"
+#include "support/std_string.h"
#include "lyxlayout_ptr_fwd.h"
#include "support/types.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(); }
///
LyXLayout_ptr const & operator[](string const & vname) const;
- ///
- LyXLayout_ptr const & getEnv(string const & vname) const;
/// Sees to that the textclass structure has been loaded
bool load() const;
///
bool delete_layout(string const &);
///
- bool delete_env(string const &);
- ///
bool do_readStyle(LyXLex &, LyXLayout &);
/// Layout file name
string name_;
/// Paragraph styles used in this layout
LayoutList layoutlist_;
- /// Environment styles used in this layout
- LayoutList envlist_;
-
/// available types of float, eg. figure, algorithm.
boost::shared_ptr<FloatList> floatlist_;
/// Has this layout file been loaded yet?
mutable bool loaded;
+
+ /// Is the TeX class available?
+ bool texClassAvail_;
};