remove unused PREVIEW from SfxObjectCreateMode enum

Change-Id: Idf930f768c978ac8aa53527f6ddb8864d0fdec1d
This commit is contained in:
Noel Grandin 2017-02-15 08:32:30 +02:00
parent 1342a8a4f2
commit b17af4fa9b
5 changed files with 0 additions and 6 deletions

View file

@ -177,7 +177,6 @@ enum class SfxObjectCreateMode
{
EMBEDDED,
STANDARD,
PREVIEW,
ORGANIZER,
INTERNAL
};

View file

@ -299,7 +299,6 @@ SfxObjectShell::SfxObjectShell( const SfxModelFlags i_nCreationFlags )
@param eMode Purpose, to which the SfxObjectShell is created:
SfxObjectCreateMode::EMBEDDED (default) as SO-Server from within another Document
SfxObjectCreateMode::STANDARD, as a normal Document open stand-alone
SfxObjectCreateMode::PREVIEW to enable a Preview, if possible are only little information is needed
SfxObjectCreateMode::ORGANIZER to be displayed in the Organizer, here nothing of the contents is used
*/
SfxObjectShell::SfxObjectShell(SfxObjectCreateMode eMode)

View file

@ -206,8 +206,6 @@ void DocumentLinksAdministrationManager::UpdateLinks()
return;
if (eMode == SfxObjectCreateMode::ORGANIZER)
return;
if (eMode == SfxObjectCreateMode::PREVIEW)
return;
if (m_rDoc.GetDocShell()->IsPreview())
return;
if (GetLinkManager().GetLinks().empty())

View file

@ -333,7 +333,6 @@ bool SwDocShell::Save()
SAL_FALLTHROUGH;
case SfxObjectCreateMode::STANDARD:
case SfxObjectCreateMode::PREVIEW:
default:
{
if (m_pDoc->ContainsMSVBasic())

View file

@ -547,7 +547,6 @@ bool SwDocShell::Load( SfxMedium& rMedium )
SAL_FALLTHROUGH;
case SfxObjectCreateMode::STANDARD:
case SfxObjectCreateMode::PREVIEW:
{
Reader *pReader = ReadXML;
if( pReader )