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.

### Syntax:

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

### Example:

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:

- disposing:

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

- elementInserted:

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

- elementRemoved:

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

- elementReplaced:

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

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

- ContListener_disposing

- ContListener_elementInserted

- ContListener_elementRemoved

- ContListener_elementReplaced

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 )
        MsgBox "disposing"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementInserted( oEvent )
        MsgBox "elementInserted"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementRemoved( oEvent )
        MsgBox "elementRemoved"
        MsgBox oEvent.Dbg_Properties
    End Sub

    Sub ContListener_elementReplaced( oEvent )
        MsgBox "elementReplaced"
        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.