Rainman Lee wrote:
hello everyone, I defined a interfaces tree like this:XWindow | | XButton | | XImageButton and I have implemented XWindow in my Window service. now I want to implement XButton, XImageButton respectively in Button, ImageButton services. Is there a convenient method with which I can reuse the Window's implementation, instead of reimplementing all XWindow's interfaces in Button? Thank you very much! Best Wishes, Rainman.
in c++, there is the ImplInheritanceHelper* family: http://api.openoffice.org/docs/cpp/ref/names/cppu/c-ImplInheritanceHelper1.html so you can do sth like this: class MyWindow : WeakImplHelper3<XWindow, ...> class MyButton : ImplInheritanceHelper1<MyWindow, XButton> regards, michael -- "The whole modern world has divided itself into Conservatives and Progressives. The business of Progressives is to go on making mistakes. The business of the Conservatives is to prevent the mistakes from being corrected." -- G. K. Chesterton (1924) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
