#13 Structure for the multipage document type

closed
kerync
None
9
2004-06-29
2004-03-15
Simon Davis
No

Currently the multipage document type consists of a
root element, <multipage>. This root element then
consists of an arbitrary number of <png> elements. The
multipage view knows to present each <png> element as
a separate 'page' within its view.

This simple structure works well for multipage document
instances that consist solely of bitmap images
(admittedly, the original intention of the multipage), but
with a little tweaking we could create a more generic
and a more explicit (and on both counts, therefore, a
more useful) document type.

The new structure is a new element called <page> that
is a child of <multipage> (the root element). The <page>
element then contains arbitrary XML content (ie, any
particular document type we like).

As the multipage view renders each <page>, it calls the
appropriate widget for the XML content in that <page>.

Examples

A current multipage document instance that looks like
this:
<multipage>
<png>base64 encoded data here </png>
<png>base64 encoded data here </png>
</multipage>
Would look like this:
<multipage>
<page>
<png>base64 encoded data here</png>
</page>
<page>
<png>base64 encoded data here </png>
</page>
</multipage>

A text file that has distinct pages (like an Internet RFC
document, for instance) could be represented like this:
<multipage>
<page>
<plaintext>
<line>page 1, line 1</line>
<line>page 1, line 2</line>
</plaintext>
</page>
<page>
<plaintext>
<line>page 2, line 1</line>
<line>page 2, line 2</line>
<line>page 2, line 3</line>
</plaintext>
</page>
</multipage>
Which could be represented in the multipage view by a
series of plaintext widgets.

An Microsoft Office Binder document is one binary file
that consists on one or more embedded MS Office binary
files (ie, Word docs, spreadsheets, presentations). The
MS Office Binder Viewer could then open a binder
document and allow each of the embedded Office
documents to be viewed by the appropriate application.
The idea was that several Office documents all having
some relationship (say, relating to the same project or
client) could be bundled up as one data file for easy
transport and sharing (amongst other MS Office users).
Binder documents were used in Office 95 and Office 97.
A binder document consisting of a Word document, an
Excel spreadsheet, another Word document, and a
PowerPoint presentation could be represented like this:
<multipage>
<page>
<openoffice>OOo document instance representing the
first Word document</openoffice>
</page>
<page>
<openoffice>OOo document instance representing the
Excel spreadsheet</openoffice>
</page>
<page>
<openoffice>OOo document instance representing the
second Word document</openoffice>
</page>
<page>
<openoffice>OOo document instance representing the
PowerPoint presentation</openoffice>
</page>
</multipage>

Discussion

  • Chris Bitmead
    Chris Bitmead
    2004-04-15

    Logged In: YES
    user_id=223792

    Does multipage really work now as described? I don't think
    it ever worked that way.

     
  • Chris Bitmead
    Chris Bitmead
    2004-04-15

    • assigned_to: nobody --> simondavis
     
  • Simon Davis
    Simon Davis
    2004-05-05

    Logged In: YES
    user_id=613640

    I don't know either, I'll have to check it out.

     
  • Chris Strusz
    Chris Strusz
    2004-06-22

    • priority: 5 --> 9
    • assigned_to: simondavis --> kerync
     
  • kerync
    kerync
    2004-06-29

    • status: open --> closed
     
  • kerync
    kerync
    2004-06-29

    Logged In: YES
    user_id=999736

    This has been implemented.