diff options
author | Gergő Mocsi <gmocsi91@gmail.com> | 2013-04-07 11:25:23 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-04-12 03:39:54 -0700 |
commit | d99f529676e78895996d50064dbcb0dc1b2ad986 (patch) | |
tree | 0327d6520cd963880f72b7321783c75b8ed9e3f3 /sd/source/ui/view | |
parent | 5acb6ad0fede608bc77a5430bb67b72c2244f383 (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/view')
-rw-r--r-- | sd/source/ui/view/outlnvs2.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sd/source/ui/view/outlnvs2.cxx b/sd/source/ui/view/outlnvs2.cxx index d98589a1e3cd..612476ea5db0 100644 --- a/sd/source/ui/view/outlnvs2.cxx +++ b/sd/source/ui/view/outlnvs2.cxx @@ -295,6 +295,23 @@ void OutlineViewShell::FuTemporary(SfxRequest &rReq) Cancel(); } break; + + case SID_PHOTOALBUM: + { + SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); + VclAbstractDialog* pDlg = pFact ? pFact->CreateSdPhotoAlbumDialog( + GetActiveWindow(), + GetDoc()) : 0; + + if (pDlg) + { + pDlg->Execute(); + delete pDlg; + } + Cancel(); + rReq.Ignore (); + } + break; } if(HasCurrentFunction()) |