Re: [api-dev] Catching Mouse Clicks
Thanks to those that chimed in on this. It got the gears turning. Brad --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Bradley Bolen wrote: > > > I'm sorry, I probably should have given a little > more information on > > what I want to do. I have one machine (the > master) that will be > > running a slide show. I have other machines else > where that will > > have the same copy of the presentation and running > it. I am trying > > to design it so that when there is a mouse click > on the master slide > > show to advance to the next slide/animation then I > signal the other > > machines to advance as well. This way I can do > somewhat of a group > > presentation across the Internet. I'm ignoring > some of the other > > issues at the moment such as if someone "joins" > the presentation > > late, i.e. how do they know where to start the > slide show from to be > > in sync with everyone else. But I think I could > hack something > > together for most of these issues. But if I can't > come up with a way > > to be informed of slide/animation advances during > a slide show, I'm > > hosed from the beginning. I was looking at mouse > clicks because that > > was about the only thing I could associate with a > slide transition > > besides a space bar press, but if there is another > event that I could > > listen for, I would be willing to look at that. > > So maybe you are more looking for an event "slide > change" than for an > event "mouse click", right? > > I'm not sure wether such a beast exists. Christian?! > > Ciao, > Mathias > > -- > Mathias Bauer - OpenOffice.org Application Framework > Project Lead > Please reply to the list only, [EMAIL PROTECTED] > is a spam sink. > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
Bradley Bolen wrote: > I'm sorry, I probably should have given a little more information on > what I want to do. I have one machine (the master) that will be > running a slide show. I have other machines else where that will > have the same copy of the presentation and running it. I am trying > to design it so that when there is a mouse click on the master slide > show to advance to the next slide/animation then I signal the other > machines to advance as well. This way I can do somewhat of a group > presentation across the Internet. I'm ignoring some of the other > issues at the moment such as if someone "joins" the presentation > late, i.e. how do they know where to start the slide show from to be > in sync with everyone else. But I think I could hack something > together for most of these issues. But if I can't come up with a way > to be informed of slide/animation advances during a slide show, I'm > hosed from the beginning. I was looking at mouse clicks because that > was about the only thing I could associate with a slide transition > besides a space bar press, but if there is another event that I could > listen for, I would be willing to look at that. So maybe you are more looking for an event "slide change" than for an event "mouse click", right? I'm not sure wether such a beast exists. Christian?! Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
Christian Lippka wrote: > Hi Bradley, > > I'm afraid the slideshow API is due to time and resource constrains not > yet available to be used from the outside. > You may be able to get the XWindow from the top frame after a fullscreen > slideshow was started. Then you could register there as a mouselistener > from com.sun.star.awt > But it is not guaranntied that we advance a slide on each mouse click. > It could also mean we trigger an interaction or advance a shape animation. > > If this does not help you, please tell us what you try to do on the > dev@graphics.openoffice.org mailing list, maybe we can give you a > hint for a workaround. > (I'm afraid Mathias hint with [EMAIL PROTECTED] is not a good choice) Oops, sorry for the mistake. At least it starts withe a "g" also. :-) Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
I'm sorry, I probably should have given a little more information on what I want to do. I have one machine (the master) that will be running a slide show. I have other machines else where that will have the same copy of the presentation and running it. I am trying to design it so that when there is a mouse click on the master slide show to advance to the next slide/animation then I signal the other machines to advance as well. This way I can do somewhat of a group presentation across the Internet. I'm ignoring some of the other issues at the moment such as if someone "joins" the presentation late, i.e. how do they know where to start the slide show from to be in sync with everyone else. But I think I could hack something together for most of these issues. But if I can't come up with a way to be informed of slide/animation advances during a slide show, I'm hosed from the beginning. I was looking at mouse clicks because that was about the only thing I could associate with a slide transition besides a space bar press, but if there is another event that I could listen for, I would be willing to look at that. Thanks, Brad --- Christian Junker <[EMAIL PROTECTED]> wrote: > You say you want to advance to the next slide when a > user presses a > mouse button, but I don't see the sense of it since > this is what > happens by default. Can you describe your problem a > bit more? > > In general you don't have a lot of control (at least > no real-time > control) over a running slide-show from the API. > > 2005/12/7, Bradley Bolen <[EMAIL PROTECTED]>: > > I would be listening for it in the slide show. > > > > Thanks, > > > > Brad > > > -- > Best Regards > Christian Junker > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
You say you want to advance to the next slide when a user presses a mouse button, but I don't see the sense of it since this is what happens by default. Can you describe your problem a bit more? In general you don't have a lot of control (at least no real-time control) over a running slide-show from the API. 2005/12/7, Bradley Bolen <[EMAIL PROTECTED]>: > I would be listening for it in the slide show. > > Thanks, > > Brad -- Best Regards Christian Junker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
Hi Bradley, I'm afraid the slideshow API is due to time and resource constrains not yet available to be used from the outside. You may be able to get the XWindow from the top frame after a fullscreen slideshow was started. Then you could register there as a mouselistener from com.sun.star.awt But it is not guaranntied that we advance a slide on each mouse click. It could also mean we trigger an interaction or advance a shape animation. If this does not help you, please tell us what you try to do on the dev@graphics.openoffice.org mailing list, maybe we can give you a hint for a workaround. (I'm afraid Mathias hint with [EMAIL PROTECTED] is not a good choice) Regards, Christian Mathias Bauer wrote: Hi Bradley, unfortunately the API for these events does exist (AFAIK) but currently is not published. So using it exposes your code to the risk that it must be changed later. Non published APIs are not guaranteed to be stable in later OOo versions as are the published APIs. If you still want to use it and don't get any further answers here (I for myself don't know this API well enough) you could ask on the dev@gsl.openoffice.org mailing list. Best regards, Mathias Bradley Bolen wrote: I would be listening for it in the slide show. Thanks, Brad --- Mathias Bauer <[EMAIL PROTECTED]> wrote: Bradley Bolen wrote: Hello. I'm sorry if this question has already been answered. I checked the mailing list archive (and google) but I didn't find quite what I was looking for. I am trying to find a way to know when a user has clicked a mouse button. Specifically, I will open and start a Presentation document. I then would like to be able to know when the user has clicked the mouse to move to the next slide. From the IDL reference it looks like I should get the com::sun::star::frame::Controller service. Then from that I can get the XUserInputInterception interface and use the addMouseClickHandler method. I would then have to implement the com::sun::star::awt::XMouseClickHandler interface to perform the actions that I want when the mouse button is clicked. Is this the way that the mouse listening interfaces work? If not, can someone point me to the correct way to do what I want? Also, if anyone knows of a link to some example code, even if it is for a keyboard event, that would be helpful. I think this is not the way to go. The XUserInputInteraction interface is more related to clicks into the document pane, not for clicking on control elements. The right way to react on slide exchange is to listen for a specific event. Do you want to listen for this event in the edit mode or in the slide show? Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
Hi Bradley, unfortunately the API for these events does exist (AFAIK) but currently is not published. So using it exposes your code to the risk that it must be changed later. Non published APIs are not guaranteed to be stable in later OOo versions as are the published APIs. If you still want to use it and don't get any further answers here (I for myself don't know this API well enough) you could ask on the dev@gsl.openoffice.org mailing list. Best regards, Mathias Bradley Bolen wrote: > I would be listening for it in the slide show. > > Thanks, > > Brad > > --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > >> Bradley Bolen wrote: >> >> > Hello. >> > >> > I'm sorry if this question has already been >> answered. >> > >> > I checked the mailing list archive (and google) >> but I >> > didn't find quite what I was looking for. I am >> trying >> > to find a way to know when a user has clicked a >> mouse >> > button. Specifically, I will open and start a >> > Presentation document. I then would like to be >> able >> > to know when the user has clicked the mouse to >> move to >> > the next slide. From the IDL reference it looks >> like >> > I should get the >> com::sun::star::frame::Controller >> > service. Then from that I can get the >> > XUserInputInterception interface and use the >> > addMouseClickHandler method. I would then have >> to >> > implement the >> com::sun::star::awt::XMouseClickHandler >> > interface to perform the actions that I want when >> the >> > mouse button is clicked. Is this the way that >> the >> > mouse listening interfaces work? If not, can >> someone >> > point me to the correct way to do what I want? >> Also, >> > if anyone knows of a link to some example code, >> even >> > if it is for a keyboard event, that would be >> helpful. >> >> I think this is not the way to go. The >> XUserInputInteraction interface >> is more related to clicks into the document pane, >> not for clicking on >> control elements. >> >> The right way to react on slide exchange is to >> listen for a specific >> event. Do you want to listen for this event in the >> edit mode or in the >> slide show? >> >> Best regards, >> Mathias >> >> -- >> Mathias Bauer - OpenOffice.org Application Framework >> Project Lead >> Please reply to the list only, [EMAIL PROTECTED] >> is a spam sink. >> >> > - >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> >> > > > > > __ > Yahoo! DSL – Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
I would be listening for it in the slide show. Thanks, Brad --- Mathias Bauer <[EMAIL PROTECTED]> wrote: > Bradley Bolen wrote: > > > Hello. > > > > I'm sorry if this question has already been > answered. > > > > I checked the mailing list archive (and google) > but I > > didn't find quite what I was looking for. I am > trying > > to find a way to know when a user has clicked a > mouse > > button. Specifically, I will open and start a > > Presentation document. I then would like to be > able > > to know when the user has clicked the mouse to > move to > > the next slide. From the IDL reference it looks > like > > I should get the > com::sun::star::frame::Controller > > service. Then from that I can get the > > XUserInputInterception interface and use the > > addMouseClickHandler method. I would then have > to > > implement the > com::sun::star::awt::XMouseClickHandler > > interface to perform the actions that I want when > the > > mouse button is clicked. Is this the way that > the > > mouse listening interfaces work? If not, can > someone > > point me to the correct way to do what I want? > Also, > > if anyone knows of a link to some example code, > even > > if it is for a keyboard event, that would be > helpful. > > I think this is not the way to go. The > XUserInputInteraction interface > is more related to clicks into the document pane, > not for clicking on > control elements. > > The right way to react on slide exchange is to > listen for a specific > event. Do you want to listen for this event in the > edit mode or in the > slide show? > > Best regards, > Mathias > > -- > Mathias Bauer - OpenOffice.org Application Framework > Project Lead > Please reply to the list only, [EMAIL PROTECTED] > is a spam sink. > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Catching Mouse Clicks
Bradley Bolen wrote: > Hello. > > I'm sorry if this question has already been answered. > > I checked the mailing list archive (and google) but I > didn't find quite what I was looking for. I am trying > to find a way to know when a user has clicked a mouse > button. Specifically, I will open and start a > Presentation document. I then would like to be able > to know when the user has clicked the mouse to move to > the next slide. From the IDL reference it looks like > I should get the com::sun::star::frame::Controller > service. Then from that I can get the > XUserInputInterception interface and use the > addMouseClickHandler method. I would then have to > implement the com::sun::star::awt::XMouseClickHandler > interface to perform the actions that I want when the > mouse button is clicked. Is this the way that the > mouse listening interfaces work? If not, can someone > point me to the correct way to do what I want? Also, > if anyone knows of a link to some example code, even > if it is for a keyboard event, that would be helpful. I think this is not the way to go. The XUserInputInteraction interface is more related to clicks into the document pane, not for clicking on control elements. The right way to react on slide exchange is to listen for a specific event. Do you want to listen for this event in the edit mode or in the slide show? Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]