LibreOffice Module sd (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
sd::slidesorter::SlideSorterViewShell Class Referencefinal

#include <SlideSorterViewShell.hxx>

Inheritance diagram for sd::slidesorter::SlideSorterViewShell:
[legend]
Collaboration diagram for sd::slidesorter::SlideSorterViewShell:
[legend]

Public Types

typedef ::std::vector< SdPage * > PageSelection
 
- Public Types inherited from sd::ViewShell
enum  ShellType {
  ST_NONE ,
  ST_DRAW ,
  ST_IMPRESS ,
  ST_NOTES ,
  ST_HANDOUT ,
  ST_OUTLINE ,
  ST_SLIDE_SORTER ,
  ST_PRESENTATION ,
  ST_SIDEBAR
}
 

Public Member Functions

virtual ~SlideSorterViewShell () override
 
virtual void Init (bool bIsMainViewShell) override
 Late initialization that has to be called after a new instance has completed its construction. More...
 
virtual SdPageGetActualPage () override
 
virtual SdPagegetCurrentPage () const override
 inherited from sd::ViewShell More...
 
void ExecCtrl (SfxRequest &rRequest)
 
void GetCtrlState (SfxItemSet &rSet)
 
void FuSupport (SfxRequest &rRequest)
 
void FuTemporary (SfxRequest &rRequest)
 We have to handle those slot calls here that need to have access to private or protected members and methods of this class. More...
 
void GetStatusBarState (SfxItemSet &rSet)
 
void FuPermanent (SfxRequest &rRequest)
 
void GetAttrState (SfxItemSet &rSet)
 
virtual void Command (const CommandEvent &rEvent, ::sd::Window *pWindow) override
 
void GetMenuState (SfxItemSet &rSet)
 
void GetClipboardState (SfxItemSet &rSet)
 
virtual void ReadFrameViewData (FrameView *pView) override
 
virtual void WriteFrameViewData () override
 
virtual void SetZoom (::tools::Long nZoom) override
 Set the zoom factor. More...
 
virtual void SetZoomRect (const ::tools::Rectangle &rZoomRect) override
 Set zoom rectangle for active window. More...
 
virtual void Paint (const ::tools::Rectangle &rRect, ::sd::Window *pWin) override
 This is a callback method used by the active window to delegate its Paint() call to. More...
 
virtual void ArrangeGUIElements () override
 Place and size the controls and windows. More...
 
virtual void Activate (bool IsMDIActivate) override
 set focus to working window More...
 
virtual void Deactivate (bool IsMDIActivate) override
 
void ExecMovePageUp (SfxRequest &rReq)
 Move slides up and down. More...
 
void GetStateMovePageUp (SfxItemSet &rSet)
 
void ExecMovePageDown (SfxRequest &rReq)
 
void GetStateMovePageDown (SfxItemSet &rSet)
 
void ExecMovePageFirst (SfxRequest &rReq)
 
void GetStateMovePageFirst (SfxItemSet &rSet)
 
void ExecMovePageLast (SfxRequest &rReq)
 
void GetStateMovePageLast (SfxItemSet &rSet)
 
void StartDrag (const Point &rDragPt, vcl::Window *pWindow)
 
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) override
 
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer) override
 
std::shared_ptr< PageSelectionGetPageSelection () const
 Return the set of selected pages. More...
 
void SetPageSelection (const std::shared_ptr< PageSelection > &rSelection)
 
void AddSelectionChangeListener (const Link< LinkParamNone *, void > &rListener)
 Add a listener that is called when the selection of the slide sorter changes. More...
 
void RemoveSelectionChangeListener (const Link< LinkParamNone *, void > &rListener)
 Remove a listener that was called when the selection of the slide sorter changes. More...
 
virtual css::uno::Reference< css::drawing::XDrawSubController > CreateSubController () override
 Return a sub controller that implements the view shell specific part of the DrawController. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleDocumentView (::sd::Window *pWindow) override
 Create an accessible object representing the specified window. More...
 
virtual void SwitchViewFireFocus (const css::uno::Reference< css::accessibility::XAccessible > &xAcc) override
 
SD_DLLPUBLIC SlideSorterGetSlideSorter () const
 
virtual bool RelocateToParentWindow (vcl::Window *pParentWindow) override
 Try to relocate all toplevel window elements to the given parent window. More...
 
- Public Member Functions inherited from sd::ViewShell
 ViewShell (vcl::Window *pParentWindow, ViewShellBase &rViewShellBase)
 declare SFX-Slotmap and standard interface More...
 
virtual ~ViewShell () override
 
virtual void Init (bool bIsMainViewShell)
 The Init method has to be called from the outside directly after a new object of this class has been created. More...
 
void Exit ()
 The Exit() method has to be called before the destructor so that the view shell is still a valid object and can safely call methods that rely on that. More...
 
void Cancel ()
 this method deactivates the current function. More...
 
vcl::WindowGetParentWindow () const
 Return the window that is the parent of all controls of this view shell. More...
 
sd::WindowGetContentWindow () const
 
::sd::ViewGetView () const
 
SdrViewGetDrawView () const
 
SD_DLLPUBLIC DrawDocShellGetDocSh () const
 
SdDrawDocumentGetDoc () const
 
SD_DLLPUBLIC SfxViewFrameGetViewFrame () const
 
::sd::WindowGetActiveWindow () const
 The active window is usually the mpContentWindow. More...
 
SD_DLLPUBLIC weld::WindowGetFrameWeld () const
 
void SetActiveWindow (::sd::Window *pWindow)
 Set the active window. More...
 
const ::tools::RectangleGetAllWindowRect ()
 Return the rectangle that encloses all windows of the view. More...
 
virtual void PrePaint ()
 
virtual void Paint (const ::tools::Rectangle &rRect, ::sd::Window *pWin)
 
virtual bool KeyInput (const KeyEvent &rKEvt, ::sd::Window *pWin)
 
virtual void MouseMove (const MouseEvent &rMEvt, ::sd::Window *pWin)
 
virtual void MouseButtonUp (const MouseEvent &rMEvt, ::sd::Window *pWin)
 
virtual void MouseButtonDown (const MouseEvent &rMEvt, ::sd::Window *pWin)
 
virtual void Command (const CommandEvent &rCEvt, ::sd::Window *pWin)
 
bool RequestHelp (const HelpEvent &rEvt)
 
bool Notify (NotifyEvent const &rNEvt, ::sd::Window *pWin)
 
bool HandleScrollCommand (const CommandEvent &rCEvt, ::sd::Window *pWin)
 
void SetUIUnit (FieldUnit eUnit)
 
void SetDefTabHRuler (sal_uInt16 nDefTab)
 set DefTab at horizontal rulers More...
 
const SvxNumBulletItemGetNumBulletItem (SfxItemSet &aNewAttr, TypedWhichId< SvxNumBulletItem > &nNumItemId)
 
bool HasRuler () const
 
void SetRuler (bool bRuler)
 Switch ruler on/off. More...
 
void SetScrollBarsVisible (bool bVisible)
 
virtual void UpdateScrollBars ()
 Set internal values of all scroll bars that determine thumb size and position. More...
 
void Scroll (::tools::Long nX, ::tools::Long nY)
 
void ScrollLines (::tools::Long nX, ::tools::Long nY)
 Scroll a specific number of lines. More...
 
virtual void SetZoom (::tools::Long nZoom)
 Set zoom factor for all split windows. More...
 
::tools::Long GetZoom () const
 
virtual void SetZoomRect (const ::tools::Rectangle &rZoomRect)
 Set zoom rectangle for active window. More...
 
void InitWindows (const Point &rViewOrigin, const Size &rViewSize, const Point &rWinPos, bool bUpdate=false)
 Initialize imaging parameters for all split windows. More...
 
void InvalidateWindows ()
 Invalidate all split windows below the ?provided rectangle. More...
 
virtual void UpdatePreview (SdPage *pPage)
 This method is still used by the OutlineViewShell to update the model according to the content of the outline view. More...
 
void DrawMarkRect (const ::tools::Rectangle &rRect) const
 Draw a selection rectangle with the ?provided pen on all split windows. More...
 
void ExecReq (SfxRequest &rReq)
 
ZoomListGetZoomList ()
 
FrameViewGetFrameView ()
 
void SetFrameView (FrameView *pFrameView)
 Setting a frame view triggers ReadFrameViewData() for the new frame. More...
 
virtual void ReadFrameViewData (FrameView *pView)
 
virtual void WriteFrameViewData ()
 
void WriteUserData ()
 
void ReadUserData ()
 
virtual bool ActivateObject (SdrOle2Obj *pObj, sal_Int32 nVerb)
 
virtual SdPageGetActualPage ()=0
 
virtual SdPagegetCurrentPage () const =0
 
const rtl::Reference< FuPoor > & GetOldFunction () const
 
bool HasOldFunction () const
 
const rtl::Reference< FuPoor > & GetCurrentFunction () const
 
bool HasCurrentFunction (sal_uInt16 nSID)
 
bool HasCurrentFunction () const
 
void SetCurrentFunction (const rtl::Reference< FuPoor > &xFunction)
 
void SetOldFunction (const rtl::Reference< FuPoor > &xFunction)
 
void DeactivateCurrentFunction (bool bPermanent=false)
 
void SetPageSizeAndBorder (PageKind ePageKind, const Size &rNewSize, ::tools::Long nLeft, ::tools::Long nRight, ::tools::Long nUpper, ::tools::Long nLower, bool bScaleAll, Orientation eOrient, sal_uInt16 nPaperBin, bool bBackgroundFullSize)
 
void SetStartShowWithDialog (bool bIn)
 
bool IsStartShowWithDialog () const
 
sal_uInt16 GetPrintedHandoutPageNum () const
 
void SetPrintedHandoutPageNum (sal_uInt16 nPageNumber)
 
sal_uInt16 GetPrintedHandoutPageCount () const
 
void SetPrintedHandoutPageCount (sal_uInt16 nPageCount)
 
virtual bool PrepareClose (bool bUI=true)
 Tell the FmFormShell that the view shell is closing. More...
 
void GetMenuState (SfxItemSet &rSet)
 set state (enabled/disabled) of Menu SfxSlots More...
 
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer)
 
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt, DropTargetHelper &rTargetHelper, ::sd::Window *pTargetWindow, sal_uInt16 nPage, SdrLayerID nLayer)
 
virtual void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void ReadUserDataSequence (const css::uno::Sequence< css::beans::PropertyValue > &)
 
virtual void VisAreaChanged (const ::tools::Rectangle &rRect)
 this method is called when the visible area of the view from this viewshell is changed More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleDocumentView (::sd::Window *pWindow)
 Create an accessible object representing the specified window. More...
 
virtual void SwitchViewFireFocus (const css::uno::Reference< css::accessibility::XAccessible > &xAcc)
 
void SwitchActiveViewFireFocus ()
 
void NotifyAccUpdate ()
 
void fireSwitchCurrentPage (sal_Int32 pageIndex)
 
void SetWinViewPos (const Point &rWinPos)
 
Point const & GetWinViewPos () const
 
Point const & GetViewOrigin () const
 
::sd::WindowUpdaterGetWindowUpdater () const
 Return the window updater of this view shell. More...
 
SvBorder GetBorder ()
 Return the border that is drawn around the actual document view. More...
 
virtual void Resize ()
 Notify the view shell that its parent window has been resized. More...
 
virtual void ArrangeGUIElements ()
 Set position and size of the GUI elements that are controlled by the view shell like rulers and scroll bars as well as the actual document view according to the position and size that were given with the last Resize() call. More...
 
SD_DLLPUBLIC ViewShellBaseGetViewShellBase () const
 
bool IsMainViewShell () const
 Return <TRUE> when the called view shell is the main sub shell of its ViewShellBase object, i.e. More...
 
void SetIsMainViewShell (bool bIsMainViewShell)
 Set or reset the flag that indicates whether the called shell is the one displayed in the center pane. More...
 
virtual css::uno::Reference< css::drawing::XDrawSubController > CreateSubController ()=0
 Return a sub controller that implements the view shell specific part of the DrawController. More...
 
SD_DLLPUBLIC ShellType GetShellType () const
 Return the type of the shell. More...
 
virtual void Shutdown ()
 This method is more or less an alias to Deactivate(). More...
 
virtual ErrCode DoVerb (sal_Int32 nVerb)
 This function is called from the underlying ViewShellBase object to handle a verb execution request. More...
 
virtual void UIActivating (SfxInPlaceClient *)
 
virtual void UIDeactivated (SfxInPlaceClient *)
 
virtual void ShowUIControls (bool bVisible)
 Show controls of the UI or hide them, depending on the given flag. More...
 
bool IsPageFlipMode () const
 
virtual bool RelocateToParentWindow (vcl::Window *pParentWindow)
 Set the given window as new parent window. More...
 
virtual SdPageCreateOrDuplicatePage (SfxRequest &rRequest, PageKind ePageKind, SdPage *pPage, const sal_Int32 nInsertPosition=-1)
 Depending on the given request create a new page or duplicate an existing one. More...
 
void SetCursorMm100Position (const Point &rPosition, bool bPoint, bool bClearMark)
 Allows adjusting the point or mark of the selection to a document coordinate. More...
 
css::uno::Reference< css::datatransfer::XTransferable > GetSelectionTransferable () const
 Gets the current selection. More...
 
void SetGraphicMm100Position (bool bStart, const Point &rPosition)
 Allows starting or ending a graphic move or resize action. More...
 
- Public Member Functions inherited from SfxShell
virtual ~SfxShell () override
 
virtual SfxInterfaceGetInterface () const
 
void SetName (const OUString &rName)
 
const OUString & GetName () const
 
SfxViewShellGetViewShell () const
 
const SfxPoolItemGetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
 
const SfxPoolItemExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr)
 
void ExecuteSlot (SfxRequest &rReq, bool bAsync)
 
SfxItemPoolGetPool () const
 
void SetPool (SfxItemPool *pNewPool)
 
virtual SfxUndoManagerGetUndoManager ()
 
void SetUndoManager (SfxUndoManager *pNewUndoMgr)
 
SfxRepeatTarget * GetRepeatTarget () const
 
void SetRepeatTarget (SfxRepeatTarget *pTarget)
 
virtual void Invalidate (sal_uInt16 nId=0)
 
virtual bool IsDesignMode () const
 
bool IsActive () const
 
virtual void Activate (bool bMDI)
 
virtual void Deactivate (bool bMDI)
 
SfxDispatcherGetDispatcher () const
 
SfxViewFrameGetFrame () const
 
virtual bool HasUIFeature (SfxShellFeature nFeature) const
 
void UIFeatureChanged ()
 
const SfxPoolItemGetItem (sal_uInt16 nSlotId) const
 
const T * GetItem (TypedWhichId< T > nWhich) const
 
void PutItem (const SfxPoolItem &rItem)
 
void SetVerbs (const css::uno::Sequence< css::embed::VerbDescriptor > &aVerbs)
 
const css::uno::Sequence< css::embed::VerbDescriptor > & GetVerbs () const
 
void VerbExec (SfxRequest &)
 
SAL_DLLPRIVATE const SfxSlotGetVerbSlot_Impl (sal_uInt16 nId) const
 
virtual SfxObjectShellGetObjectShell ()
 
void SetDisableFlags (SfxDisableFlags nFlags)
 
SfxDisableFlags GetDisableFlags () const
 
virtual std::optional< SfxItemSetCreateItemSet (sal_uInt16 nId)
 
virtual void ApplyItemSet (sal_uInt16 nId, const SfxItemSet &rSet)
 
void SetContextName (const OUString &rsContextName)
 
void BroadcastContextForActivation (const bool bIsActivated)
 
bool SetContextBroadcasterEnabled (const bool bIsEnabled)
 
SAL_DLLPRIVATE bool CanExecuteSlot_Impl (const SfxSlot &rSlot)
 
virtual bool IsConditionalFastCall (const SfxRequest &rReq)
 
SAL_DLLPRIVATE void DoActivate_Impl (SfxViewFrame *pFrame, bool bMDI)
 
SAL_DLLPRIVATE void DoDeactivate_Impl (SfxViewFrame const *pFrame, bool bMDI)
 

Static Public Member Functions

static std::shared_ptr< SlideSorterViewShellCreate (SfxViewFrame *pFrame, ViewShellBase &rViewShellBase, vcl::Window *pParentWindow, FrameView *pFrameView)
 
static SD_DLLPUBLIC SlideSorterViewShellGetSlideSorter (ViewShellBase &rBase)
 Return a slide sorter that is currently displayed in one of the panes that belong to the given ViewShellBase object. More...
 
static void ExecStatusBar (SfxRequest &rRequest)
 
- Static Public Member Functions inherited from SfxShell
static SfxInterfaceGetStaticInterface ()
 
static void EmptyExecStub (SfxShell *pShell, SfxRequest &)
 
static void EmptyStateStub (SfxShell *pShell, SfxItemSet &)
 
static void VerbState (SfxItemSet &)
 

Private Member Functions

virtual SfxUndoManagerImpGetUndoManager () const override
 Override this method to handle a missing tool bar correctly. More...
 
 SlideSorterViewShell (SfxViewFrame *pFrame, ViewShellBase &rViewShellBase, vcl::Window *pParentWindow, FrameView *pFrameView)
 
void Initialize ()
 
virtual void UpdateScrollBars () override
 This method overwrites the one from our base class: We do our own scroll bar and the base class call is thus unnecessary. More...
 
void PostMoveSlidesActions (const std::shared_ptr< SlideSorterViewShell::PageSelection > &rpSelection)
 
void MainViewEndEditAndUnmarkAll ()
 
std::pair< sal_uInt16, sal_uInt16 > SyncPageSelectionToDocument (const std::shared_ptr< SlideSorterViewShell::PageSelection > &rpSelection)
 Select the same pages in the document as are selected in the SlideSorterViewShell. More...
 

Static Private Member Functions

static void InitInterface_Impl ()
 SfxInterface initializer. More...
 

Private Attributes

std::shared_ptr< SlideSortermpSlideSorter
 
bool mbIsArrangeGUIElementsPending
 

Friends

class controller::SlotManager
 

Additional Inherited Members

- Static Public Attributes inherited from sd::ViewShell
static const int MAX_HSPLIT_CNT = 1
 
static const int MAX_VSPLIT_CNT = 1
 
static const int MIN_SCROLLBAR_SIZE = 50
 
- Protected Member Functions inherited from sd::ViewShell
void DisposeFunctions ()
 must be called in the beginning of each subclass d'tor. More...
 
virtual SfxUndoManagerImpGetUndoManager () const
 
void ImpGetUndoStrings (SfxItemSet &rSet) const
 
void ImpGetRedoStrings (SfxItemSet &rSet) const
 
void ImpSidUndo (SfxRequest &rReq)
 
void ImpSidRedo (SfxRequest &rReq)
 
 DECL_DLLPRIVATE_LINK (HScrollHdl, weld::Scrollbar &, void)
 
 DECL_DLLPRIVATE_LINK (VScrollHdl, weld::Scrollbar &, void)
 
virtual void VirtHScrollHdl (ScrollAdaptor *pHScroll)
 virtual scroll handler for horizontal Scrollbars More...
 
virtual void VirtVScrollHdl (ScrollAdaptor *pVScroll)
 handling for vertical Scrollbars More...
 
virtual VclPtr< SvxRulerCreateHRuler (::sd::Window *pWin)
 
virtual VclPtr< SvxRulerCreateVRuler (::sd::Window *pWin)
 
virtual void UpdateHRuler ()
 
virtual void UpdateVRuler ()
 
virtual void Activate (bool IsMDIActivate) override
 set focus to working window More...
 
virtual void Deactivate (bool IsMDIActivate) override
 
virtual void SetZoomFactor (const Fraction &rZoomX, const Fraction &rZoomY)
 Set zoom factor for InPlace. More...
 
void doShow ()
 This must be called after the ctor, but before anything else. More...
 
- Protected Member Functions inherited from SfxShell
 SfxShell ()
 
 SfxShell (SfxViewShell *pViewSh)
 
void SetViewShell_Impl (SfxViewShell *pView)
 
SAL_DLLPRIVATE void Invalidate_Impl (SfxBindings &rBindings, sal_uInt16 nId)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 
- Protected Attributes inherited from sd::ViewShell
VclPtr< sd::WindowmpContentWindow
 Window inside the rulers and scroll bars that shows a view of the document. More...
 
VclPtr< ScrollAdaptormpHorizontalScrollBar
 Horizontal scroll bar for the current slide is displayed when needed. More...
 
VclPtr< ScrollAdaptormpVerticalScrollBar
 Vertical scroll bar for whole document is always visible. More...
 
VclPtr< SvxRulermpHorizontalRuler
 Horizontal ruler is not shown by default. More...
 
VclPtr< SvxRulermpVerticalRuler
 Vertical ruler is not shown by default. More...
 
VclPtr< LayerTabBarmpLayerTabBar
 Layer tab bar. More...
 
bool mbHasRulers
 This flag controls whether the rulers are visible. More...
 
VclPtr< ::sd::WindowmpActiveWindow
 The active window. More...
 
::sd::ViewmpView
 
FrameViewmpFrameView
 
rtl::Reference< FuPoormxCurrentFunction
 
rtl::Reference< FuPoormxOldFunction
 
std::unique_ptr< ZoomListmpZoomList
 
double mfLastZoomScale
 
double mfAccumulatedZoom = 0
 
Point maViewPos
 
Size maViewSize
 
Size maScrBarWH
 
bool mbStartShowWithDialog
 
sal_uInt16 mnPrintedHandoutPageNum
 
sal_uInt16 mnPrintedHandoutPageCount
 
::tools::Rectangle maAllWindowRectangle
 Area covered by all windows, i.e. More...
 
ShellType meShellType
 The type of the shell. Returned by GetShellType(). More...
 
std::unique_ptr< Implementation, o3tl::default_delete< Implementation > > mpImpl
 

Detailed Description

Definition at line 35 of file SlideSorterViewShell.hxx.

Member Typedef Documentation

◆ PageSelection

Definition at line 146 of file SlideSorterViewShell.hxx.

Constructor & Destructor Documentation

◆ ~SlideSorterViewShell()

sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell ( )
overridevirtual

◆ SlideSorterViewShell()

sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell ( SfxViewFrame pFrame,
ViewShellBase rViewShellBase,
vcl::Window pParentWindow,
FrameView pFrameView 
)
private

Member Function Documentation

◆ AcceptDrop()

sal_Int8 sd::slidesorter::SlideSorterViewShell::AcceptDrop ( const AcceptDropEvent rEvt,
DropTargetHelper &  rTargetHelper,
::sd::Window pTargetWindow,
sal_uInt16  nPage,
SdrLayerID  nLayer 
)
overridevirtual

Reimplemented from sd::ViewShell.

Definition at line 651 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ Activate()

void sd::slidesorter::SlideSorterViewShell::Activate ( bool  IsMDIActivate)
overridevirtual

◆ AddSelectionChangeListener()

void sd::slidesorter::SlideSorterViewShell::AddSelectionChangeListener ( const Link< LinkParamNone *, void > &  rListener)

Add a listener that is called when the selection of the slide sorter changes.

Parameters
rListenerWhen this method is called multiple times for the same listener the second and all following calls are ignored. Each listener is added only once.

Definition at line 697 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

Referenced by sd::tools::EventMultiplexer::Implementation::notifyConfigurationChange().

◆ ArrangeGUIElements()

void sd::slidesorter::SlideSorterViewShell::ArrangeGUIElements ( )
overridevirtual

Place and size the controls and windows.

You may want to call this method when something has changed that for instance affects the visibility state of the scroll bars.

Reimplemented from sd::ViewShell.

Definition at line 447 of file SlideSorterViewShell.cxx.

References SfxShell::IsActive(), sd::ViewShell::maViewPos, sd::ViewShell::maViewSize, mbIsArrangeGUIElementsPending, and mpSlideSorter.

Referenced by Activate(), and sd::slidesorter::controller::SlotManager::FuTemporary().

◆ Command()

void sd::slidesorter::SlideSorterViewShell::Command ( const CommandEvent rEvent,
::sd::Window pWindow 
)
overridevirtual

Reimplemented from sd::ViewShell.

Definition at line 512 of file SlideSorterViewShell.cxx.

References sd::ViewShell::Command(), and mpSlideSorter.

◆ Create()

std::shared_ptr< SlideSorterViewShell > sd::slidesorter::SlideSorterViewShell::Create ( SfxViewFrame pFrame,
ViewShellBase rViewShellBase,
vcl::Window pParentWindow,
FrameView pFrameView 
)
static

◆ CreateAccessibleDocumentView()

css::uno::Reference< css::accessibility::XAccessible > sd::slidesorter::SlideSorterViewShell::CreateAccessibleDocumentView ( ::sd::Window pWindow)
overridevirtual

Create an accessible object representing the specified window.

If there is a valid controller then create a new instance of <type>AccessibleSlideSorterView</type>.

Parameters
pWindowThe returned object makes the document displayed in this window accessible.
Returns
Returns an <type>AccessibleSlideSorterView</type> object.

Otherwise delegate this call to the base class to return a default object (probably an empty reference).

Reimplemented from sd::ViewShell.

Definition at line 257 of file SlideSorterViewShell.cxx.

References mpSlideSorter, and sd::ViewShell::mpView.

◆ CreateSubController()

Reference< drawing::XDrawSubController > sd::slidesorter::SlideSorterViewShell::CreateSubController ( )
overridevirtual

Return a sub controller that implements the view shell specific part of the DrawController.

Implements sd::ViewShell.

Definition at line 238 of file SlideSorterViewShell.cxx.

References sd::ViewShell::IsMainViewShell(), and mpSlideSorter.

◆ Deactivate()

void sd::slidesorter::SlideSorterViewShell::Deactivate ( bool  IsMDIActivate)
overridevirtual

Reimplemented from sd::ViewShell.

Definition at line 506 of file SlideSorterViewShell.cxx.

References WriteFrameViewData().

◆ ExecCtrl()

void sd::slidesorter::SlideSorterViewShell::ExecCtrl ( SfxRequest rRequest)

Definition at line 370 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ ExecMovePageDown()

void sd::slidesorter::SlideSorterViewShell::ExecMovePageDown ( SfxRequest rReq)

◆ ExecMovePageFirst()

void sd::slidesorter::SlideSorterViewShell::ExecMovePageFirst ( SfxRequest rReq)

◆ ExecMovePageLast()

void sd::slidesorter::SlideSorterViewShell::ExecMovePageLast ( SfxRequest rReq)

◆ ExecMovePageUp()

void sd::slidesorter::SlideSorterViewShell::ExecMovePageUp ( SfxRequest rReq)

◆ ExecStatusBar()

void sd::slidesorter::SlideSorterViewShell::ExecStatusBar ( SfxRequest rRequest)
static

Definition at line 433 of file SlideSorterViewShell.cxx.

◆ ExecuteDrop()

sal_Int8 sd::slidesorter::SlideSorterViewShell::ExecuteDrop ( const ExecuteDropEvent rEvt,
DropTargetHelper &  rTargetHelper,
::sd::Window pTargetWindow,
sal_uInt16  nPage,
SdrLayerID  nLayer 
)
overridevirtual

Reimplemented from sd::ViewShell.

Definition at line 667 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ FuPermanent()

void sd::slidesorter::SlideSorterViewShell::FuPermanent ( SfxRequest rRequest)

Definition at line 421 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ FuSupport()

void sd::slidesorter::SlideSorterViewShell::FuSupport ( SfxRequest rRequest)

Definition at line 382 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ FuTemporary()

void sd::slidesorter::SlideSorterViewShell::FuTemporary ( SfxRequest rRequest)

We have to handle those slot calls here that need to have access to private or protected members and methods of this class.

Definition at line 391 of file SlideSorterViewShell.cxx.

References sd::ViewShell::Cancel(), SfxRequest::Done(), GetActualPage(), SfxRequest::GetSlot(), sd::ViewShell::mpImpl, mpSlideSorter, and Standard.

◆ GetActualPage()

SdPage * sd::slidesorter::SlideSorterViewShell::GetActualPage ( )
overridevirtual
Returns
current or selected page or 0. This method will fail in master page mode.
Deprecated:
, please use getCurrentPage();

Implements sd::ViewShell.

Definition at line 332 of file SlideSorterViewShell.cxx.

References sd::ViewShellBase::GetMainViewShell(), sd::ViewShell::GetViewShellBase(), sd::ViewShell::IsMainViewShell(), and mpSlideSorter.

Referenced by FuTemporary(), getCurrentPage(), and WriteFrameViewData().

◆ GetAttrState()

void sd::slidesorter::SlideSorterViewShell::GetAttrState ( SfxItemSet rSet)

Definition at line 427 of file SlideSorterViewShell.cxx.

References mpSlideSorter, and rSet.

◆ GetClipboardState()

void sd::slidesorter::SlideSorterViewShell::GetClipboardState ( SfxItemSet rSet)

Definition at line 363 of file SlideSorterViewShell.cxx.

References sd::ViewShell::GetMenuState(), mpSlideSorter, and rSet.

◆ GetCtrlState()

void sd::slidesorter::SlideSorterViewShell::GetCtrlState ( SfxItemSet rSet)

Definition at line 376 of file SlideSorterViewShell.cxx.

References mpSlideSorter, and rSet.

◆ getCurrentPage()

SdPage * sd::slidesorter::SlideSorterViewShell::getCurrentPage ( ) const
overridevirtual

inherited from sd::ViewShell

Implements sd::ViewShell.

Definition at line 324 of file SlideSorterViewShell.cxx.

References GetActualPage().

◆ GetMenuState()

void sd::slidesorter::SlideSorterViewShell::GetMenuState ( SfxItemSet rSet)

Definition at line 356 of file SlideSorterViewShell.cxx.

References sd::ViewShell::GetMenuState(), mpSlideSorter, and rSet.

◆ GetPageSelection()

std::shared_ptr< SlideSorterViewShell::PageSelection > sd::slidesorter::SlideSorterViewShell::GetPageSelection ( ) const

◆ GetSlideSorter() [1/2]

SlideSorter & sd::slidesorter::SlideSorterViewShell::GetSlideSorter ( ) const

◆ GetSlideSorter() [2/2]

SlideSorterViewShell * sd::slidesorter::SlideSorterViewShell::GetSlideSorter ( ViewShellBase rBase)
static

Return a slide sorter that is currently displayed in one of the panes that belong to the given ViewShellBase object.

When there is only one slide sorter visible then that one is returned. When two (or more) are visible then the one in the center pane is returned. When no slidesorter is visible then NULL is returned.

Definition at line 210 of file SlideSorterViewShell.cxx.

References i, and sdext::presenter::PresenterHelper::msFullScreenPaneURL.

Referenced by sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::ViewShell::ImpSidRedo(), sd::ViewShell::ImpSidUndo(), sd::DrawViewShell::IsSelected(), ChangeSlideExclusionStateUndoAction::Redo(), sd::DrawViewShell::RenameSlide(), and ChangeSlideExclusionStateUndoAction::Undo().

◆ GetStateMovePageDown()

void sd::slidesorter::SlideSorterViewShell::GetStateMovePageDown ( SfxItemSet rSet)

Definition at line 844 of file SlideSorterViewShell.cxx.

References GetStateMovePageLast(), and rSet.

◆ GetStateMovePageFirst()

void sd::slidesorter::SlideSorterViewShell::GetStateMovePageFirst ( SfxItemSet rSet)

◆ GetStateMovePageLast()

void sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast ( SfxItemSet rSet)

◆ GetStateMovePageUp()

void sd::slidesorter::SlideSorterViewShell::GetStateMovePageUp ( SfxItemSet rSet)

Definition at line 815 of file SlideSorterViewShell.cxx.

References GetStateMovePageFirst(), and rSet.

◆ GetStatusBarState()

void sd::slidesorter::SlideSorterViewShell::GetStatusBarState ( SfxItemSet rSet)

Definition at line 415 of file SlideSorterViewShell.cxx.

References mpSlideSorter, and rSet.

◆ ImpGetUndoManager()

SfxUndoManager * sd::slidesorter::SlideSorterViewShell::ImpGetUndoManager ( ) const
overrideprivatevirtual

Override this method to handle a missing tool bar correctly.

This is the case when the slide sorter is not the main view shell.

Reimplemented from sd::ViewShell.

Definition at line 306 of file SlideSorterViewShell.cxx.

References SfxShell::GetUndoManager(), sd::ViewShell::GetViewShellBase(), and sd::ViewShellBase::GetViewShellManager().

◆ Init()

void sd::slidesorter::SlideSorterViewShell::Init ( bool  bIsMainViewShell)
overridevirtual

Late initialization that has to be called after a new instance has completed its construction.

Reimplemented from sd::ViewShell.

Definition at line 196 of file SlideSorterViewShell.cxx.

References sd::ViewShell::GetActiveWindow(), sd::ViewShell::Init(), sd::ViewShell::mpContentWindow, mpSlideSorter, and vcl::Window::Show().

◆ Initialize()

void sd::slidesorter::SlideSorterViewShell::Initialize ( )
private

◆ InitInterface_Impl()

void sd::slidesorter::SlideSorterViewShell::InitInterface_Impl ( )
staticprivate

SfxInterface initializer.

Definition at line 95 of file SlideSorterViewShell.cxx.

◆ MainViewEndEditAndUnmarkAll()

void sd::slidesorter::SlideSorterViewShell::MainViewEndEditAndUnmarkAll ( )
private

◆ Paint()

void sd::slidesorter::SlideSorterViewShell::Paint ( const ::tools::Rectangle rRect,
::sd::Window pWin 
)
overridevirtual

This is a callback method used by the active window to delegate its Paint() call to.

This view shell itself delegates it to the view.

Reimplemented from sd::ViewShell.

Definition at line 437 of file SlideSorterViewShell.cxx.

References mpSlideSorter, and sd::ViewShell::SetActiveWindow().

◆ PostMoveSlidesActions()

void sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions ( const std::shared_ptr< SlideSorterViewShell::PageSelection > &  rpSelection)
private

◆ ReadFrameViewData()

void sd::slidesorter::SlideSorterViewShell::ReadFrameViewData ( FrameView pView)
overridevirtual

◆ RelocateToParentWindow()

bool sd::slidesorter::SlideSorterViewShell::RelocateToParentWindow ( vcl::Window pParentWindow)
overridevirtual

Try to relocate all toplevel window elements to the given parent window.

Reimplemented from sd::ViewShell.

Definition at line 294 of file SlideSorterViewShell.cxx.

References sd::ViewShell::mpFrameView, mpSlideSorter, and ReadFrameViewData().

◆ RemoveSelectionChangeListener()

void sd::slidesorter::SlideSorterViewShell::RemoveSelectionChangeListener ( const Link< LinkParamNone *, void > &  rListener)

Remove a listener that was called when the selection of the slide sorter changes.

Parameters
rListenerIt is safe to pass a listener that was not added are has been removed previously. Such calls are ignored.

Definition at line 704 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

Referenced by sd::tools::EventMultiplexer::Implementation::notifyConfigurationChange().

◆ SetPageSelection()

void sd::slidesorter::SlideSorterViewShell::SetPageSelection ( const std::shared_ptr< PageSelection > &  rSelection)

Definition at line 690 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ SetZoom()

void sd::slidesorter::SlideSorterViewShell::SetZoom ( ::tools::Long  nZoom)
overridevirtual

Set the zoom factor.

The given value is clipped against an upper bound.

Parameters
nZoomAn integer percent value, i.e. nZoom/100 is the actual zoom factor.

Reimplemented from sd::ViewShell.

Definition at line 588 of file SlideSorterViewShell.cxx.

◆ SetZoomRect()

void sd::slidesorter::SlideSorterViewShell::SetZoomRect ( const ::tools::Rectangle rZoomRect)
overridevirtual

◆ StartDrag()

void sd::slidesorter::SlideSorterViewShell::StartDrag ( const Point rDragPt,
vcl::Window pWindow 
)

Definition at line 641 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ SwitchViewFireFocus()

void sd::slidesorter::SlideSorterViewShell::SwitchViewFireFocus ( const css::uno::Reference< css::accessibility::XAccessible > &  xAcc)
overridevirtual

◆ SyncPageSelectionToDocument()

std::pair< sal_uInt16, sal_uInt16 > sd::slidesorter::SlideSorterViewShell::SyncPageSelectionToDocument ( const std::shared_ptr< SlideSorterViewShell::PageSelection > &  rpSelection)
private

Select the same pages in the document as are selected in the SlideSorterViewShell.

return the page numbers of the first and last selected pages

Definition at line 723 of file SlideSorterViewShell.cxx.

References sd::ViewShell::GetDoc(), SAL_MAX_UINT16, SdDrawDocument::SetSelected(), and SdDrawDocument::UnselectAllPages().

Referenced by ExecMovePageDown(), ExecMovePageFirst(), ExecMovePageLast(), ExecMovePageUp(), GetStateMovePageFirst(), and GetStateMovePageLast().

◆ UpdateScrollBars()

void sd::slidesorter::SlideSorterViewShell::UpdateScrollBars ( )
overrideprivatevirtual

This method overwrites the one from our base class: We do our own scroll bar and the base class call is thus unnecessary.

It simply calls UpdateScrollBars(false).

Reimplemented from sd::ViewShell.

Definition at line 634 of file SlideSorterViewShell.cxx.

References mpSlideSorter.

◆ WriteFrameViewData()

void sd::slidesorter::SlideSorterViewShell::WriteFrameViewData ( )
overridevirtual

Friends And Related Function Documentation

◆ controller::SlotManager

friend class controller::SlotManager
friend

Definition at line 38 of file SlideSorterViewShell.hxx.

Member Data Documentation

◆ mbIsArrangeGUIElementsPending

bool sd::slidesorter::SlideSorterViewShell::mbIsArrangeGUIElementsPending
private

Definition at line 201 of file SlideSorterViewShell.hxx.

Referenced by Activate(), and ArrangeGUIElements().

◆ mpSlideSorter

std::shared_ptr<SlideSorter> sd::slidesorter::SlideSorterViewShell::mpSlideSorter
private

The documentation for this class was generated from the following files: