Attachment 'PDFControl1_0_1.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - PDFControl macro to control the PDF action plugin output
4
5 Dedicated for HTMLDOC aspecially for the PDF action plugin this macro
6 allow to control the processing of HTMLDOC.
7
8 A overview about available features gives the HTMLDOC documentation:
9 http://www.htmldoc.org/documentation.php/Comments.html#COMMENTS
10
11 @copyright: 2006 Raphael Bossek <raphael.bossek@solutions4linux.de>
12 @license: GNU GPL, see COPYING for details.
13
14 2006-11-14 Raphael Bossek
15 * Release v1.0.1
16 * Moin 1.6 support added.
17
18 2006-08-31 Raphael Bossek
19 * Initial release v1.0.0
20 """
21
22 def execute (macro, args):
23 msg = u''
24 if args:
25 msg += u'<!-- %s -->' % (args,)
26 if macro.request.form.has_key(u'button_preview'):
27 msg += u'<span style="cursor: help; border-bottom: 1px dashed;" title="PDFControl: %s"> ¶</span>' % (args,)
28 elif macro.request.form.has_key(u'button_preview'):
29 _ = macro.request.getText
30 msg += macro.formatter.paragraph (1, css_class='error')
31 msg += macro.formatter.smiley(u'/!\\')
32 msg += macro.formatter.text(u' ')
33 msg += macro.formatter.strong(1)
34 msg += macro.formatter.text(_(u'Empty PDFControl macro option.'))
35 msg += macro.formatter.text(u' ')
36 msg += macro.formatter.text(_(u'To get an overview about HTMLDOC\'s control options please refer to the online help:'))
37 msg += macro.formatter.text(u' ')
38 msg += macro.formatter.url (1, u'http://www.htmldoc.org/documentation.php/Comments.html#COMMENTS')
39 msg += macro.formatter.text(_(u'HTMLDOC help'))
40 msg += macro.formatter.url(0)
41 msg += macro.formatter.linebreak(0)
42 msg += macro.formatter.smiley(u'(!)')
43 msg += macro.formatter.text(u' ')
44 msg += macro.formatter.text(_(u'To start a new page within the PDF document enter:'))
45 msg += macro.formatter.text(u' ')
46 msg += macro.formatter.code(1)
47 msg += macro.formatter.text(u'[[PDFControl(NEW PAGE)]]')
48 msg += macro.formatter.code(0)
49 msg += macro.formatter.strong(0)
50 msg += macro.formatter.paragraph(0)
51
52 return msg
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.