From e2aa85a6fbc039e8b1950f0e4b8484595d0b47eb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 Oct 2019 11:34:27 +0000 Subject: avoid intermediate vcl::Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac6bc83265e007a699a8993b89ac2efaa3739d95 Reviewed-on: https://gerrit.libreoffice.org/81761 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/editeng/splwrap.hxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include/editeng') diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx index dbb6576fbbfd..69dfbbc6c780 100644 --- a/include/editeng/splwrap.hxx +++ b/include/editeng/splwrap.hxx @@ -24,7 +24,7 @@ #include #include #include -#include +#include // forward --------------------------------------------------------------- @@ -34,8 +34,6 @@ namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenator; }}}} -namespace vcl { class Window; } - // misc functions --------------------------------------------------------------- void EDITENG_DLLPUBLIC SvxPrepareAutoCorrect( OUString &rOldText, const OUString &rNewText ); @@ -50,7 +48,8 @@ private: friend class SvxHyphenWordDialog; friend struct SvxHyphenWordDialog_Impl; - VclPtr pWin; + weld::Window* pWin; + std::unique_ptr xWait; css::uno::Reference< css::uno::XInterface > xLast; // result of last spelling/hyphenation attempt css::uno::Reference< @@ -71,9 +70,9 @@ private: void operator =(SvxSpellWrapper const &) = delete; public: - SvxSpellWrapper( vcl::Window* pWn, + SvxSpellWrapper( weld::Window* pWn, const bool bStart, const bool bIsAllRight ); - SvxSpellWrapper( vcl::Window* pWn, + SvxSpellWrapper( weld::Window* pWn, css::uno::Reference< css::linguistic2::XHyphenator > const &xHyphenator, const bool bStart, const bool bOther ); -- cgit