summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/objsh.hxx1
-rw-r--r--sfx2/source/doc/objxtor.cxx1
-rw-r--r--sw/source/core/doc/DocumentLinksAdministrationManager.cxx2
-rw-r--r--sw/source/uibase/app/docsh.cxx1
-rw-r--r--sw/source/uibase/app/docshini.cxx1
5 files changed, 0 insertions, 6 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index bd9640934714..9a42e24c5917 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -177,7 +177,6 @@ enum class SfxObjectCreateMode
{
EMBEDDED,
STANDARD,
- PREVIEW,
ORGANIZER,
INTERNAL
};
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 047719e137ca..78b8126b511e 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -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)
diff --git a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
index 947e9f2ff8ff..249401305d91 100644
--- a/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
+++ b/sw/source/core/doc/DocumentLinksAdministrationManager.cxx
@@ -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())
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 5c2a814662d1..2a94aa9ee4e0 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -333,7 +333,6 @@ bool SwDocShell::Save()
SAL_FALLTHROUGH;
case SfxObjectCreateMode::STANDARD:
- case SfxObjectCreateMode::PREVIEW:
default:
{
if (m_pDoc->ContainsMSVBasic())
diff --git a/sw/source/uibase/app/docshini.cxx b/sw/source/uibase/app/docshini.cxx
index a547c945bb92..1df546cb7350 100644
--- a/sw/source/uibase/app/docshini.cxx
+++ b/sw/source/uibase/app/docshini.cxx
@@ -547,7 +547,6 @@ bool SwDocShell::Load( SfxMedium& rMedium )
SAL_FALLTHROUGH;
case SfxObjectCreateMode::STANDARD:
- case SfxObjectCreateMode::PREVIEW:
{
Reader *pReader = ReadXML;
if( pReader )