const_iterator end() const { return layoutlist_.end(); }
/// Performs the read of the layout file.
- bool Read(std::string const & filename, bool merge = false);
+ bool read(std::string const & filename, bool merge = false);
///
void readOutputType(LyXLex &);
///
LyXLayout_ptr const & operator[](std::string const & vname) const;
/// Sees to that the textclass structure has been loaded
- bool load() const;
+ bool load(std::string const & path=std::string()) const;
/// Has this layout file been loaded yet?
bool loaded() const { return loaded_; }
///
int size() const;
+ /// The minimal TocLevel of sectioning layouts
+ int min_toclevel() const;
+ /// The maximal TocLevel of sectioning layouts
+ int max_toclevel() const;
+ /// returns true if the class has a ToC structure
+ bool hasTocLevels() const;
private:
///
bool delete_layout(std::string const &);
/// 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_;
};