https://bugs.freedesktop.org/show_bug.cgi?id=54938

--- Comment #55 from Alexandre Vicenzi <vicenzi.alexan...@gmail.com> ---
Stephan,

I'm trying to adjust PopupMenuToolbarController
(framework/source/uielement/popuptoolbarcontroller.cxx), but I'm getting some
errors.

I tried this approach:

class PopupMenuToolbarController : public ::cppu::WeakImplHelper2<
svt::ToolboxController, css::lang::XServiceInfo >

And I get these errors:

In file included from
./framework/source/uielement/popuptoolbarcontroller.cxx:21:0:
./include/cppuhelper/implbase2.hxx: In instantiation of ‘class
cppu::WeakImplHelper2<svt::ToolboxController,
com::sun::star::lang::XServiceInfo>’:
./framework/source/uielement/popuptoolbarcontroller.cxx:50:51:   required from
here
./include/cppuhelper/implbase2.hxx:94:69: warning: direct base
‘cppu::OWeakObject’ inaccessible in
‘cppu::WeakImplHelper2<svt::ToolboxController,
com::sun::star::lang::XServiceInfo>’ due to ambiguity [enabled by default]
     class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE SAL_DLLPUBLIC_EXPORT
WeakImplHelper2
                                                                     ^
./framework/source/uielement/popuptoolbarcontroller.cxx: In constructor
‘{anonymous}::PopupMenuToolbarController::PopupMenuToolbarController(const
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, const
rtl::OUString&)’:
./framework/source/uielement/popuptoolbarcontroller.cxx:84:12: error: type
‘svt::ToolboxController’ is not a direct base of
‘{anonymous}::PopupMenuToolbarController’
     : svt::ToolboxController()

What I'm missing? Or what is the correct way to do this. I tried multiple
inheritance and didn't work too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to