]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.h
Kill indexing into the list of layouts.
[lyx.git] / src / Layout.h
index fa4bdc2da23f3f8da951ee5bf071e82ad0101689..32abb5c520db108ccced9625616823eb33e2eb36 100644 (file)
@@ -52,6 +52,7 @@ public:
        ///
        Layout();
        /// Reads a layout definition from file
+       /// \return true on success.
        bool read(Lexer &, TextClass const &);
        ///
        void readAlign(Lexer &);
@@ -82,6 +83,8 @@ public:
        ///
        docstring const & endlabelstring() const { return endlabelstring_; }
        ///
+       docstring const & category() const { return category_; }
+       ///
        docstring const & preamble() const { return preamble_; }
        ///
        std::set<std::string> const & requires() const { return requires_; }
@@ -253,6 +256,10 @@ private:
        std::string labeltag_;
        /// Internal tag to surround the item text in a list)
        std::string itemtag_;
+       /// This is the `category' for this layout. The following are
+       /// recommended basic categories: FrontMatter, BackMatter, MainText,
+       /// Section, Starred, List, Theorem.
+       docstring category_;
        /// Macro definitions needed for this layout
        docstring preamble_;
        /// Packages needed for this layout