Revision: 572
Author: grobmeier
Date: Fri Oct 15 01:02:26 2010
Log: added Zeta Component: Document to enable various input sources
http://code.google.com/p/piwi/source/detail?r=572
Added:
/framework/trunk/piwi/lib/zetacomponents/Document
/framework/trunk/piwi/lib/zetacomponents/Document/CREDITS
/framework/trunk/piwi/lib/zetacomponents/Document/ChangeLog
/framework/trunk/piwi/lib/zetacomponents/Document/DESCRIPTION
/framework/trunk/piwi/lib/zetacomponents/Document/NOTICE
/framework/trunk/piwi/lib/zetacomponents/Document/review-1.0.txt
/framework/trunk/piwi/lib/zetacomponents/Document/review-1.1.txt
/framework/trunk/piwi/lib/zetacomponents/Document/review-1.2.txt
/framework/trunk/piwi/lib/zetacomponents/Document/src
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/anchor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/comment.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/ignore.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/itemized_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/literal_layout.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/mapper.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/ordered_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/recurse.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/title.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/anchor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/comment.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/ignore.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/inline.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/literal_layout.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/mapper.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/media_object.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/page_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/ulink.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/image_locator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/meta_generator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/style_information.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/border.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/color.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/default.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/font.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/font_name.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/font_size.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/margin.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter/text_decoration.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter_manager.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/converter_tools.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator/text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/generator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/preprocessor
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/preprocessor/font.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/preprocessor/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/preprocessor/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/preprocessor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator/text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss/property_generator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler/pcss.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/styler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/text_processor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/begin_page.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/citation.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/comment.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/head.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/ignore.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/inlinemediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/itemized_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/literal_layout.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/mediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/ordered_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/recurse.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/special_paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/rst/variable_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/begin_page.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/ignore.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/inlinemediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/itemized_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/literal_layout.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/mediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/ordered_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/recurse.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/wiki/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/anchor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/comment.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/definition_list_entry.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/head.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/ignore.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/literal_layout.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/mapper.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/mediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/special_paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/xhtml/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook_ezxml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook_html.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook_odt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook_rst.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook_wiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/anchor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/header.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/mapper.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml/docbook/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/ezxml_docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor_handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/xslt
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/xslt/docbook_html.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/xslt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/node.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/bullet_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/document.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/enumerated_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/inline_literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/list_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/list_item.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/tag.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/tag_close.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/nodes/text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugin.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/email.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/no.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/quote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/plugins/url.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/end_of_file.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/line_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/list_item.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/new_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/special_chars.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/tag_clsoe.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/tag_open.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/text_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token/whitespace.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/token.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/visitor
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/visitor/docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode/visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/bbcode.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/box.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/default_table_column_width_calculator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver/haru.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver/svg.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver/tcpdf.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver/wrapper.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver/wrapper_state.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/driver.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/hyphenator
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/hyphenator/default.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/hyphenator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/image
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/image/handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/image/php.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/alnum.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/alpha.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/bullet.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/no.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/number.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator/roman.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/item_generator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/page.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/part
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/part/footer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/part/header.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/part.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/list_item.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/main.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/mediaobject.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/text_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/text_box.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer/title.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/renderer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/table_column_width_calculator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/tokenizer
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/tokenizer/default.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/tokenizer/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf/tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/pdf.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/attention.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/contents.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/danger.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/figure.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/include.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/note.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/notice.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive/warning.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/document_stack.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/node.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/anon_reference.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/blockquote_annotation.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/bullet_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/bullet_list_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/comment.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/definition_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/definition_list_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/document.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/enumerated_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/enumerated_list_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/field_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/line_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/line_block_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/link_anonymous.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/link_reference.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup_emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup_inline_literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup_interpreted_text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup_strong_emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/markup_substitution.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/named_reference.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/reference.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/substitution.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/table_body.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/table_head.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/target.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/text_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/title.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/nodes/transition.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/strong.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/subscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/superscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role/title_reference.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/role.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/token.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/visitor
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/visitor/docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/visitor/xhtml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/visitor/xhtml_body.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst/visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/rst.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/confluence.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/creole.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/dokuwiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/node.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/bold.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/bullet_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/bullet_list_item.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/deleted.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/document.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/enumerated_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/enumerated_list_item.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/footnote_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/image_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/inline.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/inline_literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/inline_quote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/inter_wiki_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/invisible_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/italic.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/line_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/link_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/matching_inline.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/monospace.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/page_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/plugin.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/section.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/separator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/subscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/superscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/table_cell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/table_header_separator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/title.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/nodes/underline.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/plugin
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/plugin/code.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/plugin.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/block_markup.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/bold.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/bullet_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/confluence_link_start.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/definition_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/deleted.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/end_of_file.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/enumerated_list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/escape_character.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/external_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/footnote_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/footnote_start.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/image_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/image_start.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/indentation.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/inline_literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/inline_markup.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/inline_quote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/inter_wiki_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/internal_link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/italic.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/line_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/line_markup.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/link_end.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/link_start.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/literal_block.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/literal_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/mediawiki_emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/monospace.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/new_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/page_break.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/plugin.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/quote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/separator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/special_chars.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/strike.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/subscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/superscript.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/table_header.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/table_row.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/text_line.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/title.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/underline.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token/whitespace.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/token.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer/confluence.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer/creole.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer/dokuwiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer/mediawiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/visitor
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/visitor/docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki/visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/wiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml/dummy_link_converter.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml/dummy_link_provider.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml/schema
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml/schema/ezxml_schema.rng
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml/schema/ezxml_schema_lose.rng
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/ezxml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/data
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/data/odf_1.2.rng
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/base.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/base.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/frame.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/header.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/html_table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/list.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element/whitespace.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/element.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style/rule
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style/rule/emphasis.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style/rule/list_level.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style/rule.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/filter/style.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/formatting
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/formatting/properties.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/formatting/property_collection.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/list_level_style
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/list_level_style/bullet.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/list_level_style/number.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/list_level_style.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/list_style.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/style
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/style/extractor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/style/inferencer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/style/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt/style.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/odt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/base.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/content_locator.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/base.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/blockquote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/definitionlist.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/enumerated.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/footnote.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/header.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/image.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/lineblock.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/link.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/literal.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/mapping.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/special_paragraph.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/strong.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/table.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/tablecell.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element/text.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/element.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/metadata.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/tables.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/filter/xpath.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema/docbook.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema/xhtml1-strict.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema/xhtml1-transitional.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema/xlink.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml/schema/xml.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml/xhtml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document/xml_base.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/document_autoload.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/dom_elements
/framework/trunk/piwi/lib/zetacomponents/Document/src/dom_elements/locateable.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/dom_elements/property_container.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/conversion.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/erroneous_xml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/exception.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/invalid_docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/invalid_odt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/missing_directive_handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/missing_plugin_handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/missing_text_role_handler.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/missing_visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/odt
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/odt/formatting_properties_exist.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/rst_tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/unknown_font.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/visitor.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/exceptions/wiki_tokenizer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/conversions
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/conversions/xhtml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/converter.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/document.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/error_reporting.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/ezxml_link_converter.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/ezxml_link_provider.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/locateable.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/rst_xhtml_directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/rst_xhtml_role.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/interfaces/validation.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_ezxml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_html.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_html_xslt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_odt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_rst.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_docbook_wiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_ezxml_docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/converter_xslt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/data
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/data/docbook.xsd
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/data/html_style.css
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/data/template.fodt
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_bbcode.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_docbook.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_ezxml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_odt.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_pdf.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_pdf_footer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_rst.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_wiki.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_xhtml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/document_xml.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/options/html_rendering.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/declaration_directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/layout_directive.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/measure.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/parser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/border_box_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/border_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/box_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/color_box_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/color_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/default.css
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/default.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/int_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/line_box_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/line_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/list_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/measure_box_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/measure_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/src_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/string_value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style/value.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/pcss/style_inferencer.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/tools
/framework/trunk/piwi/lib/zetacomponents/Document/src/tools/list_bullet_guesser.php
/framework/trunk/piwi/lib/zetacomponents/Document/src/validation_error.php
/framework/trunk/piwi/lib/zetacomponents/autoload/document_autoload.php
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/CREDITS Fri Oct 15
01:02:26 2010
@@ -0,0 +1,11 @@
+CREDITS
+=======
+
+eZ Components team
+------------------
+
+- Sebastian Bergmann
+- Kore Nordmann
+- Derick Rethans
+- Tobias Schlitt
+- Alexandru Stanoi
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/ChangeLog Fri Oct 15
01:02:26 2010
@@ -0,0 +1,233 @@
+1.3.1 - [RELEASEDATE]
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented: Directive contents reparsing helper method.
+- Implemented #15218: Add support for PDF compression.
+- Implemented #15219: Add support for PDF encryption & permissions.
+- Fixed #15973: Issues with re-parsing parts of directives.
+- Fixed #15987: Font size estimation in Haru driver broken.
+- Fixed: Multiple small RST parsing bugs.
+
+
+1.3 - Monday 21 December 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed #15943: ODT list style extraction does not work for nested lists.
+- Fixed #15944: ODT literal layout paragraphs not detected correctly.
+- Fixed #15945: RST generator issue with link/footnote combination
+- Major performance improvements in RST parsing
+
+
+1.3rc1 - Monday 07 December 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed #15905: Make rst->docbook visitor configuratble, just like
rst->xhtml
+- Fixed #15904: 'ezcDocumentRstXhtmlBodyVisitor' renders field lists above
+ titles unlike docutils
+- Fixed #15912: Titles with UTF-8 chracters throw a notice.
+- Fixed #15914: Reference names with quotes in it think their name is id\_.
+- Fixed #15913: References with a : or | do not work properly.
+- Fixed #15915: Forward-dispatching of empty named reference fails, if name
+ contains spaces.
+
+
+1.3beta1 - Monday 23 November 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented additional element conversions from DocBook to ODT.
+- Implemented filtering based on styles while converting from ODT to
DocBook.
+
+
+1.3alpha2 - Monday 09 November 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented #15197: Implement renderer for table elements.
+- Implemented #15217: Write document metadata in PDFs.
+- Implemented #15220: Implement renderer for blockquote elements.
+- Implemented #15221: Implement support for RTL languages in PDF renderer.
+- Implemented #15224: Implement support for custom fonts in PDF rendering.
+- Implemented #15399: Initial im- and export of Open Document Text (ODT).
+- Implemented #15809: Styling of exported ODTs.
+- Implemented #15810: Infrastructure for inferencing semantical information
+ from ODT styles.
+
+
+1.3alpha1 - Tuesday 01 September 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed #15198: ezcDocumentPdf cannot be constructed without pecl/haru.
+- Fixed #15258: Unusable ezcDocumentPdf::loadString() implementation.
+- Implemented #15188: Add support for text colors in drivers.
+- Implemented #15189: Add support for background colors in drivers.
+- Implemented #15190: Add support for text-decoration in drivers.
+- Implemented #15191: Implement renderer for literalblock elements.
+- Implemented #15192: Implement renderer for bullet list elements.
+- Implemented #15193: Implement renderer for enumeration list elements.
+- Implemented #15194: Implement renderer for definition list elements.
+- Implemented #15195: Implement renderer for external link elements.
+- Implemented #15196: Implement renderer for internal link elements and
link
+ targets.
+- Implemented: Support for borders and background colors.
+
+
+1.2.1 - Monday 27 July 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed various smaller bugs in XHtml parsing.
+
+
+1.2 - Monday 29 June 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed: Handling of internal links in wiki writer.
+- Fixed: Registering of custom node class does sometimes not work on
existing
+ documents.
+- Fixed: Overlapping text on widdow backtracking
+- Fixed: Do not introduce spaces before punctuation on inline markup.
+
+
+1.2rc1 - Monday 22 June 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- No changes.
+
+
+1.2beta1 - Monday 08 June 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed: Invalid font creation in haru driver.
+- Fixed: Implementation of PDF wrapper class, to call correct renderer.
+- Fixed: Implementation of style loading in PDF wrapper class.
+- Implemented: Method to register additional PDF parts in wrapper class.
+- Implemented: Global error reporting interface, now also used by the PDF
+ renderer.
+- Implemented: Maintain document location in all conversions, so that
embedded
+ files can be located.
+- Fixed: Text blocks are continued on the same page wrapped images are
+ rendered on.
+- Fixed: Handle unescaped references containing special chars in RST
parser.
+- Fixed: Also recurse into section titles in RST visitor AST preprocessing
to
+ find all reference targets.
+- Fixed: Ensure valid XML IDs in visitor.
+
+
+1.2alpha1 - Tuesday 26 May 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented CSS based PDF rendering for basic docbook markup.
+
+
+1.1.2 - Monday 30 March 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed: Parsing of lists inside simple table cells
+- Fixed: Error reporting of document handlers were not used in converters
+- Implemented #14075: Text roles support for RST
+- Implemented #14403: Add support for replace-"directive".
+
+
+1.1.1 - Monday 09 February 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #14332: Paragraphs are sometimes missing in the output, when
+ converting rst documents
+- Fixed issue #14390: Items before first section are merged with first
section
+- Fixed issue #14405: Comments in RST not handled for all cases
+- Fixed issue #14406: Unknown property 'indentation' used in RST parser
+- Fixed issue #14407: Underscores not allowed to appear in RST documents
+- Fixed issue #14408: Error parsing grd tables, where first line does not
+ provide full table column specification
+- Fixed issue #14415: Simple table markup does not work with header cell
+ spanning all columns
+
+
+1.1 - Monday 05 January 2009
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #14136: Errors in some file docblocks
+- Fixed issue #14185: Invalid docbook markup created for table cells in
wiki
+ visitor
+- Fixed issue #14188: ezcDocumentEzXml::getAsDocbook() returns an
+ ezcDocumentEzXml rather than ezcDocumentDocbook
+- Fixed issue #14208: Invalid docubook markup: Attributes used in wrong
case
+- Fixed issue #14210: Docbook: literallayout class should be "normal"
instead
+ of "Normal"
+- Fixed issue #14211: Docbook markup: citation and attribution contents
should
+ not be wrapped inside a paragraph
+- Added support for reading three wiki formats: Confluence, Creole and
+ DokuWiki.
+- Added support for writing the Creole wiki format.
+- Added support for reading XHTML.
+- Added support for reading and writing eZ Publish XML formats.
+- Added support for writing RST.
+
+
+1.1rc1 - Monday 15 December 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- No changes
+
+
+1.1beta1 - Monday 01 December 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- No changes
+
+
+1.1alpha1 - Monday 10 November 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Implemented feature #12339: Add support for eZXml markup.
+- Implemented feature #12340: Add support for wiki markup.
+- Implemented feature #13083: Read and write XHTML format.
+- Implemented feature #13084: Write RST format.
+- Implemented feature #13322: Possibility to reference a stylesheet for use
+ with XHTML output of reST documents.
+- Fixed issue #13727: Autoenumerated enumerated lists parsed as paragraphs.
+
+
+1.0.2 - Monday 04 August 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #13326: Paragraph order mixed up with blockquotes in bullet
+ lists.
+- Fixed issue #13327: Emphasis closing node wrongly recognized as opening
+ node.
+
+
+1.0.1 - Tuesday 08 July 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #13200: Problem with multiple headers with the same name,
when
+ generating table of contents in an rst document.
+- Fixed issue #13220: Support for row seperators in simple table bodies
+ missing.
+- Fixed issue #13237: Whitespaces before single word named external
+ references are skipped.
+- Fixed issue #13238: Whitespaces at line ends, with markup as last element
+ are skipped.
+- Fixed issue #13239: Named external references with literal markup in
+ destination nodes are not found.
+- Fixed issue #13265: Handle inline literals correctly.
+- Fixed issue #13266: Parse error on no newlines at the end of input text.
+- Fixed issue #13267: Trim surrounding whitespaces in title strings.
+
+
+1.0 - Monday 16 June 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #13164: Handle dense enumerated lists.
+
+
+1.0rc1 - Tuesday 10 June 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fixed issue #13167: Correctly handle indetation change after definition
+ lists.
+- Fixed issue #13166: Handle embeddded URLs in inline references.
+
+
+1.0alpha1 - Tuesday 13 May 2008
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Initial release of this package.
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/DESCRIPTION Fri Oct
15 01:02:26 2010
@@ -0,0 +1,2 @@
+The Document components provides a general conversion framework for
different
+semantic document markup languages like XHTML, Docbook, RST and similar.
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/NOTICE Fri Oct 15
01:02:26 2010
@@ -0,0 +1,8 @@
+Apache Zeta Components
+Copyright 2010 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (
http://www.apache.org/).
+
+Originally developed by eZ Systems as eZ Components
+Copyright 2005-2010 eZ Systems AS (
http://ez.no)
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/review-1.0.txt Fri
Oct 15 01:02:26 2010
@@ -0,0 +1,75 @@
+Fixed
+-----
+
+[x] Shouldn't the ezcDocumentRstXhtmlVisitorTests tests just be
+ ezcDocumentXhtmlVisitorTests ?
+
+ No, as they are special test for the RstXhtml visitor, which explicitely
+ visit the RST AST. We may have other XHtml visitors later, like for
+ DocBook
+
+[x] Low code coverage in some parts.
+
+ The parts which are actually implemented do have a >90% coverage. The
+ other stuff is just misses test and implementation.
+
+ The ast node base class also have low coverage, while the uncovered
+ methods are jsut debugging helper methods, which are viable for parser
+ debugging. But we may want to remove them in the release...
+
+[x] WHy is the RstXhtmlVisitor not simple a docbook visitor to generate
XHTML?
+
+ This is what we originally discussed as conversion shortcuts. A Docbook
+ XHtml visitor will also be added. The direct conversion has access to more
+ semantic information, then after the docbook conversion.
+
+[x] Why are the option class names including "Base" as in
+ ezcDocumentParserBaseOptions and ezcDocumentConverterBaseOptions,
+ ezcDocumentXmlBaseOptions.
+
+ Fixed, removed "Base" from option class names.
+
+[x] Some of the class descriptions in document/rst/nodes/* are incorrect
+ (Example is ezcDocumentRstSubstitutionNode).
+
+ Fixed.
+
+[x] ezcDocumentRstToken doesn't have the constants documented - also run
+ the doc analysis tool because there's some other stuff as well.
+
+ Fixed.
+
+[x] Docblocks are broken for some files (eg. src/document/rst/nodes): there
+ are duplicated @copyright and @license, and the @package is not
Document.
+
+ Fixed.
+
+[x] Strings should enclose variables in {}: "Could not find visitor
for '{$class}'"
+
+ Fixed
+
+[x] The tutorial should mention on how to extend the RST directives thingy.
+
+ Fixed
+
+[x] A description of how the RST parser actually works should be added.
+
+ Fixed
+
+[x] Why is ezcDocumentManager final?
+
+ Because it is / will be a class only providing static (conversion)
+ methods with a static registry of known documents. Once used in your code
+ it makes nearly no sense to extend. But we can remove the final keyword to
+ make it possible for users to write (and only use) their own manager on
+ this base.
+
+ Removed final keyword
+
+Open
+----
+
+[ ] There are some @TODOs in the code.
+
+ The remaining TODOs will be resolved during further development.
+
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/review-1.1.txt Fri
Oct 15 01:02:26 2010
@@ -0,0 +1,47 @@
+Review Alexandru 05-11-2008
+---------------------------
+
+[x] Wrong headers in some files ("File containing the XXX class", "Base
class...").
+
+[x] Wrong package names (Table, PageBreak, etc) (see issue #13829).
+
+[ ] rst2xhtml conversion does not work for all ezc tutorials (some
+ elements are not supported, like replace).
+
+ kn: Those are just not implemented yet. But the errors are ignorable now.
+
+[ ] Linux-style path separator used in some files.
+
+ kn: PHP should handle this just fine.
+
+[ ] Some functions which return bool are documented with '@return void'.
+
+- Some typos in the code and comments:
+
+[x] /src/exceptions/errnous_xml.php
+ Errnous -> Erroneous
+
+[x] /src/document/xml/xhtml/filter/element/base.php
+ boolena -> bool
+
+Review Toby 2008-11-21
+----------------------
+
+[x] Missing tutorial for new formats.
+
+[x] Wierd @apichange tag in Document/src/options/document_rst.php.
+
+[x] I'd suggest to have a wrapper class for each Wiki format, to allow
+ creation of Wiki documents in the same way as for other documents. For
+ example ezcDocumentWikiCreole to create a wiki document with the creole
+ tokenizer.
+
+[x] It sounds like a good idea to register a default directive for all
+ directives mentioned in the RST specification. Otherwise people get an
+ error, if the try to convert documents containing such directives.
+
+ kn: As discussed: Changed to an error of level "Warning", which can
+ easily be ignored.
+
+[x] The docanalysis tool throws an exception because a class used in a type
+ hint does not exist.
=======================================
--- /dev/null
+++ /framework/trunk/piwi/lib/zetacomponents/Document/review-1.2.txt Fri
Oct 15 01:02:26 2010
@@ -0,0 +1,95 @@
+Parsing Issues with RST:
+
+1. in docs/install.txt, it doesn't like
+ spl_autoload_register_
+ on line 285. Replacing it with:
+ `spl_autoload_register_`
+ makes it work.
+ The error message is:
+
+ PHP Fatal error: Uncaught exception 'ezcDocumentVisitException' with
+ message 'Visitor error: Warning: 'Missing reference target 'register'.'
in
+ line 285 at position 22.' in
+
/home/derick/dev/ezcomponents/trunk/Document/src/document/rst/visitor.php:167
+
+ kn: Fixed in revision 10453.
+
+2. in docs/dev_process.txt it throws:
+
+ PHP Fatal error: Uncaught exception 'ezcDocumentVisitException' with
+ message 'Visitor error: Warning: 'Missing reference target 'register'.'
in
+ line 285 at position 22.' in
+
/home/derick/dev/ezcomponents/trunk/Document/src/document/rst/visitor.php:167
+
+ It seems that it doesn't see the:
+ 1. _`Present the Idea`
+ on line 37 as a reference target.
+
+ kn: Fixed.
+
+3. docs/articles/2009-01-06-webdav-locking.txt dies with:
+
+ PHP Fatal error: Uncaught exception 'ezcDocumentVisitException' with
+ message 'Visitor error: Notice: 'Unhandeled field list type
+ 'revision'.' in line 5 at position 1.' in
+
/home/derick/dev/ezcomponents/trunk/Document/src/document/rst/visitor.php:167
+
+ and:
+
+ PHP Fatal error: Uncaught exception 'ezcDocumentVisitException' with
+ message 'Visitor error: Notice: 'Unhandeled field list type 'status'.'
+ in line 6 at position 1.' in
+
/home/derick/dev/ezcomponents/trunk/Document/src/document/rst/visitor.php:167
+
+ perhaps we can do something with it, as it prevents quite a few things
from
+ parsing. (Also 2007-09-25-workflow-thesis.txt)
+
+ kn: You can just reduce the error reporting level for such cases, so
that
+ notices won't be converted into exception anymore::
+
+ $rstDocument->options->errorReporting = E_PARSE | E_ERROR |
E_WARNING;
+
+PDF generation issues
+
+1. After fixing 1. under RST, the generator outputs:
+
+ Unknown:
http://docbook.org/ns/docbook:itemizedlist
+ Unknown:
http://docbook.org/ns/docbook:literallayout
+ ...
+
+ This is send to stdout, which makes it appear in the PDF upon
redirection.
+ I understand that itemizedlist is not understood, but what is wrong with
+ literallayout?
+
+ kn: Implements the common error reporting interface now, so that errors
aer
+ either converted into exceptions, or can be requested later using
+ getErrors().
+
+2. While rendering 2009-01-06-webdav-locking.txt there are issues with
image
+ inclusion. First of all, the file paths in RST are where the images can
be
+ found *after* the files have been converted. But with PDF generation the
+ files have to be the current directory. Perhaps we should add an option
to
+ "rebase" or "map" paths for image inclusion?
+
+ kn: The original document location has not been maintained when
converting
+ between multiple document formats, so that the images could not be
located
+ anymore. Fixed.
+
+3. While rendering 2009-01-06-webdav-locking.txt and fixing 2, I see that
the
+ image is included on page 2, but no text is below the image. A similar
+ issue happens when we render 2007-12-20-tree-yui.txt on page 5.
+
+ kn: The alt text is not used as a caption for an image. Using a figure
you
+ can also specify a caption for an image., like::
+
+ .. figure:: image.png
+ My caption goes here.
+
+ Which works, with the mentioned article.
+
+4. Rendering 2006-01-16-image-manipulation.txt creates a double line of
text
+ under the image on page 5.
+
+ kn: Fixed in revision 10448.
+
+5. There are still some test failures:
http://ezc.pastebin.com/m9c77063
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/anchor.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,59 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlAnchorHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit anchor elements.
+ *
+ * Anchor elements are manually added targets inside paragraphs, which are
+ * transformed to HTML <a> element targets.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlAnchorHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $link = $root->ownerDocument->createElement( 'anchor' );
+ $link->setAttribute( 'name', $node->getAttribute( 'ID' ) );
+ $root->appendChild( $link );
+ $converter->visitChildren( $node, $link );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/comment.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,57 @@
+<?php
+/**
+ * File containing ezcDocumentDocbookToEzXmlCommentHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit docbook comment.
+ *
+ * Transform docbook comments into HTML ( / XML ) comments.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlCommentHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $comment = new DOMComment( htmlspecialchars( $node->textContent )
);
+ $root->appendChild( $comment );
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/emphasis.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,67 @@
+<?php
+/**
+ * File containing ezcDocumentDocbookToEzXmlEmphasisHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit emphasis.
+ *
+ * Emphasis markup is used to emphasize text inside a paragraph and is
+ * rendered, depending on the assigned role, as strong or em tags in HTML.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlEmphasisHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( $node->hasAttribute( 'Role' ) &&
+ ( $node->getAttribute( 'Role' ) === 'strong' ) )
+ {
+ $emphasis = $root->ownerDocument->createElement( 'strong' );
+ }
+ else
+ {
+ $emphasis = $root->ownerDocument->createElement( 'emphasize' );
+ }
+
+ $root->appendChild( $emphasis );
+ $converter->visitChildren( $node, $emphasis );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/external_link.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,64 @@
+<?php
+/**
+ * File containing ezcDocumentDocbookToEzXmlExternalLinkHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit external links.
+ *
+ * Transform external docbook links (<ulink>) to common HTML links.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlExternalLinkHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $link = $root->ownerDocument->createElement( 'link' );
+ $root->appendChild( $link );
+
+ $linkProperties =
$converter->options->linkConverter->getUrlProperties(
$node->getAttribute( 'url' ) );
+ foreach ( $linkProperties as $key => $value )
+ {
+ $link->setAttribute( $key, $value );
+ }
+
+ $converter->visitChildren( $node, $link );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/footnote.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,64 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlFootnoteHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit footnotes
+ *
+ * Footnotes in docbook are emebdded at the position, the reference should
+ * occur. We store the contents, to be rendered at the end of the HTML
+ * document, and only render a number referencing the actual footnote at
+ * the position of the footnote in the docbook document.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlFootnoteHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $number = $converter->appendFootnote( $node->cloneNode( true ) );
+
+ $footnoteReference = $root->ownerDocument->createElement( 'link',
$number );
+ $footnoteReference->setAttribute( 'class', 'footnote' );
+ $footnoteReference->setAttribute( 'anchor_name', '__footnote_' .
$number );
+ $root->appendChild( $footnoteReference );
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/ignore.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,52 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlIgnoreHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Handler for elements, which are safe to ignore
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlIgnoreHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/internal_link.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,59 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlInternalLinkHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit internal links.
+ *
+ * Internal links are transformed into local links in HTML, where the name
+ * of the target is prefixed with a number sign.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlInternalLinkHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $link = $root->ownerDocument->createElement( 'link' );
+ $link->setAttribute( 'anchor_name', $node->getAttribute( 'linked'
) );
+ $root->appendChild( $link );
+ $converter->visitChildren( $node, $link );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/itemized_list.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,62 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlItemizedListHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit itemized lists
+ *
+ * Visit itemized lists as 'ul' nodes and embed them into another
paragraph,
+ * which is enforced by eZXml.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlItemizedListHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $paragraph = $root->ownerDocument->createElement( 'paragraph' );
+ $root->appendChild( $paragraph );
+
+ $list = $root->ownerDocument->createElement( 'ul' );
+ $paragraph->appendChild( $list );
+
+ $converter->visitChildren( $node, $list );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/literal_layout.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,87 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlLiteralLayoutHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit literallayout elements
+ *
+ * Literallayout elements are used for code blocks in docbook, where
+ * normally some fixed width font is used, but also for poems or simliarly
+ * formatted texts. In HTML those are represented by entirely different
+ * structures. Code blocks will be transformed into 'pre' elements, while
+ * poem like texts will be handled by a 'p' element, in which each line is
+ * seperated by 'br' elements.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlLiteralLayoutHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( !$node->hasAttribute( 'class' ) ||
+ ( $node->getAttribute( 'class' ) !== 'normal' ) )
+ {
+ // This is "just" a code block
+ $paragraph = $root->ownerDocument->createElement( 'paragraph'
);
+ $root->appendChild( $paragraph );
+
+ $literal = $root->ownerDocument->createElement( 'literal' );
+ $paragraph->appendChild( $literal );
+
+ $converter->visitChildren( $node, $literal );
+ }
+ else
+ {
+ $paragraph = $root->ownerDocument->createElement( 'paragraph'
);
+
+ $textLines = preg_split( '(\r\n|\r|\n)', $node->textContent );
+ foreach ( $textLines as $line )
+ {
+ // Replace space by non-breaking spaces, as this is how it
is
+ // supposed to be rendered.
+ $line = $root->ownerDocument->createElement( 'line',
htmlspecialchars( str_replace( ' ', "\xc2\xa0", $line ) ) );
+ $paragraph->appendChild( $line );
+ }
+
+ $root->appendChild( $paragraph );
+ }
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/mapper.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,83 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlMappingHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Simple mapping handler
+ *
+ * Special visitor for elements which just need trivial mapping of element
+ * tag names. It ignores all attributes of the input element and just
+ * converts the tag name.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlMappingHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Mapping of element names.
+ *
+ * Element tag name mapping for elements, which just require trivial
+ * mapping used by the visitWithMapper() method.
+ *
+ * @var array
+ */
+ protected $mapping = array(
+ 'literal' => 'literal',
+ 'listitem' => 'li',
+ 'row' => 'tr',
+ );
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( !isset( $this->mapping[$node->tagName] ) )
+ {
+ $converter->triggerError( E_WARNING,
+ "Mapping handler used for element '{$node->tagName}', not
known by the mapping handler."
+ );
+ return $root;
+ }
+
+ $element = $root->ownerDocument->createElement(
$this->mapping[$node->tagName] );
+ $root->appendChild( $element );
+
+ // Recurse
+ $converter->visitChildren( $node, $element );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/ordered_list.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,62 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlOrderedListHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit ordered lists.
+ *
+ * Visit ordered lists as 'ul' nodes and embed them into another paragraph,
+ * which is enforced by eZXml.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlOrderedListHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $paragraph = $root->ownerDocument->createElement( 'paragraph' );
+ $root->appendChild( $paragraph );
+
+ $list = $root->ownerDocument->createElement( 'ol' );
+ $paragraph->appendChild( $list );
+
+ $converter->visitChildren( $node, $list );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/paragraph.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,66 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlParagraphHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit paragraphs
+ *
+ * Visit docbook paragraphs and transform them into HTML paragraphs.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlParagraphHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ // Do not stack paragraphs
+ if ( $root->tagName !== 'paragraph' )
+ {
+ $paragraph = $root->ownerDocument->createElement( 'paragraph'
);
+ $root->appendChild( $paragraph );
+ $converter->visitChildren( $node, $paragraph );
+ }
+ else
+ {
+ $converter->visitChildren( $node, $root );
+ }
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/recurse.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,53 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlRecurseHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Handler for elements, which are self to ignore itself, and just should
rbe
+ * recursed into.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlRecurseHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ return $converter->visitChildren( $node, $root );
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/section.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,66 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlSectionHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit docbook sections.
+ *
+ * Updates the docbook sections, which give us information about the depth
+ * in the document, and may also be reference targets.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlSectionHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $section = $root->ownerDocument->createElement( 'section' );
+ $root->appendChild( $section );
+
+ // Set internal cross reference target if section has an ID
assigned
+ if ( $node->hasAttribute( 'ID' ) )
+ {
+ // $section->setAttribute( 'anchor_name',
$node->getAttribute( 'ID' ) );
+ }
+
+ // Recurse
+ $converter->visitChildren( $node, $section );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/table.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,59 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlTableHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit table
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlTableHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $paragraph = $root->ownerDocument->createElement( 'paragraph' );
+ $root->appendChild( $paragraph );
+
+ $table = $root->ownerDocument->createElement( 'table' );
+ $paragraph->appendChild( $table );
+
+ $converter->visitChildren( $node, $table );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/table_cell.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,65 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlTableCellHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit table cells
+ *
+ * Table cells are quite trivial to transform, but some attributes need to
+ * be converted, like rowspan.
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlTableCellHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $isHeader = ( $node->parentNode->parentNode->tagName === 'thead' );
+ $cell = $root->ownerDocument->createElement(
$isHeader ? 'th' : 'td' );
+
+ if ( $node->hasAttribute( 'morerows' ) )
+ {
+ $cell->setAttribute( 'rowspan',
$node->getAttribute( 'morerows' ) + 1 );
+ }
+
+ $root->appendChild( $cell );
+ $converter->visitChildren( $node, $cell );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/ezxml/title.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,61 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToEzXmlTitleHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ */
+
+/**
+ * Visit docbook section titles
+ *
+ * @package Document
+ * @version //autogen//
+ */
+class ezcDocumentDocbookToEzXmlTitleHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $header = $root->ownerDocument->createElement( 'header' );
+ $root->appendChild( $header );
+
+ if ( $node->hasAttribute( 'ID' ) )
+ {
+ $header->setAttribute( 'anchor_name',
$node->getAttribute( 'ID' ) );
+ }
+
+ $converter->visitChildren( $node, $header );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/anchor.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,92 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtAnchorHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit anchors.
+ *
+ * Visit docbook <anchor/> and transform them into ODT
<text:reference-mark/>.
+ *
+ * Note that additional reference-marks are generated by the {@link
+ * ezcDocumentDocbookToOdtSectionHandler} to make sections linkable.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtAnchorHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $this->createRefMark(
+ $node,
+ $root
+ );
+
+ return $root;
+ }
+
+ /**
+ * Creates a ref-mark as the first element of the given $odtElement,
based
+ * on the ID attribute of the given $docbookElement.
+ *
+ * @param DOMElement $docbookElement
+ * @param DOMElement $odtElement
+ */
+ protected function createRefMark( DOMElement $docbookElement,
DOMElement $odtElement )
+ {
+ // Work around for DocBook inconsistency in using ID or id. id
+ // would be correct, if one follows the specs here…
+ if ( $docbookElement->hasAttribute( 'ID' ) ||
$docbookElement->hasAttribute( 'id' ) )
+ {
+ $refMark = $odtElement->insertBefore(
+ $odtElement->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:reference-mark'
+ ),
+ $odtElement->firstChild
+ );
+ $refMark->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:name',
+ ( $docbookElement->hasAttribute( 'ID' ) ?
$docbookElement->getAttribute( 'ID' ) : $docbookElement->getAttribute( 'id'
) )
+ );
+ }
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/comment.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,64 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtCommentHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit comments.
+ *
+ * Visit docbook <comment/> and transform them into XML comments.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtCommentHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ // @todo: Currently an XML comment is generated. Are there other
ways
+ // of adding a comment to an ODT?
+ $comment = $root->appendChild(
+ $root->ownerDocument->createComment(
+ $node->textContent
+ )
+ );
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/footnote.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,108 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtFootnoteHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit footnotes.
+ *
+ * Visit docbook <footnote/> and transform them into ODT <text:note/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtFootnoteHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Current footnote count.
+ *
+ * @var int
+ */
+ protected $counter = 0;
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $label = $node->hasAttribute( 'label' ) ?
$node->getAttribute( 'label' ) : ++$this->counter;
+
+ // Adjust counter for inconsequently labeled notes
+ if ( ctype_digit( $label ) && $label > $this->counter )
+ {
+ $this->counter = $label + 1;
+ }
+
+ $textNote = $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:note'
+ );
+ $textNote->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:id',
+ // OOO format
+ 'ftn' . $label
+ );
+ $textNote->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:note-class',
+ 'footnote'
+ );
+
+ $noteCitation = $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:note-citation',
+ $label
+ );
+ $noteCitation->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:label',
+ $label
+ );
+ $textNote->appendChild( $noteCitation );
+
+ $noteBody = $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:note-body'
+ );
+ $textNote->appendChild( $noteBody );
+
+ $root->appendChild( $textNote );
+
+ $converter->visitChildren( $node, $noteBody );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/handler.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,59 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtBaseHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Base class for ODT visitor handlers.
+ *
+ * ODT visitor handlers require a styler to be available, which is capable
of
+ * infering style information from DocBook elements and to apply them to
ODT
+ * elements.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+abstract class ezcDocumentDocbookToOdtBaseHandler extends
ezcDocumentElementVisitorHandler
+{
+ /**
+ * ODT styler.
+ *
+ * @var ezcDocumentOdtStyler
+ */
+ protected $styler;
+
+ /**
+ * Creates a new handler which utilizes the given $styler.
+ *
+ * @param ezcDocumentOdtStyler $styler
+ */
+ public function __construct( ezcDocumentOdtStyler $styler )
+ {
+ $this->styler = $styler;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/ignore.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,83 @@
+<?php
+/**
+ * File containing ezcDocumentDocbookToOdtIgnoreHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Handler for elements, which are safe to be ignored.
+ *
+ * This ignore handler can either ignore only a single XML element level
or can
+ * be configured to ignore a complete XML sub-tree.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtIgnoreHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * If child elements should also be ignored.
+ *
+ * @var bool
+ */
+ protected $deepIgnore;
+
+ /**
+ * Creates a new ignore handler.
+ *
+ * If $deepIgnore is set to true, child elements of the ignored element
+ * will also not be visited.
+ *
+ * @param ezcDocumentOdtStyler $styler
+ * @param bool $deepIgnore
+ */
+ public function __construct( ezcDocumentOdtStyler $styler, $deepIgnore
= false )
+ {
+ parent::__construct( $styler );
+ $this->deepIgnore = $deepIgnore;
+ }
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( !$this->deepIgnore )
+ {
+ return $converter->visitChildren( $node, $root );
+ }
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/inline.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,65 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtInlineHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit inline elements.
+ *
+ * Visit docbook inline elements and transform them into ODT <text:span/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtInlineHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $inline = $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:span'
+ );
+ $root->appendChild( $inline );
+
+ $this->styler->applyStyles( $node, $inline );
+
+ $converter->visitChildren( $node, $inline );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/link.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,69 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtLinkHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit links.
+ *
+ * Visit docbook <link/> and transform them into ODT <text:reference-ref/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtLinkHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $refRef = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:reference-ref',
+ $node->nodeValue
+ )
+ );
+ $refRef->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:ref-name',
+ $node->getAttribute( 'linked' )
+ );
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/list.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,67 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtListHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit lists.
+ *
+ * Visit docbook <orderedlist/> and <itemizedlist/> and transform them
into ODT
+ * <text:list/>. Note that distinguishing between ordered and itemized
lists
+ * happens in the styles in ODT.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtListHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $list = $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:list'
+ );
+ $root->appendChild( $list );
+
+ $this->styler->applyStyles( $node, $list );
+
+ $converter->visitChildren( $node, $list );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/literal_layout.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,66 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtLiteralLayoutHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit literallayout sections.
+ *
+ * Visit docbook <literallayout/> paragraphs and transform them into ODT
+ * <text:p/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtLiteralLayoutHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $p = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:p'
+ )
+ );
+ $this->styler->applyStyles( $node, $p );
+
+ $converter->visitChildren( $node, $p );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/mapper.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,91 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtMappingHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Simple mapping handler
+ *
+ * Performs a simple 1 to 1 mapping between DocBook elements and ODT
elements.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtMappingHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Mapping of element names.
+ *
+ * Mapping from DocBook to ODT elements. The local name of a DocBook
+ * element is used as the key to look up a corresponding element in
ODT.
+ * Since ODT utilizes multiple namespaces, an array of namespace and
local
+ * name for the target element is returned.
+ *
+ * @var array(string=>array(string))
+ */
+ protected $mapping = array(
+ 'listitem' => array( ezcDocumentOdt::NS_ODT_TEXT, 'text:list-item'
)
+ );
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( !isset( $this->mapping[$node->localName] ) )
+ {
+ // This only occurs if the mapper is assigned to an unknown
+ // element, which should not happen at all.
+ throw new ezcDocumentMissingVisitorException(
+ $node->localName
+ );
+ }
+
+ $targetElementData = $this->mapping[$node->localName];
+
+ $targetElement = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ $targetElementData[0],
+ $targetElementData[1]
+ )
+ );
+
+ $this->styler->applyStyles( $node, $targetElement );
+
+ $converter->visitChildren( $node, $targetElement );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/media_object.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,278 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtMediaObjectHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit media objects.
+ *
+ * Visit docbook <mediaobject/> and transform them into ODT image frames.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ * @todo For later versions: Supporting non flat ODT, we can bundle images
and
+ * simply refer to them.
+ */
+class ezcDocumentDocbookToOdtMediaObjectHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Counter to generate drawing names.
+ *
+ * @var integer
+ */
+ protected $counter = 0;
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $drawingId = ++$this->counter;
+
+ if ( ( $imageData = $this->extractImageData( $node ) ) === false )
+ {
+ $converter->triggerError(
+ E_PARSE,
+ 'Missing information in <meadiaobject /> or
<inlinemediaobject />.'
+ );
+ return $root;
+ }
+
+ $frame = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_DRAWING,
+ 'draw:frame'
+ )
+ );
+ $frame->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_DRAWING,
+ 'draw:name',
+ 'graphics' . $drawingId
+ );
+
+ $this->styler->applyStyles( $node, $frame );
+
+ $anchorType = $this->detectAnchorTye( $node );
+
+ $frame->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:anchor-type',
+ $anchorType
+ );
+
+ if ( $imageData->hasAttribute( 'width' ) )
+ {
+ $frame->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_SVG,
+ 'svg:width',
+ $this->correctLengthMeasure( $converter,
$imageData->getAttribute( 'width' ) )
+ );
+ }
+ if ( $imageData->hasAttribute( 'depth' ) )
+ {
+ $frame->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_SVG,
+ 'svg:height',
+ $this->correctLengthMeasure( $converter,
$imageData->getAttribute( 'depth' ) )
+ );
+ }
+
+ $image = $frame->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_DRAWING,
+ 'draw:image'
+ )
+ );
+
+ $imgPath = $converter->getImageLocator()->locateImage(
+ ( $imgFile = $imageData->getAttribute( 'fileref' ) )
+ );
+
+ if ( $imgPath === false )
+ {
+ $converter->triggerError(
+ E_WARNING, "Could not find image '$imgFile'."
+ );
+ return $root;
+ }
+
+ if ( !is_readable( $imgPath ) )
+ {
+ $converter->triggerError(
+ E_WARNING, "Image not readable '$imgFile'."
+ );
+ return $root;
+ }
+
+ $binaryData = $image->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_OFFICE,
+ 'office:binary-data',
+ base64_encode(
+ file_get_contents(
+ $imgPath
+ )
+ )
+ )
+ );
+
+ return $root;
+ }
+
+ /**
+ * Correct length measure value.
+ *
+ * ODT does not define a default for length measures. This method
checks if
+ * a valid measure is already given in $length and appends the
+ * $lengthMeasure given in the converter options otherwise.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param string $length
+ * @return string
+ */
+ protected function correctLengthMeasure(
ezcDocumentElementVisitorConverter $converter, $length )
+ {
+ if ( in_array( substr( $length, -2, 2 ),
ezcDocumentDocbookToOdtConverterOptions::$validLengthMeasures ) )
+ {
+ return $length;
+ }
+ // @todo: Validate that number without measure is given
+ return $length . $converter->options->lengthMeasure;
+ }
+
+ /**
+ * Extracts the imagedata part of a media object.
+ *
+ * @param DOMNode $node
+ * @return DOMNode
+ */
+ protected function extractImageData( DOMNode $node )
+ {
+ $imageDataElems = $node->getElementsByTagName( 'imagedata' );
+ if ( $imageDataElems->length !== 1 )
+ {
+ return false;
+ }
+ $imageData = $imageDataElems->item( 0 );
+
+ if ( !$imageData->hasAttribute( 'fileref' ) )
+ {
+ return false;
+ }
+
+ return $imageData;
+ }
+
+ /**
+ * Detects and returns the anchortype of the given $node.
+ *
+ * Detects the correct ODT anchortype for the given DocBoom mediaobject
+ * which can be:
+ *
+ * - 'page' if the image frame is bound to a specific page
+ * - 'paragraph' if the frame is bound to a specific paragraph
+ * - 'char' if the frame is bound to a specific character in a
paragraph
+ *
+ * @param DOMElement $node
+ * @return string
+ */
+ protected function detectAnchorTye( DOMElement $node )
+ {
+ $anchorType = 'page';
+
+ if ( !$this->isInsidePara( $node ) )
+ {
+ return $anchorType;
+ }
+ $anchorType = 'paragraph';
+
+ if ( !$this->isInsideText( $node ) )
+ {
+ return $anchorType;
+ }
+ $anchorType = 'char';
+
+ return $anchorType;
+ }
+
+ /**
+ * Checks if $node is descendant of a <para/>.
+ *
+ * @param DOMNode $node
+ * @return bool
+ */
+ protected function isInsidePara( DOMNode $node )
+ {
+ $parent = $node->parentNode;
+
+ if ( $parent === null )
+ {
+ return false;
+ }
+ if ( $parent->localName === 'para' )
+ {
+ return true;
+ }
+ return $this->isInsidePara( $parent );
+ }
+
+ /**
+ * Checks if $node occurs in between plain text.
+ *
+ * @param DOMNode $node
+ * @return bool
+ */
+ protected function isInsideText( DOMNode $node )
+ {
+ $prevSib = $node->previousSibling;
+
+ if ( $prevSib === null )
+ {
+ return false;
+ }
+ if ( $prevSib->nodeType === XML_TEXT_NODE && trim(
$prevSib->nodeValue ) !== '' )
+ {
+ return true;
+ }
+ if ( $prevSib->nodeType === XML_ELEMENT_NODE )
+ {
+ // Spans or other inline elements
+ return true;
+ }
+
+ return $this->isInsideText( $prevSib );
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/page_break.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,68 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtPageBreakHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit page-breaks.
+ *
+ * Visit docbook <beginpage/> and transform them into ODT
<text:soft-page-break/>.
+ *
+ * Note that OpenOffice.org does not pay attention to these page-break
+ * information, but expects page-breaks to be encoded in styles. Therefore,
+ * additional page-break handling happens in {@link
+ * ezcDocumentOdtPcssParagraphStylePreprocessor}.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtPageBreakHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $pageBreak = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:soft-page-break'
+ )
+ );
+
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/paragraph.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,66 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtParagraphHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit paragraphs.
+ *
+ * Visit docbook <para/> and transform them into ODT <text:p/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtParagraphHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $p = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:p'
+ )
+ );
+
+ $this->styler->applyStyles( $node, $p );
+
+ $converter->visitChildren( $node, $p );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/section.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,182 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtSectionHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit docbook sections.
+ *
+ * Visit docbook <section/> and transform them into ODT <text:section/>.
+ * Handles <title/> nodes in addition.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtSectionHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Current section nesting level in the docbook document.
+ *
+ * @var int
+ */
+ protected $level = 0;
+
+ /**
+ * Last auto-generated section ID.
+ *
+ * @var int
+ */
+ protected $lastSectionId = 0;
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ switch ( $node->localName )
+ {
+ case 'section':
+ $this->handleSection( $converter, $node, $root );
+ break;
+ case 'title':
+ $this->handleTitle( $converter, $node, $root );
+ break;
+ case 'sectioninfo':
+ // @todo
+ break;
+ }
+
+ return $root;
+ }
+
+ /**
+ * Handles the <title/> element.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ */
+ protected function handleTitle( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $h = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:h'
+ )
+ );
+ $h->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:outline-level',
+ $this->level
+ );
+ $this->createRefMark( $h, $node );
+
+ $this->styler->applyStyles( $node, $h );
+
+ $converter->visitChildren( $node, $h );
+ }
+
+
+ /**
+ * createRefMark
+ *
+ * @param mixed $h
+ * @param mixed $node
+ * @return void
+ */
+ protected function createRefMark( $h, $node )
+ {
+ $nodeParent = $node->parentNode;
+ if ( $nodeParent !== null
+ && $nodeParent->nodeType === XML_ELEMENT_NODE
+ && ( $nodeParent->hasAttribute( 'id' ) ||
$nodeParent->hasAttribute( 'ID' ) )
+ )
+ {
+ $ref = $h->appendChild(
+ $h->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:reference-mark'
+ )
+ );
+ $ref->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:name',
+ ( $nodeParent->hasAttribute( 'id' ) ?
$nodeParent->getAttribute( 'id' ) : $nodeParent->getAttribute( 'ID' ) )
+ );
+ }
+ }
+
+ /**
+ * Handles the <section/> element.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ */
+ protected function handleSection( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ ++$this->level;
+
+ $section = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:section'
+ )
+ );
+ $section->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:name',
+ ( $node->hasAttribute( 'ID' )
+ ? $node->getAttribute( 'ID' )
+ : $this->generateId()
+ )
+ );
+
+ $converter->visitChildren( $node, $section );
+
+ --$this->level;
+ }
+
+ /**
+ * Generates a section ID.
+ *
+ * @return string
+ */
+ protected function generateId()
+ {
+ return 'ezcDocumentSectionId' . ++$this->lastSectionId;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/table.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,263 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtTableHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit tables.
+ *
+ * Visit docbook <table/> and child elements and transform them into ODT
<table:table/>
+ * and corresponding child elements.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtTableHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Maps table element to handling methods in this class.
+ *
+ * @var array(string=>string)
+ */
+ protected $methodMap = array(
+ 'table' => 'handleTable',
+ 'caption' => 'handleCaption',
+ 'thead' => 'handleThead',
+ 'tbody' => 'handleTbody',
+ 'tr' => 'handleTr',
+ 'td' => 'handleTd',
+ // Old style DocBook tables
+ 'row' => 'handleTr',
+ 'entry' => 'handleTd'
+ );
+
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ if ( !isset( $this->methodMap[$node->localName] ) )
+ {
+ // This only occurs when the handler is assigned to an unknown
+ // node, which should not happen at all.
+ throw new ezcDocumentMissingVisitorException( $node->localName
);
+ }
+
+ $method = $this->methodMap[$node->localName];
+
+ return $this->$method( $converter, $node, $root );
+ }
+
+ /**
+ * Handles the table base element.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleTable( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $table = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:table'
+ )
+ );
+
+ $this->createCellDefinition( $node, $table );
+
+ $this->styler->applyStyles( $node, $table );
+
+ $converter->visitChildren( $node, $table );
+ return $root;
+ }
+
+ /**
+ * Creates the ODT cell defintions.
+ *
+ * @param DOMElement $docBookTable
+ * @param DOMElement $odtTable
+ * @return void
+ */
+ protected function createCellDefinition( $docBookTable, $odtTable )
+ {
+ $rows = $docBookTable->getElementsByTagName( 'tr' );
+
+ // No XHTML style rows found, look for old style rows
+ if ( $rows->length === 0 )
+ {
+ $rows = $docBookTable->getElementsByTagName( 'row' );
+ }
+
+ if ( $rows->length !== 0 )
+ {
+ $firstRow = $rows->item( 0 );
+ foreach ( $firstRow->childNodes as $cell )
+ {
+ if ( $cell->nodeType !== XML_ELEMENT_NODE
+ || ( $cell->localName !== 'td' &&
$cell->localName !== 'th' && $cell->localName !== 'entry' )
+ )
+ {
+ continue;
+ }
+ $count = ( $cell->hasAttribute( 'colspan' ) ? (int)
$cell->getAttribute( 'colspan' ) : 1 );
+ for ( $i = 0; $i < $count; ++$i )
+ {
+ $odtCell = $odtTable->appendChild(
+ $odtTable->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:table-column'
+ )
+ );
+ }
+ }
+ }
+
+ }
+
+ /**
+ * Handles table captions.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleCaption( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $root->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:name',
+ $node->nodeValue
+ );
+ return $root;
+ }
+
+ /**
+ * Handles table headers.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleThead( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $tableHeaderRows = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:table-header-rows'
+ )
+ );
+
+ $this->styler->applyStyles( $node, $tableHeaderRows );
+
+ $converter->visitChildren( $node, $tableHeaderRows );
+ return $root;
+ }
+
+ /**
+ * Handles table bodies.
+ *
+ * Simply ignores the tag, since ODT does not have table body marked
up.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleTbody( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ // Skip
+ $converter->visitChildren( $node, $root );
+ return $root;
+ }
+
+ /**
+ * Handles table rows.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleTr( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $tableRow = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:table-row'
+ )
+ );
+
+ $this->styler->applyStyles( $node, $tableRow );
+
+ $converter->visitChildren( $node, $tableRow );
+ return $root;
+ }
+
+ /**
+ * Handles table cells.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ protected function handleTd( ezcDocumentElementVisitorConverter
$converter, DOMElement $node, $root )
+ {
+ $tableCell = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TABLE,
+ 'table:table-cell'
+ )
+ );
+ // @todo: Can we make this configurable somehow?
+ $tableCell->setAttributeNS(
+ ezcDocumentOdt::NS_ODT_OFFICE,
+ 'office:value-type',
+ 'string'
+ );
+
+ $this->styler->applyStyles( $node, $tableCell );
+
+ // @todo: Colspan / rowspan
+
+ $converter->visitChildren( $node, $tableCell );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/element_handlers/ulink.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,76 @@
+<?php
+/**
+ * File containing the ezcDocumentDocbookToOdtUlinkHandler class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Visit ulinks.
+ *
+ * Visit docbook <ulink/> and transform them into ODT <text:a/>.
+ *
+ * @package Document
+ * @version //autogen//
+ * @access private
+ */
+class ezcDocumentDocbookToOdtUlinkHandler extends
ezcDocumentDocbookToOdtBaseHandler
+{
+ /**
+ * Handle a node
+ *
+ * Handle / transform a given node, and return the result of the
+ * conversion.
+ *
+ * @param ezcDocumentElementVisitorConverter $converter
+ * @param DOMElement $node
+ * @param mixed $root
+ * @return mixed
+ */
+ public function handle( ezcDocumentElementVisitorConverter $converter,
DOMElement $node, $root )
+ {
+ $a = $root->appendChild(
+ $root->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_TEXT,
+ 'text:a'
+ )
+ );
+ $a->setAttributeNS(
+ ezcDocumentOdt::NS_XLINK,
+ 'xlink:type',
+ 'simple'
+ );
+ $a->setAttributeNS(
+ ezcDocumentOdt::NS_XLINK,
+ 'xlink:href',
+ $node->getAttribute( 'url' )
+ );
+
+ $this->styler->applyStyles( $node, $a );
+
+ $converter->visitChildren( $node, $a );
+ return $root;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/image_locator.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,95 @@
+<?php
+/**
+ * File containing the ezcDocumentOdtImageLocator class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Class to locate images in DocBook to ODT conversion.
+ *
+ * @package Document
+ * @access private
+ * @version //autogen//
+ */
+class ezcDocumentOdtImageLocator
+{
+ /**
+ * Paths to search for images.
+ *
+ * @var array(string)
+ */
+ protected $paths = array();
+
+ /**
+ * Creates a new image locator for the given $document.
+ *
+ * @param ezcDocument $document
+ */
+ public function __construct( ezcDocument $document )
+ {
+ $this->paths[] = $document->getPath();
+
+ if ( ( $workDir = getcwd() ) !== false )
+ {
+ $this->paths[] = $workDir;
+ }
+
+ $this->paths[] = sys_get_temp_dir();
+ }
+
+ /**
+ * Returns the realpath of the given image $fileName.
+ *
+ * Tries to find the image for the given $fileName in the file system
and
+ * returns its realpath, if found. If the image cannot be located,
false is
+ * returned.
+ *
+ * @param string $fileName
+ * @return string|false
+ */
+ public function locateImage( $fileName )
+ {
+ if ( file_exists( $fileName ) )
+ {
+ return realpath( $fileName );
+ }
+
+ if ( substr( $fileName, 0, 1 ) === DIRECTORY_SEPARATOR )
+ {
+ // File name is absolute, but image does not exist
+ return false;
+ }
+
+ foreach ( $this->paths as $path )
+ {
+ if ( file_exists( ( $imgPath = $path . DIRECTORY_SEPARATOR .
$fileName ) ) )
+ {
+ return realpath( $imgPath );
+ }
+ }
+ return false;
+ }
+}
+
+?>
=======================================
--- /dev/null
+++
/framework/trunk/piwi/lib/zetacomponents/Document/src/converters/element_visitor/docbook/odt/meta_generator.php
Fri Oct 15 01:02:26 2010
@@ -0,0 +1,122 @@
+<?php
+/**
+ * File containing the ezcDocumentOdtMetaGenerator class.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ * @package Document
+ * @version //autogen//
+ * @license
http://www.apache.org/licenses/LICENSE-2.0 Apache License,
Version 2.0
+ * @access private
+ */
+
+/**
+ * Generates basic meta data for ODT files.
+ *
+ * @package Document
+ * @access private
+ * @version //autogen//
+ * @todo Add more and especially configurable meta data.
+ * @todo Replace meta data from template on a configurable basis.
+ */
+class ezcDocumentOdtMetaGenerator
+{
+ /**
+ * Version string.
+ *
+ * Automatically replaced during release.
+ */
+ const VERSION = '//autogen//';
+
+ /**
+ * Development version string.
+ *
+ * Used when {@link self::VERSION} is not replaced with a version
number.
+ */
+ const DEV_VERSION = 'dev';
+
+ /**
+ * Generator string template.
+ */
+ const GENERATOR = 'eZComponents/Document-%s';
+
+ /**
+ * Generates basic meta data in $odtDocument.
+ *
+ * @param DOMDocument $odtDocument
+ */
+ public function generateMetaData( DOMElement $odtMetaSection )
+ {
+ $this->insertGenerator( $odtMetaSection );
+ $this->insertDate( $odtMetaSection );
+ }
+
+ /**
+ * Inserts the <meta:generator/> tag.
+ *
+ * @param DOMElement $metaSection
+ */
+ protected function insertGenerator( DOMElement $metaSection )
+ {
+ $version = ( self::VERSION === '//auto' . 'gen//'
+ ? self::DEV_VERSION
+ : self::VERSION
+ );
+
+ $metaSection->appendChild(
+ $metaSection->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_META,
+ 'meta:generator',
+ sprintf( self::GENERATOR, $version )
+ )
+ );
+ }
+
+ /**
+ * Inserts <meta:creation-date /> and <dc:date/> tags.
+ *
+ * Note that OpenOffice.org 3.1.1 is not capable of parsing W3C
compliant
+ * dates with TZ offset correctly {@see
+ *
http://www.openoffice.org/issues/show_bug.cgi?id=107437}. We do not
work
+ * around this issue, since it's too minor.
+ *
+ * @param DOMElement $metaSection
+ */
+ protected function insertDate( DOMElement $metaSection )
+ {
+ $date = new DateTime();
+ $dateString = $date->format( DateTime::W3C );
+
+ $metaSection->appendChild(
+ $metaSection->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_ODT_META,
+ 'meta:creation-date',
+ $dateString
+ )
+ );
+ $metaSection->appendChild(
+ $metaSection->ownerDocument->createElementNS(
+ ezcDocumentOdt::NS_DC,
+ 'dc:date',
+ $dateString
+ )
+ );
+ }
+}
+
+?>
=======================================
***Additional files exist in this changeset.***