diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-04 10:22:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-04 16:03:21 +0200 |
commit | 3ff4800fe400de916c97f587322104af06cc0879 (patch) | |
tree | 0e7b2d29b6998445da0cec98bd924e5178a4ef60 /vcl/inc/unx | |
parent | 265e1305e4f9bf8a4897069a020c9c65e8047f58 (diff) |
weld SvInsertOleDlg
and
weld SfxInsertFloatingFrameDialog
and smuggle in the parent widget for the Gtk File dialog via
an XWindow interface
Change-Id: I971b3a0ffe661c9268115fd5d00bf8eee80e77b3
Reviewed-on: https://gerrit.libreoffice.org/52373
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/unx')
-rw-r--r-- | vcl/inc/unx/gtk/gtkinst.hxx | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/gtkinst.hxx b/vcl/inc/unx/gtk/gtkinst.hxx index 2da209730e93..9a3cb48dfe03 100644 --- a/vcl/inc/unx/gtk/gtkinst.hxx +++ b/vcl/inc/unx/gtk/gtkinst.hxx @@ -251,6 +251,117 @@ private: mutable std::shared_ptr<vcl::unx::GtkPrintWrapper> m_xPrintWrapper; }; +typedef cppu::WeakComponentImplHelper<css::awt::XWindow> SalGtkXWindow_Base; + +class SalGtkXWindow : public SalGtkXWindow_Base +{ +private: + osl::Mutex m_aHelperMtx; + GtkWidget* m_pWidget; +public: + + SalGtkXWindow(GtkWidget* pWidget) + : SalGtkXWindow_Base(m_aHelperMtx) + , m_pWidget(pWidget) + { + } + + void clear() + { + m_pWidget = nullptr; + } + + GtkWidget * getWidget() const + { + return m_pWidget; + } + + // css::awt::XWindow + void SAL_CALL setPosSize(sal_Int32, sal_Int32, sal_Int32, sal_Int32, sal_Int16) override + { + throw css::uno::RuntimeException("not implemented"); + } + + css::awt::Rectangle SAL_CALL getPosSize() override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL setVisible(sal_Bool) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL setEnable(sal_Bool) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL setFocus() override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addWindowListener(const css::uno::Reference< css::awt::XWindowListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + void SAL_CALL removeWindowListener(const css::uno::Reference< css::awt::XWindowListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addFocusListener(const css::uno::Reference< css::awt::XFocusListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL removeFocusListener(const css::uno::Reference< css::awt::XFocusListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addKeyListener(const css::uno::Reference< css::awt::XKeyListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL removeKeyListener(const css::uno::Reference< css::awt::XKeyListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addMouseListener(const css::uno::Reference< css::awt::XMouseListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL removeMouseListener(const css::uno::Reference< css::awt::XMouseListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL removeMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL addPaintListener(const css::uno::Reference< css::awt::XPaintListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } + + void SAL_CALL removePaintListener(const css::uno::Reference< css::awt::XPaintListener >& ) override + { + throw css::uno::RuntimeException("not implemented"); + } +}; + #endif // INCLUDED_VCL_INC_UNX_GTK_GTKINST_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |