Hello Amenel,

On Thu, Jun 19, 2014 at 11:01:04AM +0100, Amenel VOGLOZIN wrote:
> Hi all,
> 
> I am writing an extension that will allow me to keep a selection of
> previously opened files that match certain personal criteria. Picture
> it as pinning specific documents to the recent files list. For that,
> I need to somehow know of when (existing) files are opened or (new
> files are) saved.
> 
> Browsing the IDL Reference in the API at
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/module-ix.html
> , I have noticed the XDocumentEventListener class that seems fit to in
> what I'm trying to achieve.

You need to implement a Job:
https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Jobs/Jobs
and configure it
https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Jobs/Configuration
to be triggered when an event takes place
https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Jobs/List_of_Supported_Events

If you want to reimplement the menu that shows up in

- menu File - Recent Document, 
- toolbar item Open
- Open button in the StartCenter

you can do this by implementing a css.frame.PopupMenuController.

Dive into the documentation quoted above and ask any questions that
raise.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: signature.asc
Description: Digital signature

Reply via email to