diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-23 13:31:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-29 09:30:02 +0200 |
commit | d45f0acfc21b99a009020dc75f24922b36ca9811 (patch) | |
tree | 60d926eb4a0fb355fa8ecd647cf8aada2e75b6e9 /sfx2/source/control | |
parent | 7c9188659d0882906ed917d5251d5faaf007a477 (diff) |
convert include/sfx2/objface.hxx from String to OUString
Change-Id: I423b7c5f3209353c5ea27b443b23386f186169ce
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/objface.cxx | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index fdaf3698311e..48fad8930c77 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1441,7 +1441,7 @@ void SfxDispatcher::_Update_Impl( sal_Bool bUIActive, sal_Bool bIsMDIApp, sal_Bo SfxObjectBars_Impl& rBar = pImp->aObjBars[nPos & SFX_POSITION_MASK]; rBar.nMode = nPos; rBar.nResId = pIFace->GetObjectBarResId(nNo).GetId(); - const String *pName = pIFace->GetObjectBarName(nNo); + const OUString *pName = pIFace->GetObjectBarName(nNo); if ( pName ) rBar.aName = *pName; else diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx index 09870eafb1d4..8c96d0daa5ac 100644 --- a/sfx2/source/control/objface.cxx +++ b/sfx2/source/control/objface.cxx @@ -56,7 +56,7 @@ struct SfxObjectUI_Impl ResId aResId; sal_Bool bVisible; sal_Bool bContext; - String* pName; + OUString* pName; sal_uInt32 nFeature; SfxObjectUI_Impl(sal_uInt16 n, const ResId& rResId, sal_Bool bVis, sal_uInt32 nFeat) : @@ -105,7 +105,7 @@ struct SfxInterface_Impl } }; -static SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const String *pStr ); +static SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const OUString *pStr ); //==================================================================== @@ -322,7 +322,7 @@ const SfxSlot* SfxInterface::GetSlot( sal_uInt16 nFuncId ) const return p ? (const SfxSlot*)p : 0; } -const SfxSlot* SfxInterface::GetSlot( const String& rCommand ) const +const SfxSlot* SfxInterface::GetSlot( const OUString& rCommand ) const { static const char UNO_COMMAND[] = ".uno:"; @@ -388,20 +388,20 @@ void SfxInterface::RegisterPopupMenu( const ResId& rResId ) //-------------------------------------------------------------------- void SfxInterface::RegisterObjectBar( sal_uInt16 nPos, const ResId& rResId, - const String *pStr ) + const OUString *pStr ) { RegisterObjectBar( nPos, rResId, 0UL, pStr ); } -void SfxInterface::RegisterObjectBar( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const String *pStr ) +void SfxInterface::RegisterObjectBar( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const OUString *pStr ) { SfxObjectUI_Impl* pUI = CreateObjectBarUI_Impl( nPos, rResId, nFeature, pStr ); if ( pUI ) pImpData->aObjectBars.push_back(pUI); } -SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const String *pStr ) +SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, sal_uInt32 nFeature, const OUString *pStr ) { if ((nPos & SFX_VISIBILITY_MASK) == 0) nPos |= SFX_VISIBILITY_STANDARD; @@ -416,12 +416,12 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId, if( ! aResId.GetResMgr() ) aResId.SetResMgr( SfxApplication::GetOrCreate()->GetOffResManager_Impl() ); if ( !aResId.GetResMgr() || !aResId.GetResMgr()->IsAvailable(aResId) ) - pUI->pName = new String ("NoName"); + pUI->pName = new OUString ("NoName"); else - pUI->pName = new String(aResId.toString()); + pUI->pName = new OUString(aResId.toString()); } else - pUI->pName = new String(*pStr); + pUI->pName = new OUString(*pStr); return pUI; } @@ -483,12 +483,12 @@ sal_uInt16 SfxInterface::GetObjectBarCount() const } //-------------------------------------------------------------------- -void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, const String* pChildWinName) +void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, const OUString* pChildWinName) { RegisterChildWindow( nId, bContext, 0UL, pChildWinName ); } -void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, sal_uInt32 nFeature, const String*) +void SfxInterface::RegisterChildWindow(sal_uInt16 nId, sal_Bool bContext, sal_uInt32 nFeature, const OUString*) { SfxObjectUI_Impl* pUI = new SfxObjectUI_Impl(0, ResId(nId, *SfxApplication::GetOrCreate()->GetOffResManager_Impl()), sal_True, nFeature); pUI->bContext = bContext; @@ -572,7 +572,7 @@ const ResId& SfxInterface::GetStatusBarResId() const -const String* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const +const OUString* SfxInterface::GetObjectBarName ( sal_uInt16 nNo ) const { sal_Bool bGenoType = (pGenoType != 0 && !pGenoType->HasName()); if ( bGenoType ) |