X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlayout.h;h=25452e7a0f37957f8d0a46fa70949af0c60a97e3;hb=86e0dfa3e11957318ca4f3f549248326aa806eb4;hp=f2a87f895f0c7fef2b85cbe51bd52422d5baa84f;hpb=f1f8ce2d1f7b296102fe9848d26346a6f35ec521;p=lyx.git diff --git a/src/lyxlayout.h b/src/lyxlayout.h index f2a87f895f..25452e7a0f 100644 --- a/src/lyxlayout.h +++ b/src/lyxlayout.h @@ -17,7 +17,8 @@ #include "lyxfont.h" #include "layout.h" #include "Spacing.h" -#include "support/std_string.h" + +#include class LyXLex; class LyXTextClass; @@ -44,25 +45,31 @@ public: /// void readSpacing(LyXLex &); /// - string const & name() const; + std::string const & name() const; + /// + void setName(std::string const & n); + /// + std::string const & obsoleted_by() const; + /// + std::string const & depends_on() const; /// - void setName(string const & n); + std::string const & latexname() const { return latexname_; } /// - string const & obsoleted_by() const; + std::string const & labelstring() const { return labelstring_; } /// - string const & depends_on() const; + std::string const & endlabelstring() const { return endlabelstring_; } /// - string const & latexname() const { return latexname_; } + std::string const & preamble() const { return preamble_; } /// - string const & labelstring() const { return labelstring_; } + std::string const & latexparam() const { return latexparam_; } /// - string const & endlabelstring() const { return endlabelstring_; } + std::string const & innertag() const { return innertag_; } /// - string const & preamble() const { return preamble_; } + std::string const & labeltag() const { return labeltag_; } /// - string const & latexparam() const { return latexparam_; } + std::string const & itemtag() const { return itemtag_; } /// - string const & labelstring_appendix() const { + std::string const & labelstring_appendix() const { return labelstring_appendix_; } /** Default font for this layout/environment. @@ -93,15 +100,15 @@ public: LyXFont reslabelfont; /// Text that dictates how wide the left margin is on the screen - string leftmargin; + std::string leftmargin; /// Text that dictates how wide the right margin is on the screen - string rightmargin; + std::string rightmargin; /// Text that dictates how much space to leave after a potential label - string labelsep; + std::string labelsep; /// Text that dictates how much space to leave before a potential label - string labelindent; + std::string labelindent; /// Text that dictates the width of the indentation of indented pars - string parindent; + std::string parindent; /// float parskip; /// @@ -143,11 +150,11 @@ public: /// show this in toc int toclevel; /// for new environment insets - string latexheader; + std::string latexheader; /// for new environment insets - string latexfooter; + std::string latexfooter; /// for new environment insets - string latexparagraph; + std::string latexparagraph; /** true when the fragile commands in the paragraph need to be \protect'ed. */ @@ -176,36 +183,44 @@ public: /// Does this layout allow for an optional parameter? int optionalargs; /// Which counter to step - string counter; + std::string counter; + /// Depth of XML command + int commanddepth; private: /// Name of the layout/paragraph environment - string name_; + std::string name_; /** Name of an layout that has replaced this layout. This is used to rename a layout, while keeping backward compatibility */ - string obsoleted_by_; + std::string obsoleted_by_; /** Name of an layout which preamble must come before this one This is used when the preamble snippet uses macros defined in another preamble */ - string depends_on_; + std::string depends_on_; /// LaTeX name for environment - string latexname_; + std::string latexname_; /// Label string. "Abstract", "Reference", "Caption"... - string labelstring_; + std::string labelstring_; /// - string endlabelstring_; + std::string endlabelstring_; /// Label string inside appendix. "Appendix", ... - string labelstring_appendix_; + std::string labelstring_appendix_; /// LaTeX parameter for environment - string latexparam_; + std::string latexparam_; + /// Internal tag to use (e.g., 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 - string preamble_; + std::string preamble_; }; #endif