sd/source/ui/app/sddll.cxx |   24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

New commits:
commit d47593982345c06a0abe918bdf25db72ea75a876
Author:     Henry Castro <[email protected]>
AuthorDate: Wed Feb 15 11:25:19 2023 -0400
Commit:     Henry Castro <[email protected]>
CommitDate: Tue Feb 21 12:03:44 2023 +0000

    sd: lok: only register supported views
    
    The Presentation ViewShells:
    
    SlideSorter,
    Outline,
    Presentation
    
    They are not supported in tiled rendering case,
    so switch to default view.
    
    Signed-off-by: Henry Castro <[email protected]>
    Change-Id: I33b255e0ca530734af6490d14fe48a2512272afc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147354
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Patrick Luby <[email protected]>

diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index 4e20d0997fb8..698a13af0d82 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -91,12 +91,24 @@ void SdDLL::RegisterFactorys()
     {
         ::sd::ImpressViewShellBase::RegisterFactory (
             ::sd::IMPRESS_FACTORY_ID);
-        ::sd::SlideSorterViewShellBase::RegisterFactory (
-            ::sd::SLIDE_SORTER_FACTORY_ID);
-        ::sd::OutlineViewShellBase::RegisterFactory (
-            ::sd::OUTLINE_FACTORY_ID);
-        ::sd::PresentationViewShellBase::RegisterFactory (
-            ::sd::PRESENTATION_FACTORY_ID);
+        if (comphelper::LibreOfficeKit::isActive())
+        {
+            ::sd::ImpressViewShellBase::RegisterFactory (
+                ::sd::SLIDE_SORTER_FACTORY_ID);
+            ::sd::ImpressViewShellBase::RegisterFactory (
+                ::sd::OUTLINE_FACTORY_ID);
+            ::sd::ImpressViewShellBase::RegisterFactory (
+                ::sd::PRESENTATION_FACTORY_ID);
+        }
+        else
+        {
+            ::sd::SlideSorterViewShellBase::RegisterFactory (
+                ::sd::SLIDE_SORTER_FACTORY_ID);
+            ::sd::OutlineViewShellBase::RegisterFactory (
+                ::sd::OUTLINE_FACTORY_ID);
+            ::sd::PresentationViewShellBase::RegisterFactory (
+                ::sd::PRESENTATION_FACTORY_ID);
+        }
     }
     if (!utl::ConfigManager::IsFuzzing() && SvtModuleOptions().IsDraw())
     {

Reply via email to