From 004a0b996ff8f269451e07346f71a129a1f3fbaf Mon Sep 17 00:00:00 2001
From: pinky <>
Date: Thu, 7 Dec 2006 13:41:40 +0000
Subject: New trunk
bzr revid: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
---
bin/reportlab/tools/pythonpoint/demos/htu.xml | 96 ++
bin/reportlab/tools/pythonpoint/demos/leftlogo.a85 | 53 +
bin/reportlab/tools/pythonpoint/demos/leftlogo.gif | Bin 0 -> 2198 bytes
bin/reportlab/tools/pythonpoint/demos/lj8100.jpg | Bin 0 -> 12463 bytes
bin/reportlab/tools/pythonpoint/demos/monterey.xml | 306 ++++++
bin/reportlab/tools/pythonpoint/demos/outline.gif | Bin 0 -> 12918 bytes
bin/reportlab/tools/pythonpoint/demos/pplogo.gif | Bin 0 -> 3429 bytes
bin/reportlab/tools/pythonpoint/demos/python.gif | Bin 0 -> 125666 bytes
.../tools/pythonpoint/demos/pythonpoint.xml | 1051 ++++++++++++++++++++
bin/reportlab/tools/pythonpoint/demos/spectrum.png | Bin 0 -> 1855 bytes
.../tools/pythonpoint/demos/vertpython.gif | Bin 0 -> 20910 bytes
11 files changed, 1506 insertions(+)
create mode 100644 bin/reportlab/tools/pythonpoint/demos/htu.xml
create mode 100644 bin/reportlab/tools/pythonpoint/demos/leftlogo.a85
create mode 100644 bin/reportlab/tools/pythonpoint/demos/leftlogo.gif
create mode 100644 bin/reportlab/tools/pythonpoint/demos/lj8100.jpg
create mode 100644 bin/reportlab/tools/pythonpoint/demos/monterey.xml
create mode 100644 bin/reportlab/tools/pythonpoint/demos/outline.gif
create mode 100644 bin/reportlab/tools/pythonpoint/demos/pplogo.gif
create mode 100644 bin/reportlab/tools/pythonpoint/demos/python.gif
create mode 100644 bin/reportlab/tools/pythonpoint/demos/pythonpoint.xml
create mode 100644 bin/reportlab/tools/pythonpoint/demos/spectrum.png
create mode 100644 bin/reportlab/tools/pythonpoint/demos/vertpython.gif
(limited to 'bin/reportlab/tools/pythonpoint/demos')
diff --git a/bin/reportlab/tools/pythonpoint/demos/htu.xml b/bin/reportlab/tools/pythonpoint/demos/htu.xml
new file mode 100644
index 00000000000..56cb92457dc
--- /dev/null
+++ b/bin/reportlab/tools/pythonpoint/demos/htu.xml
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+ © 2002, H. Turgut UYAR
+
+
+
+
+
+ New features in PythonPoint
+ H. Turgut Uyar
+ uyar@cs.itu.edu.tr
+
+
+
+
+ TrueType Support
+
+
+ PythonPoint can read UTF-8 encoded input files and produce
+ correct output (provided your font has all necessary
+ characters). That enables you, for example, to have native (in my
+ case, Turkish) characters in your document:
+
+
+ 0 ^ 1 _
+
+
+
+
+
+ Effects
+
+
+ Paragraphs, images, tables and geometric shapes can now have
+ effectname, effectdirection, effectdimension, effectmotion and
+ effectduration attributes:
+ A paragraph
+
+
+ Col1,Col2,Col3
+ Row1Col1,Row1Col2,Row1Col3
+ Row2Col1,Row2Col2,Row2Col3
+
+
+
+ String
+
+
+
+
+ Printing
+
+
+ Be careful when using effects: A new slide is created for
+ each effect, so DON'T print the resulting PDF file.
+ new command-line option: --printout
+ produces printable PDF
+
+
+
+
+ New Paragraph Styles
+
+
+ Bullet2 - Second level bullets
+ Here's an example
+ Or an example with a longer text to see
+ how it wraps at the end of each line
+ Author and EMail
+ See the cover page for examples
+ They have to be in the style file, so either use
+ the htu style file or edit your style file
+
+
+
+
+ ToDo
+
+
+ Unicode chars in the outline
+
+
+
+
diff --git a/bin/reportlab/tools/pythonpoint/demos/leftlogo.a85 b/bin/reportlab/tools/pythonpoint/demos/leftlogo.a85
new file mode 100644
index 00000000000..7d55afcf348
--- /dev/null
+++ b/bin/reportlab/tools/pythonpoint/demos/leftlogo.a85
@@ -0,0 +1,53 @@
+BI
+/W 103 /H 68 /BPC 8 /CS /RGB /F [/A85 /Fl]
+ID
+Gb"/*cYjIe']/l*^;)UQj:Ec+nd!,-,*G/5;0"E.+@qg.\92h2HbiE)jC5*M
+$a,@:RoXB@WPjMu=[F;88l[?@OO=6qV,HNNiL#(cac+!&rF)2^DHJ?_:WQkn
+1[fb`hOBr--B>FoSDXMt35Gnj6n\3XT8sf/Y%-NPLqg'pmQ+*EiV6D:,$akf
+!i2MA/A-"n[R.R)S!ePi$u('8mrCG8[3:WLlB[amBYAS4hR2*f7tR;&\%]Ld
+ZX5^f6Qj@\h7^FuQ(">[ml32FWhJG;Z)t2oADV4[H6GbW.mH`MDlesQZO5+Q5)]OWf2G9[
+U9W99*2'#PD+cIXnp"J"(BrY^=(rg;ITf("c#0"S<;fjK,APV+p9p+05LO&X
+jQNf`8c26f]J54N'k#I9=Bt4]e&6gN'#S[nK3*VhQ!`PpXcJ0i:J_2rC@=>X\5dUbEcCZ?\6O)+F/35ZJD6R$H^-Z!R
+5;8=l//9SUkC;LhQ*?di<'6e&/BNIqm(%(SDYXJ
+p%%Z+J.IshkX$tLPOD'"jSV#/6iY?QI>8P-%o0k3`e#X33RJS`f'D!D2rTJ-
+(4Znb03&koo>X[bKs.qpBOkU,KCCO3S$2.Gr@e8E=$On&hUiAB2[.;G@FQf7_K1&D6RJ.Ih@-56Ss&B1q:\)MgJ8P4Sa-(Fm
+J"d8Z]Mf`Q$G^\tK@pQWQs3iRB[KP=+H&@+iH@XGFQ'#n!DJ$)Mc?"U#od!oYl3En7nT"7UC,,Q&Hr
+9.SPlHak6s)J0;k;hQC:k82'=COeskp&dB-#@RrY1B=H^'L=,;9uJssq%XGf
+h/fXmq>1G\?k6ZH*GSk&M)?&TJ?rYW.9f!gdM2&:Kr51A3^MX?GV'T@$h)Da
+-RIIcpl8fhiQr=`\k[7;3`X"d!or(jb1YM>"Ppi`,67@]M"d
++mXd;WRE"IKX@n&dNNV/55(]`==+_r?K5bp?$^4Pn/[2ncL(/l#CfSYAg:iN
+@3j5R$qtm;AIF7k%^ak'%4Z1354d"1VT\g]cm[^hI.Yf>DcLS\rq+As2F?LI
+'gq+/_o9&kK,4@]qbdfA8FauP;!N'$5J@1P/\Th=9i^\b$/-6-kL#$E&39t%
+/O[1Fm`/F?!q;%bB')DM`KY&D!,6)lG5TQ88ejHiTWKt;3_8:@M!NnP'D2s$
+2Q25"dX)7pQ%VUq+r1%.iMQiLR#&.@\:Pe96FEbkgLu`Fb;!#d,DPC-H/d?u
+^']=P86?6qr/@_/T-T0?,+>brI`?=13["Y(3DYSMX7UAUk0'!l!aPN4$e\f&(i2TTrbVuOYhc05Rko:?UP09gLc(-/ni'Q6T.B&8]k
+#a_e\0FTMV`IT;W7M>_'NT_f=~>
+EI
diff --git a/bin/reportlab/tools/pythonpoint/demos/leftlogo.gif b/bin/reportlab/tools/pythonpoint/demos/leftlogo.gif
new file mode 100644
index 00000000000..2d9c990ba7a
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/leftlogo.gif differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/lj8100.jpg b/bin/reportlab/tools/pythonpoint/demos/lj8100.jpg
new file mode 100644
index 00000000000..be3c6183d3b
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/lj8100.jpg differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/monterey.xml b/bin/reportlab/tools/pythonpoint/demos/monterey.xml
new file mode 100644
index 00000000000..41bd979fa67
--- /dev/null
+++ b/bin/reportlab/tools/pythonpoint/demos/monterey.xml
@@ -0,0 +1,306 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Printing with Python
+
+
+
+ Andy Robinson, Robinson Analytics Ltd.
+
+
+ O'Reilly Python Conference, Monterey, 24th August 1999
+
+
+
+
+
+
+ Background to the project:
+
+
+ London-based consultant and corporate developer
+
+
+ want to do neat Python stuff in the daytime
+
+
+ working for many years on financial modelling
+
+
+ this is one of 6 modules in that system
+
+
+ quickest to deliver, offers very wide benefits
+
+
+ 25% of architecture done, but already very useful
+
+
+ Release early, release often!
+
+
+
+
+
+
+
+ Goal:
+
+
+ A Reporting Package on the Next Curve...
+
+
+ Report on objects, not databases
+
+
+ Scalable to million page runs
+
+
+ Light enough to embed in any application
+
+
+ Allow reuse of graphical objects across reports
+
+
+ Open and extensible on several levels
+
+
+ Publication quality
+
+
+ Support all the world's languages - one day
+
+
+
+
+
+
+ Portable Document Format
+
+
+ The New PostScript
+
+
+ Free readers on all platforms
+
+
+ Better than paper - view it, email it, print it
+
+
+ 'Final Form' for documents
+
+
+ High end solution - no limits to quality
+
+
+ ...but you can't learn it in Notepad!
+
+
+
+
+
+
+
+
+ PDFgen and PIDDLE
+
+
+
+
+
+
+ Layer One - PDFgen
+
+
+ makes PDF documents from pure Python
+
+
+ wraps up PDF document structure
+
+
+ exposes nice effects - page transitions, outline trees (RSN!)
+
+
+ low level graphics promitives (postscript imaging model)
+
+
+ Fine control of text placement
+
+
+ Supports Asian text
+
+
+ Supports coordinate transformations and clipping
+
+
+ ...a foundation for other apps to build on
+
+
+
+
+
+
+ PDFgen Image Support
+
+
+ Python Imaging Library and zlib do all the work - many formats.
+ Images cached (like .pyc files) - very fast builds possible.
+
+
+
+
+
+
+
+ Layer Two: PIDDLE
+
+
+ Plug In Drawing, Does Little Else
+
+
+ Easy Graphics Library
+
+
+ Abstract Canvas Interface
+
+
+ Pluggable Back Ends
+
+
+ Same code can do viewing and printing
+
+
+ Standard set of test patterns
+
+
+ Uses Python Imaging Library
+
+
+ Back ends includeTkinter, wxPython, Mac, Pythonwin, PDF, PostScript,
+ OpenGL, Adobe Illustrator and PIL. Really easy to add a new one!
+
+
+
+
+
+
+ Layer Three: PLATYPUS
+
+
+ "Page Layout And Typography Using Scripts"
+
+
+ Trying to work out the API now. Key Concepts:
+
+
+ Drawable objects - can 'wrap to fit'
+
+
+ Frames on page
+
+
+ Frame consumes from a list of drawables until full
+
+
+ Document Models e.g. SimpleFlowDocument
+
+
+ XSL Flow Object model may be a good target
+
+
+
+
+
+
+ Drawable Objects
+
+
+ Next layer of PIDDLE extensibility.
+ Each draws in its own coodinate system
+
+
+ paragraph, image, table
+
+
+ chart libraries
+
+
+ diagrams
+
+
+ Open Source - let people contribute new ones.
+ Anything you could have in a view can be a new
+ drawable type.
+
+
+
+
+
+
+ Style Sheet Driven
+
+
+ Styles use instance inheritance
+
+
+ Paragraph Styles - Style Sheet Compulsory!
+
+
+ Text Styles within a paragraph
+
+
+ Table and Table Cell Styles
+
+
+
+
+
+
+ Vision
+
+
+ XML to PDF in one step
+
+
+ Publish to web and print from same source
+
+
+ Financial and Scientific reporting tool
+
+
+ Embedded reporting engine
+
+
+ Volume reporting tool for business
+
+
+
+
+
+
+ PythonPoint
+
+
+ How I made this presentation...
+
+
+
+
+
diff --git a/bin/reportlab/tools/pythonpoint/demos/outline.gif b/bin/reportlab/tools/pythonpoint/demos/outline.gif
new file mode 100644
index 00000000000..4a294b59277
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/outline.gif differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/pplogo.gif b/bin/reportlab/tools/pythonpoint/demos/pplogo.gif
new file mode 100644
index 00000000000..d0344497ca5
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/pplogo.gif differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/python.gif b/bin/reportlab/tools/pythonpoint/demos/python.gif
new file mode 100644
index 00000000000..c68e1e4ec37
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/python.gif differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/pythonpoint.xml b/bin/reportlab/tools/pythonpoint/demos/pythonpoint.xml
new file mode 100644
index 00000000000..15d1ad709b5
--- /dev/null
+++ b/bin/reportlab/tools/pythonpoint/demos/pythonpoint.xml
@@ -0,0 +1,1051 @@
+
+
+
+
+ PythonPoint Demonstration
+ Andy Robinson
+ Reportlab Sample Applications
+
+
+
+
+
+
+
+
+
+
+ Welcome to PythonPoint
+
+
+ ...a library for creating presentation slides.
+
+
+
+ PythonPoint
+
+ lets you create attractive and consistent presentation slides
+ on any platform. It is a demo app built on top of the PDFgen PDF library
+ and the PLATYPUS Page Layout library. Essentially, it converts slides
+ in an XML format to PDF.
+
+
+ It can be used right now to create slide shows, but will
+ undoubtedly change and evolve. Read on for a tutorial...
+
+
+
+
+ Smile and look them in the eye!
+
+
+
+
+
+
+
+
+
+ Part 1 Feature Overview
+
+
+
+
+
+
+ XML Notation
+
+
+ You create slides in a text editor with a basic
+ XML syntax looking like this:
+
+
+
+ Welcome to PythonPoint
+
+
+ ...a library for creating presentation slides.
+
+ ]]>
+
+ Pythonpoint then converts these into slides. Just enter
+ "pythonpoint.py myfile.xml" to create a PDF document
+ (usually called "myfile.pdf", but you specify that in the XML).
+
+
+
+
+
+
+ Page Layout Model
+
+
+ The Page Layout model comes from PLATYPUS (Page Layout and Typography Using Scripts),
+ a key component of the toolkit. This covers concepts such as:
+
+
+ Reusable 'Drawable Objects'
+
+
+ Frames into which objects flow (like this one, around which we have drawn a border)
+
+
+ Style Sheets for text, table cells, line styles etc.
+
+
+ Wrapping, page breaking an document management logic
+
+
+ Everything is open and extensible. I hope a library of
+ reusable objects such as charts and diagrams will grow up.
+
+
+
+
+
+
+ Reuse and Consistency Sections
+
+
+ You can create a 'section' spanning some or all tags in the presentation
+ and place graphics on this. The blue border and title come from the
+ section. Here's how we did the border:
+
+
+
+
+
+
+ ...all slides go here...
+
+
+]]>
+
+ Thus you can re-brand an entire presentation for
+ a new audience in seconds.
+
+
+
+
+
+
+ Style Sheets
+
+
+ Paragraph styles are defined externally. You may specify a filename
+ from which to load a stylesheet with the stylesheet tag.
+
+
+ Thus you can have different sizes and formats by switching
+ stylesheets, or colour and black-and-white options.
+
+
+ When they are added, tables will be driven by line and cell
+ styles in a similar way.
+
+
+
+
+
+
+ Special Effects
+
+
+ Acrobat Reader supports tags to define page transition effects.
+ If you are reading this on screen, you should have seen a selection
+ of these:
+
+
+ Split
+
+
+ Blinds
+
+
+ Box
+
+
+ Wipe
+
+
+ Dissolve
+
+
+ Glitter
+
+
+ Each has a range of options to fine-tune.
+
+
+ When they are added, tables will be driven by line and cell
+ styles in a similar way.
+
+
+
+
+
+
+ Outlines and Hyperlinks
+
+
+ By default, we generate an outline view in the left pane to
+ help you navigate. Hyperlinks within documents are also
+ possible.
+
+
+ As far as we know, this is the first PDF library to expose
+ these features.
+
+
+
+
+
+
+ Basic Shapes
+
+
+ Here are some of the basic shapes available for decorating pages...
+
+
+
+
+
+
+
+
+ This is a\nmulti-line string\nplaced directly on the page.\n\nIt can be left-aligned,\ncentred,\nor right-aligned.
+
+
+
+
+
+
+ Tables
+
+
+ The Table tag lets you paste in bulk data and format it attractively:
+
+
+
+ Division,Jan,Feb,Mar,Q1 Total
+ North,100,115,120,335
+ South,215,145,180,540
+ East,75,90,135,300
+ West,100,120,115,335
+
+
+
+
+
+
+ Features Coming Soon
+
+
+ This is the first version that runs. A lot can now be added fairly easily:
+
+
+ Preprocessor to let you enter paragraphs and
+ bullets as one block of text, with less tag typing!
+
+
+ PIDDLE drawings
+
+
+ PINGO drawings 'Object Graphics' tags with grouping and coordinate transformations
+
+
+ Speaker notes and a mode to print them
+
+
+ Tools to archive slides in a database and build presentations to order
+
+
+ ...what else can YOU think of?
+
+
+
+
+
+
+
+
+
+ Part 2 Reference
+
+
+
+ This section covers all command line options
+ and tags currently in use.
+
+
+
+
+
+
+ Command Line Options
+
+
+ Usage (NT, or executable Unix script):
+
+
+
+ pythonpoint.py [/notes] myslides.xml
+
+
+
+ or (Win9x or non-executable script)
+
+
+
+ python pythonpoint.py [/notes] myslides.xml
+
+
+
+ Notes:
+
+
+ The resulting PDF file has the same
+ name as the input file.
+
+
+ The Speaker Notes mode prints a shrunken canvas with
+ room for notes around the edge. To create notes, make
+ an extra frame off the page. See the source of
+ Pythonpoint.xml slide 001 for an example.
+
+
+
+
+
+
+ Tag "presentation"
+
+
+ This is the outermost tag in an XML file and is always required.
+
+
+ Attributes:
+
+
+ filename (required)
+
+
+ Can Contain:
+
+
+ section, stylesheet, slides
+
+
+
+ To Do:
+
+
+ Support for page sizes, opening modes
+
+
+
+
+
+
+ Tag "stylesheet"
+
+
+ This defines an external style sheet full of paragraph styles.
+ For now, these are Python modules conforming to a common interface,
+ and examples are given. If not declared, a default style sheet is
+ used. You are strongly advised to define your own style sheet,
+ as the built-in one will change a few more times.
+
+
+ Attributes:
+
+
+ path, module, function
+
+
+ Contained By:
+
+
+ Presentation, Section
+
+
+ Can Contain:
+
+
+ nothing
+
+
+ Example
+
+
+]]>
+
+
+
+
+
+ Tag "section"
+
+
+ A Section spans across a number of slides and can apply an
+ overall background to them. Place graphics directly within
+ the section tag, either before or after slides. This lets
+ you re-brand a presentation very quickly. Documents
+ may contain multiple sections; nesting of sections is
+ not (yet) permitted.
+
+
+ Attributes:
+
+
+ name (required, but not used yet)
+
+
+ Contained By:
+
+
+ Presentation
+
+
+ Can Contain:
+
+
+ all graphic shapes; slides
+
+
+
+
+
+
+ Tag "slide"
+
+
+ Defines a single slide. The presentation effects are defined
+ in the PDF reference; best to just try the combinations.
+
+
+ Attributes (with defaults):
+
+
+ id (required)
+
+
+ title (required)
+
+
+ effectname: one of Split, Blinds, Box, Wipe, Dissolve, Glitter
+
+
+ effectdirection: '0','90','180' or '270'
+
+
+ effectdimension: 'H' or 'V' (Horiz./Vert.)
+
+
+ effectmotion: 'I' for inwards or 'O' for outwards
+
+
+ effectduration: time in seconds
+
+
+ Contained By:
+
+
+ Presentation
+
+
+ Can Contain:
+
+
+ all graphic shapes; frames
+
+
+
+
+
+
+ Tag "frame"
+
+
+ Defines a frame on the page which can hold content. You may have
+ as many frames as you like, to allow multi-column text or flow
+ around pictures.
+
+
+ Attributes:
+
+
+ x, y, width, height (all required): in points
+
+
+ leftmargin, rightmargin, topmargin, bottommargin
+ (optional, default to zero) define the 'inner rectangle' within
+ which content flows
+
+
+ border (defaults to 'false'): whether to show
+ a frame border useful when designing pages.
+
+
+ Contained By:
+
+
+ Slide
+
+
+ Can Contain:
+
+
+ all 'flowable objects' paragraphs, images
+
+
+
+
+
+
+ Tag family "Flowable Objects"
+
+
+ Flowable Objects currently include Paragraphs, Preformatted text
+ (used for code printing, where the line breaks and spaces matter)
+ and inline Images. More will be added in future.
+ They negotiate with their containing frame about height and
+ width; paragraphs do what you would expect, while images are centred.
+
+
+ Contained By:
+
+
+ Slide
+
+
+ Can Contain:
+
+
+ The three instances so far contain nothing.
+
+
+
+
+
+
+ Tag "para" Paragraphs
+
+
+ Paragraphs are used for wrapping text. They are very simple
+ they have a style attribute,
+ and the stylesheet defines most attributes externally.
+ Currently we use a hack to handle 'bullets', which may be in
+ a different font (such as 'ZapfDingbats, specified in style)
+ and offset to the left. These are used
+ for bullets, numbering and definition lists
+ This will vanish as soon as one can
+ switch fonts in mid-paragraph (due mid April).
+
+
+ Attributes:
+
+
+ style (defaults to 'Normal')
+ reference to stylesheet
+
+
+ bullettext
+ text for the optional 'bullet' section. To be deprecated.
+
+
+ Contained By:
+
+
+ Frame
+
+
+ Can Contain:
+
+
+ Their text
+
+
+
+
+
+
+ Tag "prefmt"
+
+
+ This is used for printing code, or other text which contains
+ line breaks.
+
+
+ Attributes:
+
+
+ style (defaults to 'Normal')
+ reference to stylesheet
+
+
+ Contained By:
+
+
+ Frame
+
+
+ Can Contain:
+
+
+ The text to be displayed
+
+
+
+
+
+
+ Tag "image" flowing images
+
+
+ This is used for an image to be displayed inline within
+ the frame. It will be drawn at a scale of 1 pixel to
+ 1 point, and centred in the frame.
+
+
+ Attributes:
+
+
+ filename (required)
+
+
+ Contained By:
+
+
+ Frame
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+ To do
+
+
+ Rename it 'flowing image'? Control
+ over alignment and size if needed. Image caching.
+
+
+
+
+
+
+ Tag "table" tables
+
+
+ This lets you draw tables with a wide variety of formatting
+ options.
+
+
+ Attributes:
+
+
+
+ widths
+
+ (optional) in points (auto-sizes if not given)
+
+
+
+ heights
+
+ (optional) in points (auto-sizes if not given)
+
+
+
+ style
+
+ (optional) name of a ReportLab
+ tablestyle defined in the stylesheet.
+
+
+
+ colDelim
+
+ (optional) the column
+ delimiter string for bulk data; defaults to a comma.
+
+
+
+ rowDelim
+
+ (optional) the line
+ delimiter string for bulk data; defaults to a carriage
+ return.
+
+
+ Contained By:
+
+
+ Frame
+
+
+ Can Contain:
+
+
+ Bulk data, with the row and column delimiters
+ specified
+
+
+
+
+
+
+ Tag family "Drawable Objects"
+
+
+ These are objects which know how to draw themselves directly on
+ the page (or section template). Use them for designing the backdrop,
+ and for custom graphics.
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Varies.
+
+
+ To Do:
+
+
+ Will include the full PINGO object
+ model a subset of SVG allowing any vector graphics
+ at all.
+
+
+
+
+
+
+ Tag "fixedimage"
+
+
+ This is an image draw directly at a fixed position
+ for example, the logo at top left of the page.
+
+
+ Attributes:
+
+
+ filename: required
+
+
+ x, y: required
+
+
+ width, height: optional, stretches image
+ to fit box if present.
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Tag "rectangle"
+
+
+ Attributes:
+
+
+ x, y, width, height: required
+
+
+ fill, stroke: either 'None', or an
+ (r,g,b) tuple.
+
+
+ linewidth: defaults to 0 (hairline)
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Tag "roundrect"
+
+
+ This is exactly like Rectangle,
+ but with an extra 'radius' attribute defining the corner
+ radius in points default is 6 points.
+
+
+
+
+
+
+ Tag "ellipse"
+
+
+ Draws an ellipse, defined by its
+ bounding box. Note that it can
+ create circles if height and width are equal.
+
+
+ Attributes:
+
+
+ x1, y1, x2, y2: required
+
+
+ fill, stroke: either 'None', or an
+ (r,g,b) tuple.
+
+
+ linewidth: defaults to 0 (hairline)
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Tag "polygon"
+
+
+ Draws a polygon from a list
+ of points you provide.
+
+
+ Attributes:
+
+
+ points: list such as "(0,0),(50,0),(25,25)"
+
+
+ fill, stroke: either 'None', or an
+ (r,g,b) tuple.
+
+
+ linewidth: defaults to 0 (hairline)
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Tag "line"
+
+
+ Draws a line.
+
+
+ Attributes:
+
+
+ x1, y1, x2, y2
+
+
+ stroke: either 'None', or an
+ (r,g,b) tuple.
+
+
+ width: defaults to 0 (hairline)
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Tag "string"
+
+
+ This places strings directly on the page. They may have
+ embedded newlines (use a '\n' in the XML), in which
+ case multi-line strings are printed. Left, right
+ and centre alignment are allowed.
+
+
+ Attributes:
+
+
+ x, y: required
+
+
+ color: RGB colour tuple such as '(0,1,0)'
+
+
+ font: default is 'Times-Roman'
+
+
+ size: default 12
+
+
+ align: default 'left', allows
+ also 'right' or 'center'
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ The text of the string
+
+
+
+
+
+
+ Tag "customshape"
+
+
+ This looks in a specified Python module for a
+ 'drawable object' you write, and initialises
+ it with arguments you provide before drawing.
+ This must provide a 'self.drawOn(canvas)' method.
+
+
+ Attributes:
+
+
+ path: where to look; searches Python path
+ if None
+
+
+ module: module name
+
+
+ class: class name to create
+
+
+ initargs: tuple of arguments with which
+ to initialize the class.
+
+
+ align: default 'left', allows
+ also 'right' or 'center'
+
+
+ Contained By:
+
+
+ Slide, Section
+
+
+ Can Contain:
+
+
+ Nothing
+
+
+
+
+
+
+ Part 3 To Do
+
+
+ Lots of testing
+
+
+ Text preprocessor to let you input text, styles and images
+ in something easier to type
+
+
+ Support for Pingo (http://pingo.sourceforge.net/) drawings using
+ the Scalable Vector Graphics imaging model
+
+
+ Proper caching of flowing images
+
+
+ Basic Tables and Charts
+
+
+ Use new XML parsers as wel as xmllib
+
+
+ Slide indexing and database search tools
+
+
+ Speaker Notes mode
+
+
+ Naturally, help is extremely welcome :-)
+
+
+
+
+
diff --git a/bin/reportlab/tools/pythonpoint/demos/spectrum.png b/bin/reportlab/tools/pythonpoint/demos/spectrum.png
new file mode 100644
index 00000000000..06747655056
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/spectrum.png differ
diff --git a/bin/reportlab/tools/pythonpoint/demos/vertpython.gif b/bin/reportlab/tools/pythonpoint/demos/vertpython.gif
new file mode 100644
index 00000000000..5e5c60c3308
Binary files /dev/null and b/bin/reportlab/tools/pythonpoint/demos/vertpython.gif differ
--
cgit v1.2.3