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.3 by williamc, Fri Jan 14 18:48:46 2000 UTC vs.
Revision 1.4 by williamc, Wed Feb 23 14:53:13 2000 UTC

# Line 22 | Line 22
22   # includeparse(Parse) : include the settings from another parse object
23   # tags()                : return list of defined tags
24   # cleartags()           : clear of all tags
25 + # opencontext(name)             : open a parse context
26 + # closecontext(name)    : close a parse context
27 + # includecontext(name)  : Process when in a given context
28 + # excludecontext(name)  : No Processing when given context
29 + # contexttag(tagname)   : Register the tagname as one able to change context
30 + #                         if not registerd - the close tag will be ignored
31 + #                         too if outside of the specified context!
32  
33  
34   package ActiveDoc::Parse;
# Line 113 | Line 120 | sub addignoretags {
120          $self->{gc}->exclude("ignore");
121          $self->{tags}->addtag("Ignore", \&Ignore_Start, $self,
122                          "",$self, \&Ignore_End,$self);
123 +        $self->{tags}->setgrouptag("Ignore");
124 + }
125 +
126 + sub contexttag {
127 +        my $self=shift;
128 +        $self->{tags}->setgrouptag(shift);
129 + }
130 +
131 + sub opencontext {
132 +        my $self=shift;
133 +        $self->{gc}->opencontext(shift);
134 + }
135 +
136 + sub closecontext {
137 +        my $self=shift;
138 +        $self->{gc}->closecontext(shift);
139 + }
140 +
141 + sub includecontext {
142 +        my $self=shift;
143 +        my $name=shift;
144 +
145 +        $self->{gc}->unexclude($name);
146 +        $self->{gc}->include($name);
147 + }
148 +
149 + sub excludecontext {
150 +        my $self=shift;
151 +        my $name=shift;
152 +        $self->{gc}->exclude($name);
153 +        $self->{gc}->uninclude($name);
154   }
155  
156   sub cleartags {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines