diff options
author | Noel Grandin <noel@peralex.com> | 2013-07-29 08:41:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-07-29 14:15:43 +0200 |
commit | d15ca2d89114b5e6636bc8646871e1333fcb54fa (patch) | |
tree | 63057bdc79dfdbc5fc8ca0fa3849c615267553a2 /vcl | |
parent | 6dae1199db417bb374c04e635b6bce0b382ea830 (diff) |
convert XubString->OUString in vcl/window.hxx
Change-Id: I556ad2df5cf1fb29aefb70a61a034d40a10340b1
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/window.h | 14 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 36 | ||||
-rw-r--r-- | vcl/source/window/window2.cxx | 6 |
3 files changed, 28 insertions, 28 deletions
diff --git a/vcl/inc/window.h b/vcl/inc/window.h index 230e1b07d068..092417b554d0 100644 --- a/vcl/inc/window.h +++ b/vcl/inc/window.h @@ -209,8 +209,8 @@ struct ImplFrameData struct ImplAccessibleInfos { sal_uInt16 nAccessibleRole; - String* pAccessibleName; - String* pAccessibleDescription; + OUString* pAccessibleName; + OUString* pAccessibleDescription; Window* pLabeledByWindow; Window* pLabelForWindow; Window* pMemberOfWindow; @@ -263,7 +263,7 @@ public: Cursor* mpCursor; Pointer maPointer; Fraction maZoom; - XubString maText; + OUString maText; Font* mpControlFont; Color maControlForeground; Color maControlBackground; @@ -277,10 +277,10 @@ public: long mnY; long mnAbsScreenX; Point maPos; - OString maHelpId; - OString maUniqId; - XubString maHelpText; - XubString maQuickHelpText; + OString maHelpId; + OString maUniqId; + OUString maHelpText; + OUString maQuickHelpText; InputContext maInputContext; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > mxWindowPeer; ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxAccessible; diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 2a7440ae16ef..aa3db23122f9 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -4906,18 +4906,18 @@ void Window::RequestHelp( const HelpEvent& rHEvt ) // with help text set if ( rHEvt.GetMode() & HELPMODE_BALLOON ) { - const XubString* pStr = &(GetHelpText()); - if ( !pStr->Len() ) - pStr = &(GetQuickHelpText()); - if ( !pStr->Len() && ImplGetParent() && !ImplIsOverlapWindow() ) + OUString rStr = GetHelpText(); + if ( rStr.isEmpty() ) + rStr = GetQuickHelpText(); + if ( rStr.isEmpty() && ImplGetParent() && !ImplIsOverlapWindow() ) ImplGetParent()->RequestHelp( rHEvt ); else - Help::ShowBalloon( this, rHEvt.GetMousePosPixel(), *pStr ); + Help::ShowBalloon( this, rHEvt.GetMousePosPixel(), rStr ); } else if ( rHEvt.GetMode() & HELPMODE_QUICK ) { - const XubString* pStr = &(GetQuickHelpText()); - if ( !pStr->Len() && ImplGetParent() && !ImplIsOverlapWindow() ) + const OUString& rStr = GetQuickHelpText(); + if ( rStr.isEmpty() && ImplGetParent() && !ImplIsOverlapWindow() ) ImplGetParent()->RequestHelp( rHEvt ); else { @@ -4926,9 +4926,9 @@ void Window::RequestHelp( const HelpEvent& rHEvt ) aPos = ImplGetParent()->OutputToScreenPixel( aPos ); Rectangle aRect( aPos, GetSizePixel() ); String aHelpText; - if ( pStr->Len() ) + if ( rStr.getLength() ) aHelpText = GetHelpText(); - Help::ShowQuickHelp( this, aRect, *pStr, aHelpText, QUICKHELP_CTRLTEXT ); + Help::ShowQuickHelp( this, aRect, rStr, aHelpText, QUICKHELP_CTRLTEXT ); } } else @@ -7989,14 +7989,14 @@ const Wallpaper& Window::GetDisplayBackground() const // ----------------------------------------------------------------------- -const XubString& Window::GetHelpText() const +const OUString& Window::GetHelpText() const { DBG_CHKTHIS( Window, ImplDbgCheckWindow ); String aStrHelpId( OStringToOUString( GetHelpId(), RTL_TEXTENCODING_UTF8 ) ); bool bStrHelpId = (aStrHelpId.Len() > 0); - if ( !mpWindowImpl->maHelpText.Len() && bStrHelpId ) + if ( !mpWindowImpl->maHelpText.getLength() && bStrHelpId ) { if ( !IsDialog() && (mpWindowImpl->mnType != WINDOW_TABPAGE) && (mpWindowImpl->mnType != WINDOW_FLOATINGWINDOW) ) { @@ -8013,7 +8013,7 @@ const XubString& Window::GetHelpText() const static const char* pEnv = getenv( "HELP_DEBUG" ); if( pEnv && *pEnv ) { - OUStringBuffer aTxt( 64+mpWindowImpl->maHelpText.Len() ); + OUStringBuffer aTxt( 64+mpWindowImpl->maHelpText.getLength() ); aTxt.append( mpWindowImpl->maHelpText ); aTxt.appendAscii( "\n------------------\n" ); aTxt.append( OUString( aStrHelpId ) ); @@ -8925,16 +8925,16 @@ sal_uInt16 Window::GetAccessibleRole() const return nRole; } -void Window::SetAccessibleName( const String& rName ) +void Window::SetAccessibleName( const OUString& rName ) { if ( !mpWindowImpl->mpAccessibleInfos ) mpWindowImpl->mpAccessibleInfos = new ImplAccessibleInfos; delete mpWindowImpl->mpAccessibleInfos->pAccessibleName; - mpWindowImpl->mpAccessibleInfos->pAccessibleName = new String( rName ); + mpWindowImpl->mpAccessibleInfos->pAccessibleName = new OUString( rName ); } -String Window::GetAccessibleName() const +OUString Window::GetAccessibleName() const { if (mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pAccessibleName) return *mpWindowImpl->mpAccessibleInfos->pAccessibleName; @@ -8994,17 +8994,17 @@ OUString Window::getDefaultAccessibleName() const return GetNonMnemonicString( aAccessibleName ); } -void Window::SetAccessibleDescription( const String& rDescription ) +void Window::SetAccessibleDescription( const OUString& rDescription ) { if ( ! mpWindowImpl->mpAccessibleInfos ) mpWindowImpl->mpAccessibleInfos = new ImplAccessibleInfos; DBG_ASSERT( !mpWindowImpl->mpAccessibleInfos->pAccessibleDescription, "AccessibleDescription already set!" ); delete mpWindowImpl->mpAccessibleInfos->pAccessibleDescription; - mpWindowImpl->mpAccessibleInfos->pAccessibleDescription = new String( rDescription ); + mpWindowImpl->mpAccessibleInfos->pAccessibleDescription = new OUString( rDescription ); } -String Window::GetAccessibleDescription() const +OUString Window::GetAccessibleDescription() const { String aAccessibleDescription; if ( mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pAccessibleDescription ) diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 98d7559fde43..aa919519995c 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1653,18 +1653,18 @@ sal_Bool Window::IsZoom() const return mpWindowImpl->maZoom.GetNumerator() != mpWindowImpl->maZoom.GetDenominator(); } -void Window::SetHelpText( const XubString& rHelpText ) +void Window::SetHelpText( const OUString& rHelpText ) { mpWindowImpl->maHelpText = rHelpText; mpWindowImpl->mbHelpTextDynamic = sal_True; } -void Window::SetQuickHelpText( const XubString& rHelpText ) +void Window::SetQuickHelpText( const OUString& rHelpText ) { mpWindowImpl->maQuickHelpText = rHelpText; } -const XubString& Window::GetQuickHelpText() const +const OUString& Window::GetQuickHelpText() const { return mpWindowImpl->maQuickHelpText; } |