diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-05-10 12:09:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-10 12:12:09 +0200 |
commit | d16c1b9290e11ca31850523a2b01426bca0937a3 (patch) | |
tree | 3e33533a695a827e64798a1cf5de8a7b2566237c /sfx2/source/doc/objmisc.cxx | |
parent | 1173bb0dc01ef504ea453a272b77b0b4d92a662f (diff) |
Removed unused SID_FRAMETITLE
...which was only ever written to, never read. This in turn allowed
SfxViewFrame::UpdateTitle to return void instead of String, and made
SfxObjectShell::UpdateTitle become unused. (The title appears to be created via
SfxBaseModel::getTitle instead these days?)
Change-Id: I5e1115a707134058a1f3a0beaa180eb471c817e6
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 2d6398b3da69..900858c1f923 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1844,42 +1844,6 @@ Window* SfxObjectShell::GetDialogParent( SfxMedium* pLoadingMedium ) return pWindow; } -String SfxObjectShell::UpdateTitle( SfxMedium* pMed, sal_uInt16 nDocViewNumber ) -{ - // Title of the windows - String aTitle; - if ( pMed ) - { - INetURLObject aTmp( pMed->GetName() ); - aTitle = aTmp.getName( INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET ); - } - else - { - pMed = GetMedium(); - aTitle = GetTitle(SFX_TITLE_CAPTION); - String aName(aTitle); - if ( nDocViewNumber ) - { - aName += ':'; - aName += String::CreateFromInt32( nDocViewNumber ); - } - } - - if ( pMed ) - { - SFX_ITEMSET_ARG( pMed->GetItemSet(), pRepairedDocItem, SfxBoolItem, SID_REPAIRPACKAGE, sal_False ); - if ( pRepairedDocItem && pRepairedDocItem->GetValue() ) - aTitle += String( SfxResId(STR_REPAIREDDOCUMENT) ); - } - - if ( IsReadOnlyUI() || (pMed && pMed->IsReadOnly()) ) - aTitle += String( SfxResId(STR_READONLY) ); - else if ( IsDocShared() ) - aTitle += String( SfxResId(STR_SHARED) ); - - return aTitle; -} - void SfxObjectShell::SetCreateMode_Impl( SfxObjectCreateMode nMode ) { eCreateMode = nMode; |