> I want to use the Xwiki Enterprise to display Geogebra's
> applets. ... can you help me create a macro ...

GeoGebra is a free and multi-platform dynamic mathematics software for
schools that joins geometry, algebra and calculus.      
This piece of software is very popular, as the other new European portal for
Geometry is based on the platform Xwiki
(http://i2geo.net/xwiki/bin/view/Main/WebHome). 
        
        
I think it is useful to have a macro command for Geogebra and I managed to
do it. You can see the result here
http://apleti.normala.hr/xwiki/bin/view/Sandbox/GgbMakro. However, as I am
not a programmer may still be at optimizing. You can see a macro command
below.
best regards
Sime S.

#macro(geogebra $filename $width $height $frame $reset $zoom $menu $tool
$help $input $border)
#if(!$width)
#set($width="700")
#end
#if(!$height)
#set($height="550")
#end
#if($frame=="0")
#set($frame="false")
#else
#set($frame="true")
#end
#if($reset=="0")
#set($reset="false")
#else
#set($reset="true")
#end
#if($zoom=="0")
#set($zoom="false")
#else
#set($zoom="true")
#end
#if($menu=="1")
#set($menu="true")
#else
#set($menu="false")
#end
#if($tool=="1")
#set($tool="true")
#else
#set($tool="false")
#end
#if($help=="1")
#set($help="true")
#else
#set($help="false")
#end
#if($input=="1")
#set($input="true")
#else
#set($input="false")
#end
#if(!$border)
#set($width="#f0f0f0")
#end

<applet name="ggbApplet" code="geogebra.GeoGebraApplet"
codebase="http://www.yourServerName.com/xwiki/bin/download";
archive="../../geogebra/geogebra.jar" width="${width}" height="${height}">
<param name="filename" value="$doc.space/$doc.name/$filename">
<param name="framePossible" value="$frame">
<param name="showResetIcon" value="$reset">
<param name="enableRightClick" value="$click">
<param name="enableShiftDragZoom" value="$zoom">
<param name="showMenuBar" value="$menu">
<param name="showToolBar" value="$tool">
<param name="showToolBarHelp" value="$help">
<param name="showAlgebraInput" value="$input">
<param name="borderColor" value="$border">
Sorry, the GeoGebra Applet could not be started. Please make sure that Java
1.4.2 (or later) is installed and active in your browser (<a
href="http://java.sun.com/getjava";>Click here to install Java now</a>)
</applet>
#end



_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to