summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objmisc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r--sfx2/source/doc/objmisc.cxx36
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;