summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/sfxbasemodel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/sfxbasemodel.cxx')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index cc6b646049c0..b5771b9395b9 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sfxbasemodel.cxx,v $
- * $Revision: 1.141 $
+ * $Revision: 1.142 $
*
* This file is part of OpenOffice.org.
*
@@ -124,6 +124,7 @@
#include "brokenpackageint.hxx"
#include "graphhelp.hxx"
#include <sfx2/msgpool.hxx>
+#include <sfxresid.hxx>
//________________________________________________________________________________________________________
// const
@@ -3567,7 +3568,11 @@ css::uno::Reference< css::frame::XUntitledNumbers > SfxBaseModel::impl_getUntitl
if ( impl_isDisposed() )
return ::rtl::OUString();
- return impl_getTitleHelper()->getTitle ();
+ ::rtl::OUString aResult = impl_getTitleHelper()->getTitle ();
+ if ( m_pData->m_pObjectShell && m_pData->m_pObjectShell->IsDocShared() )
+ aResult += ::rtl::OUString( String( SfxResId(STR_SHARED) ) );
+
+ return aResult;
}
//=============================================================================