19 |
|
# supplied as a second argument |
20 |
|
# line() : return the current linenumber in the file |
21 |
|
# tagstartline() : return the linenumber of the last tag opening |
22 |
+ |
# includeparse(Parse) : include the settings from another parse object |
23 |
+ |
# tags() : return list of defined tags |
24 |
|
|
25 |
|
|
26 |
|
package ActiveDoc::Parse; |
82 |
|
} |
83 |
|
return undef; |
84 |
|
} |
85 |
+ |
|
86 |
+ |
sub includeparse { |
87 |
+ |
my $self=shift; |
88 |
+ |
my $obj=shift; |
89 |
+ |
|
90 |
+ |
my $tag; |
91 |
+ |
# copy the tags from the remote parse object |
92 |
+ |
foreach $tag ( $obj->tags() ) { |
93 |
+ |
$self->addtag($tag,$obj->{tags}->tagsettings($tag)); |
94 |
+ |
} |
95 |
+ |
# now the group settings |
96 |
+ |
} |
97 |
+ |
|
98 |
|
sub addtag { |
99 |
|
my $self=shift; |
100 |
|
$self->{tags}->addtag(@_); |
143 |
|
$self->{gc}->opencontext("ignore"); |
144 |
|
} |
145 |
|
|
146 |
+ |
sub tags { |
147 |
+ |
my $self=shift; |
148 |
+ |
return $self->{tags}->tags(); |
149 |
+ |
} |
150 |
|
sub Ignore_End { |
151 |
|
my $self=shift; |
152 |
|
$self->{gc}->closecontext("ignore"); |