Aditya Pandey wrote:
> I have been trying to explore howto make UI/Dialogs for my OpenOffice Writer
> addon.
> 
> Since the addon has external dependencies and other factors, I need to program
> addon in C++.
> 
> But, if I follow the approach mentioned in  Sergey Montou's book on OpenOffice
> Programming in C++, I have to program the dialog by calling various
> services/interfaces (no problem with that). But I have to specify the hard
> coded values for "Position X" etc. inside my application for each label --
> thinking of localization etc., this wouldnt serve the purpose.

Yes, GUI programming using C++(VCL) or the OOo AWT toolkit is not very
compelling. We know this, it's a very weak spot in our Programmability.

> On the other hand, Basic's Dialog support is amazing. One person can easily
> draw the dialog and background XML(.xdl) file is created. I tried to explore
> the route of keeping the whole UI in basic and callin basic macros from C++
> , but I am not sure if this is the right strategy.

In general using the Basic Dialog Editor is a good choice if it provides
everything you need.

But why do you want to call Basic macros from C++? I would expect that
you instantiate your dialog from your C++ code (should be possible by
some UNO calls) and have macro code working inside the dialog that calls
back into your C++ code through UNO interfaces you implement by yourselves.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to