]> git.lyx.org Git - features.git/blobdiff - src/Layout.h
Allow to separate menu string from label string for arguments
[features.git] / src / Layout.h
index 45bdf460bf7a0eb3245325a80bc17bda96d15df0..9b3ff388a64694c8cf1711f8096d6a5b0ab20740 100644 (file)
@@ -90,17 +90,23 @@ public:
        /// The arguments of this layout
        struct latexarg {
                docstring labelstring;
+               docstring menustring;
                bool mandatory;
                docstring ldelim;
                docstring rdelim;
                docstring tooltip;
                std::string requires;
+               std::string decoration;
+               FontInfo font;
+               FontInfo labelfont;
        };
        ///
-       typedef std::map<unsigned int, latexarg> LaTeXArgMap;
+       typedef std::map<std::string, latexarg> LaTeXArgMap;
        ///
        LaTeXArgMap const & latexargs() const { return latexargs_; }
        ///
+       LaTeXArgMap const & itemargs() const { return itemargs_; }
+       ///
        int optArgs() const;
        ///
        int requiredArgs() const;
@@ -396,6 +402,8 @@ private:
        std::set<std::string> requires_;
        ///
        LaTeXArgMap latexargs_;
+       ///
+       LaTeXArgMap itemargs_;
 };
 
 } // namespace lyx