Date: prev next · Thread: first prev next last
2022 Archives by date, by thread · List index


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+unsubscribe@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.