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 |
+ |
# cleartags() : clear of all tags |
25 |
|
|
26 |
|
|
27 |
|
package ActiveDoc::Parse; |
83 |
|
} |
84 |
|
return undef; |
85 |
|
} |
86 |
+ |
|
87 |
+ |
sub includeparse { |
88 |
+ |
my $self=shift; |
89 |
+ |
my $obj=shift; |
90 |
+ |
|
91 |
+ |
my $tag; |
92 |
+ |
# copy the tags from the remote parse object |
93 |
+ |
foreach $tag ( $obj->tags() ) { |
94 |
+ |
$self->addtag($tag,$obj->{tags}->tagsettings($tag)); |
95 |
+ |
} |
96 |
+ |
# now the group settings |
97 |
+ |
} |
98 |
+ |
|
99 |
|
sub addtag { |
100 |
|
my $self=shift; |
101 |
|
$self->{tags}->addtag(@_); |
115 |
|
"",$self, \&Ignore_End,$self); |
116 |
|
} |
117 |
|
|
118 |
+ |
sub cleartags { |
119 |
+ |
my $self=shift; |
120 |
+ |
$self->{tags}->cleartags(); |
121 |
+ |
} |
122 |
+ |
|
123 |
+ |
sub tags { |
124 |
+ |
my $self=shift; |
125 |
+ |
return $self->{tags}->tags(); |
126 |
+ |
} |
127 |
+ |
|
128 |
|
# --------- Basic Group Related Tags --------------------------------- |
129 |
|
|
130 |
|
sub Group_Start { |