2004-07-13 13:16:34 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* $RCSfile: SlsSlotManager.cxx,v $
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2008-01-28 13:56:24 +00:00
|
|
|
* $Revision: 1.31 $
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2008-01-28 13:56:24 +00:00
|
|
|
* last change: $Author: vg $ $Date: 2008-01-28 14:56:24 $
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
2005-09-09 05:16:58 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2004-07-13 13:16:34 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
2006-09-16 18:07:59 +00:00
|
|
|
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sd.hxx"
|
2007-04-03 15:18:06 +00:00
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "SlsSlotManager.hxx"
|
|
|
|
|
|
|
|
#include "SlideSorterViewShell.hxx"
|
|
|
|
#include "controller/SlideSorterController.hxx"
|
|
|
|
#include "controller/SlsPageSelector.hxx"
|
|
|
|
#include "controller/SlsClipboard.hxx"
|
|
|
|
#include "controller/SlsSelectionFunction.hxx"
|
|
|
|
#include "controller/SlsFocusManager.hxx"
|
|
|
|
#include "SlsHideSlideFunction.hxx"
|
2005-03-23 13:00:11 +00:00
|
|
|
#include "SlsCommand.hxx"
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "model/SlideSorterModel.hxx"
|
|
|
|
#include "model/SlsPageDescriptor.hxx"
|
|
|
|
#include "model/SlsPageEnumeration.hxx"
|
|
|
|
#include "view/SlideSorterView.hxx"
|
|
|
|
#include "view/SlsLayouter.hxx"
|
|
|
|
#include "view/SlsViewOverlay.hxx"
|
2007-04-03 15:18:06 +00:00
|
|
|
#include "framework/FrameworkHelper.hxx"
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "Window.hxx"
|
|
|
|
#include "fupoor.hxx"
|
|
|
|
#include "fuzoom.hxx"
|
|
|
|
#include "fucushow.hxx"
|
|
|
|
#include "fusldlg.hxx"
|
|
|
|
#include "fuexpand.hxx"
|
|
|
|
#include "fusumry.hxx"
|
|
|
|
#include "fuscale.hxx"
|
2004-11-26 19:21:56 +00:00
|
|
|
#include "slideshow.hxx"
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "app.hrc"
|
|
|
|
#include "strings.hrc"
|
|
|
|
#include "sdresid.hxx"
|
|
|
|
#include "drawdoc.hxx"
|
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#include "ViewShellBase.hxx"
|
2005-04-27 07:55:29 +00:00
|
|
|
#include "ViewShellImplementation.hxx"
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "sdattr.hxx"
|
|
|
|
#include "PresentationViewShell.hxx"
|
2004-11-26 19:21:56 +00:00
|
|
|
#include "TaskPaneViewShell.hxx"
|
2004-07-13 13:16:34 +00:00
|
|
|
#include "FrameView.hxx"
|
|
|
|
#include "zoomlist.hxx"
|
|
|
|
#include "sdpage.hxx"
|
|
|
|
#include "sdxfer.hxx"
|
|
|
|
#include "helpids.h"
|
|
|
|
#include "glob.hrc"
|
|
|
|
#include "unmodpg.hxx"
|
|
|
|
|
|
|
|
#include <sfx2/request.hxx>
|
|
|
|
#include <sfx2/viewfrm.hxx>
|
|
|
|
#include <sfx2/topfrm.hxx>
|
|
|
|
#include <sfx2/bindings.hxx>
|
|
|
|
#include <sfx2/dispatch.hxx>
|
|
|
|
#include <svx/svxids.hrc>
|
|
|
|
#include <svx/zoomitem.hxx>
|
2004-10-28 12:30:12 +00:00
|
|
|
#include <svx/svxdlg.hxx>
|
|
|
|
#include <svx/dialogs.hrc>
|
2004-07-13 13:16:34 +00:00
|
|
|
#include <vcl/msgbox.hxx>
|
|
|
|
#include <svtools/intitem.hxx>
|
|
|
|
#include <svtools/whiter.hxx>
|
|
|
|
#include <svtools/itempool.hxx>
|
|
|
|
#include <svtools/aeitem.hxx>
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_FADEEFFECT_HPP_
|
2004-07-13 13:16:34 +00:00
|
|
|
#include <com/sun/star/presentation/FadeEffect.hpp>
|
2004-10-28 12:30:12 +00:00
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_DRAWING_XMASTERPAGESSUPPLIER_HPP_
|
|
|
|
#include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGES_HPP_
|
|
|
|
#include <com/sun/star/drawing/XDrawPages.hpp>
|
|
|
|
#endif
|
2004-07-13 13:16:34 +00:00
|
|
|
|
2006-11-14 13:36:09 +00:00
|
|
|
#ifndef _SV_SVAPP_HXX
|
|
|
|
#include <vcl/svapp.hxx>
|
|
|
|
#endif
|
|
|
|
|
2004-10-28 12:30:12 +00:00
|
|
|
using namespace ::com::sun::star;
|
|
|
|
using namespace ::com::sun::star::uno;
|
2004-07-13 13:16:34 +00:00
|
|
|
|
2007-04-03 15:18:06 +00:00
|
|
|
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
namespace sd { namespace slidesorter { namespace controller {
|
|
|
|
|
2007-04-03 15:18:06 +00:00
|
|
|
/** Callback for the asynchronous start of a slide show.
|
|
|
|
*/
|
|
|
|
class SlideShowCallback
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SlideShowCallback (ViewShellBase& rBase, const SfxRequest& rRequest);
|
|
|
|
~SlideShowCallback (void);
|
|
|
|
DECL_LINK(Callback, void*);
|
|
|
|
|
|
|
|
private:
|
|
|
|
ViewShellBase& mrBase;
|
|
|
|
SfxRequest maRequest;
|
|
|
|
sal_uInt32 mnCallbackId;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
SlotManager::SlotManager (SlideSorterController& rController)
|
2007-04-03 15:18:06 +00:00
|
|
|
: mrController(rController),
|
|
|
|
maCommandQueue()
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SlotManager::~SlotManager (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::FuTemporary (SfxRequest& rRequest)
|
|
|
|
{
|
|
|
|
SdDrawDocument* pDocument = mrController.GetModel().GetDocument();
|
|
|
|
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
2005-12-14 16:21:34 +00:00
|
|
|
if (rShell.GetCurrentFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.GetCurrentFunction()->Deactivate();
|
|
|
|
FunctionReference xEmpty;
|
|
|
|
rShell.SetCurrentFunction(xEmpty);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
switch (rRequest.GetSlot())
|
|
|
|
{
|
|
|
|
case SID_PRESENTATION:
|
|
|
|
case SID_REHEARSE_TIMINGS:
|
2007-04-03 15:18:06 +00:00
|
|
|
ShowSlideShow(rRequest);
|
2005-03-23 13:00:11 +00:00
|
|
|
rShell.Cancel();
|
2004-07-13 13:16:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_HIDE_SLIDE:
|
2006-12-12 15:08:38 +00:00
|
|
|
case SID_SHOW_SLIDE:
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.SetCurrentFunction( HideSlideFunction::Create( mrController, rRequest));
|
2004-07-13 13:16:34 +00:00
|
|
|
rShell.Cancel();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_PAGES_PER_ROW:
|
|
|
|
if (rRequest.GetArgs() != NULL)
|
|
|
|
{
|
|
|
|
SFX_REQUEST_ARG(rRequest, pPagesPerRow, SfxUInt16Item,
|
|
|
|
SID_PAGES_PER_ROW, FALSE);
|
|
|
|
if (pPagesPerRow != NULL)
|
|
|
|
{
|
|
|
|
sal_Int32 nColumnCount = pPagesPerRow->GetValue();
|
|
|
|
// Force the given number of columns by setting the
|
|
|
|
// minimal and maximal number of columns to the same
|
|
|
|
// value.
|
|
|
|
mrController.GetView().GetLayouter().SetColumnCount (
|
|
|
|
nColumnCount, nColumnCount);
|
|
|
|
// Force a repaint and re-layout.
|
|
|
|
rShell.ArrangeGUIElements ();
|
2005-04-12 15:57:39 +00:00
|
|
|
// Rearrange the UI-elements controlled by the
|
|
|
|
// controller and force a rearrangement of the view.
|
|
|
|
mrController.Rearrange(true);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_SELECTALL:
|
|
|
|
mrController.GetPageSelector().SelectAllPages();
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
2004-11-26 19:21:56 +00:00
|
|
|
case SID_SLIDE_TRANSITIONS_PANEL:
|
|
|
|
{
|
|
|
|
// Make the slide transition panel visible (expand it) in the
|
|
|
|
// tool pane.
|
2007-04-03 15:18:06 +00:00
|
|
|
framework::FrameworkHelper::Instance(mrController.GetViewShell().GetViewShellBase())
|
|
|
|
->RequestTaskPanel(sd::framework::FrameworkHelper::msSlideTransitionTaskPanelURL);
|
2004-07-13 13:16:34 +00:00
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Ignore ();
|
|
|
|
break;
|
2004-11-26 19:21:56 +00:00
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
case SID_PRESENTATION_DLG:
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.SetCurrentFunction(
|
|
|
|
FuSlideShowDlg::Create (
|
2004-07-13 13:16:34 +00:00
|
|
|
&rShell,
|
|
|
|
mrController.GetView().GetWindow(),
|
|
|
|
&mrController.GetView(),
|
|
|
|
pDocument,
|
|
|
|
rRequest));
|
|
|
|
rShell.Cancel();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_CUSTOMSHOW_DLG:
|
|
|
|
rShell.SetCurrentFunction (
|
2005-12-14 16:21:34 +00:00
|
|
|
FuCustomShowDlg::Create (
|
2004-07-13 13:16:34 +00:00
|
|
|
&rShell,
|
|
|
|
mrController.GetView().GetWindow(),
|
|
|
|
&mrController.GetView(),
|
|
|
|
pDocument,
|
|
|
|
rRequest));
|
|
|
|
rShell.Cancel();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_EXPAND_PAGE:
|
|
|
|
rShell.SetCurrentFunction (
|
2005-12-14 16:21:34 +00:00
|
|
|
FuExpandPage::Create (
|
2004-07-13 13:16:34 +00:00
|
|
|
&rShell,
|
|
|
|
mrController.GetView().GetWindow(),
|
|
|
|
&mrController.GetView(),
|
|
|
|
pDocument,
|
|
|
|
rRequest));
|
|
|
|
rShell.Cancel();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_SUMMARY_PAGE:
|
|
|
|
rShell.SetCurrentFunction (
|
2005-12-14 16:21:34 +00:00
|
|
|
FuSummaryPage::Create (
|
2004-07-13 13:16:34 +00:00
|
|
|
&rShell,
|
|
|
|
mrController.GetView().GetWindow(),
|
|
|
|
&mrController.GetView(),
|
|
|
|
pDocument,
|
|
|
|
rRequest));
|
|
|
|
rShell.Cancel();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_INSERTPAGE:
|
2004-10-28 12:30:12 +00:00
|
|
|
case SID_INSERT_MASTER_PAGE:
|
2004-07-13 13:16:34 +00:00
|
|
|
InsertSlide(rRequest);
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_DELETE_PAGE:
|
2004-10-28 12:30:12 +00:00
|
|
|
case SID_DELETE_MASTER_PAGE:
|
2005-01-25 14:18:09 +00:00
|
|
|
case SID_DELETE: // we need SID_CUT to handle the delete key
|
|
|
|
// (DEL -> accelerator -> SID_CUT).
|
2005-01-31 13:59:42 +00:00
|
|
|
if (mrController.GetModel().GetPageCount() > 1)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
mrController.DeleteSelectedPages();
|
|
|
|
}
|
|
|
|
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_RENAMEPAGE:
|
2004-10-28 12:30:12 +00:00
|
|
|
case SID_RENAME_MASTER_PAGE:
|
2004-07-13 13:16:34 +00:00
|
|
|
RenameSlide ();
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done ();
|
|
|
|
break;
|
|
|
|
|
2005-04-27 07:55:29 +00:00
|
|
|
case SID_ASSIGN_LAYOUT:
|
|
|
|
{
|
|
|
|
SFX_REQUEST_ARG (rRequest, pWhatPage, SfxUInt32Item, ID_VAL_WHATPAGE, FALSE);
|
|
|
|
SFX_REQUEST_ARG (rRequest, pWhatLayout, SfxUInt32Item, ID_VAL_WHATLAYOUT, FALSE);
|
|
|
|
mrController.GetViewShell().mpImpl->AssignLayout(
|
|
|
|
pDocument->GetSdPage((USHORT)pWhatPage->GetValue(),
|
|
|
|
mrController.GetModel().GetPageType()),
|
|
|
|
(AutoLayout)pWhatLayout->GetValue());
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done ();
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
if (rShell.GetCurrentFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.GetCurrentFunction()->Activate();
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::FuPermanent (SfxRequest& rRequest)
|
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
SlideSorterViewShell& rShell(mrController.GetViewShell());
|
|
|
|
if(rShell.GetCurrentFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
FunctionReference xEmpty;
|
|
|
|
if (rShell.GetOldFunction() == rShell.GetCurrentFunction())
|
|
|
|
rShell.SetOldFunction(xEmpty);
|
2004-07-13 13:16:34 +00:00
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.GetCurrentFunction()->Deactivate();
|
|
|
|
rShell.SetCurrentFunction(xEmpty);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
switch(rRequest.GetSlot())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
case SID_OBJECT_SELECT:
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.SetCurrentFunction( SelectionFunction::Create(mrController, rRequest) );
|
2004-07-13 13:16:34 +00:00
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
if(rShell.GetOldFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
rShell.GetOldFunction()->Deactivate();
|
2005-12-14 16:21:34 +00:00
|
|
|
FunctionReference xEmpty;
|
|
|
|
rShell.SetOldFunction(xEmpty);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
if(rShell.GetCurrentFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
rShell.GetCurrentFunction()->Activate();
|
|
|
|
rShell.SetOldFunction(rShell.GetCurrentFunction());
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//! das ist nur bis das ENUM-Slots sind
|
|
|
|
// Invalidate( SID_OBJECT_SELECT );
|
|
|
|
}
|
|
|
|
|
|
|
|
void SlotManager::FuSupport (SfxRequest& rRequest)
|
|
|
|
{
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
|
|
|
switch (rRequest.GetSlot())
|
|
|
|
{
|
|
|
|
case SID_STYLE_FAMILY:
|
|
|
|
if (rRequest.GetArgs() != NULL)
|
|
|
|
{
|
|
|
|
SdDrawDocument* pDocument
|
|
|
|
= mrController.GetModel().GetDocument();
|
|
|
|
if (pDocument != NULL)
|
|
|
|
{
|
|
|
|
const SfxPoolItem& rItem (
|
|
|
|
rRequest.GetArgs()->Get(SID_STYLE_FAMILY));
|
|
|
|
pDocument->GetDocSh()->SetStyleFamily(
|
|
|
|
static_cast<const SfxUInt16Item&>(rItem).GetValue());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_CUT:
|
|
|
|
case SID_COPY:
|
|
|
|
case SID_PASTE:
|
2005-01-25 14:18:09 +00:00
|
|
|
case SID_DELETE:
|
2004-07-13 13:16:34 +00:00
|
|
|
mrController.GetClipboard().HandleSlotCall(rRequest);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_DRAWINGMODE:
|
|
|
|
case SID_NOTESMODE:
|
|
|
|
case SID_HANDOUTMODE:
|
|
|
|
case SID_DIAMODE:
|
|
|
|
case SID_OUTLINEMODE:
|
2007-04-03 15:18:06 +00:00
|
|
|
framework::FrameworkHelper::Instance(mrController.GetViewShell().GetViewShellBase())
|
|
|
|
->HandleModeChangeSlot(
|
|
|
|
rRequest.GetSlot(),
|
|
|
|
rRequest);
|
2004-07-13 13:16:34 +00:00
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_UNDO :
|
|
|
|
rShell.ImpSidUndo (FALSE, rRequest);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SID_REDO :
|
|
|
|
rShell.ImpSidRedo (FALSE, rRequest);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::ExecCtrl (SfxRequest& rRequest)
|
|
|
|
{
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
|
|
|
USHORT nSlot = rRequest.GetSlot();
|
|
|
|
switch (nSlot)
|
|
|
|
{
|
|
|
|
case SID_RELOAD:
|
|
|
|
{
|
|
|
|
// Undo-Manager leeren
|
2008-01-28 13:56:24 +00:00
|
|
|
mrController.GetModel().GetDocument()->GetDocSh()->ClearUndoBuffer();
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
// Normale Weiterleitung an ViewFrame zur Ausfuehrung
|
|
|
|
rShell.GetViewFrame()->ExecuteSlot(rRequest);
|
|
|
|
|
|
|
|
// Muss sofort beendet werden
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
case SID_OUTPUT_QUALITY_COLOR:
|
|
|
|
case SID_OUTPUT_QUALITY_GRAYSCALE:
|
|
|
|
case SID_OUTPUT_QUALITY_BLACKWHITE:
|
|
|
|
case SID_OUTPUT_QUALITY_CONTRAST:
|
|
|
|
{
|
|
|
|
// flush page cache
|
|
|
|
//AF mrController.GetView().UpdateAllPages();
|
|
|
|
rShell.ExecReq (rRequest);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case SID_MAIL_SCROLLBODY_PAGEDOWN:
|
|
|
|
{
|
|
|
|
rShell.ExecReq (rRequest);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case SID_OPT_LOCALE_CHANGED:
|
|
|
|
{
|
|
|
|
mrController.UpdateAllPages();
|
|
|
|
mrController.GetViewShell().UpdatePreview (
|
|
|
|
mrController.GetViewShell().GetActualPage());
|
|
|
|
rRequest.Done();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2004-09-20 12:42:00 +00:00
|
|
|
case SID_SEARCH_DLG:
|
|
|
|
// We have to handle the SID_SEARCH_DLG slot explicitly because
|
|
|
|
// in some cases (when the slide sorter is displayed in the
|
|
|
|
// center pane) we want to disable the search dialog. Therefore
|
|
|
|
// we have to handle the execution of that slot as well.
|
|
|
|
// We try to do that by forwarding the request to the view frame
|
|
|
|
// of the view shell.
|
|
|
|
mrController.GetViewShell().GetViewFrame()->ExecuteSlot (
|
|
|
|
rRequest);
|
|
|
|
break;
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::GetAttrState (SfxItemSet& rSet)
|
|
|
|
{
|
|
|
|
// Iteratate over all items.
|
|
|
|
SfxWhichIter aIter (rSet);
|
|
|
|
USHORT nWhich = aIter.FirstWhich();
|
|
|
|
while (nWhich)
|
|
|
|
{
|
|
|
|
USHORT nSlotId = SfxItemPool::IsWhich(nWhich)
|
|
|
|
? mrController.GetViewShell().GetPool().GetSlotId(nWhich)
|
|
|
|
: nWhich;
|
|
|
|
switch (nSlotId)
|
|
|
|
{
|
|
|
|
case SID_PAGES_PER_ROW:
|
|
|
|
rSet.Put (
|
|
|
|
SfxUInt16Item (
|
|
|
|
nSlotId,
|
|
|
|
(USHORT)mrController.GetView().GetLayouter().GetColumnCount()
|
|
|
|
)
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
nWhich = aIter.NextWhich();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::GetCtrlState (SfxItemSet& rSet)
|
|
|
|
{
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
|
|
|
if (rSet.GetItemState(SID_RELOAD) != SFX_ITEM_UNKNOWN)
|
|
|
|
{
|
|
|
|
// "Letzte Version" vom SFx en/disablen lassen
|
|
|
|
SfxViewFrame* pSlideViewFrame = rShell.GetViewFrame();
|
|
|
|
DBG_ASSERT(pSlideViewFrame!=NULL,
|
|
|
|
"SlideSorterController::GetCtrlState: ViewFrame not found");
|
|
|
|
if (pSlideViewFrame->ISA(SfxTopViewFrame))
|
|
|
|
{
|
|
|
|
pSlideViewFrame->GetSlotState (SID_RELOAD, NULL, &rSet);
|
|
|
|
}
|
|
|
|
else // MI sagt: kein MDIFrame --> disablen
|
|
|
|
{
|
|
|
|
rSet.DisableItem(SID_RELOAD);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Output quality.
|
|
|
|
if (rSet.GetItemState(SID_OUTPUT_QUALITY_COLOR)==SFX_ITEM_AVAILABLE
|
|
|
|
||rSet.GetItemState(SID_OUTPUT_QUALITY_GRAYSCALE)==SFX_ITEM_AVAILABLE
|
|
|
|
||rSet.GetItemState(SID_OUTPUT_QUALITY_BLACKWHITE)==SFX_ITEM_AVAILABLE
|
|
|
|
||rSet.GetItemState(SID_OUTPUT_QUALITY_CONTRAST)==SFX_ITEM_AVAILABLE)
|
|
|
|
{
|
|
|
|
ULONG nMode = mrController.GetView().GetWindow()->GetDrawMode();
|
|
|
|
//rShell.GetWindow()->GetDrawMode();
|
|
|
|
UINT16 nQuality = 0;
|
|
|
|
|
|
|
|
switch (nMode)
|
|
|
|
{
|
|
|
|
case ::sd::ViewShell::OUTPUT_DRAWMODE_COLOR:
|
|
|
|
nQuality = 0;
|
|
|
|
break;
|
|
|
|
case ::sd::ViewShell::OUTPUT_DRAWMODE_GRAYSCALE:
|
|
|
|
nQuality = 1;
|
|
|
|
break;
|
|
|
|
case ::sd::ViewShell::OUTPUT_DRAWMODE_BLACKWHITE:
|
|
|
|
nQuality = 2;
|
|
|
|
break;
|
|
|
|
case ::sd::ViewShell::OUTPUT_DRAWMODE_CONTRAST:
|
|
|
|
nQuality = 3;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
rSet.Put (SfxBoolItem (SID_OUTPUT_QUALITY_COLOR,
|
|
|
|
(BOOL)(nQuality==0)));
|
|
|
|
rSet.Put (SfxBoolItem (SID_OUTPUT_QUALITY_GRAYSCALE,
|
|
|
|
(BOOL)(nQuality==1)));
|
|
|
|
rSet.Put (SfxBoolItem (SID_OUTPUT_QUALITY_BLACKWHITE,
|
|
|
|
(BOOL)(nQuality==2)));
|
|
|
|
rSet.Put (SfxBoolItem (SID_OUTPUT_QUALITY_CONTRAST,
|
|
|
|
(BOOL)(nQuality==3)));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (rSet.GetItemState(SID_MAIL_SCROLLBODY_PAGEDOWN) == SFX_ITEM_AVAILABLE)
|
|
|
|
{
|
|
|
|
rSet.Put (SfxBoolItem( SID_MAIL_SCROLLBODY_PAGEDOWN, TRUE));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::GetMenuState ( SfxItemSet& rSet)
|
|
|
|
{
|
|
|
|
EditMode eEditMode = mrController.GetModel().GetEditMode();
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
|
|
|
DrawDocShell* pDocShell
|
|
|
|
= mrController.GetModel().GetDocument()->GetDocSh();
|
|
|
|
|
2005-12-14 16:21:34 +00:00
|
|
|
if(rShell.GetCurrentFunction().is())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-12-14 16:21:34 +00:00
|
|
|
USHORT nSId = rShell.GetCurrentFunction()->GetSlotID();
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
rSet.Put( SfxBoolItem( nSId, TRUE ) );
|
|
|
|
}
|
|
|
|
rSet.Put( SfxBoolItem( SID_DRAWINGMODE, FALSE ) );
|
|
|
|
rSet.Put( SfxBoolItem( SID_DIAMODE, TRUE ) );
|
|
|
|
rSet.Put( SfxBoolItem( SID_OUTLINEMODE, FALSE ) );
|
|
|
|
rSet.Put( SfxBoolItem( SID_NOTESMODE, FALSE ) );
|
|
|
|
rSet.Put( SfxBoolItem( SID_HANDOUTMODE, FALSE ) );
|
|
|
|
|
|
|
|
// Vorlagenkatalog darf nicht aufgerufen werden
|
|
|
|
rSet.DisableItem(SID_STYLE_CATALOG);
|
2005-09-23 10:29:31 +00:00
|
|
|
|
2004-09-20 12:42:00 +00:00
|
|
|
if (rShell.IsMainViewShell())
|
|
|
|
{
|
|
|
|
rSet.DisableItem(SID_SPELL_DIALOG);
|
|
|
|
rSet.DisableItem(SID_SEARCH_DLG);
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_EXPAND_PAGE))
|
|
|
|
{
|
|
|
|
bool bDisable = true;
|
|
|
|
if (eEditMode == EM_PAGE)
|
|
|
|
{
|
|
|
|
// At least one of the selected pages has to contain an outline
|
|
|
|
// presentation objects in order to enable the expand page menu
|
|
|
|
// entry.
|
|
|
|
model::SlideSorterModel::Enumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
|
|
|
while (aSelectedPages.HasMoreElements())
|
|
|
|
{
|
2006-04-06 15:21:05 +00:00
|
|
|
SdPage* pPage = aSelectedPages.GetNextElement()->GetPage();
|
2004-07-13 13:16:34 +00:00
|
|
|
SdrObject* pObj = pPage->GetPresObj(PRESOBJ_OUTLINE);
|
|
|
|
if (pObj!=NULL && !pObj->IsEmptyPresObj())
|
|
|
|
bDisable = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (bDisable)
|
|
|
|
rSet.DisableItem (SID_EXPAND_PAGE);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_SUMMARY_PAGE))
|
|
|
|
{
|
|
|
|
bool bDisable = true;
|
|
|
|
if (eEditMode == EM_PAGE)
|
|
|
|
{
|
|
|
|
// At least one of the selected pages has to contain a title
|
|
|
|
// presentation objects in order to enable the summary page menu
|
|
|
|
// entry.
|
|
|
|
model::SlideSorterModel::Enumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
|
|
|
while (aSelectedPages.HasMoreElements())
|
|
|
|
{
|
2006-04-06 15:21:05 +00:00
|
|
|
SdPage* pPage = aSelectedPages.GetNextElement()->GetPage();
|
2004-07-13 13:16:34 +00:00
|
|
|
SdrObject* pObj = pPage->GetPresObj(PRESOBJ_TITLE);
|
|
|
|
|
|
|
|
if (pObj!=NULL && !pObj->IsEmptyPresObj())
|
|
|
|
bDisable = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (bDisable)
|
|
|
|
rSet.DisableItem (SID_SUMMARY_PAGE);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Starten der Praesentation moeglich?
|
|
|
|
if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) ||
|
|
|
|
SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_REHEARSE_TIMINGS ) )
|
|
|
|
{
|
|
|
|
BOOL bDisable = TRUE;
|
|
|
|
model::SlideSorterModel::Enumeration aAllPages (
|
|
|
|
mrController.GetModel().GetAllPagesEnumeration());
|
|
|
|
while (aAllPages.HasMoreElements())
|
|
|
|
{
|
2006-04-06 15:21:05 +00:00
|
|
|
SdPage* pPage = aAllPages.GetNextElement()->GetPage();
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
if( !pPage->IsExcluded() )
|
|
|
|
bDisable = FALSE;
|
|
|
|
}
|
|
|
|
if( bDisable || pDocShell->IsPreview())
|
|
|
|
{
|
|
|
|
rSet.DisableItem( SID_PRESENTATION );
|
|
|
|
rSet.DisableItem( SID_REHEARSE_TIMINGS );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SdTransferable* pTransferClip = SD_MOD()->pTransferClip;
|
|
|
|
|
|
|
|
// Keine eigenen Clipboard-Daten?
|
|
|
|
if ( !pTransferClip || !pTransferClip->GetDocShell() )
|
|
|
|
{
|
|
|
|
rSet.DisableItem(SID_PASTE);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2004-10-04 17:37:55 +00:00
|
|
|
SfxObjectShell* pShell = pTransferClip->GetDocShell();
|
2004-07-13 13:16:34 +00:00
|
|
|
|
2004-10-04 17:37:55 +00:00
|
|
|
if( !pShell || ( (DrawDocShell*) pShell)->GetDoc()->GetPageCount() <= 1 )
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
// Eigene Clipboard-Daten haben nur eine Seite
|
|
|
|
rSet.DisableItem(SID_PASTE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-01-19 11:52:53 +00:00
|
|
|
// Cut, copy and paste of master pages is not yet implemented properly
|
2005-07-07 12:36:17 +00:00
|
|
|
if (rSet.GetItemState(SID_COPY) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_PASTE) == SFX_ITEM_AVAILABLE
|
2006-01-19 11:52:53 +00:00
|
|
|
|| rSet.GetItemState(SID_PASTE2) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_CUT) == SFX_ITEM_AVAILABLE)
|
2005-07-07 12:36:17 +00:00
|
|
|
{
|
|
|
|
if (mrController.GetModel().GetEditMode() == EM_MASTERPAGE)
|
|
|
|
{
|
2006-01-19 11:52:53 +00:00
|
|
|
if (rSet.GetItemState(SID_CUT) == SFX_ITEM_AVAILABLE)
|
|
|
|
rSet.DisableItem(SID_CUT);
|
2005-07-07 12:36:17 +00:00
|
|
|
if (rSet.GetItemState(SID_COPY) == SFX_ITEM_AVAILABLE)
|
|
|
|
rSet.DisableItem(SID_COPY);
|
|
|
|
if (rSet.GetItemState(SID_PASTE) == SFX_ITEM_AVAILABLE)
|
|
|
|
rSet.DisableItem(SID_PASTE);
|
|
|
|
if (rSet.GetItemState(SID_PASTE2) == SFX_ITEM_AVAILABLE)
|
|
|
|
rSet.DisableItem(SID_PASTE2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-08-04 07:57:01 +00:00
|
|
|
// Cut, copy, and delete page are disabled when there is no selection.
|
2004-10-28 12:30:12 +00:00
|
|
|
if (rSet.GetItemState(SID_CUT) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_COPY) == SFX_ITEM_AVAILABLE
|
2005-01-25 14:18:09 +00:00
|
|
|
|| rSet.GetItemState(SID_DELETE) == SFX_ITEM_AVAILABLE
|
2004-10-28 12:30:12 +00:00
|
|
|
|| rSet.GetItemState(SID_DELETE_PAGE) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_DELETE_MASTER_PAGE) == SFX_ITEM_AVAILABLE)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
model::SlideSorterModel::Enumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
|
|
|
|
2004-10-28 12:30:12 +00:00
|
|
|
// For copy to work we have to have at least one selected page.
|
|
|
|
if ( ! aSelectedPages.HasMoreElements())
|
2004-08-04 07:57:01 +00:00
|
|
|
rSet.DisableItem(SID_COPY);
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
bool bDisable = false;
|
|
|
|
// The operations that lead to the deletion of a page are valid if
|
|
|
|
// a) there is at least one selected page
|
|
|
|
// b) deleting the selected pages leaves at least one page in the
|
|
|
|
// document
|
|
|
|
// c) selected master pages must not be used by slides.
|
|
|
|
|
|
|
|
// Test a).
|
|
|
|
if ( ! aSelectedPages.HasMoreElements())
|
|
|
|
bDisable = true;
|
|
|
|
// Test b): Count the number of selected pages. It has to be less
|
|
|
|
// than the number of all pages.
|
|
|
|
else if (mrController.GetPageSelector().GetSelectedPageCount()
|
|
|
|
>= mrController.GetPageSelector().GetPageCount())
|
|
|
|
bDisable = true;
|
|
|
|
// Test c): Iterate over the selected pages and look for a master
|
|
|
|
// page that is used by at least one page.
|
|
|
|
else while (aSelectedPages.HasMoreElements())
|
|
|
|
{
|
2006-04-06 15:21:05 +00:00
|
|
|
SdPage* pPage = aSelectedPages.GetNextElement()->GetPage();
|
2004-10-28 12:30:12 +00:00
|
|
|
int nUseCount (mrController.GetModel().GetDocument()
|
|
|
|
->GetMasterPageUserCount(pPage));
|
|
|
|
if (nUseCount > 0)
|
|
|
|
{
|
|
|
|
bDisable = true;
|
|
|
|
break;
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
if (bDisable)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
rSet.DisableItem(SID_CUT);
|
|
|
|
rSet.DisableItem(SID_DELETE_PAGE);
|
2004-10-28 12:30:12 +00:00
|
|
|
rSet.DisableItem(SID_DELETE_MASTER_PAGE);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-07-07 12:36:17 +00:00
|
|
|
// Disable the rename slots when there are no or more than one slides/master
|
|
|
|
// pages selected.
|
|
|
|
if (rSet.GetItemState(SID_RENAMEPAGE) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_RENAME_MASTER_PAGE) == SFX_ITEM_AVAILABLE)
|
|
|
|
{
|
|
|
|
if (mrController.GetPageSelector().GetSelectedPageCount() != 1)
|
|
|
|
{
|
|
|
|
rSet.DisableItem(SID_RENAMEPAGE);
|
|
|
|
rSet.DisableItem(SID_RENAME_MASTER_PAGE);
|
|
|
|
}
|
|
|
|
}
|
2006-12-12 15:08:38 +00:00
|
|
|
|
|
|
|
if (rSet.GetItemState(SID_HIDE_SLIDE) == SFX_ITEM_AVAILABLE
|
|
|
|
|| rSet.GetItemState(SID_SHOW_SLIDE) == SFX_ITEM_AVAILABLE)
|
|
|
|
{
|
|
|
|
model::PageEnumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
|
|
|
HideSlideFunction::ExclusionState eState (
|
|
|
|
HideSlideFunction::GetExclusionState(aSelectedPages));
|
|
|
|
switch (eState)
|
|
|
|
{
|
|
|
|
case HideSlideFunction::MIXED:
|
|
|
|
// Show both entries.
|
|
|
|
break;
|
|
|
|
|
|
|
|
case HideSlideFunction::EXCLUDED:
|
|
|
|
rSet.DisableItem(SID_HIDE_SLIDE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case HideSlideFunction::INCLUDED:
|
|
|
|
rSet.DisableItem(SID_SHOW_SLIDE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case HideSlideFunction::UNDEFINED:
|
|
|
|
rSet.DisableItem(SID_HIDE_SLIDE);
|
|
|
|
rSet.DisableItem(SID_SHOW_SLIDE);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::GetStatusBarState (SfxItemSet& rSet)
|
|
|
|
{
|
|
|
|
// Seitenanzeige und Layout
|
|
|
|
/*
|
|
|
|
if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_STATUS_PAGE ) ||
|
|
|
|
SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_STATUS_LAYOUT ) )
|
|
|
|
*/
|
|
|
|
SdPage* pPage = NULL;
|
|
|
|
SdPage* pFirstPage = NULL;
|
|
|
|
USHORT nFirstPage;
|
2006-12-12 17:33:25 +00:00
|
|
|
USHORT nSelectedPages = (USHORT)mrController.GetPageSelector().GetSelectedPageCount();
|
2005-09-23 10:02:01 +00:00
|
|
|
String aPageStr;
|
|
|
|
String aLayoutStr;
|
2004-07-13 13:16:34 +00:00
|
|
|
|
2005-09-23 10:02:01 +00:00
|
|
|
if (nSelectedPages > 0)
|
|
|
|
aPageStr = String(SdResId(STR_SD_PAGE));
|
|
|
|
|
|
|
|
if (nSelectedPages == 1)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-09-23 10:02:01 +00:00
|
|
|
model::SlideSorterModel::Enumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
2006-04-06 15:21:05 +00:00
|
|
|
pPage = aSelectedPages.GetNextElement()->GetPage();
|
2004-07-13 13:16:34 +00:00
|
|
|
nFirstPage = pPage->GetPageNum()/2;
|
|
|
|
pFirstPage = pPage;
|
|
|
|
|
|
|
|
aPageStr += sal_Unicode(' ');
|
|
|
|
aPageStr += String::CreateFromInt32( nFirstPage + 1 );
|
|
|
|
aPageStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " / " ));
|
|
|
|
aPageStr += String::CreateFromInt32(
|
|
|
|
mrController.GetModel().GetPageCount());
|
|
|
|
|
|
|
|
aLayoutStr = pFirstPage->GetLayoutName();
|
|
|
|
aLayoutStr.Erase( aLayoutStr.SearchAscii( SD_LT_SEPARATOR ) );
|
|
|
|
}
|
2005-09-23 10:02:01 +00:00
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
rSet.Put( SfxStringItem( SID_STATUS_PAGE, aPageStr ) );
|
|
|
|
rSet.Put( SfxStringItem( SID_STATUS_LAYOUT, aLayoutStr ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::ShowSlideShow( SfxRequest& rRequest)
|
|
|
|
{
|
|
|
|
SlideSorterViewShell& rShell (mrController.GetViewShell());
|
|
|
|
|
2005-07-07 12:36:17 +00:00
|
|
|
if ( ! rShell.IsMainViewShell())
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2007-04-03 15:18:06 +00:00
|
|
|
// The new object will delete itself later.
|
|
|
|
new SlideShowCallback(rShell.GetViewShellBase(), rRequest);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2005-07-07 12:36:17 +00:00
|
|
|
SFX_REQUEST_ARG(rRequest,
|
|
|
|
pFullScreen,
|
|
|
|
SfxBoolItem,
|
|
|
|
ATTR_PRESENT_FULLSCREEN,
|
|
|
|
FALSE);
|
|
|
|
bool bFullScreen;
|
|
|
|
if (rRequest.GetSlot()==SID_REHEARSE_TIMINGS && pFullScreen!=NULL)
|
|
|
|
bFullScreen = pFullScreen->GetValue();
|
|
|
|
else
|
|
|
|
bFullScreen
|
|
|
|
= mrController.GetModel().GetDocument()->getPresentationSettings().mbFullScreen;
|
|
|
|
if (bFullScreen)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-07-07 12:36:17 +00:00
|
|
|
PresentationViewShell::CreateFullScreenShow(&rShell, rRequest);
|
|
|
|
rShell.Cancel();
|
|
|
|
rRequest.Done();
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Temporarily replace this sub shell by one that is able to
|
|
|
|
// display the slide show.
|
|
|
|
FrameView* pFrameView = rShell.GetFrameView();
|
|
|
|
pFrameView->SetPresentationViewShellId(SID_VIEWSHELL1);
|
2005-07-07 12:36:17 +00:00
|
|
|
pFrameView->SetPreviousViewShellType (rShell.GetShellType());
|
2004-07-13 13:16:34 +00:00
|
|
|
pFrameView->SetSlotId (rRequest.GetSlot());
|
|
|
|
pFrameView->SetPageKind (PK_STANDARD);
|
2007-04-03 15:18:06 +00:00
|
|
|
::boost::shared_ptr<framework::FrameworkHelper> pHelper (
|
|
|
|
framework::FrameworkHelper::Instance(rShell.GetViewShellBase()));
|
|
|
|
pHelper->RequestView(
|
|
|
|
framework::FrameworkHelper::msImpressViewURL,
|
|
|
|
framework::FrameworkHelper::msCenterPaneURL);
|
|
|
|
pHelper->RunOnConfigurationEvent(
|
|
|
|
framework::FrameworkHelper::msConfigurationUpdateEndEvent,
|
|
|
|
framework::DispatchCaller(
|
|
|
|
*rShell.GetViewFrame()->GetDispatcher(), rRequest.GetSlot()));
|
2004-07-13 13:16:34 +00:00
|
|
|
rRequest.Done();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::RenameSlide (void)
|
|
|
|
{
|
|
|
|
PageKind ePageKind = mrController.GetModel().GetPageType();
|
|
|
|
View* pDrView = &mrController.GetView();
|
|
|
|
|
2005-07-07 12:36:17 +00:00
|
|
|
if (ePageKind==PK_STANDARD || ePageKind==PK_NOTES)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
|
|
|
if ( pDrView->IsTextEdit() )
|
|
|
|
{
|
2006-11-14 13:36:09 +00:00
|
|
|
pDrView->SdrEndTextEdit();
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
2005-07-07 12:36:17 +00:00
|
|
|
SdPage* pSelectedPage = NULL;
|
|
|
|
model::PageEnumeration aSelectedPages (
|
|
|
|
mrController.GetModel().GetSelectedPagesEnumeration());
|
|
|
|
if (aSelectedPages.HasMoreElements())
|
2006-04-06 15:21:05 +00:00
|
|
|
pSelectedPage = aSelectedPages.GetNextElement()->GetPage();
|
2005-07-07 12:36:17 +00:00
|
|
|
if (pSelectedPage != NULL)
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-07-07 12:36:17 +00:00
|
|
|
String aTitle( SdResId( STR_TITLE_RENAMESLIDE ) );
|
|
|
|
String aDescr( SdResId( STR_DESC_RENAMESLIDE ) );
|
|
|
|
String aPageName = pSelectedPage->GetName();
|
|
|
|
|
|
|
|
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
|
|
|
DBG_ASSERT(pFact, "Dialogdiet fail!");
|
|
|
|
AbstractSvxNameDialog* aNameDlg = pFact->CreateSvxNameDialog(
|
|
|
|
mrController.GetViewShell().GetActiveWindow(),
|
2007-04-26 07:40:02 +00:00
|
|
|
aPageName, aDescr, RID_SVXDLG_NAME );
|
2005-07-07 12:36:17 +00:00
|
|
|
DBG_ASSERT(aNameDlg, "Dialogdiet fail!");
|
|
|
|
aNameDlg->SetText( aTitle );
|
|
|
|
aNameDlg->SetCheckNameHdl( LINK( this, SlotManager, RenameSlideHdl ), true );
|
|
|
|
aNameDlg->SetEditHelpId( HID_SD_NAMEDIALOG_PAGE );
|
|
|
|
|
|
|
|
if( aNameDlg->Execute() == RET_OK )
|
2004-07-13 13:16:34 +00:00
|
|
|
{
|
2005-07-07 12:36:17 +00:00
|
|
|
String aNewName;
|
|
|
|
aNameDlg->GetName( aNewName );
|
|
|
|
if( ! aNewName.Equals( aPageName ) )
|
|
|
|
{
|
2006-12-12 17:33:25 +00:00
|
|
|
#ifdef DBG_UTIL
|
|
|
|
bool bResult =
|
|
|
|
#endif
|
|
|
|
RenameSlideFromDrawViewShell(
|
|
|
|
pSelectedPage->GetPageNum()/2, aNewName );
|
2005-07-07 12:36:17 +00:00
|
|
|
DBG_ASSERT( bResult, "Couldn't rename slide" );
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
2005-07-07 12:36:17 +00:00
|
|
|
delete aNameDlg;
|
2006-01-19 11:52:53 +00:00
|
|
|
|
|
|
|
// Tell the slide sorter about the name change (necessary for
|
|
|
|
// accessibility.)
|
|
|
|
mrController.PageNameHasChanged((pSelectedPage->GetPageNum()-1)/2, aPageName);
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
IMPL_LINK(SlotManager, RenameSlideHdl, AbstractSvxNameDialog*, pDialog)
|
|
|
|
{
|
|
|
|
if( ! pDialog )
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
String aNewName;
|
|
|
|
pDialog->GetName( aNewName );
|
|
|
|
|
|
|
|
SdPage* pCurrentPage = mrController.GetActualPage();
|
|
|
|
|
|
|
|
return ( aNewName.Equals( pCurrentPage->GetName() )
|
|
|
|
|| mrController.GetViewShell().GetDocSh()->IsNewPageNameValid( aNewName ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SlotManager::RenameSlideFromDrawViewShell( USHORT nPageId, const String & rName )
|
|
|
|
{
|
|
|
|
BOOL bOutDummy;
|
|
|
|
SdDrawDocument* pDocument = mrController.GetModel().GetDocument();
|
|
|
|
if( pDocument->GetPageByName( rName, bOutDummy ) != SDRPAGE_NOTFOUND )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
SdPage* pPageToRename = NULL;
|
|
|
|
PageKind ePageKind = mrController.GetModel().GetPageType();
|
|
|
|
|
2007-11-01 14:27:39 +00:00
|
|
|
SfxUndoManager* pManager = pDocument->GetDocSh()->GetUndoManager();
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
if( mrController.GetModel().GetEditMode() == EM_PAGE )
|
|
|
|
{
|
|
|
|
pPageToRename = mrController.GetActualPage();
|
|
|
|
|
|
|
|
// Undo
|
|
|
|
SdPage* pUndoPage = pPageToRename;
|
|
|
|
SdrLayerAdmin & rLayerAdmin = pDocument->GetLayerAdmin();
|
|
|
|
BYTE nBackground = rLayerAdmin.GetLayerID( String( SdResId( STR_LAYER_BCKGRND )), FALSE );
|
|
|
|
BYTE nBgObj = rLayerAdmin.GetLayerID( String( SdResId( STR_LAYER_BCKGRNDOBJ )), FALSE );
|
2004-07-15 08:00:36 +00:00
|
|
|
SetOfByte aVisibleLayers = mrController.GetActualPage()->TRG_GetMasterPageVisibleLayers();
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
// (#67720#)
|
|
|
|
ModifyPageUndoAction* pAction = new ModifyPageUndoAction(
|
|
|
|
pManager, pDocument, pUndoPage, rName, pUndoPage->GetAutoLayout(),
|
|
|
|
aVisibleLayers.IsSet( nBackground ),
|
|
|
|
aVisibleLayers.IsSet( nBgObj ));
|
|
|
|
pManager->AddUndoAction( pAction );
|
|
|
|
|
|
|
|
// rename
|
|
|
|
pPageToRename->SetName( rName );
|
|
|
|
|
|
|
|
if( ePageKind == PK_STANDARD )
|
|
|
|
{
|
|
|
|
// also rename notes-page
|
|
|
|
SdPage* pNotesPage = pDocument->GetSdPage( nPageId, PK_NOTES );
|
|
|
|
if (pNotesPage != NULL)
|
|
|
|
pNotesPage->SetName (rName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// rename MasterPage -> rename LayoutTemplate
|
|
|
|
pPageToRename = pDocument->GetMasterSdPage( nPageId, ePageKind );
|
|
|
|
if (pPageToRename != NULL)
|
2007-11-01 14:27:39 +00:00
|
|
|
{
|
|
|
|
const String aOldLayoutName( pPageToRename->GetLayoutName() );
|
|
|
|
pManager->AddUndoAction( new RenameLayoutTemplateUndoAction( pDocument, aOldLayoutName, rName ) );
|
|
|
|
pDocument->RenameLayoutTemplate( aOldLayoutName, rName );
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool bSuccess = ( FALSE != rName.Equals( pPageToRename->GetName()));
|
|
|
|
|
|
|
|
if( bSuccess )
|
|
|
|
{
|
|
|
|
// user edited page names may be changed by the page so update control
|
|
|
|
// aTabControl.SetPageText( nPageId, rName );
|
|
|
|
|
|
|
|
// set document to modified state
|
|
|
|
pDocument->SetChanged( TRUE );
|
|
|
|
|
|
|
|
// inform navigator about change
|
|
|
|
SfxBoolItem aItem( SID_NAVIGATOR_INIT, TRUE );
|
|
|
|
mrController.GetViewShell().GetDispatcher()->Execute(
|
|
|
|
SID_NAVIGATOR_INIT, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aItem, 0L );
|
|
|
|
}
|
|
|
|
|
|
|
|
return bSuccess;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Insert a slide. The insertion position depends on a) the selection and
|
|
|
|
b) the mouse position when there is no selection.
|
|
|
|
|
|
|
|
When there is a selection then insertion takes place after the last
|
|
|
|
slide of the selection. For this to work all but the last selected
|
|
|
|
slide are deselected first.
|
|
|
|
|
|
|
|
Otherwise, when there is no selection but the insertion marker is visible
|
|
|
|
the slide is inserted at that position. The slide before that marker is
|
|
|
|
selected first.
|
|
|
|
|
|
|
|
When both the selection and the insertion marker are not visible--can
|
|
|
|
that happen?--the new slide is inserted after the last slide.
|
|
|
|
*/
|
|
|
|
void SlotManager::InsertSlide (SfxRequest& rRequest)
|
|
|
|
{
|
|
|
|
PageSelector& rSelector (mrController.GetPageSelector());
|
|
|
|
// The fallback insertion position is after the last slide.
|
|
|
|
sal_Int32 nInsertionIndex (rSelector.GetPageCount() - 1);
|
|
|
|
if (rSelector.GetSelectedPageCount() > 0)
|
|
|
|
{
|
|
|
|
// Deselect all but the last selected slide.
|
|
|
|
bool bLastSelectedSlideSeen (false);
|
|
|
|
for (int nIndex=rSelector.GetPageCount()-1; nIndex>=0; --nIndex)
|
|
|
|
{
|
|
|
|
if (rSelector.IsPageSelected(nIndex))
|
|
|
|
if (bLastSelectedSlideSeen)
|
|
|
|
rSelector.DeselectPage (nIndex);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
nInsertionIndex = nIndex;
|
|
|
|
bLastSelectedSlideSeen = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// No selection. Is there an insertion indicator?
|
|
|
|
else if (mrController.GetView().GetOverlay()
|
|
|
|
.GetInsertionIndicatorOverlay().IsShowing())
|
|
|
|
{
|
|
|
|
// Select the page before the insertion indicator.
|
|
|
|
nInsertionIndex = mrController.GetView().GetOverlay()
|
|
|
|
.GetInsertionIndicatorOverlay().GetInsertionPageIndex();
|
|
|
|
nInsertionIndex --;
|
|
|
|
rSelector.SelectPage (nInsertionIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Select the last page when there is at least one page.
|
|
|
|
else if (rSelector.GetPageCount() > 0)
|
|
|
|
{
|
|
|
|
nInsertionIndex = rSelector.GetPageCount() - 1;
|
|
|
|
rSelector.SelectPage (nInsertionIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hope for the best that CreateOrDuplicatePage() can cope with an empty
|
|
|
|
// selection.
|
|
|
|
else
|
|
|
|
{
|
|
|
|
nInsertionIndex = -1;
|
|
|
|
}
|
|
|
|
|
2006-12-12 17:33:25 +00:00
|
|
|
USHORT nPageCount ((USHORT)mrController.GetModel().GetPageCount());
|
2004-07-13 13:16:34 +00:00
|
|
|
|
|
|
|
rSelector.DisableBroadcasting();
|
|
|
|
// In order for SlideSorterController::GetActualPage() to select the
|
|
|
|
// selected page as current page we have to turn off the focus
|
|
|
|
// temporarily.
|
|
|
|
{
|
|
|
|
FocusManager::FocusHider aTemporaryFocusHider (
|
|
|
|
mrController.GetFocusManager());
|
|
|
|
|
|
|
|
SdPage* pPreviousPage = NULL;
|
|
|
|
if (nInsertionIndex >= 0)
|
|
|
|
pPreviousPage = mrController.GetModel()
|
|
|
|
.GetPageDescriptor(nInsertionIndex)->GetPage();
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
if (mrController.GetModel().GetEditMode() == EM_PAGE)
|
|
|
|
mrController.GetViewShell().CreateOrDuplicatePage (
|
|
|
|
rRequest,
|
|
|
|
mrController.GetModel().GetPageType(),
|
|
|
|
pPreviousPage);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Use the API to create a new page.
|
|
|
|
SdDrawDocument* pDocument = mrController.GetModel().GetDocument();
|
|
|
|
Reference<drawing::XMasterPagesSupplier> xMasterPagesSupplier (
|
|
|
|
pDocument->getUnoModel(), UNO_QUERY);
|
|
|
|
if (xMasterPagesSupplier.is())
|
|
|
|
{
|
|
|
|
Reference<drawing::XDrawPages> xMasterPages (
|
|
|
|
xMasterPagesSupplier->getMasterPages());
|
|
|
|
if (xMasterPages.is())
|
|
|
|
{
|
|
|
|
xMasterPages->insertNewByIndex (nInsertionIndex+1);
|
|
|
|
|
|
|
|
// Create shapes for the default layout.
|
|
|
|
SdPage* pMasterPage = pDocument->GetMasterSdPage(
|
|
|
|
(USHORT)(nInsertionIndex+1), PK_STANDARD);
|
|
|
|
pMasterPage->CreateTitleAndLayout (TRUE,TRUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-07-13 13:16:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// When a new page has been inserted then select it and make it the
|
|
|
|
// current page.
|
|
|
|
mrController.GetView().LockRedraw(TRUE);
|
|
|
|
if (mrController.GetModel().GetPageCount() > nPageCount)
|
|
|
|
{
|
|
|
|
nInsertionIndex++;
|
|
|
|
rSelector.DeselectAllPages ();
|
|
|
|
rSelector.SelectPage (nInsertionIndex);
|
|
|
|
rSelector.SetCurrentPage (nInsertionIndex);
|
|
|
|
}
|
|
|
|
rSelector.EnableBroadcasting();
|
|
|
|
mrController.GetView().LockRedraw(FALSE);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::AssignTransitionEffect (void)
|
|
|
|
{
|
|
|
|
model::SlideSorterModel& rModel (mrController.GetModel());
|
|
|
|
|
|
|
|
// We have to manually select the pages in the document that are
|
|
|
|
// selected in the slide sorter.
|
|
|
|
rModel.SynchronizeDocumentSelection();
|
|
|
|
|
2004-11-26 19:21:56 +00:00
|
|
|
// #i34011#: Needs review, AF's bugfix is removed here
|
|
|
|
//rShell.AssignFromSlideChangeWindow(rModel.GetEditMode());
|
2004-10-28 12:30:12 +00:00
|
|
|
|
|
|
|
// We have to remove the selection of master pages to not confuse the
|
|
|
|
// model.
|
|
|
|
if (rModel.GetEditMode() == EM_MASTERPAGE)
|
|
|
|
{
|
|
|
|
SdDrawDocument* pDocument = mrController.GetModel().GetDocument();
|
|
|
|
USHORT nMasterPageCount = pDocument->GetMasterSdPageCount(PK_STANDARD);
|
|
|
|
for (USHORT nIndex=0; nIndex<nMasterPageCount; nIndex++)
|
|
|
|
{
|
|
|
|
SdPage* pPage = pDocument->GetMasterSdPage(nIndex, PK_STANDARD);
|
|
|
|
if (pPage != NULL)
|
|
|
|
pPage->SetSelected (FALSE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-03-23 13:00:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
void SlotManager::ExecuteCommandAsynchronously (::std::auto_ptr<Command> pCommand)
|
|
|
|
{
|
|
|
|
// Ownership of command is (implicitely) transferred to the queue.
|
|
|
|
maCommandQueue.push(pCommand.get());
|
|
|
|
pCommand.release();
|
2006-12-12 17:33:25 +00:00
|
|
|
Application::PostUserEvent(LINK(this,SlotManager,UserEventCallback));
|
2005-03-23 13:00:11 +00:00
|
|
|
}
|
|
|
|
|
2006-12-12 17:33:25 +00:00
|
|
|
IMPL_LINK(SlotManager, UserEventCallback, void*, EMPTYARG)
|
2005-03-23 13:00:11 +00:00
|
|
|
{
|
|
|
|
if ( ! maCommandQueue.empty())
|
|
|
|
{
|
|
|
|
Command* pCommand = maCommandQueue.front();
|
|
|
|
maCommandQueue.pop();
|
|
|
|
|
|
|
|
if (pCommand != NULL)
|
|
|
|
{
|
|
|
|
// The queue ownes the command that has just been removed from
|
|
|
|
// it. Therefore it is deleted after it has been executed.
|
|
|
|
(*pCommand)();
|
|
|
|
delete pCommand;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-04-03 15:18:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
//===== SlotManager::SlideShowCallbackData ====================================
|
|
|
|
|
|
|
|
SlideShowCallback::SlideShowCallback (
|
|
|
|
ViewShellBase& rBase,
|
|
|
|
const SfxRequest& rRequest)
|
|
|
|
: mrBase(rBase),
|
|
|
|
maRequest(rRequest),
|
|
|
|
mnCallbackId(0)
|
|
|
|
{
|
|
|
|
mnCallbackId = Application::PostUserEvent(
|
|
|
|
LINK(this,SlideShowCallback,Callback));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SlideShowCallback::~SlideShowCallback (void)
|
|
|
|
{
|
|
|
|
if (mnCallbackId != 0)
|
|
|
|
Application::RemoveUserEvent(mnCallbackId);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IMPL_LINK(SlideShowCallback, Callback, void*, pUnused)
|
|
|
|
{
|
|
|
|
(void)pUnused;
|
|
|
|
mnCallbackId = 0;
|
|
|
|
|
|
|
|
// We are not the main sub shell, so delegate this call to the main
|
|
|
|
// sub shell. Because there is no SFX functionality to forward a
|
|
|
|
// slot call further down the stack we have to do that here
|
|
|
|
// manually.
|
|
|
|
::boost::shared_ptr<ViewShell> pMainViewShell (
|
|
|
|
framework::FrameworkHelper::Instance(mrBase)
|
|
|
|
->GetViewShell(framework::FrameworkHelper::msCenterPaneURL));
|
|
|
|
DrawViewShell* pDrawViewShell = dynamic_cast<DrawViewShell*>(pMainViewShell.get());
|
|
|
|
if (pDrawViewShell != NULL)
|
|
|
|
pDrawViewShell->FuSupport(maRequest);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
PresentationViewShell::CreateFullScreenShow(mrBase, maRequest);
|
|
|
|
}
|
|
|
|
|
|
|
|
delete this;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2004-07-13 13:16:34 +00:00
|
|
|
} } } // end of namespace ::sd::slidesorter::controller
|
2007-04-03 15:18:06 +00:00
|
|
|
|