https://bugs.documentfoundation.org/show_bug.cgi?id=88815
Michael Meeks <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|macro-ify duplicate code |simplify service |... |declarations --- Comment #2 from Michael Meeks <[email protected]> --- Ah - nice =) so unfortunately even I find the template code extremely hard to follow; but I guess we need to replace: virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService( OUString const& name ) throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException) SAL_OVERRIDE; and their implementations with: #include <comphelper/servicedecl.hxx> and a class member thus: comphelper::service_decl::ServiceDecl const myDecl( sdecl::class_<MyClass>(), "com.sun.star.comp.my.unique.implementation.name", "com.sun.star.draw.MyServiceSpec1;com.sun.star.draw.MyServiceSpec2" ); Is it truly the case that that can be done without altering the inheritance hierarchy of the implementor ? ie. we still use WeakImplBase3<XServiceInfo,...> or somesuch ? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
