diff options
author | David Boddie <david.boddie@nokia.com> | 2010-12-13 18:52:01 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-12-13 18:52:01 (GMT) |
commit | b0ee435866b65c22338bfb6c878352ff69d868da (patch) | |
tree | b0e1381b19c30116ee811de282c25cca2e8ee574 /tools | |
parent | c4e5d784609533e26ee9ea6459cd315bd9c3c0a4 (diff) | |
download | Qt-b0ee435866b65c22338bfb6c878352ff69d868da.zip Qt-b0ee435866b65c22338bfb6c878352ff69d868da.tar.gz Qt-b0ee435866b65c22338bfb6c878352ff69d868da.tar.bz2 |
Added macros for floating images and floating images with alt text.
Ideally, these would be HTML-only macros, but the macro system doesn't
know whether macro arguments used in pure HTML are file names, so the
necessary files are not included. By using qdoc commands, we ensure
the files are copied into the generated documentation's images
directory.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/test/macros.qdocconf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/qdoc3/test/macros.qdocconf b/tools/qdoc3/test/macros.qdocconf index 510a8b3..712d5e4 100644 --- a/tools/qdoc3/test/macros.qdocconf +++ b/tools/qdoc3/test/macros.qdocconf @@ -30,6 +30,38 @@ macro.endcomment = "\\c{*/}" macro.uuml.HTML = "ü" macro.mdash.HTML = "—" +# Macros for floating images and floating images with alt text. +# Ideally, these would be HTML-only macros. + +macro.floatleft = "\\raw HTML\n" \ + "<div style=\"float: left; margin-right: 2em\">" \ + "\\endraw\n" \ + "\\inlineimage \1\n" \ + "\\raw HTML\n" \ + "</div>\n" \ + "\\endraw\n" +macro.figureleft = "\\raw HTML\n" \ + "<div style=\"float: left; margin-right: 2em\">" \ + "\\endraw\n" \ + "\\inlineimage \1 \2\n" \ + "\\raw HTML\n" \ + "</div>\n" \ + "\\endraw\n" +macro.floatright = "\\raw HTML\n" \ + "<div style=\"float: right; margin-left: 2em\">\n" \ + "\\endraw\n" \ + "\\inlineimage \1\n" \ + "\\raw HTML\n" \ + "</div>\n" \ + "\\endraw\n" +macro.figureright = "\\raw HTML\n" \ + "<div style=\"float: right; margin-left: 2em\">" \ + "\\endraw\n" \ + "\\inlineimage \1 \2\n" \ + "\\raw HTML\n" \ + "</div>\n" \ + "\\endraw\n" + macro.beginfloatleft.HTML = "<div style=\"float: left; margin-right: 2em\">" macro.beginfloatright.HTML = "<div style=\"float: right; margin-left: 2em\">" macro.endfloat.HTML = "</div>" |