Index: lib/TWiki/Plugins/TreeBrowserPlugin.pm =================================================================== --- lib/TWiki/Plugins/TreeBrowserPlugin.pm (revision 11502) +++ lib/TWiki/Plugins/TreeBrowserPlugin.pm (working copy) @@ -38,7 +38,7 @@ $debug $js ); -$VERSION = '1.031'; +$VERSION = 'v0.7'; $pluginName = 'TreeBrowserPlugin'; # ========================= @@ -97,6 +97,9 @@ my $open2 = &TWiki::Func::extractNameValuePair( $theAttr, "openAll" ); my $shared = &TWiki::Func::extractNameValuePair( $theAttr, "shared" ); my $useLines = &TWiki::Func::extractNameValuePair( $theAttr, "uselines" ); + my $usePlusMinus = &TWiki::Func::extractNameValuePair( $theAttr, "useplusminus" ); + my $noIndent = &TWiki::Func::extractNameValuePair( $theAttr, "noindent" ); + my $noCss = &TWiki::Func::extractNameValuePair( $theAttr, "nocss" ); my $useStatusText = &TWiki::Func::extractNameValuePair( $theAttr, "usestatustext" ); my $closeSameLevel = &TWiki::Func::extractNameValuePair( $theAttr, "closesamelevel" ); my $icons = 0; @@ -108,12 +111,12 @@ my $opento = 0; $opento = $open1 if (!$openall && $open1); - return $thePre . &renderTreeView( $type, $params, $useLines, $useStatusText, $closeSameLevel, $theTitle, $icons, $shared, $openall, $opento, $theList ); + return $thePre . &renderTreeView( $type, $params, $useLines, $usePlusMinus, $useStatusText, $closeSameLevel, $noIndent, $noCss, $theTitle, $icons, $shared, $openall, $opento, $theList ); } sub renderTreeView { - my ( $theType, $theParams, $useLines, $useStatusText, $closeSameLevel, $theTitle, $icons, $shared, $openAll, $openTo, $theText ) = @_; + my ( $theType, $theParams, $useLines, $usePlusMinus, $useStatusText, $closeSameLevel, $noIndent, $noCss, $theTitle, $icons, $shared, $openAll, $openTo, $theText ) = @_; $theText =~ s/^[\n\r]*//os; my @tree = (); @@ -160,10 +163,16 @@ $js++; my $var = ($shared)?$shared:"d$js"; - my $script = " - + + my $script = "\n"; + #add CSS unless no CSS specified + #$script .="" unless ($noCss=~/true|1|on/i); + $script .= " "; - $text = "