X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayout.h;h=d251d292c2ec6e7f51e3093cfa488bda955fdfea;hb=04a171cac68cded95b1c4018d26ca50cb191ffa4;hp=e4aab34c5db7b86f96a53811603613e0561cc0f4;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/Layout.h b/src/Layout.h index e4aab34c5d..d251d292c2 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -24,6 +24,7 @@ namespace lyx { +class Language; class Lexer; class TextClass; @@ -89,6 +90,12 @@ public: docstring const & category() const { return category_; } /// docstring const & preamble() const { return preamble_; } + /// Get language dependent macro definitions needed for this layout + /// for language \p lang + docstring const langpreamble(Language const * lang) const; + /// Get language and babel dependent macro definitions needed for + /// this layout for language \p lang + docstring const babelpreamble(Language const * lang) const; /// std::set const & requires() const { return requires_; } /// @@ -266,6 +273,10 @@ private: docstring category_; /// Macro definitions needed for this layout docstring preamble_; + /// Language dependent macro definitions needed for this layout + docstring langpreamble_; + /// Language and babel dependent macro definitions needed for this layout + docstring babelpreamble_; /// Packages needed for this layout std::set requires_; };