diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:54:28 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:54:28 +0000 |
commit | c471f1db4a9b1bb8bc98ee7b37aaf86c1c28520a (patch) | |
tree | 53fcb8c6e73fd5ca126575a0e46992a30c85e1d5 /extensions/test | |
parent | 9347cb99fd0b2b20806f9ae4e6fbce4348f1eb67 (diff) |
INTEGRATION: CWS uno4 (1.3.2); FILE ADDED
2003/05/08 06:59:09 jl 1.3.2.1: *** empty log message ***
Diffstat (limited to 'extensions/test')
-rw-r--r-- | extensions/test/ole/EventListenerSample/VBEventListener/VBEventListener.cls | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/extensions/test/ole/EventListenerSample/VBEventListener/VBEventListener.cls b/extensions/test/ole/EventListenerSample/VBEventListener/VBEventListener.cls new file mode 100644 index 000000000000..9fd9cc46f4f8 --- /dev/null +++ b/extensions/test/ole/EventListenerSample/VBEventListener/VBEventListener.cls @@ -0,0 +1,51 @@ +VERSION 1.0 CLASS +BEGIN + MultiUse = -1 'True + Persistable = 0 'NotPersistable + DataBindingBehavior = 0 'vbNone + DataSourceBehavior = 0 'vbNone + MTSTransactionMode = 0 'NotAnMTSObject +END +Attribute VB_Name = "VBEventListener" +Attribute VB_GlobalNameSpace = False +Attribute VB_Creatable = True +Attribute VB_PredeclaredId = False +Attribute VB_Exposed = True +Option Explicit +Private interfaces(0) As String +Private bDisposingCalled As Boolean +Private bQuiet As Boolean + +Public Property Get Bridge_ImplementedInterfaces() As Variant + Bridge_ImplementedInterfaces = interfaces +End Property + +Private Sub Class_Initialize() +interfaces(0) = "com.sun.star.lang.XEventListener" +bDisposingCalled = False +bQuiet = False +End Sub + +Private Sub Class_Terminate() + On Error Resume Next + Debug.Print "Terminate VBEventListener" +End Sub + +Public Sub disposing(ByVal source As Object) + If bQuiet = False Then + MsgBox "disposing called" + End If + bDisposingCalled = True +End Sub + +Public Sub setQuiet(quiet As Boolean) + bQuiet = quiet +End Sub + +Public Sub resetDisposing() + bDisposingCalled = False +End Sub + +Public Function disposingCalled() + disposingCalled = bDisposingCalled +End Function |