aboutsummaryrefslogtreecommitdiff
path: root/src/html_common.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-12-09 14:44:42 +0100
committerSebastian Geerken <devnull@localhost>2013-12-09 14:44:42 +0100
commit01f697091153846bdffc73b3150ba37c763301cc (patch)
tree84773dff07a8498e7cc62695d89a6ecb29378a82 /src/html_common.hh
parentee66f4f97e38d11e68b9515b7043aa8ac6f63c74 (diff)
parent6c7572f8bd23064f96ba716e1ba8ba8a34847001 (diff)
Merge (large!).
Diffstat (limited to 'src/html_common.hh')
-rw-r--r--src/html_common.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/html_common.hh b/src/html_common.hh
index 6c5d4807..a43d91b7 100644
--- a/src/html_common.hh
+++ b/src/html_common.hh
@@ -218,6 +218,22 @@ public:
bool_t unloadedImages();
void loadImages (const DilloUrl *pattern);
void addCssUrl(const DilloUrl *url);
+
+ // useful shortcuts
+ inline void startElement (int tag)
+ { styleEngine->startElement (tag, bw, base_url); }
+ inline void startElement (const char *tagname)
+ { styleEngine->startElement (tagname, bw, base_url); }
+
+ inline dw::core::style::Style *backgroundStyle ()
+ { return styleEngine->backgroundStyle (bw, base_url); }
+ inline dw::core::style::Style *style ()
+ { return styleEngine->style (bw, base_url); }
+ inline dw::core::style::Style *wordStyle ()
+ { return styleEngine->wordStyle (bw, base_url); }
+
+ inline void restyle () { styleEngine->restyle (bw, base_url); }
+
};
/*