Here is some documentaion on file properties under the XDocumentProperties
https://wiki.openoffice.org/wiki/API/Samples/Java/Office/DocumentHandling

On 6/25/14, Amenel VOGLOZIN <waav_zoungla-o...@yahoo.fr> wrote:
> Hi,
>
> Ariel, thank you for your reply. Thank you also for the
> css.frame.PopupMenuController tip; it will be useful.
>
> I have succeeded in being notified of all document events, but without using
> jobs. Here is what I did in the XInitialization implementation.
>
>     public void initialize(Object[] object) throws
> com.sun.star.uno.Exception {
>
>      //
>         // Register as a listener for ALL document events
>         Object globalBroadcaster = serviceManager.createInstanceWithContext(
>                 "com.sun.star.frame.GlobalEventBroadcaster", xContext);
>         XDocumentEventBroadcaster broadcaster = UnoRuntime.queryInterface(
>                 com.sun.star.document.XDocumentEventBroadcaster.class,
> globalBroadcaster);
>         broadcaster.addDocumentEventListener(this);
>     …
>     }
>
>
> I am now on to retrieving document properties like the URL, the title, the
> keywords, the user-defined properties, etc.
>
> I might turn to jobs though, in case I hit a snag somewhere further ahead.
>
> Regards,
>
> -Amenel.
>


-- 
Alexandro Colorado
Apache OpenOffice Contributor
882C 4389 3C27 E8DF 41B9  5C4C 1DB7 9D1C 7F4C 2614

---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to