X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclass.h;h=57345d8353b352615bb15b29688f45cf2faa956c;hb=5e3b997b852fc96eef2387934b600262d3037745;hp=e190af915e2394af31b169fb7c5c7dde00f73b6e;hpb=a9cd48f40e48a0e7c00f2bf9d33f01f19a0d83db;p=lyx.git diff --git a/src/lyxtextclass.h b/src/lyxtextclass.h index e190af915e..57345d8353 100644 --- a/src/lyxtextclass.h +++ b/src/lyxtextclass.h @@ -23,10 +23,12 @@ class FloatList; /// -struct CharStyle { +class CharStyle { +public: std::string name; std::string latextype; std::string latexname; + std::string latexparam; LyXFont font; LyXFont labelfont; std::string preamble; @@ -60,7 +62,7 @@ public: 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 &); /// @@ -82,7 +84,9 @@ public: 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_; } /// the list of floats defined in the document class FloatList & floats(); @@ -168,6 +172,12 @@ public: /// 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 &); @@ -226,7 +236,7 @@ private: LayoutList layoutlist_; /// CharStyles available to this layout mutable CharStyles charstylelist_; - + /// available types of float, eg. figure, algorithm. boost::shared_ptr floatlist_; @@ -234,10 +244,15 @@ private: boost::shared_ptr 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_; };