diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 19:31:48 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 19:31:48 +0000 |
commit | 87b1ecf1512847ca60144e98642b7503dd6e8e72 (patch) | |
tree | 2203fcce8748c50124906945592353b10027dd0a /sd/source/ui/view/drviews6.cxx | |
parent | de06989ccbcfff3bbc1ef0c90920dabdb4a7fb59 (diff) |
INTEGRATION: CWS presentationengine01 (1.10.12); FILE MERGED
2004/11/17 19:38:38 thb 1.10.12.6: RESYNC: (1.14-1.15); FILE MERGED
2004/10/12 23:25:22 thb 1.10.12.5: RESYNC: (1.13-1.14); FILE MERGED
2004/09/01 11:43:41 af 1.10.12.4: Added support for the (renamed) slots SID_CUSTOM_ANIMATION_PANEL and SID_SLIDE_TRANSITIONS_PANEL.
2004/08/28 22:56:57 cl 1.10.12.3: removed old presentation code
2004/08/23 12:36:20 thb 1.10.12.2: RESYNC: (1.10-1.13); FILE MERGED
2004/07/28 10:54:20 cl 1.10.12.1: #i31376# added strings for translation
Diffstat (limited to 'sd/source/ui/view/drviews6.cxx')
-rw-r--r-- | sd/source/ui/view/drviews6.cxx | 72 |
1 files changed, 31 insertions, 41 deletions
diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx index c44fbbed91fb..5927a9e36fd3 100644 --- a/sd/source/ui/view/drviews6.cxx +++ b/sd/source/ui/view/drviews6.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drviews6.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: hr $ $Date: 2004-10-12 13:12:45 $ + * last change: $Author: rt $ $Date: 2004-11-26 20:31:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -134,15 +134,9 @@ #ifndef SD_PREVIEW_CHILD_WINDOW_HXX #include "PreviewChildWindow.hxx" #endif -#ifndef SD_EFFECT_CHILD_WINDOW_HXX -#include "EffectChildWindow.hxx" -#endif #ifndef SD_LAYER_DIALOG_CHILD_WINDOW_HXX #include "LayerDialogChildWindow.hxx" #endif -#ifndef SD_SLIDE_CHANGE_CHILD_WINDOW_HXX -#include "SlideChangeChildWindow.hxx" -#endif #include "sdresid.hxx" #ifndef SD_FU_POOR_HXX #include "fupoor.hxx" @@ -181,6 +175,9 @@ #ifndef SD_DRAW_DOC_SHELL_HXX #include "DrawDocShell.hxx" #endif +#ifndef SD_TOOLPANEL_TASK_PANE_VIEW_SHELL_HXX +#include "TaskPaneViewShell.hxx" +#endif namespace sd { @@ -456,21 +453,11 @@ void DrawViewShell::SetChildWindowState( SfxItemSet& rSet ) USHORT nId = PreviewChildWindow::GetChildWindowId(); rSet.Put( SfxBoolItem( SID_PREVIEW_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); } - if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_EFFECT_WIN ) ) - { - USHORT nId = EffectChildWindow::GetChildWindowId(); - rSet.Put( SfxBoolItem( SID_EFFECT_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); - } if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_LAYER_DIALOG_WIN ) ) { USHORT nId = LayerDialogChildWindow::GetChildWindowId(); rSet.Put( SfxBoolItem( SID_LAYER_DIALOG_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); } - if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_SLIDE_CHANGE_WIN ) ) - { - USHORT nId = SlideChangeChildWindow::GetChildWindowId(); - rSet.Put( SfxBoolItem( SID_SLIDE_CHANGE_WIN, GetViewFrame()->HasChildWindow( nId ) ) ); - } if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_3D_WIN ) ) { USHORT nId = Svx3DChildWindow::GetChildWindowId(); @@ -785,37 +772,40 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq) } break; - case SID_EFFECT_WIN: + case SID_CUSTOM_ANIMATION_PANEL: { - if ( rReq.GetArgs() ) - GetViewFrame()->SetChildWindow( - EffectChildWindow::GetChildWindowId(), - ((const SfxBoolItem&) (rReq.GetArgs()-> - Get(SID_EFFECT_WIN))).GetValue()); - else - GetViewFrame()->ToggleChildWindow( - EffectChildWindow::GetChildWindowId() ); + // Make the slide transition panel visible (expand it) in the + // tool pane. + SfxBoolItem aMakeToolPaneVisible (ID_VAL_ISVISIBLE, TRUE); + SfxUInt32Item aPanelId (ID_VAL_PANEL_INDEX, + toolpanel::TaskPaneViewShell::PID_CUSTOM_ANIMATION); + GetViewFrame()->GetDispatcher()->Execute( + SID_TASK_PANE, + SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, + &aMakeToolPaneVisible, + &aPanelId, + NULL); - GetViewFrame()->GetBindings().Invalidate(SID_EFFECT_WIN); Cancel(); - rReq.Ignore (); + rReq.Done (); } break; - case SID_SLIDE_CHANGE_WIN: + case SID_SLIDE_TRANSITIONS_PANEL: { - if ( rReq.GetArgs() ) - GetViewFrame()->SetChildWindow( - SlideChangeChildWindow::GetChildWindowId(), - ((const SfxBoolItem&) (rReq.GetArgs()-> - Get(SID_SLIDE_CHANGE_WIN))).GetValue()); - else - GetViewFrame()->ToggleChildWindow( - SlideChangeChildWindow::GetChildWindowId() ); - - GetViewFrame()->GetBindings().Invalidate(SID_SLIDE_CHANGE_WIN); + // Make the slide transition panel visible (expand it) in the + // tool pane. + SfxBoolItem aMakeToolPaneVisible (ID_VAL_ISVISIBLE, TRUE); + SfxUInt32Item aPanelId (ID_VAL_PANEL_INDEX, + toolpanel::TaskPaneViewShell::PID_SLIDE_TRANSITION); + GetViewFrame()->GetDispatcher()->Execute( + SID_TASK_PANE, + SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, + &aMakeToolPaneVisible, + &aPanelId, + NULL); Cancel(); - rReq.Ignore (); + rReq.Done (); } break; |