| 1 | # Copyrights 2003-2015 by [Mark Overmeer]. | ||
| 2 | # For other contributors see ChangeLog. | ||
| 3 | # See the manual pages for details on the licensing terms. | ||
| 4 | # Pod stripped from pm file by OODoc 2.01. | ||
| 5 | |||
| 6 | package OODoc::Text::SubSubSection; | ||
| 7 | use vars '$VERSION'; | ||
| 8 | $VERSION = '2.01'; | ||
| 9 | |||
| 10 | use base 'OODoc::Text::Structure'; | ||
| 11 | |||
| 12 | use strict; | ||
| 13 | use warnings; | ||
| 14 | |||
| 15 | use Log::Report 'oodoc'; | ||
| 16 | |||
| 17 | |||
| 18 | sub init($) | ||
| 19 | { my ($self, $args) = @_; | ||
| 20 | $args->{type} ||= 'Subsubsection'; | ||
| 21 | $args->{container} ||= delete $args->{subsection} or panic; | ||
| 22 | $args->{level} ||= 3; | ||
| 23 | |||
| 24 | $self->SUPER::init($args) | ||
| 25 | or return; | ||
| 26 | |||
| 27 | $self; | ||
| 28 | } | ||
| 29 | |||
| 30 | sub findEntry($) | ||
| 31 | { my ($self, $name) = @_; | ||
| 32 | $self->name eq $name ? $self : (); | ||
| 33 | } | ||
| 34 | |||
| 35 | #-------------- | ||
| 36 | |||
| 37 | sub subsection() { shift->container } | ||
| 38 | |||
| 39 | |||
| 40 | sub chapter() { shift->subsection->chapter } | ||
| 41 | |||
| 42 | sub path() | ||
| 43 | { my $self = shift; | ||
| 44 | $self->subsection->path . '/' . $self->name; | ||
| 45 | } | ||
| 46 | |||
| 47 | 1; |