Module
Contents
Index 🔎︎

# CreateUnoListener Function

Macciishshaancho lawishsha kalaqanno.

Haammata Uno reqeccimmuwa addi macciishshaanchi reqeccimmo aana macciishshaancho borreessatto gede assanno. Kunino addi ikko macciishshatenna hasiisanno macciishshaanchu metede horonsi'rate kaa'lannohe. UnoMacciishshaanchoKalaqi assishsha dayino macciishshaanchi reqeccimo agare reqeccimo irkissanno uduunnicho sayisanno. Kuni udiinnichi macciishshaancho borreessate metedeete wido sa'anno.

## Ganallo:

    oMacciishshaancho = UnoMacciishshaanchoKlaqi( Kaimulalisu'ma, MacciishshaanchuReqeccimmoSu'ma )

## Lawishsha:

Konni woroonni noo lawishshi Qara pirogiraamete mini uduunnichi garinni loosamanno.

    Dim oListener
    oListener = CreateUnoListener( "ContListener_","com.sun.star.container.XContainerListener" )

UnoMacciishshaanchoKalaqi metede lame eishshuwa hasidhanno. Umihu kaimu kala ikkanna kunino woroonni borreessamino. Layinkki eishshi horonsi'ra hasiratto macciishshaanchu reqeccimo su'maaati.

Macciishshaanchu Broadcaster udiinnichira ledamanno. Kuni ikkannohu Macciishshaancho ledate hasiissanno metede abbatenniiti. Tini metedubba barru tuqa 'X' weelo "Foo" Macciishshaanchu Reqeccimo Dana ikkanno "addFooListener" dirammete akata aane dagganno. Kunni lawishshi giddo, AmadaanchuMacciishshaanchoLedi metede XAmadaanchuMacciishshaancho borreessate horonsi'ramanno:

    Dim oLib
    oLib = QaraPirogiraameteMinna.PirogiraameteMine1' PirogiraameteMine1 heera hasiisannosi!
    oLib.AmadaanchuMacciishshaanchoLedi( oMacciishshaancho ) ' Maciishshaancho Borreessi

Xa borreessaanchu borreessamino. Ikko kalaqantannowote, muli Macciishshaanchi com.sun.star.amadaancho.XAmadaanchuMacciishshaancho Reqeccimo giddonni metede abbanno.

Kaimu kali Qara-cinaanchobiddissa giddonni borreessantino Macciishshaano abbanno. Qara dodammete amuraati "KaimukaliAmadaanchiMetede" su'mu noose Baca-cinaanchobiddissa woy assishshuwa hasanno. Woy dodammete so'ro kalaqantanno.

Kunni lawishshi giddo, Macciishshaanchu reqeccimo konni woroonni noo metede horonsi'dhanno:

- hunanni:

- Macciishshaanchu kaimi reqeccimo (com.sun.star.lang.XEventListener): baalante Macciishshaanchu Reqeccimmorakaimu reqeccimo

- E'inoMiilla:

- com.sun.star.amadaancho.XAmadaanchuMacciishshaancho reqeccimo metede

- Ba'inoMiila:

- com.sun.star.amadaancho.XAmadaanchuMacciishshaancho reqeccimo metede

- riqiwantinoMiila:

- com.sun.star.amadaancho.XAmadaanchuMacciishshaancho reqeccimo metede

Konni lawishshi giddo, kaimu kali ContMacciishshaancho_ ikkanno. Konni daafira konni woroonni noo cinaanchobiddissa Qara giddo loosama hasiisannose:

- ContMacciishshaancho_hunanni

- ContMacciishshaancho_miilaEi'no

- ContMacciishshaancho_miilaHoolantino

- ContMacciishshaancho_miilaRiqiwantino

Ikkote mashalaqqe amadanno ikkote gano dani baalunku Macciishshaanchu danira heeranno. Macciishshaanchu metede loosansamannowote, tenne ikko lawishshi metedete wido eishshu gede sa'anno. Eishshu Cinaancho xawishsha wido sa'anno geeshsha, qara Macciishshaanchi metedubba ikkote uduunne abba dandiitanno:

    Sub ContListener_disposing( oEvent )
        MsgSaaxine "hunanni"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementInserted( oEvent )
        MsgSaaxine "miilaSurkantino"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementRemoved( oEvent )
        MsgSaaxine "miilaBa'ino"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementReplaced( oEvent )
        MsgSaaxine "miilaRiqiwantino"
        MsgBox oEvent.Dbg_Properties
    End Sub

Uduunnichu horonsi'raminokkiro, ikkote udiinnichi eishsha ledo amada dihasiisannohe:

    ' cinaanchote huno ajo loosansiiso
    Sub ContListener_disposing
    End Sub

Macciishshaanchu metedubba barru tuqa Qara dodammete so'ro hunate loosantanno.