[Libreoffice] Cannot access menubar Label values

2011-02-09 Thread Alberto Ruiz

Hello everyone,
I am creating a Job that exports the menubar information through DBus[0]

I am getting the item descriptors and accessing its properties. Getting 
the CommandURL works fine, however when I try to get the Label I get an 
empty string instead. Am I hitting a bug or am I doing something wrong?


http://pastebin.com/8sV06v66

Any hints on how to proceed are welcome.

Cheers,
Alberto Ruiz

--
Alberto Ruiz, VP of Business Development, Codethink Ltd. - 
http://codethink.co.uk
Twitter: @acruiz LinkedIn: http://www.linkedin.com/in/acruiz
Office: +44 161 236 5575 - Cell: +44 790 812 1293

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Reusing the GLib mainloop from GTK/GNOME integration

2011-02-09 Thread Alberto Ruiz

Hi Michael,


On 08/02/11 21:17, Michael Meeks wrote:

Wonderful :-) but why are you doing this as an extension ? :-) surely
we should put this into the core code ? it should be rather easier to do
that, and less problematic.
For now deploying it as an extension allows me to focus on the code, 
ultimately I'm planning to deploy in the same fashion than ogltrans.

Once the code is working properly I'll figure out what the best way to


My approach is creating a Synchronous Job that gets executed everytime
a document is opened[1][2].

Hokay, no idea if that makes sense without reading the framework code
personally ;-)




Sooo ... we have gtk mainloop integration; but you need to get the
locking right of course; if it is pure gtk code; you should use:

GDK_THREADS_ENTER

as you hit your idle handler, and GDK_THREADS_LEAVE as you exit it.
Hmm ! interestingly I get similar corruption opening the file-selector
over the top of the shell - which might be related - fun. That would be
my first port of call.


Just tried that:
http://pastebin.com/zLY6Ece4

Same thing, funnily enough a timeout_add gives no problems.


My question is, is there a safe manner or any recommended practice
while using the glib mainloop from OpenOffice if the GNOME/GTK
integration is in use?

cf. above I guess. I didn't see any interesting code at the links you
posted though so ... beyond taking the toolkit lock before using the
toolkit, I am not sure :-) There are really two ways to do that - one is
with the GDK_THREADS magic; the other is via
vcl/inc/vcl/solarmutex.hxx's helper.


Well, I intend to create a DBus service, as long as I get to that point 
I'll see how it behaves (the g_idle_add was just a test to check if the 
glib mainloop was usable).


I'll keep reporting. Thanks a lot for the comments.

Cheers,
Alberto

--
Alberto Ruiz, VP of Business Development, Codethink Ltd. - 
http://codethink.co.uk
Twitter: @acruiz LinkedIn: http://www.linkedin.com/in/acruiz
Office: +44 161 236 5575 - Cell: +44 790 812 1293

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Cannot access menubar Label values

2011-02-09 Thread Alberto Ruiz

Hi Bjoern,
I just fixed the issue with this nice little helper:
http://pastebin.com/5h1Y5q5h

Works like a charm! Thanks a lot for your help :-)

Cheers,
Alberto

On 09/02/11 13:37, Bjoern Michaelsen wrote:

Hi Alberto,

this stuff is best discussed on IRC (as we just did ;) ). I hope the
stuff helped you get you started, if not, do not hesitate to contact me
again.

Best Regards,

Bjoern

On Wed, 09 Feb 2011 11:34:38 +
Alberto Ruiz
wrote:


Hello everyone,
I am creating a Job that exports the menubar information through
DBus[0]

I am getting the item descriptors and accessing its properties.
Getting the CommandURL works fine, however when I try to get the
Label I get an empty string instead. Am I hitting a bug or am I doing
something wrong?

http://pastebin.com/8sV06v66

Any hints on how to proceed are welcome.





___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



--
Alberto Ruiz, VP of Business Development, Codethink Ltd. - 
http://codethink.co.uk
Twitter: @acruiz LinkedIn: http://www.linkedin.com/in/acruiz
Office: +44 161 236 5575 - Cell: +44 790 812 1293

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Listening to MenuBar changes (com.sun.star.awt.XMenuBar and com.sun.star.mozilla.XMenuProxy)

2011-02-22 Thread Alberto Ruiz

Hello everyone,

I am trying to figure out how which object implements the 
com.sun.star.mozilla.XMenuProxy interface.


I want to use that interface from a given XMenuBar to be able to listen 
to menu changes, obtaining the item id. However, as far as I can see, no 
class implements this interface.


If anybody knows of any alternative route to listen for menubar changes, 
any hep is appreciated.


Cheers,
Alberto Ruiz
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


licensed under LGPLv3+/MPL"

2012-06-08 Thread Alberto Ferreira
Hi,


My previous and all future contributions to LibreOffice, unlessstated
otherwise, are licensed under LGPLv3+/MPL

Best Regards,

Alberto Ferreira
Portugal
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice