diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-05 16:25:03 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-07 20:00:16 +0000 |
commit | 009851223b5ced4ed2662af2e2ae81c0f9200e45 (patch) | |
tree | a8ab339589ea23b98513d394eabc4f135e69ccae /sc/source/core/data/stlsheet.cxx | |
parent | 35b42a9d1282a92dbc9a7fbc51d279812070688c (diff) |
module svl: all String and some bool and related clean-up
Change-Id: I36eb559fa58dbe75384b7119c788af0048813aed
Reviewed-on: https://gerrit.libreoffice.org/4733
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sc/source/core/data/stlsheet.cxx')
-rw-r--r-- | sc/source/core/data/stlsheet.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx index eaa692a798cc..c7c4fd168c8c 100644 --- a/sc/source/core/data/stlsheet.cxx +++ b/sc/source/core/data/stlsheet.cxx @@ -50,12 +50,12 @@ TYPEINIT1(ScStyleSheet, SfxStyleSheet); //======================================================================== -ScStyleSheet::ScStyleSheet( const String& rName, +ScStyleSheet::ScStyleSheet( const OUString& rName, ScStyleSheetPool& rPoolP, SfxStyleFamily eFamily, - sal_uInt16 nMaskP ) + sal_uInt16 nMaskP ) - : SfxStyleSheet ( rName, rPoolP, eFamily, nMaskP ) + : SfxStyleSheet ( rName, rPoolP, eFamily, nMaskP ) , eUsage( UNKNOWN ) { } @@ -89,9 +89,9 @@ bool ScStyleSheet::HasParentSupport () const switch ( GetFamily() ) { - case SFX_STYLE_FAMILY_PARA: bHasParentSupport = true; break; - case SFX_STYLE_FAMILY_PAGE: bHasParentSupport = false; break; - default: + case SFX_STYLE_FAMILY_PARA: bHasParentSupport = true; break; + case SFX_STYLE_FAMILY_PAGE: bHasParentSupport = false; break; + default: { // added to avoid warnings } @@ -102,10 +102,10 @@ bool ScStyleSheet::HasParentSupport () const //------------------------------------------------------------------------ -bool ScStyleSheet::SetParent( const String& rParentName ) +bool ScStyleSheet::SetParent( const OUString& rParentName ) { bool bResult = false; - String aEffName = rParentName; + OUString aEffName = rParentName; SfxStyleSheetBase* pStyle = pPool->Find( aEffName, nFamily ); if (!pStyle) { @@ -285,30 +285,30 @@ void ScStyleSheet::Notify( SfxBroadcaster&, const SfxHint& rHint ) // schmutzige Tricks, um die Standard-Vorlage immer als "Standard" zu speichern, // obwohl der fuer den Benutzer sichtbare Name uebersetzt ist: -const String& ScStyleSheet::GetName() const +const OUString& ScStyleSheet::GetName() const { - const String& rBase = SfxStyleSheet::GetName(); - const String* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); + const OUString& rBase = SfxStyleSheet::GetName(); + const OUString* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); if ( pForceStdName && rBase == ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ) return *pForceStdName; else return rBase; } -const String& ScStyleSheet::GetParent() const +const OUString& ScStyleSheet::GetParent() const { - const String& rBase = SfxStyleSheet::GetParent(); - const String* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); + const OUString& rBase = SfxStyleSheet::GetParent(); + const OUString* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); if ( pForceStdName && rBase == ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ) return *pForceStdName; else return rBase; } -const String& ScStyleSheet::GetFollow() const +const OUString& ScStyleSheet::GetFollow() const { - const String& rBase = SfxStyleSheet::GetFollow(); - const String* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); + const OUString& rBase = SfxStyleSheet::GetFollow(); + const OUString* pForceStdName = ((ScStyleSheetPool*)pPool)->GetForceStdName(); if ( pForceStdName && rBase == ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ) return *pForceStdName; else @@ -323,9 +323,9 @@ const String& ScStyleSheet::GetFollow() const //! Flag gesetzt und abgefragt werden. //! Die ganze Abfrage muss raus, wenn fuer eine neue Datei-Version die Namens-Umsetzung wegfaellt. -bool ScStyleSheet::SetName( const String& rNew ) +bool ScStyleSheet::SetName( const OUString& rNew ) { - String aFileStdName = OUString(STRING_STANDARD); + OUString aFileStdName = OUString(STRING_STANDARD); if ( rNew == aFileStdName && aFileStdName != ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ) return false; else |