You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/02/13 18:45:09 UTC

svn commit: r153645 - in lenya/trunk/src/webapp/lenya/resources: ./ misc/bxe/inc/config.xml

Author: gregor
Date: Sun Feb 13 09:45:08 2005
New Revision: 153645

URL: http://svn.apache.org/viewcvs?view=rev&rev=153645
Log:
Switched to BXE 1.1 and Kupu 1.2

Modified:
    lenya/trunk/src/webapp/lenya/resources/   (props changed)
    lenya/trunk/src/webapp/lenya/resources/misc/bxe/inc/config.xml

Propchange: lenya/trunk/src/webapp/lenya/resources/
------------------------------------------------------------------------------
--- svn:externals (original)
+++ svn:externals Sun Feb 13 09:45:08 2005
@@ -1,2 +1,2 @@
-kupu http://codespeak.net/svn/kupu/branch/kupu-1.1
-bxe http://svn.bitflux.ch/repos/bxe/branches/bxe_1_0/
+kupu http://codespeak.net/svn/kupu/branch/kupu-1.2
+bxe http://svn.bitflux.ch/repos/bxe/trunk

Modified: lenya/trunk/src/webapp/lenya/resources/misc/bxe/inc/config.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/resources/misc/bxe/inc/config.xml?view=diff&r1=153644&r2=153645
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/misc/bxe/inc/config.xml (original)
+++ lenya/trunk/src/webapp/lenya/resources/misc/bxe/inc/config.xml Sun Feb 13 09:45:08 2005
@@ -72,9 +72,49 @@
         
         
     </files>
-
+    <options> 
+    <option name="autoParaElementName">p</option>
+    <option name="autoParaElementNamespace">http://www.w3.org/1999/xhtml</option>
+    <option name="showSplashScreen">true</option>
+    <option name="mergeDifferentBlocksOnDelete">true</option>
+    </options>
+<!-- here we define the buttons for the top button bar -->
     <buttons>
+    
+    <!-- The location of the image for the buttons
+           if none is provided, the images/buttons.png is taken 
+    <location src="../../images/bxe.png"/>
+    -->
+     <!-- the dimension tag is for defining the dimensions of your button image and how
+            large each button is. -->
     <dimension  width="120" height="140" buttonwidth="20" buttonheight="20"/>
+    <!-- For each button, we need a definition
+    attributes:  
+        col: in which column the button is in the button image
+        row: in which row the button is in the button image
+        name: the name of the button, this has to be unique and is used as tool tip at the moment
+        ns: a namespace associated to the button (usually the namespace of the element to be inserted)
+        type: The type of the "event" which should happen
+            "function": This function will be called, when the button is clicked
+            "insertElement": This element will be inserted
+            "event": This event will be triggered
+            
+            If there's no "type" attribute, but a "action" attribute, the event in the action attribute
+            will be triggered. 
+            
+            If type "event" or the action attribute is defined, the event gets the value of @name as parameter.
+        examples: 
+        - inserts the element xhtml:strong at cursor position 
+          <button name="strong" col="1" row="1" type="insertElement" ns="http://www.w3.org/1999/xhtml">b</button>
+        - calls the function DoSomething(), when clicked
+          <button name="strong" col="1" row="1" type="function">DoSomething</button>
+        - triggers the event ToggleTextClass (and makes the selection bold in this example)
+          the 2 examples are the same, the later is here for backwards compatibility.
+          <button name="strong" col="1" row="1" type="event" ns="http://www.w3.org/1999/xhtml">ToggleTextClass</button>
+          <button name="strong" col="1" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
+          
+    -->
+
         <button name="strong" col="1" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
         <button name="em" col="0" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org