]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.h
minimal effort implementation of:
[lyx.git] / src / lyxlayout.h
index 772d9aeca45e110dc8135b20573c8ed30f4215f2..88907d7aa0a13995b9ceb6a7ecf51104215a1765 100644 (file)
@@ -29,7 +29,7 @@ public:
        ///
        LyXLayout();
        ///
-       bool Read(LyXLex &, LyXTextClass const &);
+       bool read(LyXLex &, LyXTextClass const &);
        ///
        void readAlign(LyXLex &);
        ///
@@ -65,6 +65,10 @@ public:
        ///
        std::string const & innertag() const { return innertag_; }
        ///
+       std::string const & labeltag() const { return labeltag_; }
+       ///
+       std::string const & itemtag() const { return itemtag_; }
+       ///
        std::string const & labelstring_appendix() const {
                return labelstring_appendix_;
        }
@@ -106,17 +110,17 @@ public:
        /// Text that dictates the width of the indentation of indented pars
        std::string parindent;
        ///
-       float parskip;
+       double parskip;
        ///
-       float itemsep;
+       double itemsep;
        ///
-       float topsep;
+       double topsep;
        ///
-       float bottomsep;
+       double bottomsep;
        ///
-       float labelbottomsep;
+       double labelbottomsep;
        ///
-       float parsep;
+       double parsep;
        ///
        Spacing spacing;
        ///
@@ -145,6 +149,8 @@ public:
        bool is_environment;
        /// show this in toc
        int toclevel;
+       /// special value of toclevel for non-section layouts
+       static const int NOT_IN_TOC;
        /// for new environment insets
        std::string latexheader;
        /// for new environment insets
@@ -211,6 +217,10 @@ private:
        std::string latexparam_;
        /// Internal tag to use (e.g., <title></title> for sect header)
        std::string innertag_;
+       /// Internal tag to use e.g. to surround varlistentry label)
+       std::string labeltag_;
+       /// Internal tag to surround the item text in a list)
+       std::string itemtag_;
        /// Macro definitions needed for this layout
        std::string preamble_;
 };