ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/Parse.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/Parse.pm (file contents):
Revision 1.1 by williamc, Tue Nov 23 17:20:55 1999 UTC vs.
Revision 1.3 by williamc, Fri Jan 14 18:48:46 2000 UTC

# Line 19 | Line 19
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;
# Line 80 | Line 83 | sub tagstartline {
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(@_);
# Line 99 | Line 115 | sub addignoretags {
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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines