Yves Forkl wrote: > in the configuration I am preparing, I would like to offer a collapser similar > to XXE's standard collapser, but it should rather toggle by calling > collapseAll > and expandAll instead of toggling simply between collapsed and expanded view. > > While I am aware that XXE's standard collapser has the functions collapseAll > and expandAll on its (right-click) context menu,
It's also possible to double-click on the collapser to toggle between collapseAll and expandAll. > I prefer making these > functions more accessible through a visible, clickable symbol. > > Despite having carefully studied the info at > http://www.xmlmind.com/xmleditor/_distrib/doc/commands/toggleCollapsed.html > I still wonder how this is possible. Is it sufficient to combine the > parameters > of toggleCollapsed somehow? Do I need to implement the toggling behaviour in > a > macro of my own? (In this case, where to read the status from?) Or does this > even require a new Java command? > The collapser gadget does *not* invoke the toggleCollapsed command. It's certainly possible to add a command-button -- http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/command-button.html -- which would invoke the toggleCollapsed command. However this command currently may not be used to obtain the collapsed/expanded state of its associated gadget. This means that you'll have to add 2 command-buttons (which is pretty inelegant): one which "expands all" and one which "collapses all". -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

