hi,
.
yup i debugged this.... and everything looked fine, but still i did't
worked, thats why asked is my methods right.. .. sooo after hours of
banging my head with this, i dont kno how i got this idea, but i simply
uninstalled the openoffice.org installation, and reinstalled a fresh one. it
worked then.. !! hurray.. :) it seems openoffice got damaged due to, me
regressively experimenting and testing with it.. ;)
.
regards
kushal
On Thu, Nov 18, 2010 at 10:28 PM, Christian Lippka <
[email protected]> wrote:
> Hi Kushal,
>
> Am 18.11.2010 15:49, schrieb kushal likhi:
>
> hi,
>> .
>> thanks, dialog is all showing now.. :)
>> .
>> now i need help with action listeners(something wrong in what i did),,
>> what
>> i did is i inherited the class with the listeners and implemented their
>> methods, then in the addListener i added keyword (this), (actual code in
>> the
>> end of the mail for reference).. is this method right?????
>> .
>> and how can i get the control from the model?? i tried something,, what i
>> did is:
>> (selected statements to show the flow)
>> mxDialog = Reference< XDialog
>>
>>> (xDialogProvider->createDialog(sXDLPath),UNO_QUERY_THROW);
>>>
>> Reference< XControl> xControl(mxDialog, UNO_QUERY_THROW);
>> mxModel = Reference< XNameAccess>(xControl->getModel(), UNO_QUERY_THROW);
>> mxControlContainer = Reference< XControlContainer
>>
>>> (mxDialog,UNO_QUERY_THROW);
>>>
>> Reference< XPropertySet> aListBox(mxModel->getByName(C2U("ListBox1")),
>> UNO_QUERY_THROW);
>> mxListBox = Reference< XListBox
>>
>>> (mxControlContainer->getControl(C2U("ListBox1")),UNO_QUERY_THROW);
>>>
>> .
>> will i get the XListBox using this method??? or any other way??
>>
>
> this should work. I don't know what your problem is, did you try
> running your code? And if you tried, what exactly went wrong? Have you
> debuged this? And if you not have debuged this, why not?
>
> Regards,
> Christian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>