NAME
Win32::Word::Declarative::Text - implements a text extent in the declarative Word framework.
VERSION
Version 0.01
SYNOPSIS
The text
tag defines, well, text in a Word document. It will be subclassed for paragraph and table cells at least.
The formatting
tag is also text - but it doesn't claim its content, which is presumed to be hierarchically ordered text elements. This tag is thus generally used to carry formatting (hence the name) that applies to its content.
Expect at least some of this code to be factored out of Win32::Word::Declarative entirely - as soon as I need it elsewhere. It may very well roll back into Class::Declarative. But for now, here it is.
INTERNALS
defines()
Called by Class::Declarative
during import, to find out what xmlapi tags this plugin claims to implement.
build_payload
The build_payload
function is then called when this object is built. All it really does is interpret its style parameters.
go
The go
function does the real work of creating text and applying formatting. It is recursive to children of this node.
TEXT-SPECIFIC FUNCTIONS
add_content($text)
Types the text in question. This can be overridden to create a new paragraph or table cell first, which is why it's split out like this.
AUTHOR
Michael Roberts, <michael at vivtek.com>
BUGS
Please report any bugs or feature requests to bug-wx-definedui at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Win32-Word-Declarative. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
LICENSE AND COPYRIGHT
Copyright 2010 Michael Roberts.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.