diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-20 14:01:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-04 08:48:53 +0200 |
commit | f4343782227235bed736bdab456da8fdccf2e599 (patch) | |
tree | 308e2a12ecdab776ed6fe620b9bb433e7021fc11 /sc/source/ui/view | |
parent | 91281ddf9896a6f4e25ef44ed408b4bec2164fdf (diff) |
convert sc/.../tabvwsh.hxx from String to OUString
Change-Id: I5b9cf40acf4f6d2f4daf948e2c85e6cd9580425a
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh2.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh9.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshe.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwshg.cxx | 8 |
7 files changed, 18 insertions, 18 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index f3be1cb9527b..29b47a478e81 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -699,7 +699,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) nErrCode = pCell->GetErrCode(); } - String aFuncStr; + OUString aFuncStr; if ( pTabViewShell->GetFunction( aFuncStr, nErrCode ) ) rSet.Put( SfxStringItem( nWhich, aFuncStr ) ); } @@ -716,7 +716,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) case SID_STATUS_SUM: { - String aFuncStr; + OUString aFuncStr; if ( pTabViewShell->GetFunction( aFuncStr ) ) rSet.Put( SfxStringItem( nWhich, aFuncStr ) ); } diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx index 8d137a8731cf..28b69ba711ac 100644 --- a/sc/source/ui/view/tabvwsh2.cxx +++ b/sc/source/ui/view/tabvwsh2.cxx @@ -154,7 +154,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) if ( pArgs->GetItemState( nNewId, sal_True, &pItem ) == SFX_ITEM_SET && pItem->ISA( SfxStringItem ) ) sStringItemValue = static_cast<const SfxStringItem*>(pItem)->GetValue(); } - bool bSwitchCustom = ( sStringItemValue.Len() && sDrawCustom.Len() && sStringItemValue != sDrawCustom ); + bool bSwitchCustom = ( sStringItemValue.Len() && !sDrawCustom.isEmpty() && sStringItemValue != sDrawCustom ); if (nNewId == SID_INSERT_FRAME) // vom Tbx-Button nNewId = SID_DRAW_TEXT; @@ -222,7 +222,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq) } nDrawSfxId = nNewId; - sDrawCustom.Erase(); // value is set below for custom shapes + sDrawCustom = ""; // value is set below for custom shapes if ( nNewId != SID_DRAW_CHART ) // Chart nicht mit DrawShell { @@ -445,7 +445,7 @@ void ScTabViewShell::GetDrawState(SfxItemSet &rSet) } } -sal_Bool ScTabViewShell::SelectObject( const String& rName ) +sal_Bool ScTabViewShell::SelectObject( const OUString& rName ) { ScDrawView* pView = GetViewData()->GetScDrawView(); if (!pView) diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 3be788daa896..053f887f9576 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -535,7 +535,7 @@ void ScTabViewShell::DoReadUserDataSequence( const uno::Sequence < beans::Proper // DoReadUserData is also called from ctor when switching from print preview -void ScTabViewShell::DoReadUserData( const String& rData ) +void ScTabViewShell::DoReadUserData( const OUString& rData ) { Window* pOldWin = GetActiveWin(); sal_Bool bFocus = pOldWin && pOldWin->HasFocus(); @@ -1126,7 +1126,7 @@ static ScTabViewObj* lcl_GetViewObj( ScTabViewShell& rShell ) return pRet; } -IMPL_LINK( ScTabViewShell, SimpleRefDone, String*, pResult ) +IMPL_LINK( ScTabViewShell, SimpleRefDone, OUString*, pResult ) { ScTabViewObj* pImpObj = lcl_GetViewObj( *this ); if ( pImpObj && pResult ) @@ -1134,7 +1134,7 @@ IMPL_LINK( ScTabViewShell, SimpleRefDone, String*, pResult ) return 0; } -IMPL_LINK( ScTabViewShell, SimpleRefAborted, String*, pResult ) +IMPL_LINK( ScTabViewShell, SimpleRefAborted, OUString*, pResult ) { ScTabViewObj* pImpObj = lcl_GetViewObj( *this ); if ( pImpObj && pResult ) @@ -1142,7 +1142,7 @@ IMPL_LINK( ScTabViewShell, SimpleRefAborted, String*, pResult ) return 0; } -IMPL_LINK( ScTabViewShell, SimpleRefChange, String*, pResult ) +IMPL_LINK( ScTabViewShell, SimpleRefChange, OUString*, pResult ) { ScTabViewObj* pImpObj = lcl_GetViewObj( *this ); if ( pImpObj && pResult ) @@ -1151,7 +1151,7 @@ IMPL_LINK( ScTabViewShell, SimpleRefChange, String*, pResult ) } void ScTabViewShell::StartSimpleRefDialog( - const String& rTitle, const String& rInitVal, + const OUString& rTitle, const OUString& rInitVal, sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection ) { SfxViewFrame* pViewFrm = GetViewFrame(); diff --git a/sc/source/ui/view/tabvwsh9.cxx b/sc/source/ui/view/tabvwsh9.cxx index 74344c43bb6a..b468aefde6eb 100644 --- a/sc/source/ui/view/tabvwsh9.cxx +++ b/sc/source/ui/view/tabvwsh9.cxx @@ -115,7 +115,7 @@ ScInputHandler* ScTabViewShell::GetInputHandler() const //------------------------------------------------------------------ -String ScTabViewShell::GetDescription() const +OUString ScTabViewShell::GetDescription() const { return OUString(" ** Test ** "); } diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index b4ca5021b61a..2f980b26889f 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -53,7 +53,7 @@ #include "cellvalue.hxx" #include "tokenarray.hxx" -sal_Bool ScTabViewShell::GetFunction( String& rFuncStr, sal_uInt16 nErrCode ) +sal_Bool ScTabViewShell::GetFunction( OUString& rFuncStr, sal_uInt16 nErrCode ) { String aStr; diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx index 7c1327591f9f..1546afa45a32 100644 --- a/sc/source/ui/view/tabvwshe.cxx +++ b/sc/source/ui/view/tabvwshe.cxx @@ -119,7 +119,7 @@ OUString ScTabViewShell::GetSelectionText( bool bWholeWord ) //------------------------------------------------------------------------ -void ScTabViewShell::InsertURL( const String& rName, const String& rURL, const OUString& rTarget, +void ScTabViewShell::InsertURL( const OUString& rName, const OUString& rURL, const OUString& rTarget, sal_uInt16 nMode ) { SvxLinkInsertMode eMode = (SvxLinkInsertMode) nMode; @@ -166,7 +166,7 @@ static void lcl_SelectFieldAfterInsert( EditView& rView ) } } -void ScTabViewShell::InsertURLField( const String& rName, const String& rURL, const String& rTarget ) +void ScTabViewShell::InsertURLField( const OUString& rName, const OUString& rURL, const OUString& rTarget ) { SvxURLField aURLField( rURL, rName, SVXURLFORMAT_REPR ); aURLField.SetTargetFrame( rTarget ); diff --git a/sc/source/ui/view/tabvwshg.cxx b/sc/source/ui/view/tabvwshg.cxx index c695605abf0f..37e086262b8e 100644 --- a/sc/source/ui/view/tabvwshg.cxx +++ b/sc/source/ui/view/tabvwshg.cxx @@ -38,8 +38,8 @@ using namespace com::sun::star; //------------------------------------------------------------------------ -void ScTabViewShell::InsertURLButton( const String& rName, const String& rURL, - const String& rTarget, +void ScTabViewShell::InsertURLButton( const OUString& rName, const OUString& rURL, + const OUString& rTarget, const Point* pInsPos ) { // Tabelle geschuetzt ? @@ -78,9 +78,9 @@ void ScTabViewShell::InsertURLButton( const String& rName, const String& rURL, aAny <<= aTmp; xPropSet->setPropertyValue("TargetURL", aAny ); - if( rTarget.Len() ) + if( !rTarget.isEmpty() ) { - aAny <<= OUString(rTarget); + aAny <<= rTarget; xPropSet->setPropertyValue("TargetFrame", aAny ); } |