From 51607100aba3e3c0184fae367d2fbbea4ff6b7f2 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 5 Jun 2009 17:36:51 +0000 Subject: [PATCH] InsetLayout infrastructure. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29948 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLayout.cpp | 15 +++++++++++++++ src/insets/InsetLayout.h | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index ca1429793b..ce75bf35f8 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -81,6 +81,9 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass) IL_FORCELTR, IL_FORCEPLAIN, IL_FREESPACING, + IL_HTMLTAG, + IL_HTMLATTR, + IL_HTMLSTYLE, IL_INTOC, IL_LABELFONT, IL_LABELSTRING, @@ -108,6 +111,9 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass) { "forceltr", IL_FORCELTR }, { "forceplain", IL_FORCEPLAIN }, { "freespacing", IL_FREESPACING }, + { "htmlattr", IL_HTMLATTR }, + { "htmlstyle", IL_HTMLSTYLE }, + { "htmltag", IL_HTMLTAG }, { "intoc", IL_INTOC }, { "keepempty", IL_KEEPEMPTY }, { "labelfont", IL_LABELFONT }, @@ -258,6 +264,15 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass) case IL_PREAMBLE: preamble_ = from_utf8(lex.getLongString("EndPreamble")); break; + case IL_HTMLTAG: + lex >> htmltag_; + break; + case IL_HTMLATTR: + lex >> htmlattr_; + break; + case IL_HTMLSTYLE: + htmlstyle_ = from_utf8(lex.getLongString("EndHTMLStyle")); + break; case IL_REQUIRES: { lex.eatLine(); vector const req diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h index 886a665885..ecad3bfff5 100644 --- a/src/insets/InsetLayout.h +++ b/src/insets/InsetLayout.h @@ -78,6 +78,12 @@ public: ColorCode bgcolor() const { return bgcolor_; }; /// docstring preamble() const { return preamble_; }; + /// + std::string const & htmltag() const { return htmltag_; } + /// + std::string const & htmlattr() const { return htmlattr_; } + /// + docstring htmlstyle() const { return htmlstyle_; } /// std::set requires() const { return requires_; }; /// @@ -125,6 +131,12 @@ private: ColorCode bgcolor_; /// docstring preamble_; + /// + std::string htmltag_; + /// + std::string htmlattr_; + /// + docstring htmlstyle_; /// std::set requires_; /// -- 2.39.5