Blame SOURCES/0002-LOK-remove-unused-LOK_PARTMODE_EMBEDDEDOBJ.patch

135360
From f8c6d3406005aa7a6e408ca25f61a0db35acd6be Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Fri, 22 May 2015 12:14:36 +0100
135360
Subject: [PATCH 002/398] LOK: remove unused LOK_PARTMODE_EMBEDDEDOBJ
135360
135360
Change-Id: I8cbb5b7a134fb84bd2c363b06f06f7f40964521f
135360
(cherry picked from commit 39321c5ffa9b4196308575be6dd19f2b2924214f)
135360
---
135360
 include/LibreOfficeKit/LibreOfficeKitEnums.h        |  7 ++-----
135360
 libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx |  9 +--------
135360
 sd/source/ui/unoidl/unomodel.cxx                    | 15 +--------------
135360
 3 files changed, 4 insertions(+), 27 deletions(-)
135360
135360
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
135360
index 5293aa9be4c0..66237e4512cf 100644
135360
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
135360
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
135360
@@ -28,11 +28,8 @@ LibreOfficeKitDocumentType;
135360
 
135360
 typedef enum
135360
 {
135360
-    LOK_PARTMODE_DEFAULT,
135360
-    LOK_PARTMODE_SLIDE,
135360
-    LOK_PARTMODE_NOTES,
135360
-    LOK_PARTMODE_SLIDENOTES,
135360
-    LOK_PARTMODE_EMBEDDEDOBJ
135360
+    LOK_PARTMODE_SLIDES,
135360
+    LOK_PARTMODE_NOTES
135360
 }
135360
 LibreOfficeKitPartMode;
135360
 
135360
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
index 83ec9d23c113..d20f43d90627 100644
135360
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
@@ -312,11 +312,8 @@ static void changePart( GtkWidget* pSelector, gpointer /* pItem */ )
135360
 
135360
 static void populatePartModeSelector( GtkComboBoxText* pSelector )
135360
 {
135360
-    gtk_combo_box_text_append_text( pSelector, "Default" );
135360
-    gtk_combo_box_text_append_text( pSelector, "Slide" );
135360
+    gtk_combo_box_text_append_text( pSelector, "Standard" );
135360
     gtk_combo_box_text_append_text( pSelector, "Notes" );
135360
-    gtk_combo_box_text_append_text( pSelector, "Combined (SlideNotes)" );
135360
-    gtk_combo_box_text_append_text( pSelector, "Embedded Objects" );
135360
     gtk_combo_box_set_active( GTK_COMBO_BOX(pSelector), 0 );
135360
 }
135360
 
135360
@@ -331,10 +328,6 @@ static void changePartMode( GtkWidget* pSelector, gpointer /* pItem */ )
135360
     {
135360
         lok_docview_set_partmode( LOK_DOCVIEW(pDocView), ePartMode );
135360
     }
135360
-
135360
-    // The number of items could change e.g. if we change from slide
135360
-    // to embeddede obj mode -- hence we should update the part list.
135360
-    populatePartSelector();
135360
 }
135360
 #endif
135360
 
135360
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
135360
index 7a9bf2af2671..4148035c899a 100644
135360
--- a/sd/source/ui/unoidl/unomodel.cxx
135360
+++ b/sd/source/ui/unoidl/unomodel.cxx
135360
@@ -2346,22 +2346,9 @@ void SdXImpressDocument::setPartMode( int nPartMode )
135360
     PageKind aPageKind( PK_STANDARD );
135360
     switch ( nPartMode )
135360
     {
135360
-    case LOK_PARTMODE_EMBEDDEDOBJ:
135360
-        // This will probably be handled higher up, i.e.
135360
-        // we probably shouldn't be handling this here.
135360
-        // (However we don't offer embedded object-only
135360
-        //  rendering anywhere yet, so this may be a
135360
-        //  completely incorrect comment.)
135360
-        assert( false );
135360
-        // And let's fall through in a normal build.
135360
-    case LOK_PARTMODE_DEFAULT:
135360
-    case LOK_PARTMODE_SLIDE:
135360
-        break;
135360
-    case LOK_PARTMODE_SLIDENOTES:
135360
-        aPageKind = PK_NOTES;
135360
+    case LOK_PARTMODE_SLIDES:
135360
         break;
135360
     case LOK_PARTMODE_NOTES:
135360
-        // TODO: this shows combined slides + notes
135360
         aPageKind = PK_NOTES;
135360
         break;
135360
     }
135360
-- 
135360
2.12.0
135360