summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller
diff options
context:
space:
mode:
authorGergő Mocsi <gmocsi91@gmail.com>2013-04-07 11:25:23 +0200
committerAndras Timar <atimar@suse.com>2013-04-12 03:39:54 -0700
commitd99f529676e78895996d50064dbcb0dc1b2ad986 (patch)
tree0327d6520cd963880f72b7321783c75b8ed9e3f3 /sd/source/ui/slidesorter/controller
parent5acb6ad0fede608bc77a5430bb67b72c2244f383 (diff)
Create Photo Album implementation
UI tweaks: dialog window open in all modes (Normal, Outline, Slide Sorter, ..). Fixed some pointer issues in function CreateHdl). Functionality: Title slide gets inserted only when we have one slide in the presentation (having > 1, I assume that we don't have an empty presentation). Conflicts: sd/source/ui/dlg/PhotoAlbumDialog.cxx Change-Id: I7eb844bf2382a44481435cfaa8f498e29c56bd69
Diffstat (limited to 'sd/source/ui/slidesorter/controller')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index bdf802bcacb6..a07ef14b017e 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -66,6 +66,7 @@
#include "glob.hrc"
#include "unmodpg.hxx"
#include "DrawViewShell.hxx"
+#include "sdabstdlg.hxx"
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
@@ -263,6 +264,22 @@ void SlotManager::FuTemporary (SfxRequest& rRequest)
}
break;
+ case SID_PHOTOALBUM:
+ {
+ SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
+ VclAbstractDialog* pDlg = pFact ? pFact->CreateSdPhotoAlbumDialog(
+ mrSlideSorter.GetContentWindow().get(),
+ pDocument) : 0;
+
+ if (pDlg)
+ {
+ pDlg->Execute();
+ delete pDlg;
+ }
+ rRequest.Done ();
+ }
+ break;
+
default:
break;
}