diff options
Diffstat (limited to 'sw/source/uibase/inc/unotools.hxx')
-rw-r--r-- | sw/source/uibase/inc/unotools.hxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx index c5d45ed3a6ef..e472a2f92706 100644 --- a/sw/source/uibase/inc/unotools.hxx +++ b/sw/source/uibase/inc/unotools.hxx @@ -19,12 +19,17 @@ #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_UNOTOOLS_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_UNOTOOLS_HXX +#include <sal/config.h> + +#include <string_view> + #include <vcl/idle.hxx> #include <vcl/weld.hxx> #include <vcl/customweld.hxx> #include <com/sun/star/frame/XController.hpp> #include <com/sun/star/text/XTextCursor.hpp> #include <swdllapi.h> +#include <rtl/ref.hxx> #define EX_SHOW_ONLINE_LAYOUT 0x01 // hard zoom value @@ -35,13 +40,14 @@ #define EX_LOCALIZE_TOC_STRINGS 0x08 class SwView; +class SwXTextCursor; -class SW_DLLPUBLIC SwOneExampleFrame : public weld::CustomWidgetController +class SW_DLLPUBLIC SwOneExampleFrame final : public weld::CustomWidgetController { ScopedVclPtr<VirtualDevice> m_xVirDev; css::uno::Reference< css::frame::XModel > m_xModel; css::uno::Reference< css::frame::XController > m_xController; - css::uno::Reference< css::text::XTextCursor > m_xCursor; + rtl::Reference< SwXTextCursor > m_xCursor; Idle m_aLoadedIdle; Link<SwOneExampleFrame&,void> m_aInitializedLink; @@ -55,7 +61,7 @@ class SW_DLLPUBLIC SwOneExampleFrame : public weld::CustomWidgetController bool m_bIsInitialized; DECL_DLLPRIVATE_LINK( TimeoutHdl, Timer*, void ); - void PopupHdl(const OString& rId); + void PopupHdl(std::u16string_view rId); SAL_DLLPRIVATE void CreateControl(); SAL_DLLPRIVATE void DisposeControl(); @@ -70,7 +76,7 @@ public: virtual ~SwOneExampleFrame() override; css::uno::Reference< css::frame::XModel > & GetModel() {return m_xModel;} - css::uno::Reference< css::text::XTextCursor > & GetTextCursor() {return m_xCursor;} + rtl::Reference< SwXTextCursor > & GetTextCursor() {return m_xCursor;} void ClearDocument(); |