Hi Christian,
> I still cannot see why #2 and #3 is not working though.
/me too
> I've now tested this with OOo 2.1 on Suse 10.1 and I get the same rsult
Did you try a) examining what getScriptEvents tells you when you
registered an event via UI and b) what is written into the content.xml
when
Hi there,
this is different, depending on the type of Open/Save dialogs selected
(see tools - options - StarOffice - general):
Windows dialogs delete to the recycle bin, while the
OpenOffice/StarOffice dialogs delete immediately. So on Windows, just
deactivate the switch for the different be
This should work in the right context:
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem --
dispatcher.executeDispatch(
document, "cspsolver.SolverImpl:
Hi Frank, thanks for answering.
for method1, I thought this was the reason, sicne nothing got registered
in the "events" for the button.
I still cannot see why #2 and #3 is not working though.
I've now tested this with OOo 2.1 on Suse 10.1 and I get the same rsult
(I' ve created a test document f
Hi everybody,
I created a uno component. It contains an "execute" function. I can call
this function by using an button on the officeToolBar. What I want to do
is be able to call this function from a macro too.
This is the code that permit the call from the button on the toolbar :
---
Hi Christian,
> method 1: works only before I reopen the document.
> The control editor show no events attached
that's because when you register a listener created by
CreateUnoListener, then it is not persistent. You would need to add some
macro to the OnLoad event of the whole document
OK, I've now down some tests using
Novel OOo 2.0.2 and vanilla OOo2.0.4
both on Suse linux 10.1
method 1: works only before I reopen the document.
The control editor show no events attached
method 2: does not work at all
The control editor show the document:.. stuff but there i
Hi there, I have a problem with creating a commandbutton using macro and
then attaching an event to this button. (OOo 2.0.4, windows 2000)
I have tried several methods but they all end up not working as I want
them to.
the basic function I'm using looks like the following.
it is only the part [AT