XEventListener ani XModifyListener nie wykrywają tych zmian
Kod: Zaznacz cały
Sub add_eventsListener
Dim ePrefix As String, eService As String
'oMouseCurrCont = ThisComponent.CurrentController
ePrefix = "event_"
eService = "com.sun.star.document.XEventListener"
If IsNull(mEventHandler) Then
mEventHandler = CreateUnoListener(ePrefix, eService)
ThisComponent.addEventListener(mEventHandler)
EndIf
End Sub
Sub event_notifyEvent(oEvent)
msgbox "event: " & oEvent.EventName
End Sub