1package PDF::FromHTML::Template::Container::Scope; 2 3use strict; 4 5BEGIN { 6 use vars qw(@ISA); 7 @ISA = qw(PDF::FromHTML::Template::Container); 8 9 use PDF::FromHTML::Template::Container; 10} 11 12# This is used as a placeholder for scoping values across any number 13# of children. It does nothing on its own. 14 151; 16__END__ 17 18=head1 NAME 19 20PDF::FromHTML::Template::Container::Scope 21 22=head1 PURPOSE 23 24To provide scoping for children. 25 26=head1 NODE NAME 27 28SCOPE 29 30=head1 INHERITANCE 31 32PDF::FromHTML::Template::Container 33 34=head1 ATTRIBUTES 35 36None 37 38=head1 CHILDREN 39 40None 41 42=head1 AFFECTS 43 44Nothing 45 46=head1 DEPENDENCIES 47 48None 49 50=head1 USAGE 51 52 <scope w="100%"> 53 <row h="18"> 54 <textbox text="Hello, world"/> 55 </row> 56 <row h="8"> 57 <textbox text="Goodbye, world"/> 58 </row> 59 </scope> 60 61If you have a number of nodes that share common attribute values, but don't have 62a common parent, provide them with a no-op parent that allows consolidation of 63attribute specification. 64 65In the above example, the two textbox nodes will inherit the W attribute from 66the scope tag. 67 68=head1 AUTHOR 69 70Rob Kinyon (rkinyon@columbus.rr.com) 71 72=head1 SEE ALSO 73 74=cut 75