diff options
author | Sebastian Geerken <devnull@localhost> | 2013-09-20 09:29:24 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-09-20 09:29:24 +0200 |
commit | fae1427770c3484970798e2e3f9f074f4af6599c (patch) | |
tree | 7c60e11b778b31910b9ebb230505066077897418 /src/html_common.hh | |
parent | ebd938d548840aefe8f30837ff987e4b726cd5bf (diff) |
Refactoring: some useful shortcuts in DilloHtml.
Diffstat (limited to 'src/html_common.hh')
-rw-r--r-- | src/html_common.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/html_common.hh b/src/html_common.hh index 6c5d4807..a2d13bf1 100644 --- a/src/html_common.hh +++ b/src/html_common.hh @@ -218,6 +218,20 @@ public: bool_t unloadedImages(); void loadImages (const DilloUrl *pattern); void addCssUrl(const DilloUrl *url); + + // useful shortcuts + inline void startElement (int tag) { styleEngine->startElement (tag); } + inline void startElement (const char *tagname) + { styleEngine->startElement (tagname); } + + inline dw::core::style::Style *backgroundStyle () + { return styleEngine->backgroundStyle (); } + inline dw::core::style::Style *style () { return styleEngine->style (); } + inline dw::core::style::Style *wordStyle () + { return styleEngine->wordStyle (); } + + inline void restyle () { styleEngine->restyle (); } + }; /* |