33 |
|
bless $self, $class; |
34 |
|
$self->cache(shift); |
35 |
|
$self->_initdoc("doc",@_); |
36 |
– |
#$self->{switch}=ActiveDoc::SimpleDoc->new(@_); |
36 |
|
return $self; |
37 |
|
} |
38 |
|
|
77 |
|
my $urlstring=shift; |
78 |
|
|
79 |
|
($fullurl,$filename)=$self->{urlhandler}->get($urlstring, @_); |
80 |
+ |
|
81 |
|
if ( ( ! defined $filename ) || ( $filename eq "" ) ) { |
82 |
|
$self->parseerror("Failed to get $fullurl"); |
83 |
|
} |
84 |
|
return ($fullurl,$filename); |
85 |
|
} |
86 |
|
|
87 |
– |
#sub AUTOLOAD { |
88 |
– |
# my $self=shift; |
89 |
– |
# |
90 |
– |
# dont propogate destroy methods |
91 |
– |
# return if $AUTOLOAD=~/::DESTROY/; |
92 |
– |
|
93 |
– |
# remove this package name |
94 |
– |
# ($name=$AUTOLOAD)=~s/ActiveDoc::SimpleURLDoc:://; |
95 |
– |
|
96 |
– |
# pass the message to SimpleDoc |
97 |
– |
# $self->{switch}->$name(@_); |
98 |
– |
#} |
99 |
– |
|
87 |
|
# ------------------------ Support Routines --------------------------- |
88 |
|
|
89 |
|
# ------------------------ Tag Routines ------------------------------- |
95 |
|
|
96 |
|
$self->checktag($name, $hashref, "url"); |
97 |
|
my $url=$self->{urlhandler}->setbase($$hashref{'url'}); |
98 |
+ |
# Add store for url of the file currently being parsed. This info can |
99 |
+ |
# then be extracted in Requirements objects |
100 |
+ |
$self->{configurl}=$url; |
101 |
|
push @{$self->{basestack}}, $url->type(); |
102 |
|
} |
103 |
|
|