class FloatList;
+///
+class CharStyle {
+public:
+ std::string name;
+ std::string latextype;
+ std::string latexname;
+ std::string latexparam;
+ LyXFont font;
+ LyXFont labelfont;
+ std::string preamble;
+};
+
+
+/// List of semantically defined character style insets
+typedef std::vector<CharStyle> CharStyles;
+
+
/// Stores the layout specification of a LyX document class.
class LyXTextClass {
public:
///
void readClassOptions(LyXLex &);
///
+ void readCharStyle(LyXLex &, std::string const &);
+ ///
void readFloat(LyXLex &);
///
void readCounter(LyXLex &);
/// 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();
FloatList const & floats() const;
/// The Counters present in this document class.
Counters & counters() const;
+ /// CharStyles of this doc class
+ CharStyles & charstyles() const { return charstylelist_; };
+ /// Retrieve element of name s:
+ CharStyles::iterator charstyle(std::string const & s) const;
///
std::string const & defaultLayoutName() const;
///
///
std::string const & options() const;
///
+ std::string const & class_header() const;
+ ///
std::string const & pagestyle() const;
///
std::string const & preamble() const;
///
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 &);
///
std::string pagestyle_;
///
+ std::string class_header_;
+ ///
std::string defaultlayout_;
/// preamble text to support layout styles
std::string preamble_;
/// Paragraph styles used in this layout
LayoutList layoutlist_;
+ /// CharStyles available to this layout
+ mutable CharStyles charstylelist_;
/// available types of float, eg. figure, algorithm.
boost::shared_ptr<FloatList> floatlist_;
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_;
};