Files
libreoffice/sd/source/ui/animations/SlideTransitionPane.cxx

1347 lines
43 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
#include <com/sun/star/animations/XAnimationNode.hpp>
#include "SlideTransitionPane.hxx"
#include "SlideTransitionPane.hrc"
#include "CustomAnimation.hrc"
#include "TransitionPreset.hxx"
#include "sdresid.hxx"
#include "ViewShellBase.hxx"
#include "DrawDocShell.hxx"
#include "SlideSorterViewShell.hxx"
#include "drawdoc.hxx"
#include "filedlg.hxx"
#include "strings.hrc"
#include "DrawController.hxx"
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
#include <com/sun/star/beans/XPropertySet.hpp>
#include <svtools/controldims.hrc>
#include <svx/gallery.hxx>
#include <unotools/pathoptions.hxx>
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
#include <vcl/msgbox.hxx>
#include <tools/urlobj.hxx>
#include "DrawViewShell.hxx"
#include "slideshow.hxx"
#include "drawview.hxx"
#include "sdundogr.hxx"
#include "undoanim.hxx"
#include "optsitem.hxx"
#include "sddll.hxx"
#include "framework/FrameworkHelper.hxx"
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
#include "DialogListBox.hxx"
Resolves: #i121420# merge sidebar feature (cherry picked from commit 0a0a9b32aa5bf1ce2554ad37cbba3c7a105db2b5) Conflicts: chart2/source/controller/dialogs/dlg_View3D.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx chart2/source/controller/drawinglayer/ViewElementListProvider.cxx chart2/source/controller/inc/ViewElementListProvider.hxx chart2/source/controller/inc/dlg_View3D.hxx chart2/source/controller/main/ShapeController.cxx chart2/source/inc/chartview/DrawModelWrapper.hxx chart2/source/view/main/DrawModelWrapper.cxx cui/source/inc/border.hxx cui/source/inc/cuitabarea.hxx cui/source/inc/cuitabline.hxx cui/source/inc/sdrcelldlg.hxx cui/source/inc/treeopt.hxx cui/source/options/optchart.cxx cui/source/options/optchart.hxx cui/source/options/optcolor.cxx cui/source/options/treeopt.cxx cui/source/tabpages/backgrnd.cxx cui/source/tabpages/border.cxx cui/source/tabpages/chardlg.cxx cui/source/tabpages/numpages.cxx cui/source/tabpages/tpcolor.cxx cui/source/tabpages/tplneend.cxx editeng/inc/editeng/outliner.hxx extensions/source/propctrlr/standardcontrol.cxx framework/source/register/registerservices.cxx offapi/com/sun/star/ui/makefile.mk officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu officecfg/registry/data/org/openoffice/Office/UI/makefile.mk officecfg/registry/schema/org/openoffice/Office/UI/makefile.mk postprocess/packregistry/makefile.mk reportdesign/source/ui/dlg/Condition.cxx reportdesign/source/ui/misc/UITools.cxx sc/inc/document.hxx sc/inc/helpids.h sc/inc/sc.hrc sc/prj/build.lst sc/sdi/scalc.sdi sc/source/core/data/documen9.cxx sc/source/core/data/drwlayer.cxx sc/source/ui/app/scdll.cxx sc/source/ui/app/typemap.cxx sc/source/ui/dbgui/scendlg.cxx sc/source/ui/docshell/docsh2.cxx sc/source/ui/docshell/docsh4.cxx sc/source/ui/drawfunc/chartsh.cxx sc/source/ui/drawfunc/drawsh.cxx sc/source/ui/drawfunc/drawsh2.cxx sc/source/ui/drawfunc/drawsh4.cxx sc/source/ui/drawfunc/drformsh.cxx sc/source/ui/drawfunc/drtxtob.cxx sc/source/ui/drawfunc/drtxtob1.cxx sc/source/ui/drawfunc/drtxtob2.cxx sc/source/ui/drawfunc/graphsh.cxx sc/source/ui/drawfunc/oleobjsh.cxx sc/source/ui/inc/chartsh.hxx sc/source/ui/inc/formatsh.hxx sc/source/ui/miscdlgs/tabbgcolordlg.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/optdlg/opredlin.cxx sc/source/ui/optdlg/tpview.cxx sc/source/ui/sidebar/makefile.mk sc/source/ui/view/auditsh.cxx sc/source/ui/view/cellsh.cxx sc/source/ui/view/editsh.cxx sc/source/ui/view/formatsh.cxx sc/source/ui/view/pivotsh.cxx sc/source/ui/view/tabvwsh.cxx sc/util/makefile.mk sd/inc/sdabstdlg.hxx sd/prj/build.lst sd/sdi/ToolPanelViewShell.sdi sd/sdi/makefile.mk sd/source/ui/accessibility/makefile.mk sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/dlg/PaneChildWindows.cxx sd/source/ui/dlg/PaneShells.cxx sd/source/ui/dlg/copydlg.cxx sd/source/ui/dlg/navigatr.cxx sd/source/ui/dlg/sddlgfact.cxx sd/source/ui/dlg/sddlgfact.hxx sd/source/ui/docshell/docshel3.cxx sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx sd/source/ui/framework/factories/TaskPanelFactory.cxx sd/source/ui/framework/factories/TaskPanelFactory.hxx sd/source/ui/framework/factories/ViewShellWrapper.cxx sd/source/ui/framework/factories/makefile.mk sd/source/ui/framework/module/ImpressModule.cxx sd/source/ui/framework/module/ToolPanelModule.cxx sd/source/ui/framework/tools/FrameworkHelper.cxx sd/source/ui/func/fuolbull.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/PaneChildWindows.hxx sd/source/ui/inc/celltempl.hxx sd/source/ui/inc/copydlg.hxx sd/source/ui/inc/dlgpage.hxx sd/source/ui/inc/framework/FrameworkHelper.hxx sd/source/ui/inc/prltempl.hxx sd/source/ui/inc/tabtempl.hxx sd/source/ui/inc/taskpane/ILayoutableWindow.hxx sd/source/ui/inc/taskpane/PanelId.hxx sd/source/ui/inc/tpaction.hxx sd/source/ui/sidebar/AllMasterPagesSelector.cxx sd/source/ui/sidebar/AllMasterPagesSelector.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/DocumentHelper.cxx sd/source/ui/sidebar/DocumentHelper.hxx sd/source/ui/sidebar/LayoutMenu.cxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPageContainer.cxx sd/source/ui/sidebar/MasterPageContainer.hxx sd/source/ui/sidebar/MasterPageContainerFiller.cxx sd/source/ui/sidebar/MasterPageContainerFiller.hxx sd/source/ui/sidebar/MasterPageContainerProviders.cxx sd/source/ui/sidebar/MasterPageContainerProviders.hxx sd/source/ui/sidebar/MasterPageContainerQueue.cxx sd/source/ui/sidebar/MasterPageContainerQueue.hxx sd/source/ui/sidebar/MasterPageDescriptor.cxx sd/source/ui/sidebar/MasterPageDescriptor.hxx sd/source/ui/sidebar/MasterPageObserver.cxx sd/source/ui/sidebar/MasterPagesSelector.cxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/PreviewValueSet.cxx sd/source/ui/sidebar/PreviewValueSet.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx sd/source/ui/sidebar/SidebarShellManager.cxx sd/source/ui/sidebar/SlideTransitionPanel.hxx sd/source/ui/sidebar/makefile.mk sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx sd/source/ui/table/TableDesignPane.hxx sd/source/ui/toolpanel/ControlContainer.cxx sd/source/ui/toolpanel/ControlContainerDescriptor.hxx sd/source/ui/toolpanel/MethodGuard.hxx sd/source/ui/toolpanel/ScrollPanel.cxx sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx sd/source/ui/toolpanel/SubToolPanel.cxx sd/source/ui/toolpanel/TaskPaneFocusManager.cxx sd/source/ui/toolpanel/TaskPaneTreeNode.cxx sd/source/ui/toolpanel/TitleBar.cxx sd/source/ui/toolpanel/TitledControl.cxx sd/source/ui/toolpanel/ToolPanel.cxx sd/source/ui/toolpanel/ToolPanel.hxx sd/source/ui/toolpanel/ToolPanelFactory.cxx sd/source/ui/toolpanel/ToolPanelUIElement.cxx sd/source/ui/toolpanel/ToolPanelUIElement.hxx sd/source/ui/toolpanel/ToolPanelViewShell.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx sd/source/ui/toolpanel/controls/TableDesignPanel.cxx sd/source/ui/toolpanel/controls/TableDesignPanel.hxx sd/source/ui/unoidl/UnoDocumentSettings.cxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drtxtob.cxx sd/source/ui/view/drviews3.cxx sd/source/ui/view/drviews7.cxx sd/source/ui/view/drviewsa.cxx sd/source/ui/view/drviewsf.cxx sd/source/ui/view/outlnvsh.cxx sd/source/ui/view/sdview.cxx sd/source/ui/view/viewshel.cxx sd/uiconfig/sdraw/menubar/menubar.xml sd/util/makefile.mk sfx2/Package_inc.mk sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfxsids.hrc sfx2/source/control/bindings.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/inc/templdgi.hxx svx/AllLangResTarget_svx.mk svx/Package_inc.mk svx/inc/svx/XPropertyTable.hxx svx/inc/svx/bmpmask.hxx svx/inc/svx/colrctrl.hxx svx/inc/svx/dialogs.hrc svx/inc/svx/dlgctrl.hxx svx/inc/svx/dlgutil.hxx svx/inc/svx/drawitem.hxx svx/inc/svx/fontwork.hxx svx/inc/svx/galbrws.hxx svx/inc/svx/sdr/table/tablecontroller.hxx svx/inc/svx/svdmodel.hxx svx/inc/svx/svdstr.hrc svx/inc/svx/svxids.hrc svx/inc/svx/svxitems.hrc svx/inc/svx/xattr.hxx svx/inc/svx/xflgrit.hxx svx/inc/svx/xflhtit.hxx svx/inc/svx/xit.hxx svx/inc/svx/xlineit.hxx svx/inc/svx/xlndsit.hxx svx/inc/svx/xlnedit.hxx svx/inc/svx/xlnstit.hxx svx/inc/svx/xtable.hxx svx/sdi/svx.sdi svx/source/dialog/_bmpmask.cxx svx/source/dialog/dialcontrol.cxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/dlgutil.cxx svx/source/dialog/fontwork.cxx svx/source/gallery2/galbrws.cxx svx/source/gallery2/galbrws1.cxx svx/source/gallery2/gallery1.cxx svx/source/items/drawitem.cxx svx/source/items/svxitems.src svx/source/sdr/attribute/sdrformtextattribute.cxx svx/source/sidebar/ColorPanel.hxx svx/source/sidebar/EmptyPanel.hrc svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/gallery/GalleryPanel.hxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdmodel.cxx svx/source/svdraw/svdogrp.cxx svx/source/svdraw/svdstr.src svx/source/tbxctrls/tbcontrl.cxx svx/source/unodraw/XPropertyTable.cxx svx/source/unodraw/unoctabl.cxx svx/source/xoutdev/XPropertyEntry.cxx svx/source/xoutdev/xattr.cxx svx/source/xoutdev/xattr2.cxx svx/source/xoutdev/xtabbtmp.cxx svx/source/xoutdev/xtabcolr.cxx svx/source/xoutdev/xtabdash.cxx svx/source/xoutdev/xtabgrdt.cxx svx/source/xoutdev/xtabhtch.cxx svx/source/xoutdev/xtable.cxx svx/source/xoutdev/xtablend.cxx svx/util/svx.component sw/inc/cmdid.h sw/inc/docsh.hxx sw/inc/editsh.hxx sw/inc/helpid.h sw/inc/rcid.hrc sw/inc/swabstdlg.hxx sw/inc/swcommands.h sw/sdi/swriter.sdi sw/source/core/doc/docdesc.cxx sw/source/core/draw/drawdoc.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/app/docshdrw.cxx sw/source/ui/app/docshini.cxx sw/source/ui/app/docst.cxx sw/source/ui/config/optpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/dialog/swdlgfact.hxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/inc/tmpdlg.hxx sw/source/ui/misc/pggrid.cxx sw/source/ui/shells/annotsh.cxx sw/source/ui/shells/basesh.cxx sw/source/ui/shells/beziersh.cxx sw/source/ui/shells/drawdlg.cxx sw/source/ui/shells/drawsh.cxx sw/source/ui/shells/drformsh.cxx sw/source/ui/shells/drwbassh.cxx sw/source/ui/shells/drwtxtex.cxx sw/source/ui/shells/drwtxtsh.cxx sw/source/ui/shells/frmsh.cxx sw/source/ui/shells/grfsh.cxx sw/source/ui/shells/olesh.cxx sw/source/ui/shells/tabsh.cxx sw/source/ui/shells/textsh.cxx sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/txtnum.cxx sw/source/ui/uiview/viewtab.cxx sw/source/ui/uno/unofreg.cxx sw/source/ui/utlui/navipi.cxx sw/util/sw.component vcl/inc/vcl/split.hxx vcl/inc/vcl/window.hxx vcl/inc/window.h vcl/source/window/split.cxx vcl/source/window/window.cxx vcl/source/window/window4.cxx Change-Id: Idebaff59f9d60e4e93290cefefdda4c5a1e9215e Resolves: #i122194# Adapted license text in propertypanel.hrc then renamed it to ResourceDefinitions.hrc (cherry picked from commit e952d1401c1adc41934118ba7f542611ef9da11b) Conflicts: sfx2/Package_inc.mk sfx2/source/sidebar/SidebarChildWindow.cxx svx/source/sidebar/graphic/GraphicPropertyPanel.cxx svx/source/sidebar/line/LinePropertyPanel.cxx svx/source/sidebar/possize/PosSizePropertyPanel.cxx sw/source/ui/sidebar/PagePropertyPanel.src sw/source/ui/sidebar/WrapPropertyPanel.src Change-Id: Ie009056a78ab108556717a501399c83b477b3548 Resolves: #i122194# finally I got the correct file name Change-Id: If7a075af8c9a829f6f0a69f883c5c6d4ac97ba2a More merge changes for optional sidebar: revert toolpanel removal, restore and re-enable task pane remove apparently un-used SidebarFactory module add extra visibility annotation to ItemReceiverUpdate
2013-04-10 08:20:16 +00:00
#include <sfx2/sidebar/Theme.hxx>
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
#include <algorithm>
#include <memory>
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
using namespace ::com::sun::star;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
using ::com::sun::star::uno::RuntimeException;
using ::sd::framework::FrameworkHelper;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
// ____________________________
//
// ::sd::impl::TransitionEffect
// ____________________________
namespace sd
{
namespace impl
{
struct TransitionEffect
{
TransitionEffect() :
mnType( 0 ),
mnSubType( 0 ),
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
mbDirection( sal_True ),
mnFadeColor( 0 )
{
init();
}
explicit TransitionEffect( const ::sd::TransitionPreset & rPreset ) :
mnType( rPreset.getTransition()),
mnSubType( rPreset.getSubtype()),
mbDirection( rPreset.getDirection()),
mnFadeColor( rPreset.getFadeColor())
{
init();
}
explicit TransitionEffect( sal_Int16 nType, sal_Int16 nSubType,
sal_Bool bDirection, sal_Int32 nFadeColor ) :
mnType( nType),
mnSubType( nSubType ),
mbDirection( bDirection ),
mnFadeColor( nFadeColor )
{
init();
}
explicit TransitionEffect( const SdPage & rPage ) :
mnType( rPage.getTransitionType() ),
mnSubType( rPage.getTransitionSubtype() ),
mbDirection( rPage.getTransitionDirection() ),
mnFadeColor( rPage.getTransitionFadeColor() )
{
init();
mfDuration = rPage.getTransitionDuration();
mfTime = rPage.GetTime();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
mePresChange = rPage.GetPresChange();
mbSoundOn = rPage.IsSoundOn();
maSound = rPage.GetSoundFile();
mbLoopSound = rPage.IsLoopSound();
mbStopSound = rPage.IsStopSound();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
void init()
{
mfDuration = 2.0;
mfTime = 0.0;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
mePresChange = PRESCHANGE_MANUAL;
mbSoundOn = sal_False;
mbLoopSound = sal_False;
mbStopSound = sal_False;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
mbEffectAmbiguous = false;
mbDurationAmbiguous = false;
mbTimeAmbiguous = false;
mbPresChangeAmbiguous = false;
mbSoundAmbiguous = false;
mbLoopSoundAmbiguous = false;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
void setAllAmbiguous()
{
mbEffectAmbiguous = true;
mbDurationAmbiguous = true;
mbTimeAmbiguous = true;
mbPresChangeAmbiguous = true;
mbSoundAmbiguous = true;
mbLoopSoundAmbiguous = true;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
bool operator == ( const ::sd::TransitionPreset & rPreset ) const
{
return
(mnType == rPreset.getTransition()) &&
(mnSubType == rPreset.getSubtype()) &&
(mbDirection == rPreset.getDirection()) &&
(mnFadeColor == rPreset.getFadeColor());
}
void applyTo( SdPage & rOutPage ) const
{
if( ! mbEffectAmbiguous )
{
rOutPage.setTransitionType( mnType );
rOutPage.setTransitionSubtype( mnSubType );
rOutPage.setTransitionDirection( mbDirection );
rOutPage.setTransitionFadeColor( mnFadeColor );
}
if( ! mbDurationAmbiguous )
rOutPage.setTransitionDuration( mfDuration );
if( ! mbTimeAmbiguous )
rOutPage.SetTime( mfTime );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( ! mbPresChangeAmbiguous )
rOutPage.SetPresChange( mePresChange );
if( ! mbSoundAmbiguous )
{
if( mbStopSound )
{
rOutPage.SetStopSound( sal_True );
rOutPage.SetSound( sal_False );
}
else
{
rOutPage.SetStopSound( sal_False );
rOutPage.SetSound( mbSoundOn );
rOutPage.SetSoundFile( maSound );
}
}
if( ! mbLoopSoundAmbiguous )
rOutPage.SetLoopSound( mbLoopSound );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
void compareWith( const SdPage & rPage )
{
TransitionEffect aOtherEffect( rPage );
mbEffectAmbiguous = mbEffectAmbiguous || aOtherEffect.mbEffectAmbiguous
|| (mnType != aOtherEffect.mnType)
|| (mnSubType != aOtherEffect.mnSubType)
|| (mbDirection != aOtherEffect.mbDirection)
|| (mnFadeColor != aOtherEffect.mnFadeColor);
mbDurationAmbiguous = mbDurationAmbiguous || aOtherEffect.mbDurationAmbiguous || mfDuration != aOtherEffect.mfDuration;
mbTimeAmbiguous = mbTimeAmbiguous || aOtherEffect.mbTimeAmbiguous || mfTime != aOtherEffect.mfTime;
mbPresChangeAmbiguous = mbPresChangeAmbiguous || aOtherEffect.mbPresChangeAmbiguous || mePresChange != aOtherEffect.mePresChange;
mbSoundAmbiguous = mbSoundAmbiguous || aOtherEffect.mbSoundAmbiguous || mbSoundOn != aOtherEffect.mbSoundOn;
#if 0
// Weird leftover isolated expression with no effect, introduced in 2007 in
// CWS impress122. Ifdeffed out to avoid compiler warning, kept here in case
// somebody who understands this code notices and understands what the
// "right" thing to do might be.
(!mbStopSound && !aOtherEffect.mbStopSound && maSound != aOtherEffect.maSound) || (mbStopSound != aOtherEffect.mbStopSound);
#endif
mbLoopSoundAmbiguous = mbLoopSoundAmbiguous || aOtherEffect.mbLoopSoundAmbiguous || mbLoopSound != aOtherEffect.mbLoopSound;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
// effect
sal_Int16 mnType;
sal_Int16 mnSubType;
sal_Bool mbDirection;
sal_Int32 mnFadeColor;
// other settings
double mfDuration;
double mfTime;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
PresChange mePresChange;
sal_Bool mbSoundOn;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
String maSound;
bool mbLoopSound;
bool mbStopSound;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
bool mbEffectAmbiguous;
bool mbDurationAmbiguous;
bool mbTimeAmbiguous;
bool mbPresChangeAmbiguous;
bool mbSoundAmbiguous;
bool mbLoopSoundAmbiguous;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
};
} // namespace impl
} // namespace sd
// ______________________
//
// Local Helper Functions
// ______________________
namespace
{
void lcl_ApplyToPages(
const ::sd::slidesorter::SharedPageSelection& rpPages,
const ::sd::impl::TransitionEffect & rEffect )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
::std::vector< SdPage * >::const_iterator aIt( rpPages->begin());
const ::std::vector< SdPage * >::const_iterator aEndIt( rpPages->end());
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
for( ; aIt != aEndIt; ++aIt )
{
rEffect.applyTo( *(*aIt) );
}
}
void lcl_CreateUndoForPages(
const ::sd::slidesorter::SharedPageSelection& rpPages,
::sd::ViewShellBase& rBase )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
::sd::DrawDocShell* pDocSh = rBase.GetDocShell();
::svl::IUndoManager* pManager = pDocSh->GetUndoManager();
SdDrawDocument* pDoc = pDocSh->GetDoc();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( pManager && pDocSh && pDoc )
{
String aComment( SdResId(STR_UNDO_SLIDE_PARAMS) );
pManager->EnterListAction(aComment, aComment);
SdUndoGroup* pUndoGroup = new SdUndoGroup( pDoc );
pUndoGroup->SetComment( aComment );
::std::vector< SdPage * >::const_iterator aIt( rpPages->begin());
const ::std::vector< SdPage * >::const_iterator aEndIt( rpPages->end());
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
for( ; aIt != aEndIt; ++aIt )
{
pUndoGroup->AddAction( new sd::UndoTransition( pDoc, (*aIt) ) );
}
pManager->AddUndoAction( pUndoGroup );
pManager->LeaveListAction();
}
}
sal_uInt16 lcl_getTransitionEffectIndex(
SdDrawDocument * pDoc,
const ::sd::impl::TransitionEffect & rTransition )
{
// first entry: "<none>"
sal_uInt16 nResultIndex = LISTBOX_ENTRY_NOTFOUND;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( pDoc )
{
sal_uInt16 nCurrentIndex = 0;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
const ::sd::TransitionPresetList & rPresetList = ::sd::TransitionPreset::getTransitionPresetList();
::sd::TransitionPresetList::const_iterator aIt( rPresetList.begin());
const ::sd::TransitionPresetList::const_iterator aEndIt( rPresetList.end());
for( ; aIt != aEndIt; ++aIt, ++nCurrentIndex )
{
if( rTransition.operator==( *(*aIt) ))
{
nResultIndex = nCurrentIndex;
break;
}
}
}
return nResultIndex;
}
::sd::TransitionPresetPtr lcl_getTransitionPresetByUIName(
SdDrawDocument * pDoc,
const OUString & rUIName )
{
::sd::TransitionPresetPtr pResult;
if( pDoc )
{
const ::sd::TransitionPresetList& rPresetList = ::sd::TransitionPreset::getTransitionPresetList();
::sd::TransitionPresetList::const_iterator aIter( rPresetList.begin() );
const ::sd::TransitionPresetList::const_iterator aEnd( rPresetList.end() );
for( ; aIter != aEnd; ++aIter )
{
if( (*aIter)->getUIName().equals( rUIName ))
{
pResult = *aIter;
break;
}
}
}
return pResult;
}
struct lcl_EqualsSoundFileName : public ::std::unary_function< String, bool >
{
explicit lcl_EqualsSoundFileName( const String & rStr ) :
maStr( rStr )
{}
bool operator() ( const String & rStr ) const
{
// note: formerly this was a case insensitive search for all
// platforms. It seems more sensible to do this platform-dependent
#if defined( WNT )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
return maStr.EqualsIgnoreCaseAscii( rStr );
#else
return maStr.Equals( rStr );
#endif
}
private:
String maStr;
};
// returns -1 if no object was found
bool lcl_findSoundInList( const ::std::vector< String > & rSoundList,
const String & rFileName,
::std::vector< String >::size_type & rOutPosition )
{
::std::vector< String >::const_iterator aIt =
::std::find_if( rSoundList.begin(), rSoundList.end(),
lcl_EqualsSoundFileName( rFileName ));
if( aIt != rSoundList.end())
{
rOutPosition = ::std::distance( rSoundList.begin(), aIt );
return true;
}
return false;
}
String lcl_getSoundFileURL(
const ::std::vector< String > & rSoundList,
const ListBox & rListBox )
{
String aResult;
if( rListBox.GetSelectEntryCount() > 0 )
{
sal_uInt16 nPos = rListBox.GetSelectEntryPos();
// the first three entries are no actual sounds
if( nPos >= 3 )
{
DBG_ASSERT( (sal_uInt32)(rListBox.GetEntryCount() - 3) == rSoundList.size(),
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
"Sound list-box is not synchronized to sound list" );
nPos -= 3;
if( rSoundList.size() > nPos )
aResult = rSoundList[ nPos ];
}
}
return aResult;
}
struct lcl_AppendSoundToListBox : public ::std::unary_function< String, void >
{
lcl_AppendSoundToListBox( ListBox & rListBox ) :
mrListBox( rListBox )
{}
void operator() ( const String & rString ) const
{
INetURLObject aURL( rString );
mrListBox.InsertEntry( aURL.GetBase(), LISTBOX_APPEND );
}
private:
ListBox & mrListBox;
};
void lcl_FillSoundListBox(
const ::std::vector< String > & rSoundList,
ListBox & rOutListBox )
{
sal_uInt16 nCount = rOutListBox.GetEntryCount();
// keep first three entries
for( sal_uInt16 i=nCount - 1; i>=3; --i )
rOutListBox.RemoveEntry( i );
::std::for_each( rSoundList.begin(), rSoundList.end(),
lcl_AppendSoundToListBox( rOutListBox ));
}
} // anonymous namespace
namespace sd
{
// ___________________
//
// SlideTransitionPane
// ___________________
SlideTransitionPane::SlideTransitionPane(
::Window * pParent,
ViewShellBase & rBase,
const Size& rMinSize,
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
SdDrawDocument* pDoc ) :
Control( pParent, SdResId( DLG_SLIDE_TRANSITION_PANE ) ),
mrBase( rBase ),
mpDrawDoc( pDoc ),
maMinSize( rMinSize ),
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
maFL_APPLY_TRANSITION( this, SdResId( FL_APPLY_TRANSITION ) ),
maLB_SLIDE_TRANSITIONS( this, SdResId( LB_SLIDE_TRANSITIONS ) ),
maFL_MODIFY_TRANSITION( this, SdResId( FL_MODIFY_TRANSITION ) ),
maFT_SPEED( this, SdResId( FT_SPEED ) ),
maLB_SPEED( this, SdResId( LB_SPEED ) ),
maFT_SOUND( this, SdResId( FT_SOUND ) ),
maLB_SOUND( this, SdResId( LB_SOUND ) ),
maCB_LOOP_SOUND( this, SdResId( CB_LOOP_SOUND ) ),
maFL_ADVANCE_SLIDE( this, SdResId( FL_ADVANCE_SLIDE ) ),
maRB_ADVANCE_ON_MOUSE( this, SdResId( RB_ADVANCE_ON_MOUSE ) ),
maRB_ADVANCE_AUTO( this, SdResId( RB_ADVANCE_AUTO ) ),
maMF_ADVANCE_AUTO_AFTER( this, SdResId( MF_ADVANCE_AUTO_AFTER ) ),
maFL_EMPTY1( this, SdResId( FL_EMPTY1 ) ),
maPB_APPLY_TO_ALL( this, SdResId( PB_APPLY_TO_ALL ) ),
maPB_PLAY( this, SdResId( PB_PLAY ) ),
maPB_SLIDE_SHOW( this, SdResId( PB_SLIDE_SHOW ) ),
maFL_EMPTY2( this, SdResId( FL_EMPTY2 ) ),
maCB_AUTO_PREVIEW( this, SdResId( CB_AUTO_PREVIEW ) ),
maSTR_NO_TRANSITION( SdResId( STR_NO_TRANSITION ) ),
mbHasSelection( false ),
mbUpdatingControls( false ),
mbIsMainViewChangePending( false ),
maLateInitTimer()
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
// use no resource ids from here on
FreeResource();
// use bold font for group headings (same font for all fixed lines):
Font font( maFL_APPLY_TRANSITION.GetFont() );
font.SetWeight( WEIGHT_BOLD );
maFL_APPLY_TRANSITION.SetFont( font );
maFL_MODIFY_TRANSITION.SetFont( font );
maFL_ADVANCE_SLIDE.SetFont( font );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( pDoc )
mxModel.set( pDoc->getUnoModel(), uno::UNO_QUERY );
// TODO: get correct view
if( mxModel.is())
mxView.set( mxModel->getCurrentController(), uno::UNO_QUERY );
// fill list box of slide transitions
maLB_SLIDE_TRANSITIONS.InsertEntry( maSTR_NO_TRANSITION );
// set defaults
maCB_AUTO_PREVIEW.Check(); // automatic preview on
// update control states before adding handlers
updateLayout();
updateControls();
// set handlers
maPB_APPLY_TO_ALL.SetClickHdl( LINK( this, SlideTransitionPane, ApplyToAllButtonClicked ));
maPB_PLAY.SetClickHdl( LINK( this, SlideTransitionPane, PlayButtonClicked ));
maPB_SLIDE_SHOW.SetClickHdl( LINK( this, SlideTransitionPane, SlideShowButtonClicked ));
maLB_SLIDE_TRANSITIONS.SetSelectHdl( LINK( this, SlideTransitionPane, TransitionSelected ));
maLB_SPEED.SetSelectHdl( LINK( this, SlideTransitionPane, SpeedListBoxSelected ));
maLB_SOUND.SetSelectHdl( LINK( this, SlideTransitionPane, SoundListBoxSelected ));
maCB_LOOP_SOUND.SetClickHdl( LINK( this, SlideTransitionPane, LoopSoundBoxChecked ));
maRB_ADVANCE_ON_MOUSE.SetToggleHdl( LINK( this, SlideTransitionPane, AdvanceSlideRadioButtonToggled ));
maRB_ADVANCE_AUTO.SetToggleHdl( LINK( this, SlideTransitionPane, AdvanceSlideRadioButtonToggled ));
maMF_ADVANCE_AUTO_AFTER.SetModifyHdl( LINK( this, SlideTransitionPane, AdvanceTimeModified ));
maCB_AUTO_PREVIEW.SetClickHdl( LINK( this, SlideTransitionPane, AutoPreviewClicked ));
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
addListener();
maLateInitTimer.SetTimeout(200);
maLateInitTimer.SetTimeoutHdl(LINK(this, SlideTransitionPane, LateInitCallback));
maLateInitTimer.Start();
Resolves: #i121420# merge sidebar feature (cherry picked from commit 0a0a9b32aa5bf1ce2554ad37cbba3c7a105db2b5) Conflicts: chart2/source/controller/dialogs/dlg_View3D.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx chart2/source/controller/drawinglayer/ViewElementListProvider.cxx chart2/source/controller/inc/ViewElementListProvider.hxx chart2/source/controller/inc/dlg_View3D.hxx chart2/source/controller/main/ShapeController.cxx chart2/source/inc/chartview/DrawModelWrapper.hxx chart2/source/view/main/DrawModelWrapper.cxx cui/source/inc/border.hxx cui/source/inc/cuitabarea.hxx cui/source/inc/cuitabline.hxx cui/source/inc/sdrcelldlg.hxx cui/source/inc/treeopt.hxx cui/source/options/optchart.cxx cui/source/options/optchart.hxx cui/source/options/optcolor.cxx cui/source/options/treeopt.cxx cui/source/tabpages/backgrnd.cxx cui/source/tabpages/border.cxx cui/source/tabpages/chardlg.cxx cui/source/tabpages/numpages.cxx cui/source/tabpages/tpcolor.cxx cui/source/tabpages/tplneend.cxx editeng/inc/editeng/outliner.hxx extensions/source/propctrlr/standardcontrol.cxx framework/source/register/registerservices.cxx offapi/com/sun/star/ui/makefile.mk officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu officecfg/registry/data/org/openoffice/Office/UI/makefile.mk officecfg/registry/schema/org/openoffice/Office/UI/makefile.mk postprocess/packregistry/makefile.mk reportdesign/source/ui/dlg/Condition.cxx reportdesign/source/ui/misc/UITools.cxx sc/inc/document.hxx sc/inc/helpids.h sc/inc/sc.hrc sc/prj/build.lst sc/sdi/scalc.sdi sc/source/core/data/documen9.cxx sc/source/core/data/drwlayer.cxx sc/source/ui/app/scdll.cxx sc/source/ui/app/typemap.cxx sc/source/ui/dbgui/scendlg.cxx sc/source/ui/docshell/docsh2.cxx sc/source/ui/docshell/docsh4.cxx sc/source/ui/drawfunc/chartsh.cxx sc/source/ui/drawfunc/drawsh.cxx sc/source/ui/drawfunc/drawsh2.cxx sc/source/ui/drawfunc/drawsh4.cxx sc/source/ui/drawfunc/drformsh.cxx sc/source/ui/drawfunc/drtxtob.cxx sc/source/ui/drawfunc/drtxtob1.cxx sc/source/ui/drawfunc/drtxtob2.cxx sc/source/ui/drawfunc/graphsh.cxx sc/source/ui/drawfunc/oleobjsh.cxx sc/source/ui/inc/chartsh.hxx sc/source/ui/inc/formatsh.hxx sc/source/ui/miscdlgs/tabbgcolordlg.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/optdlg/opredlin.cxx sc/source/ui/optdlg/tpview.cxx sc/source/ui/sidebar/makefile.mk sc/source/ui/view/auditsh.cxx sc/source/ui/view/cellsh.cxx sc/source/ui/view/editsh.cxx sc/source/ui/view/formatsh.cxx sc/source/ui/view/pivotsh.cxx sc/source/ui/view/tabvwsh.cxx sc/util/makefile.mk sd/inc/sdabstdlg.hxx sd/prj/build.lst sd/sdi/ToolPanelViewShell.sdi sd/sdi/makefile.mk sd/source/ui/accessibility/makefile.mk sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/dlg/PaneChildWindows.cxx sd/source/ui/dlg/PaneShells.cxx sd/source/ui/dlg/copydlg.cxx sd/source/ui/dlg/navigatr.cxx sd/source/ui/dlg/sddlgfact.cxx sd/source/ui/dlg/sddlgfact.hxx sd/source/ui/docshell/docshel3.cxx sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx sd/source/ui/framework/factories/TaskPanelFactory.cxx sd/source/ui/framework/factories/TaskPanelFactory.hxx sd/source/ui/framework/factories/ViewShellWrapper.cxx sd/source/ui/framework/factories/makefile.mk sd/source/ui/framework/module/ImpressModule.cxx sd/source/ui/framework/module/ToolPanelModule.cxx sd/source/ui/framework/tools/FrameworkHelper.cxx sd/source/ui/func/fuolbull.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/PaneChildWindows.hxx sd/source/ui/inc/celltempl.hxx sd/source/ui/inc/copydlg.hxx sd/source/ui/inc/dlgpage.hxx sd/source/ui/inc/framework/FrameworkHelper.hxx sd/source/ui/inc/prltempl.hxx sd/source/ui/inc/tabtempl.hxx sd/source/ui/inc/taskpane/ILayoutableWindow.hxx sd/source/ui/inc/taskpane/PanelId.hxx sd/source/ui/inc/tpaction.hxx sd/source/ui/sidebar/AllMasterPagesSelector.cxx sd/source/ui/sidebar/AllMasterPagesSelector.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/DocumentHelper.cxx sd/source/ui/sidebar/DocumentHelper.hxx sd/source/ui/sidebar/LayoutMenu.cxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPageContainer.cxx sd/source/ui/sidebar/MasterPageContainer.hxx sd/source/ui/sidebar/MasterPageContainerFiller.cxx sd/source/ui/sidebar/MasterPageContainerFiller.hxx sd/source/ui/sidebar/MasterPageContainerProviders.cxx sd/source/ui/sidebar/MasterPageContainerProviders.hxx sd/source/ui/sidebar/MasterPageContainerQueue.cxx sd/source/ui/sidebar/MasterPageContainerQueue.hxx sd/source/ui/sidebar/MasterPageDescriptor.cxx sd/source/ui/sidebar/MasterPageDescriptor.hxx sd/source/ui/sidebar/MasterPageObserver.cxx sd/source/ui/sidebar/MasterPagesSelector.cxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/PreviewValueSet.cxx sd/source/ui/sidebar/PreviewValueSet.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx sd/source/ui/sidebar/SidebarShellManager.cxx sd/source/ui/sidebar/SlideTransitionPanel.hxx sd/source/ui/sidebar/makefile.mk sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx sd/source/ui/table/TableDesignPane.hxx sd/source/ui/toolpanel/ControlContainer.cxx sd/source/ui/toolpanel/ControlContainerDescriptor.hxx sd/source/ui/toolpanel/MethodGuard.hxx sd/source/ui/toolpanel/ScrollPanel.cxx sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx sd/source/ui/toolpanel/SubToolPanel.cxx sd/source/ui/toolpanel/TaskPaneFocusManager.cxx sd/source/ui/toolpanel/TaskPaneTreeNode.cxx sd/source/ui/toolpanel/TitleBar.cxx sd/source/ui/toolpanel/TitledControl.cxx sd/source/ui/toolpanel/ToolPanel.cxx sd/source/ui/toolpanel/ToolPanel.hxx sd/source/ui/toolpanel/ToolPanelFactory.cxx sd/source/ui/toolpanel/ToolPanelUIElement.cxx sd/source/ui/toolpanel/ToolPanelUIElement.hxx sd/source/ui/toolpanel/ToolPanelViewShell.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx sd/source/ui/toolpanel/controls/TableDesignPanel.cxx sd/source/ui/toolpanel/controls/TableDesignPanel.hxx sd/source/ui/unoidl/UnoDocumentSettings.cxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drtxtob.cxx sd/source/ui/view/drviews3.cxx sd/source/ui/view/drviews7.cxx sd/source/ui/view/drviewsa.cxx sd/source/ui/view/drviewsf.cxx sd/source/ui/view/outlnvsh.cxx sd/source/ui/view/sdview.cxx sd/source/ui/view/viewshel.cxx sd/uiconfig/sdraw/menubar/menubar.xml sd/util/makefile.mk sfx2/Package_inc.mk sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfxsids.hrc sfx2/source/control/bindings.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/inc/templdgi.hxx svx/AllLangResTarget_svx.mk svx/Package_inc.mk svx/inc/svx/XPropertyTable.hxx svx/inc/svx/bmpmask.hxx svx/inc/svx/colrctrl.hxx svx/inc/svx/dialogs.hrc svx/inc/svx/dlgctrl.hxx svx/inc/svx/dlgutil.hxx svx/inc/svx/drawitem.hxx svx/inc/svx/fontwork.hxx svx/inc/svx/galbrws.hxx svx/inc/svx/sdr/table/tablecontroller.hxx svx/inc/svx/svdmodel.hxx svx/inc/svx/svdstr.hrc svx/inc/svx/svxids.hrc svx/inc/svx/svxitems.hrc svx/inc/svx/xattr.hxx svx/inc/svx/xflgrit.hxx svx/inc/svx/xflhtit.hxx svx/inc/svx/xit.hxx svx/inc/svx/xlineit.hxx svx/inc/svx/xlndsit.hxx svx/inc/svx/xlnedit.hxx svx/inc/svx/xlnstit.hxx svx/inc/svx/xtable.hxx svx/sdi/svx.sdi svx/source/dialog/_bmpmask.cxx svx/source/dialog/dialcontrol.cxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/dlgutil.cxx svx/source/dialog/fontwork.cxx svx/source/gallery2/galbrws.cxx svx/source/gallery2/galbrws1.cxx svx/source/gallery2/gallery1.cxx svx/source/items/drawitem.cxx svx/source/items/svxitems.src svx/source/sdr/attribute/sdrformtextattribute.cxx svx/source/sidebar/ColorPanel.hxx svx/source/sidebar/EmptyPanel.hrc svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/gallery/GalleryPanel.hxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdmodel.cxx svx/source/svdraw/svdogrp.cxx svx/source/svdraw/svdstr.src svx/source/tbxctrls/tbcontrl.cxx svx/source/unodraw/XPropertyTable.cxx svx/source/unodraw/unoctabl.cxx svx/source/xoutdev/XPropertyEntry.cxx svx/source/xoutdev/xattr.cxx svx/source/xoutdev/xattr2.cxx svx/source/xoutdev/xtabbtmp.cxx svx/source/xoutdev/xtabcolr.cxx svx/source/xoutdev/xtabdash.cxx svx/source/xoutdev/xtabgrdt.cxx svx/source/xoutdev/xtabhtch.cxx svx/source/xoutdev/xtable.cxx svx/source/xoutdev/xtablend.cxx svx/util/svx.component sw/inc/cmdid.h sw/inc/docsh.hxx sw/inc/editsh.hxx sw/inc/helpid.h sw/inc/rcid.hrc sw/inc/swabstdlg.hxx sw/inc/swcommands.h sw/sdi/swriter.sdi sw/source/core/doc/docdesc.cxx sw/source/core/draw/drawdoc.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/app/docshdrw.cxx sw/source/ui/app/docshini.cxx sw/source/ui/app/docst.cxx sw/source/ui/config/optpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/dialog/swdlgfact.hxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/inc/tmpdlg.hxx sw/source/ui/misc/pggrid.cxx sw/source/ui/shells/annotsh.cxx sw/source/ui/shells/basesh.cxx sw/source/ui/shells/beziersh.cxx sw/source/ui/shells/drawdlg.cxx sw/source/ui/shells/drawsh.cxx sw/source/ui/shells/drformsh.cxx sw/source/ui/shells/drwbassh.cxx sw/source/ui/shells/drwtxtex.cxx sw/source/ui/shells/drwtxtsh.cxx sw/source/ui/shells/frmsh.cxx sw/source/ui/shells/grfsh.cxx sw/source/ui/shells/olesh.cxx sw/source/ui/shells/tabsh.cxx sw/source/ui/shells/textsh.cxx sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/txtnum.cxx sw/source/ui/uiview/viewtab.cxx sw/source/ui/uno/unofreg.cxx sw/source/ui/utlui/navipi.cxx sw/util/sw.component vcl/inc/vcl/split.hxx vcl/inc/vcl/window.hxx vcl/inc/window.h vcl/source/window/split.cxx vcl/source/window/window.cxx vcl/source/window/window4.cxx Change-Id: Idebaff59f9d60e4e93290cefefdda4c5a1e9215e Resolves: #i122194# Adapted license text in propertypanel.hrc then renamed it to ResourceDefinitions.hrc (cherry picked from commit e952d1401c1adc41934118ba7f542611ef9da11b) Conflicts: sfx2/Package_inc.mk sfx2/source/sidebar/SidebarChildWindow.cxx svx/source/sidebar/graphic/GraphicPropertyPanel.cxx svx/source/sidebar/line/LinePropertyPanel.cxx svx/source/sidebar/possize/PosSizePropertyPanel.cxx sw/source/ui/sidebar/PagePropertyPanel.src sw/source/ui/sidebar/WrapPropertyPanel.src Change-Id: Ie009056a78ab108556717a501399c83b477b3548 Resolves: #i122194# finally I got the correct file name Change-Id: If7a075af8c9a829f6f0a69f883c5c6d4ac97ba2a More merge changes for optional sidebar: revert toolpanel removal, restore and re-enable task pane remove apparently un-used SidebarFactory module add extra visibility annotation to ItemReceiverUpdate
2013-04-10 08:20:16 +00:00
UpdateLook();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
SlideTransitionPane::~SlideTransitionPane()
{
maLateInitTimer.Stop();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
removeListener();
}
void SlideTransitionPane::Resize()
{
updateLayout();
}
Resolves: #i121420# merge sidebar feature (cherry picked from commit 0a0a9b32aa5bf1ce2554ad37cbba3c7a105db2b5) Conflicts: chart2/source/controller/dialogs/dlg_View3D.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx chart2/source/controller/drawinglayer/ViewElementListProvider.cxx chart2/source/controller/inc/ViewElementListProvider.hxx chart2/source/controller/inc/dlg_View3D.hxx chart2/source/controller/main/ShapeController.cxx chart2/source/inc/chartview/DrawModelWrapper.hxx chart2/source/view/main/DrawModelWrapper.cxx cui/source/inc/border.hxx cui/source/inc/cuitabarea.hxx cui/source/inc/cuitabline.hxx cui/source/inc/sdrcelldlg.hxx cui/source/inc/treeopt.hxx cui/source/options/optchart.cxx cui/source/options/optchart.hxx cui/source/options/optcolor.cxx cui/source/options/treeopt.cxx cui/source/tabpages/backgrnd.cxx cui/source/tabpages/border.cxx cui/source/tabpages/chardlg.cxx cui/source/tabpages/numpages.cxx cui/source/tabpages/tpcolor.cxx cui/source/tabpages/tplneend.cxx editeng/inc/editeng/outliner.hxx extensions/source/propctrlr/standardcontrol.cxx framework/source/register/registerservices.cxx offapi/com/sun/star/ui/makefile.mk officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu officecfg/registry/data/org/openoffice/Office/UI/makefile.mk officecfg/registry/schema/org/openoffice/Office/UI/makefile.mk postprocess/packregistry/makefile.mk reportdesign/source/ui/dlg/Condition.cxx reportdesign/source/ui/misc/UITools.cxx sc/inc/document.hxx sc/inc/helpids.h sc/inc/sc.hrc sc/prj/build.lst sc/sdi/scalc.sdi sc/source/core/data/documen9.cxx sc/source/core/data/drwlayer.cxx sc/source/ui/app/scdll.cxx sc/source/ui/app/typemap.cxx sc/source/ui/dbgui/scendlg.cxx sc/source/ui/docshell/docsh2.cxx sc/source/ui/docshell/docsh4.cxx sc/source/ui/drawfunc/chartsh.cxx sc/source/ui/drawfunc/drawsh.cxx sc/source/ui/drawfunc/drawsh2.cxx sc/source/ui/drawfunc/drawsh4.cxx sc/source/ui/drawfunc/drformsh.cxx sc/source/ui/drawfunc/drtxtob.cxx sc/source/ui/drawfunc/drtxtob1.cxx sc/source/ui/drawfunc/drtxtob2.cxx sc/source/ui/drawfunc/graphsh.cxx sc/source/ui/drawfunc/oleobjsh.cxx sc/source/ui/inc/chartsh.hxx sc/source/ui/inc/formatsh.hxx sc/source/ui/miscdlgs/tabbgcolordlg.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/optdlg/opredlin.cxx sc/source/ui/optdlg/tpview.cxx sc/source/ui/sidebar/makefile.mk sc/source/ui/view/auditsh.cxx sc/source/ui/view/cellsh.cxx sc/source/ui/view/editsh.cxx sc/source/ui/view/formatsh.cxx sc/source/ui/view/pivotsh.cxx sc/source/ui/view/tabvwsh.cxx sc/util/makefile.mk sd/inc/sdabstdlg.hxx sd/prj/build.lst sd/sdi/ToolPanelViewShell.sdi sd/sdi/makefile.mk sd/source/ui/accessibility/makefile.mk sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/dlg/PaneChildWindows.cxx sd/source/ui/dlg/PaneShells.cxx sd/source/ui/dlg/copydlg.cxx sd/source/ui/dlg/navigatr.cxx sd/source/ui/dlg/sddlgfact.cxx sd/source/ui/dlg/sddlgfact.hxx sd/source/ui/docshell/docshel3.cxx sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx sd/source/ui/framework/factories/TaskPanelFactory.cxx sd/source/ui/framework/factories/TaskPanelFactory.hxx sd/source/ui/framework/factories/ViewShellWrapper.cxx sd/source/ui/framework/factories/makefile.mk sd/source/ui/framework/module/ImpressModule.cxx sd/source/ui/framework/module/ToolPanelModule.cxx sd/source/ui/framework/tools/FrameworkHelper.cxx sd/source/ui/func/fuolbull.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/PaneChildWindows.hxx sd/source/ui/inc/celltempl.hxx sd/source/ui/inc/copydlg.hxx sd/source/ui/inc/dlgpage.hxx sd/source/ui/inc/framework/FrameworkHelper.hxx sd/source/ui/inc/prltempl.hxx sd/source/ui/inc/tabtempl.hxx sd/source/ui/inc/taskpane/ILayoutableWindow.hxx sd/source/ui/inc/taskpane/PanelId.hxx sd/source/ui/inc/tpaction.hxx sd/source/ui/sidebar/AllMasterPagesSelector.cxx sd/source/ui/sidebar/AllMasterPagesSelector.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/DocumentHelper.cxx sd/source/ui/sidebar/DocumentHelper.hxx sd/source/ui/sidebar/LayoutMenu.cxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPageContainer.cxx sd/source/ui/sidebar/MasterPageContainer.hxx sd/source/ui/sidebar/MasterPageContainerFiller.cxx sd/source/ui/sidebar/MasterPageContainerFiller.hxx sd/source/ui/sidebar/MasterPageContainerProviders.cxx sd/source/ui/sidebar/MasterPageContainerProviders.hxx sd/source/ui/sidebar/MasterPageContainerQueue.cxx sd/source/ui/sidebar/MasterPageContainerQueue.hxx sd/source/ui/sidebar/MasterPageDescriptor.cxx sd/source/ui/sidebar/MasterPageDescriptor.hxx sd/source/ui/sidebar/MasterPageObserver.cxx sd/source/ui/sidebar/MasterPagesSelector.cxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/PreviewValueSet.cxx sd/source/ui/sidebar/PreviewValueSet.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx sd/source/ui/sidebar/SidebarShellManager.cxx sd/source/ui/sidebar/SlideTransitionPanel.hxx sd/source/ui/sidebar/makefile.mk sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx sd/source/ui/table/TableDesignPane.hxx sd/source/ui/toolpanel/ControlContainer.cxx sd/source/ui/toolpanel/ControlContainerDescriptor.hxx sd/source/ui/toolpanel/MethodGuard.hxx sd/source/ui/toolpanel/ScrollPanel.cxx sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx sd/source/ui/toolpanel/SubToolPanel.cxx sd/source/ui/toolpanel/TaskPaneFocusManager.cxx sd/source/ui/toolpanel/TaskPaneTreeNode.cxx sd/source/ui/toolpanel/TitleBar.cxx sd/source/ui/toolpanel/TitledControl.cxx sd/source/ui/toolpanel/ToolPanel.cxx sd/source/ui/toolpanel/ToolPanel.hxx sd/source/ui/toolpanel/ToolPanelFactory.cxx sd/source/ui/toolpanel/ToolPanelUIElement.cxx sd/source/ui/toolpanel/ToolPanelUIElement.hxx sd/source/ui/toolpanel/ToolPanelViewShell.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx sd/source/ui/toolpanel/controls/TableDesignPanel.cxx sd/source/ui/toolpanel/controls/TableDesignPanel.hxx sd/source/ui/unoidl/UnoDocumentSettings.cxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drtxtob.cxx sd/source/ui/view/drviews3.cxx sd/source/ui/view/drviews7.cxx sd/source/ui/view/drviewsa.cxx sd/source/ui/view/drviewsf.cxx sd/source/ui/view/outlnvsh.cxx sd/source/ui/view/sdview.cxx sd/source/ui/view/viewshel.cxx sd/uiconfig/sdraw/menubar/menubar.xml sd/util/makefile.mk sfx2/Package_inc.mk sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfxsids.hrc sfx2/source/control/bindings.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/inc/templdgi.hxx svx/AllLangResTarget_svx.mk svx/Package_inc.mk svx/inc/svx/XPropertyTable.hxx svx/inc/svx/bmpmask.hxx svx/inc/svx/colrctrl.hxx svx/inc/svx/dialogs.hrc svx/inc/svx/dlgctrl.hxx svx/inc/svx/dlgutil.hxx svx/inc/svx/drawitem.hxx svx/inc/svx/fontwork.hxx svx/inc/svx/galbrws.hxx svx/inc/svx/sdr/table/tablecontroller.hxx svx/inc/svx/svdmodel.hxx svx/inc/svx/svdstr.hrc svx/inc/svx/svxids.hrc svx/inc/svx/svxitems.hrc svx/inc/svx/xattr.hxx svx/inc/svx/xflgrit.hxx svx/inc/svx/xflhtit.hxx svx/inc/svx/xit.hxx svx/inc/svx/xlineit.hxx svx/inc/svx/xlndsit.hxx svx/inc/svx/xlnedit.hxx svx/inc/svx/xlnstit.hxx svx/inc/svx/xtable.hxx svx/sdi/svx.sdi svx/source/dialog/_bmpmask.cxx svx/source/dialog/dialcontrol.cxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/dlgutil.cxx svx/source/dialog/fontwork.cxx svx/source/gallery2/galbrws.cxx svx/source/gallery2/galbrws1.cxx svx/source/gallery2/gallery1.cxx svx/source/items/drawitem.cxx svx/source/items/svxitems.src svx/source/sdr/attribute/sdrformtextattribute.cxx svx/source/sidebar/ColorPanel.hxx svx/source/sidebar/EmptyPanel.hrc svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/gallery/GalleryPanel.hxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdmodel.cxx svx/source/svdraw/svdogrp.cxx svx/source/svdraw/svdstr.src svx/source/tbxctrls/tbcontrl.cxx svx/source/unodraw/XPropertyTable.cxx svx/source/unodraw/unoctabl.cxx svx/source/xoutdev/XPropertyEntry.cxx svx/source/xoutdev/xattr.cxx svx/source/xoutdev/xattr2.cxx svx/source/xoutdev/xtabbtmp.cxx svx/source/xoutdev/xtabcolr.cxx svx/source/xoutdev/xtabdash.cxx svx/source/xoutdev/xtabgrdt.cxx svx/source/xoutdev/xtabhtch.cxx svx/source/xoutdev/xtable.cxx svx/source/xoutdev/xtablend.cxx svx/util/svx.component sw/inc/cmdid.h sw/inc/docsh.hxx sw/inc/editsh.hxx sw/inc/helpid.h sw/inc/rcid.hrc sw/inc/swabstdlg.hxx sw/inc/swcommands.h sw/sdi/swriter.sdi sw/source/core/doc/docdesc.cxx sw/source/core/draw/drawdoc.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/app/docshdrw.cxx sw/source/ui/app/docshini.cxx sw/source/ui/app/docst.cxx sw/source/ui/config/optpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/dialog/swdlgfact.hxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/inc/tmpdlg.hxx sw/source/ui/misc/pggrid.cxx sw/source/ui/shells/annotsh.cxx sw/source/ui/shells/basesh.cxx sw/source/ui/shells/beziersh.cxx sw/source/ui/shells/drawdlg.cxx sw/source/ui/shells/drawsh.cxx sw/source/ui/shells/drformsh.cxx sw/source/ui/shells/drwbassh.cxx sw/source/ui/shells/drwtxtex.cxx sw/source/ui/shells/drwtxtsh.cxx sw/source/ui/shells/frmsh.cxx sw/source/ui/shells/grfsh.cxx sw/source/ui/shells/olesh.cxx sw/source/ui/shells/tabsh.cxx sw/source/ui/shells/textsh.cxx sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/txtnum.cxx sw/source/ui/uiview/viewtab.cxx sw/source/ui/uno/unofreg.cxx sw/source/ui/utlui/navipi.cxx sw/util/sw.component vcl/inc/vcl/split.hxx vcl/inc/vcl/window.hxx vcl/inc/window.h vcl/source/window/split.cxx vcl/source/window/window.cxx vcl/source/window/window4.cxx Change-Id: Idebaff59f9d60e4e93290cefefdda4c5a1e9215e Resolves: #i122194# Adapted license text in propertypanel.hrc then renamed it to ResourceDefinitions.hrc (cherry picked from commit e952d1401c1adc41934118ba7f542611ef9da11b) Conflicts: sfx2/Package_inc.mk sfx2/source/sidebar/SidebarChildWindow.cxx svx/source/sidebar/graphic/GraphicPropertyPanel.cxx svx/source/sidebar/line/LinePropertyPanel.cxx svx/source/sidebar/possize/PosSizePropertyPanel.cxx sw/source/ui/sidebar/PagePropertyPanel.src sw/source/ui/sidebar/WrapPropertyPanel.src Change-Id: Ie009056a78ab108556717a501399c83b477b3548 Resolves: #i122194# finally I got the correct file name Change-Id: If7a075af8c9a829f6f0a69f883c5c6d4ac97ba2a More merge changes for optional sidebar: revert toolpanel removal, restore and re-enable task pane remove apparently un-used SidebarFactory module add extra visibility annotation to ItemReceiverUpdate
2013-04-10 08:20:16 +00:00
void SlideTransitionPane::DataChanged (const DataChangedEvent& rEvent)
{
(void)rEvent;
UpdateLook();
}
void SlideTransitionPane::UpdateLook (void)
{
SetBackground(::sfx2::sidebar::Theme::GetWallpaper(::sfx2::sidebar::Theme::Paint_PanelBackground));
maFL_APPLY_TRANSITION.SetBackground(Wallpaper());
maFL_MODIFY_TRANSITION.SetBackground(Wallpaper());;
maFT_SPEED.SetBackground(Wallpaper());
maFT_SOUND.SetBackground(Wallpaper());
maFL_ADVANCE_SLIDE.SetBackground(Wallpaper());
maFL_EMPTY1.SetBackground(Wallpaper());
maFL_EMPTY2.SetBackground(Wallpaper());
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
void SlideTransitionPane::onSelectionChanged()
{
updateControls();
}
void SlideTransitionPane::onChangeCurrentPage()
{
updateControls();
}
::sd::slidesorter::SharedPageSelection SlideTransitionPane::getSelectedPages (void) const
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
::sd::slidesorter::SlideSorterViewShell * pSlideSorterViewShell
= ::sd::slidesorter::SlideSorterViewShell::GetSlideSorter(mrBase);
::boost::shared_ptr<sd::slidesorter::SlideSorterViewShell::PageSelection> pSelection;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( pSlideSorterViewShell )
{
pSelection = pSlideSorterViewShell->GetPageSelection();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
else
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
pSelection.reset(new sd::slidesorter::SlideSorterViewShell::PageSelection());
if( mxView.is() )
{
SdPage* pPage = SdPage::getImplementation( mxView->getCurrentPage() );
if( pPage )
pSelection->push_back(pPage);
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
return pSelection;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
void SlideTransitionPane::updateLayout()
{
::Size aPaneSize( GetSizePixel() );
if( aPaneSize.Width() < maMinSize.Width() )
aPaneSize.Width() = maMinSize.Width();
if( aPaneSize.Height() < maMinSize.Height() )
aPaneSize.Height() = maMinSize.Height();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
// start layouting elements from bottom to top. The remaining space is used
// for the topmost list box
::Point aOffset( LogicToPixel( Point( 3, 3 ), MAP_APPFONT ) );
long nOffsetX = aOffset.getX();
long nOffsetY = aOffset.getY();
long nOffsetBtnX = LogicToPixel( Point( 6, 1 ), MAP_APPFONT ).getX();
const long nMinCtrlWidth = LogicToPixel( ::Point( 32, 1 ), MAP_APPFONT ).getX();
const long nTextIndent = LogicToPixel( ::Point( RSC_SP_CHK_TEXTINDENT, 1 ), MAP_APPFONT ).getX();
::Point aUpperLeft( nOffsetX, aPaneSize.getHeight() - nOffsetY );
long nMaxWidth = aPaneSize.getWidth() - 2 * nOffsetX;
// auto preview check-box
::Size aCtrlSize = maCB_AUTO_PREVIEW.GetSizePixel();
aCtrlSize.setWidth( maCB_AUTO_PREVIEW.CalcMinimumSize( nMaxWidth ).getWidth());
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
maCB_AUTO_PREVIEW.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line above check-box
aCtrlSize = maFL_EMPTY2.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
maFL_EMPTY2.SetPosSizePixel( aUpperLeft, aCtrlSize );
// buttons "Play" and "Slide Show"
long nPlayButtonWidth = maPB_PLAY.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;
long nSlideShowButtonWidth = maPB_SLIDE_SHOW.CalcMinimumSize().getWidth() + 2 * nOffsetBtnX;
if( (nPlayButtonWidth + nSlideShowButtonWidth + nOffsetX) <= nMaxWidth )
{
// place buttons side by side
aCtrlSize = maPB_PLAY.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nPlayButtonWidth );
maPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( aUpperLeft.getX() + nPlayButtonWidth + nOffsetX );
aCtrlSize.setWidth( nSlideShowButtonWidth );
maPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
else
{
// place buttons on top of each other
aCtrlSize = maPB_SLIDE_SHOW.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nSlideShowButtonWidth );
maPB_SLIDE_SHOW.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = maPB_PLAY.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aCtrlSize.setWidth( nPlayButtonWidth );
maPB_PLAY.SetPosSizePixel( aUpperLeft, aCtrlSize );
}
// "Apply to All Slides" button
aCtrlSize = maPB_APPLY_TO_ALL.GetSizePixel();
aCtrlSize.setWidth( maPB_APPLY_TO_ALL.CalcMinimumSize( nMaxWidth ).getWidth() + 2 * nOffsetBtnX );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maPB_APPLY_TO_ALL.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line above "Apply to All Slides" button
aCtrlSize = maFL_EMPTY1.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
maFL_EMPTY1.SetPosSizePixel( aUpperLeft, aCtrlSize );
// advance automatically after ... seconds
long nItemWidth = maRB_ADVANCE_AUTO.CalcMinimumSize().getWidth();
if( (nItemWidth + nMinCtrlWidth + nOffsetX) <= nMaxWidth )
{
long nBase = aUpperLeft.getY();
// place controls side by side
aCtrlSize = maRB_ADVANCE_AUTO.GetSizePixel();
aUpperLeft.setY( nBase - aCtrlSize.getHeight());
aCtrlSize.setWidth( nItemWidth );
maRB_ADVANCE_AUTO.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = maMF_ADVANCE_AUTO_AFTER.GetSizePixel();
aUpperLeft.setY( nBase - aCtrlSize.getHeight() );
aUpperLeft.setX( aUpperLeft.getX() + nItemWidth + nOffsetX );
aCtrlSize.setWidth( nMinCtrlWidth );
maMF_ADVANCE_AUTO_AFTER.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
else
{
// place controls on top of each other
aCtrlSize = maMF_ADVANCE_AUTO_AFTER.GetSizePixel();
aUpperLeft.setX( nOffsetX + nTextIndent );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nMinCtrlWidth );
maMF_ADVANCE_AUTO_AFTER.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = maRB_ADVANCE_AUTO.GetSizePixel();
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aUpperLeft.setX( nOffsetX );
aCtrlSize.setWidth( nItemWidth );
maRB_ADVANCE_AUTO.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nOffsetX );
}
// check box "On mouse click"
aCtrlSize = maRB_ADVANCE_ON_MOUSE.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maRB_ADVANCE_ON_MOUSE.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Advance slide"
aCtrlSize = maFL_ADVANCE_SLIDE.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maFL_ADVANCE_SLIDE.SetPosSizePixel( aUpperLeft, aCtrlSize );
// check box "Loop until next sound"
long nFTSpeedWidth = maFT_SPEED.CalcMinimumSize().getWidth() + 2 * nOffsetX;
long nFTSoundWidth = maFT_SOUND.CalcMinimumSize().getWidth() + 2 * nOffsetX;
long nIndent = ::std::max( nFTSoundWidth, nFTSpeedWidth );
bool bStack = ( (nIndent + nMinCtrlWidth + nOffsetX) > nMaxWidth );
if( bStack )
nIndent = nTextIndent;
aCtrlSize = maCB_LOOP_SOUND.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth - nIndent );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
aUpperLeft.setX( nIndent );
maCB_LOOP_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
aCtrlSize = maLB_SOUND.GetSizePixel();
aCtrlSize.setWidth( ::std::max( nMaxWidth - nIndent, nMinCtrlWidth ) );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maLB_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
maLB_SOUND.SetDropDownLineCount( 8 );
aUpperLeft.setX( nOffsetX );
aCtrlSize = maFT_SOUND.GetSizePixel();
if( bStack )
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nFTSoundWidth - 2 * nOffsetX );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
maFT_SOUND.SetPosSizePixel( aUpperLeft, aCtrlSize );
aUpperLeft.setX( nIndent );
aCtrlSize = maLB_SPEED.GetSizePixel();
aCtrlSize.setWidth( ::std::max( nMaxWidth - nIndent, nMinCtrlWidth ) );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maLB_SPEED.SetPosSizePixel( aUpperLeft, aCtrlSize );
maLB_SPEED.SetDropDownLineCount( 3 );
aUpperLeft.setX( nOffsetX );
aCtrlSize = maFT_SPEED.GetSizePixel();
if( bStack )
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight());
aCtrlSize.setWidth( nFTSpeedWidth - 2 * nOffsetX );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
maFT_SPEED.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Modify Transition"
aCtrlSize = maFL_MODIFY_TRANSITION.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
aUpperLeft.setY( aUpperLeft.getY() - aCtrlSize.getHeight() - nOffsetY );
maFL_MODIFY_TRANSITION.SetPosSizePixel( aUpperLeft, aCtrlSize );
// fixed line "Apply to selected slides"
aCtrlSize = maFL_APPLY_TRANSITION.GetSizePixel();
aCtrlSize.setWidth( nMaxWidth );
::Point aUpperLeftCorner( nOffsetX, nOffsetY );
maFL_APPLY_TRANSITION.SetPosSizePixel( aUpperLeftCorner, aCtrlSize );
aUpperLeftCorner.setY( aUpperLeftCorner.getY() + aCtrlSize.getHeight() + nOffsetY );
aUpperLeft.setY( aUpperLeft.getY() - nOffsetY );
// list box slide transitions
aCtrlSize.setWidth( nMaxWidth );
aCtrlSize.setHeight( aUpperLeft.getY() - aUpperLeftCorner.getY() );
maLB_SLIDE_TRANSITIONS.SetPosSizePixel( aUpperLeftCorner, aCtrlSize );
}
void SlideTransitionPane::updateControls()
{
::sd::slidesorter::SharedPageSelection pSelectedPages(getSelectedPages());
if( pSelectedPages->empty())
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
mbHasSelection = false;
return;
}
mbHasSelection = true;
DBG_ASSERT( ! mbUpdatingControls, "Multiple Control Updates" );
mbUpdatingControls = true;
// get model data for first page
SdPage * pFirstPage = pSelectedPages->front();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
DBG_ASSERT( pFirstPage, "Invalid Page" );
impl::TransitionEffect aEffect( *pFirstPage );
// merge with other pages
::sd::slidesorter::SlideSorterViewShell::PageSelection::const_iterator aIt(
pSelectedPages->begin());
::sd::slidesorter::SlideSorterViewShell::PageSelection::const_iterator aEndIt(
pSelectedPages->end());
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
// start with second page (note aIt != aEndIt, because ! aSelectedPages.empty())
for( ++aIt ;aIt != aEndIt; ++aIt )
{
if( *aIt )
aEffect.compareWith( *(*aIt) );
}
// detect current slide effect
if( aEffect.mbEffectAmbiguous )
maLB_SLIDE_TRANSITIONS.SetNoSelection();
else
{
// ToDo: That 0 is "no transition" is documented nowhere except in the
// CTOR of sdpage
if( aEffect.mnType == 0 )
maLB_SLIDE_TRANSITIONS.SelectEntryPos( 0 );
else
{
sal_uInt16 nEntry = lcl_getTransitionEffectIndex( mpDrawDoc, aEffect );
if( nEntry == LISTBOX_ENTRY_NOTFOUND )
maLB_SLIDE_TRANSITIONS.SetNoSelection();
else
{
// first entry in list is "none", so add 1 after translation
if( m_aPresetIndexes.find( nEntry ) != m_aPresetIndexes.end())
maLB_SLIDE_TRANSITIONS.SelectEntryPos( m_aPresetIndexes[ nEntry ] + 1 );
else
maLB_SLIDE_TRANSITIONS.SetNoSelection();
}
}
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( aEffect.mbDurationAmbiguous )
maLB_SPEED.SetNoSelection();
else
maLB_SPEED.SelectEntryPos(
(aEffect.mfDuration > 2.0 )
? 0 : (aEffect.mfDuration < 2.0)
? 2 : 1 ); // else FADE_SPEED_FAST
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( aEffect.mbSoundAmbiguous )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
maLB_SOUND.SetNoSelection();
maCurrentSoundFile.Erase();
}
else
{
maCurrentSoundFile.Erase();
if( aEffect.mbStopSound )
{
maLB_SOUND.SelectEntryPos( 1 );
}
else if( aEffect.mbSoundOn && aEffect.maSound.Len() > 0 )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
tSoundListType::size_type nPos = 0;
if( lcl_findSoundInList( maSoundList, aEffect.maSound, nPos ))
{
// skip first three entries
maLB_SOUND.SelectEntryPos( (sal_uInt16)nPos + 3 );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
maCurrentSoundFile = aEffect.maSound;
}
}
else
{
maLB_SOUND.SelectEntryPos( 0 );
}
}
if( aEffect.mbLoopSoundAmbiguous )
{
maCB_LOOP_SOUND.SetState( STATE_DONTKNOW );
}
else
{
maCB_LOOP_SOUND.Check( aEffect.mbLoopSound );
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( aEffect.mbPresChangeAmbiguous )
{
maRB_ADVANCE_ON_MOUSE.Check( sal_False );
maRB_ADVANCE_AUTO.Check( sal_False );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
else
{
maRB_ADVANCE_ON_MOUSE.Check( aEffect.mePresChange == PRESCHANGE_MANUAL );
maRB_ADVANCE_AUTO.Check( aEffect.mePresChange == PRESCHANGE_AUTO );
maMF_ADVANCE_AUTO_AFTER.SetValue( aEffect.mfTime * 100.0);
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS);
maCB_AUTO_PREVIEW.Check( pOptions->IsPreviewTransitions() == sal_True );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
mbUpdatingControls = false;
updateControlState();
}
void SlideTransitionPane::updateControlState()
{
maLB_SLIDE_TRANSITIONS.Enable( mbHasSelection );
maLB_SPEED.Enable( mbHasSelection );
maLB_SOUND.Enable( mbHasSelection );
maCB_LOOP_SOUND.Enable( mbHasSelection && (maLB_SOUND.GetSelectEntryPos() > 2));
maRB_ADVANCE_ON_MOUSE.Enable( mbHasSelection );
maRB_ADVANCE_AUTO.Enable( mbHasSelection );
maMF_ADVANCE_AUTO_AFTER.Enable( mbHasSelection && maRB_ADVANCE_AUTO.IsChecked());
maPB_APPLY_TO_ALL.Enable( mbHasSelection );
maPB_PLAY.Enable( mbHasSelection );
maCB_AUTO_PREVIEW.Enable( mbHasSelection );
}
void SlideTransitionPane::updateSoundList()
{
::std::vector< String > aSoundList;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
GalleryExplorer::FillObjList( GALLERY_THEME_SOUNDS, aSoundList );
GalleryExplorer::FillObjList( GALLERY_THEME_USERSOUNDS, aSoundList );
size_t nCount = aSoundList.size();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
maSoundList.clear();
maSoundList.reserve( nCount );
for( size_t i =0 ; i < nCount; ++i )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
// store copy of string in member list
maSoundList.push_back( aSoundList[ i ] );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
lcl_FillSoundListBox( maSoundList, maLB_SOUND );
}
void SlideTransitionPane::openSoundFileDialog()
{
if( ! maLB_SOUND.IsEnabled())
return;
SdOpenSoundFileDialog aFileDialog;
String aFile;
DBG_ASSERT( maLB_SOUND.GetSelectEntryPos() == 2,
"Dialog should only open when \"Other sound\" is selected" );
aFile = SvtPathOptions().GetGraphicPath();
aFileDialog.SetPath( aFile );
bool bValidSoundFile( false );
bool bQuitLoop( false );
while( ! bQuitLoop &&
aFileDialog.Execute() == ERRCODE_NONE )
{
aFile = aFileDialog.GetPath();
tSoundListType::size_type nPos = 0;
bValidSoundFile = lcl_findSoundInList( maSoundList, aFile, nPos );
if( bValidSoundFile )
{
bQuitLoop = true;
}
else // not in sound list
{
// try to insert into gallery
if( GalleryExplorer::InsertURL( GALLERY_THEME_USERSOUNDS, aFile ) )
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
updateSoundList();
bValidSoundFile = lcl_findSoundInList( maSoundList, aFile, nPos );
DBG_ASSERT( bValidSoundFile, "Adding sound to gallery failed" );
bQuitLoop = true;
}
else
{
String aStrWarning(SdResId(STR_WARNING_NOSOUNDFILE));
OUString aStr('%');
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
aStrWarning.SearchAndReplace( aStr , aFile );
WarningBox aWarningBox( NULL, WB_3DLOOK | WB_RETRY_CANCEL, aStrWarning );
aWarningBox.SetModalInputMode (sal_True);
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
bQuitLoop = (aWarningBox.Execute() != RET_RETRY);
bValidSoundFile = false;
}
}
if( bValidSoundFile )
// skip first three entries in list
maLB_SOUND.SelectEntryPos( (sal_uInt16)nPos + 3 );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
if( ! bValidSoundFile )
{
if( maCurrentSoundFile.Len() > 0 )
{
tSoundListType::size_type nPos = 0;
if( lcl_findSoundInList( maSoundList, maCurrentSoundFile, nPos ))
maLB_SOUND.SelectEntryPos( (sal_uInt16)nPos + 3 );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
else
maLB_SOUND.SelectEntryPos( 0 ); // NONE
}
else
maLB_SOUND.SelectEntryPos( 0 ); // NONE
}
}
impl::TransitionEffect SlideTransitionPane::getTransitionEffectFromControls() const
{
impl::TransitionEffect aResult;
aResult.setAllAmbiguous();
// check first (aResult might be overwritten)
if( maLB_SLIDE_TRANSITIONS.IsEnabled() &&
maLB_SLIDE_TRANSITIONS.GetSelectEntryCount() > 0 )
{
TransitionPresetPtr pPreset = lcl_getTransitionPresetByUIName(
mpDrawDoc, OUString( maLB_SLIDE_TRANSITIONS.GetSelectEntry()));
if( pPreset.get())
{
aResult = impl::TransitionEffect( *pPreset );
aResult.setAllAmbiguous();
}
else
{
aResult.mnType = 0;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
aResult.mbEffectAmbiguous = false;
}
// speed
if( maLB_SPEED.IsEnabled() &&
maLB_SPEED.GetSelectEntryCount() > 0 )
{
sal_uInt16 nPos = maLB_SPEED.GetSelectEntryPos();
aResult.mfDuration = (nPos == 0)
? 3.0
: (nPos == 1)
? 2.0
: 1.0; // nPos == 2
DBG_ASSERT( aResult.mfDuration != 1.0 || nPos == 2, "Invalid Listbox Entry" );
aResult.mbDurationAmbiguous = false;
}
// slide-advance mode
if( maRB_ADVANCE_ON_MOUSE.IsEnabled() && maRB_ADVANCE_AUTO.IsEnabled() &&
(maRB_ADVANCE_ON_MOUSE.IsChecked() || maRB_ADVANCE_AUTO.IsChecked()))
{
if( maRB_ADVANCE_ON_MOUSE.IsChecked())
aResult.mePresChange = PRESCHANGE_MANUAL;
else
{
aResult.mePresChange = PRESCHANGE_AUTO;
if( maMF_ADVANCE_AUTO_AFTER.IsEnabled())
{
aResult.mfTime = static_cast<double>(maMF_ADVANCE_AUTO_AFTER.GetValue() ) / 100.0 ;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
aResult.mbTimeAmbiguous = false;
}
}
aResult.mbPresChangeAmbiguous = false;
}
// sound
if( maLB_SOUND.IsEnabled())
{
maCurrentSoundFile.Erase();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
if( maLB_SOUND.GetSelectEntryCount() > 0 )
{
sal_uInt16 nPos = maLB_SOUND.GetSelectEntryPos();
aResult.mbStopSound = nPos == 1;
aResult.mbSoundOn = nPos > 1;
if( aResult.mbStopSound )
{
aResult.maSound = OUString();
aResult.mbSoundAmbiguous = false;
}
else
{
aResult.maSound = lcl_getSoundFileURL( maSoundList, maLB_SOUND );
aResult.mbSoundAmbiguous = false;
maCurrentSoundFile = aResult.maSound;
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
}
// sound loop
if( maCB_LOOP_SOUND.IsEnabled() )
{
aResult.mbLoopSound = maCB_LOOP_SOUND.IsChecked();
aResult.mbLoopSoundAmbiguous = false;
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
return aResult;
}
void SlideTransitionPane::applyToSelectedPages()
{
if( ! mbUpdatingControls )
{
::sd::slidesorter::SharedPageSelection pSelectedPages( getSelectedPages());
if( ! pSelectedPages->empty())
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
lcl_CreateUndoForPages( pSelectedPages, mrBase );
lcl_ApplyToPages( pSelectedPages, getTransitionEffectFromControls() );
mrBase.GetDocShell()->SetModified();
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
if( maCB_AUTO_PREVIEW.IsEnabled() &&
maCB_AUTO_PREVIEW.IsChecked())
{
playCurrentEffect();
}
}
}
void SlideTransitionPane::playCurrentEffect()
{
if( mxView.is() )
{
Reference< ::com::sun::star::animations::XAnimationNode > xNode;
SlideShow::StartPreview( mrBase, mxView->getCurrentPage(), xNode );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
}
void SlideTransitionPane::addListener()
{
Link aLink( LINK(this,SlideTransitionPane,EventMultiplexerListener) );
mrBase.GetEventMultiplexer()->AddEventListener (
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
aLink,
tools::EventMultiplexerEvent::EID_EDIT_VIEW_SELECTION
| tools::EventMultiplexerEvent::EID_SLIDE_SORTER_SELECTION
| tools::EventMultiplexerEvent::EID_CURRENT_PAGE
| tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED
| tools::EventMultiplexerEvent::EID_MAIN_VIEW_ADDED
| tools::EventMultiplexerEvent::EID_CONFIGURATION_UPDATED);
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
void SlideTransitionPane::removeListener()
{
Link aLink( LINK(this,SlideTransitionPane,EventMultiplexerListener) );
mrBase.GetEventMultiplexer()->RemoveEventListener( aLink );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
IMPL_LINK(SlideTransitionPane,EventMultiplexerListener,
tools::EventMultiplexerEvent*,pEvent)
{
switch (pEvent->meEventId)
{
case tools::EventMultiplexerEvent::EID_EDIT_VIEW_SELECTION:
onSelectionChanged();
break;
case tools::EventMultiplexerEvent::EID_CURRENT_PAGE:
case tools::EventMultiplexerEvent::EID_SLIDE_SORTER_SELECTION:
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
onChangeCurrentPage();
break;
case tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED:
mxView = Reference<drawing::XDrawView>();
onSelectionChanged();
onChangeCurrentPage();
break;
case tools::EventMultiplexerEvent::EID_MAIN_VIEW_ADDED:
mbIsMainViewChangePending = true;
break;
case tools::EventMultiplexerEvent::EID_CONFIGURATION_UPDATED:
if (mbIsMainViewChangePending)
{
mbIsMainViewChangePending = false;
// At this moment the controller may not yet been set at
// model or ViewShellBase. Take it from the view shell
// passed with the event.
if (mrBase.GetMainViewShell() != 0)
{
mxView = Reference<drawing::XDrawView>::query(mrBase.GetController());
onSelectionChanged();
onChangeCurrentPage();
}
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
break;
default:
break;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, ApplyToAllButtonClicked)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
DBG_ASSERT( mpDrawDoc, "Invalid Draw Document!" );
if( !mpDrawDoc )
return 0;
::sd::slidesorter::SharedPageSelection pPages (
new ::sd::slidesorter::SlideSorterViewShell::PageSelection());
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
sal_uInt16 nPageCount = mpDrawDoc->GetSdPageCount( PK_STANDARD );
pPages->reserve( nPageCount );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
for( sal_uInt16 i=0; i<nPageCount; ++i )
{
SdPage * pPage = mpDrawDoc->GetSdPage( i, PK_STANDARD );
if( pPage )
pPages->push_back( pPage );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
if( ! pPages->empty())
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
lcl_CreateUndoForPages( pPages, mrBase );
lcl_ApplyToPages( pPages, getTransitionEffectFromControls() );
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
}
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, PlayButtonClicked)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
playCurrentEffect();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, SlideShowButtonClicked)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
mrBase.StartPresentation();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, TransitionSelected)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, AdvanceSlideRadioButtonToggled)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
updateControlState();
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, AdvanceTimeModified)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, SpeedListBoxSelected)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, SoundListBoxSelected)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
if( maLB_SOUND.GetSelectEntryCount() )
{
sal_uInt16 nPos = maLB_SOUND.GetSelectEntryPos();
if( nPos == 2 )
{
// other sound ...
openSoundFileDialog();
}
}
updateControlState();
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, LoopSoundBoxChecked)
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
{
applyToSelectedPages();
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, AutoPreviewClicked)
{
SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS);
pOptions->SetPreviewTransitions( maCB_AUTO_PREVIEW.IsChecked() ? sal_True : sal_False );
return 0;
}
IMPL_LINK_NOARG(SlideTransitionPane, LateInitCallback)
{
const TransitionPresetList& rPresetList = TransitionPreset::getTransitionPresetList();
TransitionPresetList::const_iterator aIter( rPresetList.begin() );
const TransitionPresetList::const_iterator aEnd( rPresetList.end() );
sal_uInt16 nIndex = 0;
::std::size_t nUIIndex = 0;
while( aIter != aEnd )
{
TransitionPresetPtr pPreset = (*aIter++);
const OUString aUIName( pPreset->getUIName() );
if( !aUIName.isEmpty() )
{
maLB_SLIDE_TRANSITIONS.InsertEntry( aUIName );
m_aPresetIndexes[ nIndex ] = (sal_uInt16)nUIIndex;
++nUIIndex;
}
++nIndex;
}
updateSoundList();
updateControls();
return 0;
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
::Window * createSlideTransitionPanel( ::Window* pParent, ViewShellBase& rBase )
{
DialogListBox* pWindow = 0;
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
DrawDocShell* pDocSh = rBase.GetDocShell();
if( pDocSh )
{
pWindow = new DialogListBox( pParent, WB_CLIPCHILDREN|WB_TABSTOP|WB_AUTOHSCROLL );
Size aMinSize( pWindow->LogicToPixel( Size( 72, 216 ), MAP_APPFONT ) );
::Window* pPaneWindow = new SlideTransitionPane( pWindow, rBase, aMinSize, pDocSh->GetDoc() );
pWindow->SetChildWindow( pPaneWindow, aMinSize );
pWindow->SetText( pPaneWindow->GetText() );
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
return pWindow;
}
Resolves: #i121420# merge sidebar feature (cherry picked from commit 0a0a9b32aa5bf1ce2554ad37cbba3c7a105db2b5) Conflicts: chart2/source/controller/dialogs/dlg_View3D.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx chart2/source/controller/drawinglayer/ViewElementListProvider.cxx chart2/source/controller/inc/ViewElementListProvider.hxx chart2/source/controller/inc/dlg_View3D.hxx chart2/source/controller/main/ShapeController.cxx chart2/source/inc/chartview/DrawModelWrapper.hxx chart2/source/view/main/DrawModelWrapper.cxx cui/source/inc/border.hxx cui/source/inc/cuitabarea.hxx cui/source/inc/cuitabline.hxx cui/source/inc/sdrcelldlg.hxx cui/source/inc/treeopt.hxx cui/source/options/optchart.cxx cui/source/options/optchart.hxx cui/source/options/optcolor.cxx cui/source/options/treeopt.cxx cui/source/tabpages/backgrnd.cxx cui/source/tabpages/border.cxx cui/source/tabpages/chardlg.cxx cui/source/tabpages/numpages.cxx cui/source/tabpages/tpcolor.cxx cui/source/tabpages/tplneend.cxx editeng/inc/editeng/outliner.hxx extensions/source/propctrlr/standardcontrol.cxx framework/source/register/registerservices.cxx offapi/com/sun/star/ui/makefile.mk officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu officecfg/registry/data/org/openoffice/Office/UI/makefile.mk officecfg/registry/schema/org/openoffice/Office/UI/makefile.mk postprocess/packregistry/makefile.mk reportdesign/source/ui/dlg/Condition.cxx reportdesign/source/ui/misc/UITools.cxx sc/inc/document.hxx sc/inc/helpids.h sc/inc/sc.hrc sc/prj/build.lst sc/sdi/scalc.sdi sc/source/core/data/documen9.cxx sc/source/core/data/drwlayer.cxx sc/source/ui/app/scdll.cxx sc/source/ui/app/typemap.cxx sc/source/ui/dbgui/scendlg.cxx sc/source/ui/docshell/docsh2.cxx sc/source/ui/docshell/docsh4.cxx sc/source/ui/drawfunc/chartsh.cxx sc/source/ui/drawfunc/drawsh.cxx sc/source/ui/drawfunc/drawsh2.cxx sc/source/ui/drawfunc/drawsh4.cxx sc/source/ui/drawfunc/drformsh.cxx sc/source/ui/drawfunc/drtxtob.cxx sc/source/ui/drawfunc/drtxtob1.cxx sc/source/ui/drawfunc/drtxtob2.cxx sc/source/ui/drawfunc/graphsh.cxx sc/source/ui/drawfunc/oleobjsh.cxx sc/source/ui/inc/chartsh.hxx sc/source/ui/inc/formatsh.hxx sc/source/ui/miscdlgs/tabbgcolordlg.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/optdlg/opredlin.cxx sc/source/ui/optdlg/tpview.cxx sc/source/ui/sidebar/makefile.mk sc/source/ui/view/auditsh.cxx sc/source/ui/view/cellsh.cxx sc/source/ui/view/editsh.cxx sc/source/ui/view/formatsh.cxx sc/source/ui/view/pivotsh.cxx sc/source/ui/view/tabvwsh.cxx sc/util/makefile.mk sd/inc/sdabstdlg.hxx sd/prj/build.lst sd/sdi/ToolPanelViewShell.sdi sd/sdi/makefile.mk sd/source/ui/accessibility/makefile.mk sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/dlg/PaneChildWindows.cxx sd/source/ui/dlg/PaneShells.cxx sd/source/ui/dlg/copydlg.cxx sd/source/ui/dlg/navigatr.cxx sd/source/ui/dlg/sddlgfact.cxx sd/source/ui/dlg/sddlgfact.hxx sd/source/ui/docshell/docshel3.cxx sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx sd/source/ui/framework/factories/TaskPanelFactory.cxx sd/source/ui/framework/factories/TaskPanelFactory.hxx sd/source/ui/framework/factories/ViewShellWrapper.cxx sd/source/ui/framework/factories/makefile.mk sd/source/ui/framework/module/ImpressModule.cxx sd/source/ui/framework/module/ToolPanelModule.cxx sd/source/ui/framework/tools/FrameworkHelper.cxx sd/source/ui/func/fuolbull.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/PaneChildWindows.hxx sd/source/ui/inc/celltempl.hxx sd/source/ui/inc/copydlg.hxx sd/source/ui/inc/dlgpage.hxx sd/source/ui/inc/framework/FrameworkHelper.hxx sd/source/ui/inc/prltempl.hxx sd/source/ui/inc/tabtempl.hxx sd/source/ui/inc/taskpane/ILayoutableWindow.hxx sd/source/ui/inc/taskpane/PanelId.hxx sd/source/ui/inc/tpaction.hxx sd/source/ui/sidebar/AllMasterPagesSelector.cxx sd/source/ui/sidebar/AllMasterPagesSelector.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/DocumentHelper.cxx sd/source/ui/sidebar/DocumentHelper.hxx sd/source/ui/sidebar/LayoutMenu.cxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPageContainer.cxx sd/source/ui/sidebar/MasterPageContainer.hxx sd/source/ui/sidebar/MasterPageContainerFiller.cxx sd/source/ui/sidebar/MasterPageContainerFiller.hxx sd/source/ui/sidebar/MasterPageContainerProviders.cxx sd/source/ui/sidebar/MasterPageContainerProviders.hxx sd/source/ui/sidebar/MasterPageContainerQueue.cxx sd/source/ui/sidebar/MasterPageContainerQueue.hxx sd/source/ui/sidebar/MasterPageDescriptor.cxx sd/source/ui/sidebar/MasterPageDescriptor.hxx sd/source/ui/sidebar/MasterPageObserver.cxx sd/source/ui/sidebar/MasterPagesSelector.cxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/PreviewValueSet.cxx sd/source/ui/sidebar/PreviewValueSet.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx sd/source/ui/sidebar/SidebarShellManager.cxx sd/source/ui/sidebar/SlideTransitionPanel.hxx sd/source/ui/sidebar/makefile.mk sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx sd/source/ui/table/TableDesignPane.hxx sd/source/ui/toolpanel/ControlContainer.cxx sd/source/ui/toolpanel/ControlContainerDescriptor.hxx sd/source/ui/toolpanel/MethodGuard.hxx sd/source/ui/toolpanel/ScrollPanel.cxx sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx sd/source/ui/toolpanel/SubToolPanel.cxx sd/source/ui/toolpanel/TaskPaneFocusManager.cxx sd/source/ui/toolpanel/TaskPaneTreeNode.cxx sd/source/ui/toolpanel/TitleBar.cxx sd/source/ui/toolpanel/TitledControl.cxx sd/source/ui/toolpanel/ToolPanel.cxx sd/source/ui/toolpanel/ToolPanel.hxx sd/source/ui/toolpanel/ToolPanelFactory.cxx sd/source/ui/toolpanel/ToolPanelUIElement.cxx sd/source/ui/toolpanel/ToolPanelUIElement.hxx sd/source/ui/toolpanel/ToolPanelViewShell.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx sd/source/ui/toolpanel/controls/TableDesignPanel.cxx sd/source/ui/toolpanel/controls/TableDesignPanel.hxx sd/source/ui/unoidl/UnoDocumentSettings.cxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drtxtob.cxx sd/source/ui/view/drviews3.cxx sd/source/ui/view/drviews7.cxx sd/source/ui/view/drviewsa.cxx sd/source/ui/view/drviewsf.cxx sd/source/ui/view/outlnvsh.cxx sd/source/ui/view/sdview.cxx sd/source/ui/view/viewshel.cxx sd/uiconfig/sdraw/menubar/menubar.xml sd/util/makefile.mk sfx2/Package_inc.mk sfx2/inc/sfx2/sfx.hrc sfx2/inc/sfx2/sfxsids.hrc sfx2/source/control/bindings.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/inc/templdgi.hxx svx/AllLangResTarget_svx.mk svx/Package_inc.mk svx/inc/svx/XPropertyTable.hxx svx/inc/svx/bmpmask.hxx svx/inc/svx/colrctrl.hxx svx/inc/svx/dialogs.hrc svx/inc/svx/dlgctrl.hxx svx/inc/svx/dlgutil.hxx svx/inc/svx/drawitem.hxx svx/inc/svx/fontwork.hxx svx/inc/svx/galbrws.hxx svx/inc/svx/sdr/table/tablecontroller.hxx svx/inc/svx/svdmodel.hxx svx/inc/svx/svdstr.hrc svx/inc/svx/svxids.hrc svx/inc/svx/svxitems.hrc svx/inc/svx/xattr.hxx svx/inc/svx/xflgrit.hxx svx/inc/svx/xflhtit.hxx svx/inc/svx/xit.hxx svx/inc/svx/xlineit.hxx svx/inc/svx/xlndsit.hxx svx/inc/svx/xlnedit.hxx svx/inc/svx/xlnstit.hxx svx/inc/svx/xtable.hxx svx/sdi/svx.sdi svx/source/dialog/_bmpmask.cxx svx/source/dialog/dialcontrol.cxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/dlgutil.cxx svx/source/dialog/fontwork.cxx svx/source/gallery2/galbrws.cxx svx/source/gallery2/galbrws1.cxx svx/source/gallery2/gallery1.cxx svx/source/items/drawitem.cxx svx/source/items/svxitems.src svx/source/sdr/attribute/sdrformtextattribute.cxx svx/source/sidebar/ColorPanel.hxx svx/source/sidebar/EmptyPanel.hrc svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/gallery/GalleryPanel.hxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdmodel.cxx svx/source/svdraw/svdogrp.cxx svx/source/svdraw/svdstr.src svx/source/tbxctrls/tbcontrl.cxx svx/source/unodraw/XPropertyTable.cxx svx/source/unodraw/unoctabl.cxx svx/source/xoutdev/XPropertyEntry.cxx svx/source/xoutdev/xattr.cxx svx/source/xoutdev/xattr2.cxx svx/source/xoutdev/xtabbtmp.cxx svx/source/xoutdev/xtabcolr.cxx svx/source/xoutdev/xtabdash.cxx svx/source/xoutdev/xtabgrdt.cxx svx/source/xoutdev/xtabhtch.cxx svx/source/xoutdev/xtable.cxx svx/source/xoutdev/xtablend.cxx svx/util/svx.component sw/inc/cmdid.h sw/inc/docsh.hxx sw/inc/editsh.hxx sw/inc/helpid.h sw/inc/rcid.hrc sw/inc/swabstdlg.hxx sw/inc/swcommands.h sw/sdi/swriter.sdi sw/source/core/doc/docdesc.cxx sw/source/core/draw/drawdoc.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/app/docshdrw.cxx sw/source/ui/app/docshini.cxx sw/source/ui/app/docst.cxx sw/source/ui/config/optpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/dialog/swdlgfact.hxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/inc/tmpdlg.hxx sw/source/ui/misc/pggrid.cxx sw/source/ui/shells/annotsh.cxx sw/source/ui/shells/basesh.cxx sw/source/ui/shells/beziersh.cxx sw/source/ui/shells/drawdlg.cxx sw/source/ui/shells/drawsh.cxx sw/source/ui/shells/drformsh.cxx sw/source/ui/shells/drwbassh.cxx sw/source/ui/shells/drwtxtex.cxx sw/source/ui/shells/drwtxtsh.cxx sw/source/ui/shells/frmsh.cxx sw/source/ui/shells/grfsh.cxx sw/source/ui/shells/olesh.cxx sw/source/ui/shells/tabsh.cxx sw/source/ui/shells/textsh.cxx sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/txtnum.cxx sw/source/ui/uiview/viewtab.cxx sw/source/ui/uno/unofreg.cxx sw/source/ui/utlui/navipi.cxx sw/util/sw.component vcl/inc/vcl/split.hxx vcl/inc/vcl/window.hxx vcl/inc/window.h vcl/source/window/split.cxx vcl/source/window/window.cxx vcl/source/window/window4.cxx Change-Id: Idebaff59f9d60e4e93290cefefdda4c5a1e9215e Resolves: #i122194# Adapted license text in propertypanel.hrc then renamed it to ResourceDefinitions.hrc (cherry picked from commit e952d1401c1adc41934118ba7f542611ef9da11b) Conflicts: sfx2/Package_inc.mk sfx2/source/sidebar/SidebarChildWindow.cxx svx/source/sidebar/graphic/GraphicPropertyPanel.cxx svx/source/sidebar/line/LinePropertyPanel.cxx svx/source/sidebar/possize/PosSizePropertyPanel.cxx sw/source/ui/sidebar/PagePropertyPanel.src sw/source/ui/sidebar/WrapPropertyPanel.src Change-Id: Ie009056a78ab108556717a501399c83b477b3548 Resolves: #i122194# finally I got the correct file name Change-Id: If7a075af8c9a829f6f0a69f883c5c6d4ac97ba2a More merge changes for optional sidebar: revert toolpanel removal, restore and re-enable task pane remove apparently un-used SidebarFactory module add extra visibility annotation to ItemReceiverUpdate
2013-04-10 08:20:16 +00:00
sal_Int32 getSlideTransitionPanelMinimumHeight (::Window* pDialog)
{
if (pDialog != NULL)
return pDialog->LogicToPixel(Size( 72, 216 ), MAP_APPFONT).Height();
else
return 0;
}
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED 2004/09/30 20:51:22 cl 1.1.2.20: fixed linux compile issue 2004/09/29 16:28:46 af 1.1.2.19: #i34804# Using new EventMultiplexer class. 2004/09/27 20:24:53 cl 1.1.2.18: added slide transition undo 2004/09/26 19:01:43 cl 1.1.2.17: added animation undo 2004/09/22 13:02:54 cl 1.1.2.16: added support for XCommand 2004/09/02 09:14:17 cl 1.1.2.15: moved effect and transition presets access to a singleton 2004/09/01 09:25:18 thb 1.1.2.14: #110496# Fixed order of calls (updateSoundList must happen before updateControls) 2004/08/28 22:41:26 cl 1.1.2.13: removed old presentation code 2004/08/26 09:37:59 bm 1.1.2.12: width of speed fixed-text was incorrect 2004/08/25 15:03:54 bm 1.1.2.11: auto play of current effect is not wanted on selection change 2004/08/25 14:55:31 bm 1.1.2.10: final implementation, except correct selection handling (base functionality missing 2004/08/24 12:51:13 bm 1.1.2.9: avoid temporary for controls in CTOR (illegal, because copy-CTOR of OutputDevice is private) 2004/08/24 12:39:08 bm 1.1.2.8: sound list 2004/08/20 15:17:52 bm 1.1.2.7: controls are set from selected pages, applying changes does not work yet 2004/08/19 16:58:30 bm 1.1.2.6: typo! 2004/08/19 16:49:13 bm 1.1.2.5: implementation 2004/08/19 10:01:44 cl 1.1.2.4: new helper for transition presets 2004/08/18 13:53:14 bm 1.1.2.3: layout improvements 2004/08/18 10:35:20 bm 1.1.2.2: first UI layout 2004/08/17 11:48:30 bm 1.1.2.1: new pane for slide transitions
2004-11-26 18:56:28 +00:00
} // namespace sd
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */