Buongiorno,
avrei bisogno di scrivere una macro che rimuova l'evento assegnato a un 
documento che a sua volta esegue una macro.
In pratica vorrei scrivere una macro che rimuova l'evento "OnLoad" 
(Strumenti->Personalizza->Eventi...) assegnato a un documento.
Ho trovato questi riferimenti 
https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1document_1_1Events.html
 e 
https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events
Document Events - Apache OpenOffice 
Wiki<https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events>
The argument of this call is a com.sun.star.document.EventObject struct, which 
is derived from the usual com.sun.star.lang.EventObject and contains two 
members: the member Source, which contains an interface pointer to the event 
source (here the com.sun.star.document.OfficeDocument service) and the member 
EventName which can be one of the names shown in the preceding table.
wiki.openoffice.org

LibreOffice: Events Service 
Reference<https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1document_1_1Events.html>
offers access to the list of EventDescriptors . The following events are 
usually available: OnAlphaCharInput OnClick OnCloseApp OnCopyTo OnCopyToDone
api.libreoffice.org
Ma non capisco come gestire i metodi (e quali sono) essociati alla proprietĂ  
document.events
Ho trovato qualche esempio in merito a delle gestioni simili a questa, in 
particolare questo:
https://forum.openoffice.org/en/forum/viewtopic.php?t=100539
che gestisce una macro associata a un foglio ma non riesco a capire come 
gestire l'evento sul documento.
Qualcuno mi può aiutare?
Grazie
Alberto Benedetto

-- 
Come cancellarsi: E-mail users+unsubscr...@it.libreoffice.org
Problemi? https://it.libreoffice.org/supporto/mailing-lists/come-cancellarsi/
Linee guida per postare + altro: 
https://wiki.documentfoundation.org/Local_Mailing_Lists/it
Archivio della lista: https://listarchives.libreoffice.org/it/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Rispondere a