LibreOffice Module sd (master) 1
|
#include <SlideSorterViewShell.hxx>
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 SdPage * | GetActualPage () override |
virtual SdPage * | getCurrentPage () 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< PageSelection > | GetPageSelection () 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 SlideSorter & | GetSlideSorter () 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::Window * | GetParentWindow () const |
Return the window that is the parent of all controls of this view shell. More... | |
sd::Window * | GetContentWindow () const |
::sd::View * | GetView () const |
SdrView * | GetDrawView () const |
SD_DLLPUBLIC DrawDocShell * | GetDocSh () const |
SdDrawDocument * | GetDoc () const |
SD_DLLPUBLIC SfxViewFrame * | GetViewFrame () const |
::sd::Window * | GetActiveWindow () const |
The active window is usually the mpContentWindow. More... | |
SD_DLLPUBLIC weld::Window * | GetFrameWeld () const |
void | SetActiveWindow (::sd::Window *pWindow) |
Set the active window. More... | |
const ::tools::Rectangle & | GetAllWindowRect () |
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 SvxNumBulletItem * | GetNumBulletItem (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) |
ZoomList * | GetZoomList () |
FrameView * | GetFrameView () |
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 SdPage * | GetActualPage ()=0 |
virtual SdPage * | getCurrentPage () 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::WindowUpdater * | GetWindowUpdater () 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 ViewShellBase & | GetViewShellBase () 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 SdPage * | CreateOrDuplicatePage (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 SfxInterface * | GetInterface () const |
void | SetName (const OUString &rName) |
const OUString & | GetName () const |
SfxViewShell * | GetViewShell () const |
const SfxPoolItem * | GetSlotState (sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr) |
const SfxPoolItem * | ExecuteSlot (SfxRequest &rReq, const SfxInterface *pIF=nullptr) |
void | ExecuteSlot (SfxRequest &rReq, bool bAsync) |
SfxItemPool & | GetPool () const |
void | SetPool (SfxItemPool *pNewPool) |
virtual SfxUndoManager * | GetUndoManager () |
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) |
SfxDispatcher * | GetDispatcher () const |
SfxViewFrame * | GetFrame () const |
virtual bool | HasUIFeature (SfxShellFeature nFeature) const |
void | UIFeatureChanged () |
const SfxPoolItem * | GetItem (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 SfxSlot * | GetVerbSlot_Impl (sal_uInt16 nId) const |
virtual SfxObjectShell * | GetObjectShell () |
void | SetDisableFlags (SfxDisableFlags nFlags) |
SfxDisableFlags | GetDisableFlags () const |
virtual std::optional< SfxItemSet > | CreateItemSet (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< SlideSorterViewShell > | Create (SfxViewFrame *pFrame, ViewShellBase &rViewShellBase, vcl::Window *pParentWindow, FrameView *pFrameView) |
static SD_DLLPUBLIC SlideSorterViewShell * | GetSlideSorter (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 SfxInterface * | GetStaticInterface () |
static void | EmptyExecStub (SfxShell *pShell, SfxRequest &) |
static void | EmptyStateStub (SfxShell *pShell, SfxItemSet &) |
static void | VerbState (SfxItemSet &) |
Private Member Functions | |
virtual SfxUndoManager * | ImpGetUndoManager () 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< SlideSorter > | mpSlideSorter |
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 SfxUndoManager * | ImpGetUndoManager () 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< SvxRuler > | CreateHRuler (::sd::Window *pWin) |
virtual VclPtr< SvxRuler > | CreateVRuler (::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::Window > | mpContentWindow |
Window inside the rulers and scroll bars that shows a view of the document. More... | |
VclPtr< ScrollAdaptor > | mpHorizontalScrollBar |
Horizontal scroll bar for the current slide is displayed when needed. More... | |
VclPtr< ScrollAdaptor > | mpVerticalScrollBar |
Vertical scroll bar for whole document is always visible. More... | |
VclPtr< SvxRuler > | mpHorizontalRuler |
Horizontal ruler is not shown by default. More... | |
VclPtr< SvxRuler > | mpVerticalRuler |
Vertical ruler is not shown by default. More... | |
VclPtr< LayerTabBar > | mpLayerTabBar |
Layer tab bar. More... | |
bool | mbHasRulers |
This flag controls whether the rulers are visible. More... | |
VclPtr< ::sd::Window > | mpActiveWindow |
The active window. More... | |
::sd::View * | mpView |
FrameView * | mpFrameView |
rtl::Reference< FuPoor > | mxCurrentFunction |
rtl::Reference< FuPoor > | mxOldFunction |
std::unique_ptr< ZoomList > | mpZoomList |
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 |
Definition at line 35 of file SlideSorterViewShell.hxx.
typedef ::std::vector<SdPage*> sd::slidesorter::SlideSorterViewShell::PageSelection |
Definition at line 146 of file SlideSorterViewShell.hxx.
|
overridevirtual |
Definition at line 146 of file SlideSorterViewShell.cxx.
References sd::FrameView::Disconnect(), sd::ViewShell::DisposeFunctions(), vcl::Window::GetAccessible(), sd::ViewShell::GetActiveWindow(), sd::ViewShell::GetFrameView(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 124 of file SlideSorterViewShell.cxx.
References sd::FrameView::Connect(), sd::ViewShell::GetContentWindow(), sd::ViewShell::GetDoc(), sd::ViewShell::GetFrameView(), vcl::Window::GetStyle(), sd::ViewShell::meShellType, sd::ViewShell::mpFrameView, vcl::Window::set_id(), SfxShell::SetName(), vcl::Window::SetStyle(), sd::ViewShell::ST_SLIDE_SORTER, and WB_DIALOGCONTROL.
Referenced by Create().
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 651 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
|
overridevirtual |
set focus to working window
Reimplemented from sd::ViewShell.
Definition at line 459 of file SlideSorterViewShell.cxx.
References sd::ViewShell::Activate(), ArrangeGUIElements(), sd::DrawViewShell::GetSidebarContextName(), sd::ViewShell::GetView(), sd::ViewShell::GetViewShellBase(), mbIsArrangeGUIElementsPending, ContextChangeEventMultiplexer::NotifyContextChange(), SfxShell::SetContextBroadcasterEnabled(), sd::ViewShell::ST_DRAW, sd::ViewShell::ST_IMPRESS, sd::ViewShell::ST_NONE, sd::ViewShell::ST_NOTES, and sd::ViewShell::ST_SLIDE_SORTER.
void sd::slidesorter::SlideSorterViewShell::AddSelectionChangeListener | ( | const Link< LinkParamNone *, void > & | rListener | ) |
Add a listener that is called when the selection of the slide sorter changes.
rListener | When 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().
|
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().
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 512 of file SlideSorterViewShell.cxx.
References sd::ViewShell::Command(), and mpSlideSorter.
|
static |
Definition at line 102 of file SlideSorterViewShell.cxx.
References Exception, and SlideSorterViewShell().
Referenced by sd::framework::BasicViewFactory::CreateViewShell().
|
overridevirtual |
Create an accessible object representing the specified window.
If there is a valid controller then create a new instance of <type>AccessibleSlideSorterView</type>.
pWindow | The returned object makes the document displayed in this window accessible. |
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.
|
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.
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 506 of file SlideSorterViewShell.cxx.
References WriteFrameViewData().
void sd::slidesorter::SlideSorterViewShell::ExecCtrl | ( | SfxRequest & | rRequest | ) |
Definition at line 370 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
void sd::slidesorter::SlideSorterViewShell::ExecMovePageDown | ( | SfxRequest & | rReq | ) |
Definition at line 820 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetDoc(), GetPageSelection(), SdDrawDocument::GetSdPageCount(), MainViewEndEditAndUnmarkAll(), SdDrawDocument::MovePages(), PostMoveSlidesActions(), Standard, and SyncPageSelectionToDocument().
void sd::slidesorter::SlideSorterViewShell::ExecMovePageFirst | ( | SfxRequest & | rReq | ) |
Definition at line 743 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetDoc(), GetPageSelection(), MainViewEndEditAndUnmarkAll(), SdDrawDocument::MovePages(), PostMoveSlidesActions(), and SyncPageSelectionToDocument().
void sd::slidesorter::SlideSorterViewShell::ExecMovePageLast | ( | SfxRequest & | rReq | ) |
Definition at line 849 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetDoc(), GetPageSelection(), SdDrawDocument::GetSdPageCount(), MainViewEndEditAndUnmarkAll(), SdDrawDocument::MovePages(), PostMoveSlidesActions(), Standard, and SyncPageSelectionToDocument().
void sd::slidesorter::SlideSorterViewShell::ExecMovePageUp | ( | SfxRequest & | rReq | ) |
Move slides up and down.
Mainly uno commands.
Definition at line 788 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetDoc(), GetPageSelection(), MainViewEndEditAndUnmarkAll(), SdDrawDocument::MovePages(), PostMoveSlidesActions(), SAL_MAX_UINT16, and SyncPageSelectionToDocument().
|
static |
Definition at line 433 of file SlideSorterViewShell.cxx.
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 667 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
void sd::slidesorter::SlideSorterViewShell::FuPermanent | ( | SfxRequest & | rRequest | ) |
Definition at line 421 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
void sd::slidesorter::SlideSorterViewShell::FuSupport | ( | SfxRequest & | rRequest | ) |
Definition at line 382 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
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.
|
overridevirtual |
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().
void sd::slidesorter::SlideSorterViewShell::GetAttrState | ( | SfxItemSet & | rSet | ) |
Definition at line 427 of file SlideSorterViewShell.cxx.
References mpSlideSorter, and rSet.
void sd::slidesorter::SlideSorterViewShell::GetClipboardState | ( | SfxItemSet & | rSet | ) |
Definition at line 363 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetMenuState(), mpSlideSorter, and rSet.
void sd::slidesorter::SlideSorterViewShell::GetCtrlState | ( | SfxItemSet & | rSet | ) |
Definition at line 376 of file SlideSorterViewShell.cxx.
References mpSlideSorter, and rSet.
|
overridevirtual |
inherited from sd::ViewShell
Implements sd::ViewShell.
Definition at line 324 of file SlideSorterViewShell.cxx.
References GetActualPage().
void sd::slidesorter::SlideSorterViewShell::GetMenuState | ( | SfxItemSet & | rSet | ) |
Definition at line 356 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetMenuState(), mpSlideSorter, and rSet.
std::shared_ptr< SlideSorterViewShell::PageSelection > sd::slidesorter::SlideSorterViewShell::GetPageSelection | ( | ) | const |
Return the set of selected pages.
Definition at line 684 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
Referenced by sd::FuPresentationLayout::DoExecute(), ExecMovePageDown(), ExecMovePageFirst(), ExecMovePageLast(), ExecMovePageUp(), sd::SlideTransitionPane::getSelectedPages(), GetStateMovePageFirst(), and GetStateMovePageLast().
SlideSorter & sd::slidesorter::SlideSorterViewShell::GetSlideSorter | ( | ) | const |
Definition at line 288 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
Referenced by sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::DrawViewShell::DeleteActualPage(), sd::FuPresentationLayout::DoExecute(), sd::DrawViewShell::DuplicateSelectedSlides(), sd::DrawViewShell::FuTemporary(), sd::SlideTransitionPane::getSelectedPages(), sd::sidebar::IMPL_LINK_NOARG(), sd::ViewShell::ImpSidRedo(), sd::ViewShell::ImpSidUndo(), sd::DrawViewShell::IsSelected(), ChangeSlideExclusionStateUndoAction::Redo(), sd::DrawViewShell::RenameSlide(), sd::DrawViewShell::SelectPage(), and ChangeSlideExclusionStateUndoAction::Undo().
|
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().
void sd::slidesorter::SlideSorterViewShell::GetStateMovePageDown | ( | SfxItemSet & | rSet | ) |
Definition at line 844 of file SlideSorterViewShell.cxx.
References GetStateMovePageLast(), and rSet.
void sd::slidesorter::SlideSorterViewShell::GetStateMovePageFirst | ( | SfxItemSet & | rSet | ) |
Definition at line 759 of file SlideSorterViewShell.cxx.
References SfxItemSet::DisableItem(), sd::ViewShellBase::GetMainViewShell(), sd::DrawViewShell::GetPageKind(), GetPageSelection(), sd::ViewShell::GetViewShellBase(), Handout, sd::ViewShell::IsMainViewShell(), rSet, and SyncPageSelectionToDocument().
Referenced by GetStateMovePageUp().
void sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast | ( | SfxItemSet & | rSet | ) |
Definition at line 868 of file SlideSorterViewShell.cxx.
References SfxItemSet::DisableItem(), sd::ViewShell::GetDoc(), sd::ViewShellBase::GetMainViewShell(), sd::DrawViewShell::GetPageKind(), GetPageSelection(), SdDrawDocument::GetSdPageCount(), sd::ViewShell::GetViewShellBase(), Handout, rSet, Standard, and SyncPageSelectionToDocument().
Referenced by GetStateMovePageDown().
void sd::slidesorter::SlideSorterViewShell::GetStateMovePageUp | ( | SfxItemSet & | rSet | ) |
Definition at line 815 of file SlideSorterViewShell.cxx.
References GetStateMovePageFirst(), and rSet.
void sd::slidesorter::SlideSorterViewShell::GetStatusBarState | ( | SfxItemSet & | rSet | ) |
Definition at line 415 of file SlideSorterViewShell.cxx.
References mpSlideSorter, and rSet.
|
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().
|
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().
|
private |
Definition at line 169 of file SlideSorterViewShell.cxx.
References sd::slidesorter::SlideSorter::CreateSlideSorter(), sd::ViewShell::doShow(), sd::ViewShell::GetDoc(), sd::ViewShell::GetDocSh(), SfxShell::GetPool(), SfxShell::GetUndoManager(), vcl::Window::Hide(), sd::ViewShell::mpContentWindow, sd::ViewShell::mpHorizontalScrollBar, mpSlideSorter, sd::ViewShell::mpVerticalScrollBar, sd::ViewShell::mpView, SfxShell::SetPool(), SfxShell::SetUndoManager(), and vcl::Window::Show().
|
staticprivate |
SfxInterface initializer.
Definition at line 95 of file SlideSorterViewShell.cxx.
|
private |
Definition at line 711 of file SlideSorterViewShell.cxx.
References sd::DrawViewShell::GetDrawView(), sd::ViewShellBase::GetMainViewShell(), sd::ViewShell::GetViewShellBase(), SdrObjEditView::SdrEndTextEdit(), and SdrView::UnmarkAll().
Referenced by ExecMovePageDown(), ExecMovePageFirst(), ExecMovePageLast(), and ExecMovePageUp().
|
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().
|
private |
Definition at line 897 of file SlideSorterViewShell.cxx.
References SfxViewFrame::GetBindings(), sd::ViewShell::GetDoc(), SdDrawDocument::GetSdPage(), SdDrawDocument::GetSdPageCount(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), mpSlideSorter, SdDrawDocument::SetSelected(), and Standard.
Referenced by ExecMovePageDown(), ExecMovePageFirst(), ExecMovePageLast(), and ExecMovePageUp().
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 521 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetActiveWindow(), sd::FrameView::GetDrawMode(), sd::slidesorter::view::SlideSorterView::GetLayouter(), sd::ViewShellBase::GetMainViewShell(), sd::slidesorter::view::SlideSorterView::GetOrientation(), vcl::Window::GetOutDev(), sd::FrameView::GetSelectedPage(), sd::FrameView::GetSlidesPerRow(), sd::ViewShell::GetViewShellBase(), sd::slidesorter::view::Layouter::GRID, sd::ViewShell::IsMainViewShell(), sd::ViewShell::mpFrameView, mpSlideSorter, sd::slidesorter::view::Layouter::SetColumnCount(), and OutputDevice::SetDrawMode().
Referenced by RelocateToParentWindow().
|
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().
void sd::slidesorter::SlideSorterViewShell::RemoveSelectionChangeListener | ( | const Link< LinkParamNone *, void > & | rListener | ) |
Remove a listener that was called when the selection of the slide sorter changes.
rListener | It 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().
void sd::slidesorter::SlideSorterViewShell::SetPageSelection | ( | const std::shared_ptr< PageSelection > & | rSelection | ) |
Definition at line 690 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
|
overridevirtual |
Set the zoom factor.
The given value is clipped against an upper bound.
nZoom | An integer percent value, i.e. nZoom/100 is the actual zoom factor. |
Reimplemented from sd::ViewShell.
Definition at line 588 of file SlideSorterViewShell.cxx.
|
overridevirtual |
Set zoom rectangle for active window.
Sets all split windows to the same zoom factor.
Reimplemented from sd::ViewShell.
Definition at line 595 of file SlideSorterViewShell.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), SfxViewFrame::GetBindings(), tools::Rectangle::GetHeight(), sd::ViewShell::GetViewFrame(), tools::Rectangle::GetWidth(), Size::Height(), SfxBindings::Invalidate(), tools::Rectangle::Left(), mpSlideSorter, tools::Rectangle::SetPos(), sd::ViewShell::SetZoomRect(), tools::Rectangle::Top(), and Size::Width().
void sd::slidesorter::SlideSorterViewShell::StartDrag | ( | const Point & | rDragPt, |
vcl::Window * | pWindow | ||
) |
Definition at line 641 of file SlideSorterViewShell.cxx.
References mpSlideSorter.
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 276 of file SlideSorterViewShell.cxx.
References accessibility::AccessibleSlideSorterView::SwitchViewActivated().
|
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().
|
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.
|
overridevirtual |
Reimplemented from sd::ViewShell.
Definition at line 557 of file SlideSorterViewShell.cxx.
References sd::ViewShell::GetActiveWindow(), GetActualPage(), sd::slidesorter::view::Layouter::GetColumnCount(), sd::FrameView::GetDrawMode(), sd::slidesorter::view::SlideSorterView::GetLayouter(), SdrPage::GetPageNum(), sd::FrameView::GetSelectedPage(), sd::ViewShell::IsMainViewShell(), sd::ViewShell::mpFrameView, mpSlideSorter, sd::FrameView::SetDrawMode(), sd::FrameView::SetSelectedPage(), and sd::FrameView::SetSlidesPerRow().
Referenced by Deactivate().
|
friend |
Definition at line 38 of file SlideSorterViewShell.hxx.
|
private |
Definition at line 201 of file SlideSorterViewShell.hxx.
Referenced by Activate(), and ArrangeGUIElements().
|
private |
Definition at line 200 of file SlideSorterViewShell.hxx.
Referenced by AcceptDrop(), AddSelectionChangeListener(), ArrangeGUIElements(), Command(), CreateAccessibleDocumentView(), CreateSubController(), ExecCtrl(), ExecuteDrop(), FuPermanent(), FuSupport(), FuTemporary(), GetActualPage(), GetAttrState(), GetClipboardState(), GetCtrlState(), GetMenuState(), GetPageSelection(), GetSlideSorter(), GetStatusBarState(), Init(), Initialize(), Paint(), PostMoveSlidesActions(), ReadFrameViewData(), RelocateToParentWindow(), RemoveSelectionChangeListener(), SetPageSelection(), SetZoomRect(), StartDrag(), UpdateScrollBars(), and WriteFrameViewData().