LibreOffice Module sd (master) 1
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
sd::ViewShell Class Referenceabstract

Base class of the stacked shell hierarchy. More...

#include <ViewShell.hxx>

Inheritance diagram for sd::ViewShell:
[legend]
Collaboration diagram for sd::ViewShell:
[legend]

Classes

class  Implementation
 This class contains (will contain) the implementation of methods that have not be accessible from the outside. More...
 

Public Types

enum  ShellType {
  ST_NONE ,
  ST_DRAW ,
  ST_IMPRESS ,
  ST_NOTES ,
  ST_HANDOUT ,
  ST_OUTLINE ,
  ST_SLIDE_SORTER ,
  ST_PRESENTATION ,
  ST_SIDEBAR
}
 

Public Member Functions

 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 Attributes

static const int MAX_HSPLIT_CNT = 1
 
static const int MAX_VSPLIT_CNT = 1
 
static const int MIN_SCROLLBAR_SIZE = 50
 

Protected Member Functions

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)
 

Protected Attributes

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
 

Private Member Functions

void construct ()
 Code common to all constructors. More...
 
void SetupRulers ()
 Create the rulers. More...
 

Private Attributes

VclPtr< vcl::WindowmpParentWindow
 
::std::unique_ptr< ::sd::WindowUpdatermpWindowUpdater
 This window updater is used to keep all relevant windows up to date with reference to the digit language used to display digits in text shapes. More...
 

Friends

class ViewShellBase
 

Additional Inherited Members

- 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 &)
 
- Static Protected Member Functions inherited from SfxShell
static void HandleOpenXmlFilterSettings (SfxRequest &)
 

Detailed Description

Base class of the stacked shell hierarchy.

Despite its name this class is not a descendant of SfxViewShell but of SfxShell. Its name expresses the fact that it acts like a view shell. Being a stacked shell rather than being an actual view shell there can be several instances of this class that

Definition at line 90 of file ViewShell.hxx.

Member Enumeration Documentation

◆ ShellType

Enumerator
ST_NONE 
ST_DRAW 
ST_IMPRESS 
ST_NOTES 
ST_HANDOUT 
ST_OUTLINE 
ST_SLIDE_SORTER 
ST_PRESENTATION 
ST_SIDEBAR 

Definition at line 94 of file ViewShell.hxx.

Constructor & Destructor Documentation

◆ ViewShell()

sd::ViewShell::ViewShell ( vcl::Window pParentWindow,
ViewShellBase rViewShellBase 
)

declare SFX-Slotmap and standard interface

Definition at line 134 of file viewshel.cxx.

References construct().

◆ ~ViewShell()

sd::ViewShell::~ViewShell ( )
overridevirtual

Member Function Documentation

◆ AcceptDrop()

sal_Int8 sd::ViewShell::AcceptDrop ( const AcceptDropEvent rEvt,
DropTargetHelper &  rTargetHelper,
::sd::Window pTargetWindow,
sal_uInt16  nPage,
SdrLayerID  nLayer 
)
virtual

Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.

Definition at line 856 of file viewshe2.cxx.

References sd::View::AcceptDrop(), DND_ACTION_NONE, and GetView().

Referenced by sd::Window::AcceptDrop().

◆ Activate()

void sd::ViewShell::Activate ( bool  IsMDIActivate)
overrideprotectedvirtual

◆ ActivateObject()

bool sd::ViewShell::ActivateObject ( SdrOle2Obj pObj,
sal_Int32  nVerb 
)
virtual

Reimplemented in sd::DrawViewShell.

Definition at line 624 of file viewshe2.cxx.

References ChartHelper::AdaptDefaultsForChart(), aName, tools::Rectangle::Center(), SdrOle2Obj::ClearGraphic(), comphelper::EmbeddedObjectContainer::CreateEmbeddedObject(), SfxInPlaceClient::DoVerb(), ERRCODE_NONE, ERRCODE_SFX_OLEGENERAL, ERRCTX_SO_DOVERB, SfxDispatcher::Execute(), SfxViewShell::FindIPClient(), GetActiveWindow(), SdrOle2Obj::GetAspect(), SfxViewFrame::GetBindings(), SvGlobalName::GetByteSequence(), SdrObject::GetCurrentBoundRect(), SfxViewFrame::GetDispatcher(), GetDoc(), GetDocSh(), SfxObjectShell::GetEmbeddedObjectContainer(), GetFrameWeld(), tools::Rectangle::GetHeight(), SdrTextObj::GetLogicRect(), SdrOle2Obj::GetObjRef(), SdrOle2Obj::GetOrigObjSize(), SdrOle2Obj::GetProgName(), tools::Rectangle::GetSize(), GetView(), SfxViewShell::GetViewFrame(), SfxShell::GetViewShell(), GetViewShellBase(), tools::Rectangle::GetWidth(), ErrorHandler::HandleError(), Size::Height(), SfxBindings::Invalidate(), SdrOle2Obj::IsChart(), SdrObjEditView::IsTextEdit(), tools::Rectangle::Move(), Fraction::ReduceInaccurate(), RID_SO_ERRCTX, sd::View::SdrEndTextEdit(), SdrObject::SetEmptyPresObj(), SdrObject::SetName(), SfxInPlaceClient::SetObjArea(), SdrOle2Obj::SetObjRef(), SdrObject::SetOutlinerParaObject(), SdrOle2Obj::SetPersistName(), tools::Rectangle::SetSize(), SfxInPlaceClient::SetSizeScale(), SfxShell::SetVerbs(), SfxObjectShell::SetWaitCursor(), SO3_SC_CLASSID, SO3_SCH_CLASSID, SO3_SM_CLASSID, Size::Width(), Point::X(), and Point::Y().

Referenced by sd::DrawViewShell::ActivateObject(), sd::FuInsertOLE::DoExecute(), and sd::FuPoor::KeyInput().

◆ ArrangeGUIElements()

void sd::ViewShell::ArrangeGUIElements ( )
virtual

◆ Cancel()

void sd::ViewShell::Cancel ( )

◆ Command()

void sd::ViewShell::Command ( const CommandEvent rCEvt,
::sd::Window pWin 
)
virtual

◆ construct()

void sd::ViewShell::construct ( )
private

Code common to all constructors.

common initialization part of both constructors

It generally is a bad idea to call this function from outside a constructor.

Definition at line 174 of file viewshel.cxx.

References mbHasRulers, mfLastZoomScale, mpActiveWindow, mpFrameView, mpView, and mpZoomList.

Referenced by ViewShell().

◆ CreateAccessibleDocumentView()

css::uno::Reference< css::accessibility::XAccessible > sd::ViewShell::CreateAccessibleDocumentView ( ::sd::Window pWindow)
virtual

Create an accessible object representing the specified window.

This default implementation returns only an empty reference.

Override this method to provide view mode specific objects. The default implementation returns an empty reference.

Parameters
pWindowMake the document displayed in this window accessible.
Returns
This default implementation returns an empty reference.

See derived classes for more interesting examples.

Reimplemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.

Definition at line 1385 of file viewshel.cxx.

Referenced by sd::Window::CreateAccessible(), and sd::ShowWindow::CreateAccessible().

◆ CreateHRuler()

VclPtr< SvxRuler > sd::ViewShell::CreateHRuler ( ::sd::Window pWin)
protectedvirtual

Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.

Definition at line 229 of file viewshe2.cxx.

Referenced by SetupRulers().

◆ CreateOrDuplicatePage()

SdPage * sd::ViewShell::CreateOrDuplicatePage ( SfxRequest rRequest,
PageKind  ePageKind,
SdPage pPage,
const sal_Int32  nInsertPosition = -1 
)
virtual

Depending on the given request create a new page or duplicate an existing one.

This method consists basically of three parts:

A new page is created behind the given slide.

Parameters
rRequestThe request as passed to an Execute() method. Its arguments are evaluated. Its slot id determines whether to create or duplicate a slide.
pPageThis page is either duplicated or becomes the predecessor of the new slide. If NULL a duplication request is ignored. A new slide is inserted as first slide.
nInsertPositionWhen -1 (the default) then insert after pPage. Otherwise insert before the given index (of a standard page).
Returns
The new slide is returned. If for some reason a new page can not be created then NULL is returned.
  1. Process the arguments of the SFX request.
  2. Use the model to create a new page or duplicate an existing one.
  3. Update the tab control and switch to the new page.

Reimplemented in sd::DrawViewShell.

Definition at line 160 of file viewshe3.cxx.

References SdrEditView::AddUndo(), AUTOLAYOUT_END, AUTOLAYOUT_NONE, AUTOLAYOUT_NOTES, AUTOLAYOUT_START, AUTOLAYOUT_TITLE, AUTOLAYOUT_TITLE_CONTENT, SdrEditView::BegUndo(), Cancel(), CHECK_RANGE, SfxItemSet::Count(), SdDrawDocument::CreateFirstPages(), SdDrawDocument::CreatePage(), SdrUndoFactory::CreateUndoNewPage(), Draw, SdDrawDocument::DuplicatePage(), SdrEditView::EndUndo(), ERRCODE_BASIC_BAD_PROP_VALUE, ERRCODE_BASIC_WRONG_ARGS, SfxDispatcher::Execute(), StarBASIC::FatalError(), SfxRequest::GetArg(), SfxRequest::GetArgs(), SdPage::GetAutoLayout(), SfxViewFrame::GetDispatcher(), GetDoc(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerID(), SdrModel::GetPage(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPage(), SdDrawDocument::GetSdPageCount(), SdrModel::GetSdrUndoFactory(), SfxRequest::GetSlot(), CntUInt16Item::GetValue(), CntUInt32Item::GetValue(), CntUnencodedStringItem::GetValue(), GetView(), GetViewFrame(), HasCurrentFunction(), i, SfxRequest::Ignore(), SdrLayerIDSet::IsSet(), SdrEditView::IsUndoEnabled(), SdDrawDocument::MovePages(), Notes, SAL_INFO, SdResId(), SdrLayerIDSet::SetAll(), SdPage::SetSelected(), Standard, SdDrawDocument::StopWorkStartupDelay(), sUNO_LayerName_background, sUNO_LayerName_background_objects, SdrPage::TRG_GetMasterPageVisibleLayers(), and SdrPage::TRG_HasMasterPage().

Referenced by sd::DrawViewShell::CreateOrDuplicatePage(), sd::slidesorter::controller::SlotManager::DuplicateSelectedSlides(), and sd::slidesorter::controller::SlotManager::InsertSlide().

◆ CreateSubController()

virtual css::uno::Reference< css::drawing::XDrawSubController > sd::ViewShell::CreateSubController ( )
pure virtual

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

Implemented in sd::DrawViewShell, sd::OutlineViewShell, and sd::slidesorter::SlideSorterViewShell.

References Shutdown.

◆ CreateVRuler()

VclPtr< SvxRuler > sd::ViewShell::CreateVRuler ( ::sd::Window pWin)
protectedvirtual

Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.

Definition at line 234 of file viewshe2.cxx.

Referenced by SetupRulers().

◆ Deactivate()

void sd::ViewShell::Deactivate ( bool  IsMDIActivate)
overrideprotectedvirtual

◆ DeactivateCurrentFunction()

void sd::ViewShell::DeactivateCurrentFunction ( bool  bPermanent = false)

◆ DECL_DLLPRIVATE_LINK() [1/2]

sd::ViewShell::DECL_DLLPRIVATE_LINK ( HScrollHdl  ,
weld::Scrollbar ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [2/2]

sd::ViewShell::DECL_DLLPRIVATE_LINK ( VScrollHdl  ,
weld::Scrollbar ,
void   
)
protected

◆ DisposeFunctions()

void sd::ViewShell::DisposeFunctions ( )
protected

must be called in the beginning of each subclass d'tor.

disposes and clears both current and old function.

Definition at line 1475 of file viewshel.cxx.

References mxCurrentFunction, and mxOldFunction.

Referenced by sd::DrawViewShell::ImplDestroy(), sd::OutlineViewShell::~OutlineViewShell(), and sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell().

◆ doShow()

void sd::ViewShell::doShow ( )
protected

This must be called after the ctor, but before anything else.

It's the part of construction that is dependent on showing the top-level window.

Showing a window with a11y enabled causes various callbacks to be triggered.

Due to the "virtual methods are not virtual during constructors" problem, this is a disaster to call from the ctor

i.e. construct calls Show, and if a11y is enabled this reenters the not-fully constructed object and calls CreateAccessibleDocumentView, so if construct is called from the ctor then if a derived class is constructed the base-case CreateAccessibleDocumentView is used, not the derived CreateAccessibleDocumentView. i.e. run smoketest under a11y with debugging assertions enabled

Definition at line 238 of file viewshel.cxx.

References VclPtr< class reference_type >::get(), GetDocSh(), GetParentWindow(), maScrBarWH, mpContentWindow, mpHorizontalScrollBar, mpVerticalScrollBar, Resize(), SAL_INFO, and vcl::Window::Show().

Referenced by sd::slidesorter::SlideSorterViewShell::Initialize(), and sd::OutlineViewShell::OutlineViewShell().

◆ DoVerb()

ErrCode sd::ViewShell::DoVerb ( sal_Int32  nVerb)
virtual

This function is called from the underlying ViewShellBase object to handle a verb execution request.

Reimplemented in sd::DrawViewShell.

Definition at line 1417 of file viewshel.cxx.

References ERRCODE_NONE.

Referenced by sd::ViewShellBase::DoVerb().

◆ DrawMarkRect()

void sd::ViewShell::DrawMarkRect ( const ::tools::Rectangle rRect) const

Draw a selection rectangle with the ?provided pen on all split windows.

Definition at line 442 of file viewshe2.cxx.

References mpContentWindow.

Referenced by sd::FuZoom::MouseButtonUp(), sd::FuZoom::MouseMove(), and sd::FuZoom::~FuZoom().

◆ ExecReq()

void sd::ViewShell::ExecReq ( SfxRequest rReq)

◆ ExecuteDrop()

sal_Int8 sd::ViewShell::ExecuteDrop ( const ExecuteDropEvent rEvt,
DropTargetHelper &  rTargetHelper,
::sd::Window pTargetWindow,
sal_uInt16  nPage,
SdrLayerID  nLayer 
)
virtual

◆ Exit()

void sd::ViewShell::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.

Definition at line 269 of file viewshel.cxx.

References Deactivate(), sd::DrawDocShell::Disconnect(), GetDocSh(), GetView(), IsMainViewShell(), SdrObjEditView::IsTextEdit(), sd::View::SdrEndTextEdit(), SetIsMainViewShell(), and SdrView::UnmarkAll().

Referenced by Shutdown().

◆ fireSwitchCurrentPage()

void sd::ViewShell::fireSwitchCurrentPage ( sal_Int32  pageIndex)

◆ GetActiveWindow()

::sd::Window * sd::ViewShell::GetActiveWindow ( ) const
inline

The active window is usually the mpContentWindow.

When there is a show running then the active window is a ShowWindow.

Definition at line 155 of file ViewShell.hxx.

Referenced by sd::View::AcceptDrop(), sd::DrawViewShell::Activate(), sd::OutlineViewShell::Activate(), ActivateObject(), sd::DrawViewShell::AssignFrom3DWindow(), sd::View::ClearSelectionClipboard(), sd::SmartTagSet::Command(), sd::AnnotationTag::Command(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::OutlineView::ConnectToApplication(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::View::CreateClipboardDataObject(), sd::slidesorter::controller::Clipboard::CreateSlideTransferable(), sd::View::DoConnect(), sd::FuCustomShowDlg::DoExecute(), sd::FuBulletAndPosition::DoExecute(), sd::FuSnapLine::DoExecute(), sd::View::DoPaste(), sd::FuPoor::DoPasteUnformatted(), sd::FuOutlineText::DoPasteUnformatted(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), ExecReq(), sd::DrawViewShell::ExecRuler(), sd::DrawDocShell::Execute(), sd::TextObjectBar::Execute(), sd::PresentationViewShell::FinishInitialization(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::OutlineView::GetActualPage(), sd::OutlineView::GetAttributes(), sd::OutlineViewShell::GetAttrState(), sd::TextObjectBar::GetAttrState(), sd::DrawViewShell::GetCtrlState(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetRulerState(), sd::DrawViewShell::GetSnapItemState(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::OutlineView::GetStyleSheet(), sd::DrawDocShell::GetVisArea(), sd::SdUnoDrawView::GetZoom(), HandleScrollCommand(), IMPL_LINK_NOARG(), sd::DrawViewShell::ImplDestroy(), sd::slidesorter::SlideSorterViewShell::Init(), InitWindows(), sd::View::InsertData(), sd::FuBullet::InsertFormattingMark(), sd::View::InsertGraphic(), sd::ViewClipboard::InsertSlides(), sd::FuBullet::InsertSpecialCharacter(), sd::InsertTableImpl(), sd::DrawViewShell::InsertURLButton(), sd::DrawViewShell::InsertURLField(), KeyInput(), sd::SmartTagSet::MouseButtonDown(), sd::MotionPathTag::MouseButtonDown(), sd::AnnotationTag::MouseButtonDown(), sd::DrawViewShell::MouseButtonUp(), sd::DrawViewShell::MouseMove(), sd::ViewShellBase::NotifyCursor(), sd::View::onAccessibilityOptionsChanged(), sd::MotionPathTag::OnMove(), sd::AnnotationTag::OnMove(), sd::MotionPathTag::OnTabHandles(), sd::OutlineView::OutlineView(), sd::DrawViewShell::ReadFrameViewData(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), sd::DrawViewShell::ReadUserDataSequence(), sd::FormShellManager::RegisterAtCenterPane(), Resize(), sd::DrawViewShell::ScannerEvent(), Scroll(), sd::AnnotationTag::select(), sd::OutlineView::SetAttributes(), sd::FuBulletAndPosition::SetCurrentBulletsNumbering(), SetupRulers(), SetWinViewPos(), SetZoom(), sd::DrawViewShell::SetZoomFactor(), SetZoomRect(), sd::FuHangulHanjaConversion::StartConversion(), sd::DrawViewShell::StartRulerDrag(), sd::DrawViewShell::SwitchPage(), sd::View::UpdateSelectionClipboard(), sd::Client::ViewChanged(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::WriteFrameViewData(), sd::slidesorter::SlideSorterViewShell::WriteFrameViewData(), sd::OutlineViewShell::~OutlineViewShell(), sd::slidesorter::SlideSorterViewShell::~SlideSorterViewShell(), and sd::ViewShellBase::~ViewShellBase().

◆ GetActualPage()

virtual SdPage * sd::ViewShell::GetActualPage ( )
pure virtual

◆ GetAllWindowRect()

const ::tools::Rectangle & sd::ViewShell::GetAllWindowRect ( )

Return the rectangle that encloses all windows of the view.

That excludes the controls in the frame like rulers, scroll bars, tab bar, and buttons.

Returns
The rectangle is returned in screen coordinates, i.e. pixel values relative to the upper left corner of the screen?.
enclosing rectangle of all (split-) windows.

Definition at line 791 of file viewshe2.cxx.

References maAllWindowRectangle, mpContentWindow, and tools::Rectangle::SetPos().

Referenced by sd::FuPoor::ForceScroll().

◆ GetBorder()

SvBorder sd::ViewShell::GetBorder ( )

Return the border that is drawn around the actual document view.

The border contains typically rulers and scroll bars.

Definition at line 934 of file viewshel.cxx.

References SvBorder::Bottom(), Size::Height(), SvBorder::Left(), maScrBarWH, mbHasRulers, mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpVerticalRuler, mpVerticalScrollBar, SvBorder::Right(), SetupRulers(), SvBorder::Top(), and Size::Width().

Referenced by sd::ViewShellBase::Implementation::ResizePixel(), and sd::ViewShellBase::UpdateBorder().

◆ GetContentWindow()

sd::Window * sd::ViewShell::GetContentWindow ( ) const

◆ GetCurrentFunction()

const rtl::Reference< FuPoor > & sd::ViewShell::GetCurrentFunction ( ) const
inline

◆ getCurrentPage()

virtual SdPage * sd::ViewShell::getCurrentPage ( ) const
pure virtual

◆ GetDoc()

SdDrawDocument * sd::ViewShell::GetDoc ( ) const

Definition at line 1412 of file viewshel.cxx.

References sd::ViewShellBase::GetDocument(), and GetViewShellBase().

Referenced by sd::TabControl::AcceptDrop(), sd::OutlineViewShell::Activate(), ActivateObject(), sd::DrawViewShell::ArrangeGUIElements(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::DrawViewShell::AttrState(), sd::DrawViewShell::ChangeEditMode(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::DrawViewShell::CreateHRuler(), CreateOrDuplicatePage(), sd::DrawViewShell::CreateVRuler(), sd::DrawViewShell::DeleteActualLayer(), sd::DrawViewShell::DeleteActualPage(), sd::FuArea::DoExecute(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGoToFirstPage(), sd::DrawViewShell::ExecGoToLastPage(), sd::DrawViewShell::ExecGoToNextPage(), sd::DrawViewShell::ExecGoToPreviousPage(), sd::DrawViewShell::ExecIMap(), sd::slidesorter::SlideSorterViewShell::ExecMovePageDown(), sd::slidesorter::SlideSorterViewShell::ExecMovePageFirst(), sd::slidesorter::SlideSorterViewShell::ExecMovePageLast(), sd::slidesorter::SlideSorterViewShell::ExecMovePageUp(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::ExecOptionsBar(), sd::DrawViewShell::ExecRuler(), sd::DrawDocShell::Execute(), sd::FuPage::ExecuteDialog(), sd::TabControl::ExecuteDrop(), sd::DrawViewShell::ExecuteDrop(), sd::DrawViewShell::ExecutePropPanelAttr(), sd::DrawViewShell::FreshNavigatrTree(), sd::DrawViewShell::FuPermanent(), sd::OutlineViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::DrawViewShell::GetAttrState(), sd::DrawViewShell::getCurrentPage(), GetCurrentPage(), accessibility::AccessibleDocumentViewBase::getExtendedAttributes(), sd::DrawViewShell::GetFormTextState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetMenuStateSel(), sd::DrawViewShell::GetNavigatorWinState(), sd::DrawViewShell::GetPageProperties(), SdStyleSheet::GetRealStyleSheet(), sd::DrawViewShell::GetRulerState(), sd::DrawViewShell::GetStateGoToLastPage(), sd::DrawViewShell::GetStateGoToNextPage(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast(), sd::DrawViewShell::GetStatePropPanelAttr(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), IMPL_LINK(), sd::DrawViewShell::ImplDestroy(), sd::slidesorter::SlideSorterViewShell::Initialize(), sd::InsertTableImpl(), sd::DrawViewShell::InsertURLField(), sd::Window::KeyInput(), sd::DrawViewShell::ModifyLayer(), sd::DrawViewShell::MouseMove(), sd::DrawViewShell::Notify(), sd::OutlineViewShell::OutlineViewShell(), sd::DrawViewShell::Paint(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::SpellDialogChildWindow::ProvideOutliner(), sd::DrawViewShell::ReadFrameViewData(), sd::OutlineViewShell::ReadFrameViewData(), sd::OutlineViewShell::ReadRtf(), sd::DrawViewShell::RenameSlide(), sd::DrawViewShell::ResetActualLayer(), sd::DrawViewShell::ResetActualPage(), sd::DrawViewShell::SelectPage(), sd::OutlineViewShell::SetCurrentPage(), SetPageSizeAndBorder(), sd::DrawViewShell::SetupPage(), SetZoom(), SetZoomRect(), sd::slidesorter::SlideSorterViewShell::SlideSorterViewShell(), sd::DrawViewShell::StopSlideShow(), sd::DrawViewShell::SwitchPage(), sd::slidesorter::SlideSorterViewShell::SyncPageSelectionToDocument(), sd::OutlineViewShell::UpdateOutlineObject(), UpdateScrollBars(), and sd::OutlineViewShell::UpdateTitleObject().

◆ GetDocSh()

DrawDocShell * sd::ViewShell::GetDocSh ( ) const

Definition at line 1407 of file viewshel.cxx.

References sd::ViewShellBase::GetDocShell(), and GetViewShellBase().

Referenced by sd::LayerTabBar::AcceptDrop(), sd::TabControl::AcceptDrop(), sd::Window::AcceptDrop(), sd::PresentationViewShell::Activate(), Activate(), ActivateObject(), sd::DrawViewShell::ActivateObject(), sd::TabControl::AllowRenaming(), sd::BezierObjectBar::BezierObjectBar(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::OutlineViewShell::Construct(), sd::DrawViewShell::Construct(), sd::Window::DataChanged(), Deactivate(), doShow(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::Execute(), sd::OutlineViewShell::Execute(), sd::TextObjectBar::Execute(), Exit(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::DrawViewShell::GetState(), sd::OutlineViewShell::GetState(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::DrawViewShell::GotoBookmark(), sd::GraphicObjectBar::GraphicObjectBar(), HandleScrollCommand(), ImpGetUndoManager(), sd::DrawViewShell::ImplDestroy(), sd::DrawViewShell::Init(), sd::slidesorter::SlideSorterViewShell::Initialize(), sd::DrawViewShell::InsertURLButton(), sd::MediaObjectBar::MediaObjectBar(), sd::DrawViewShell::ModelHasChanged(), sd::DrawViewShell::Notify(), sd::PresentationViewShell::PresentationViewShell(), sd::OutlineViewShell::ReadRtf(), sd::DrawViewShell::ReadUserDataSequence(), sd::DrawViewShell::Resize(), sd::HeaderFooterDialog::run(), Scroll(), SetIsMainViewShell(), SetPageSizeAndBorder(), SetRuler(), sd::DrawViewShell::SetupPage(), sd::ui::table::TableObjectBar::TableObjectBar(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::WriteUserDataSequence(), and sd::PresentationViewShell::~PresentationViewShell().

◆ GetDrawView()

SdrView * sd::ViewShell::GetDrawView ( ) const
inline

◆ GetFrameView()

FrameView * sd::ViewShell::GetFrameView ( )
inline

◆ GetFrameWeld()

weld::Window * sd::ViewShell::GetFrameWeld ( ) const

◆ GetMenuState()

void sd::ViewShell::GetMenuState ( SfxItemSet rSet)

◆ GetNumBulletItem()

const SvxNumBulletItem * sd::ViewShell::GetNumBulletItem ( SfxItemSet aNewAttr,
TypedWhichId< SvxNumBulletItem > &  nNumItemId 
)

◆ GetOldFunction()

const rtl::Reference< FuPoor > & sd::ViewShell::GetOldFunction ( ) const
inline

◆ GetParentWindow()

vcl::Window * sd::ViewShell::GetParentWindow ( ) const
inline

◆ GetPrintedHandoutPageCount()

sal_uInt16 sd::ViewShell::GetPrintedHandoutPageCount ( ) const
inline

Definition at line 269 of file ViewShell.hxx.

Referenced by IMPL_LINK().

◆ GetPrintedHandoutPageNum()

sal_uInt16 sd::ViewShell::GetPrintedHandoutPageNum ( ) const
inline

Definition at line 266 of file ViewShell.hxx.

Referenced by IMPL_LINK().

◆ GetSelectionTransferable()

uno::Reference< datatransfer::XTransferable > sd::ViewShell::GetSelectionTransferable ( ) const

◆ GetShellType()

ViewShell::ShellType sd::ViewShell::GetShellType ( ) const

◆ GetView()

::sd::View * sd::ViewShell::GetView ( ) const
inline

Definition at line 144 of file ViewShell.hxx.

References mpView.

Referenced by sd::LayerTabBar::AcceptDrop(), AcceptDrop(), accessibility::AccessibleDocumentViewBase::AccessibleDocumentViewBase(), sd::slidesorter::SlideSorterViewShell::Activate(), ActivateObject(), sd::ShowWindow::AddWindowToPaintView(), sd::LayerTabBar::AllowRenaming(), SdModule::ApplyItemSet(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::DrawDocShell::CancelSearching(), sd::Ruler::Command(), sd::Window::Command(), Command(), sd::DrawViewShell::Command(), sd::DrawDocShell::ConvertTo(), CreateOrDuplicatePage(), sd::DrawViewShell::CreateSubController(), sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::Window::DataChanged(), sd::ViewShellManager::Implementation::Deactivate(), sd::DrawViewShell::DeleteActualPage(), sd::ShowWindow::DeleteWindowFromPaintView(), SdPageObjsTLV::DoDrag(), sd::FuPresentationObjects::DoExecute(), sd::LayerTabBar::EndRenaming(), sd::DrawViewShell::ExecGallery(), sd::DrawDocShell::Execute(), sd::LayerTabBar::ExecuteDrop(), ExecuteDrop(), Exit(), sd::Ruler::ExtraDown(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::FuSupportRotate(), sd::DrawViewShell::FuTemporary(), accessibility::AccessibleDocumentViewBase::getBackground(), sd::DrawViewShell::GetCtrlState(), accessibility::AccessibleDrawDocumentView::getGroupPosition(), sd::DrawViewShell::GetMenuStateSel(), sd::Window::GetOutlinerView(), GetSelectionTransferable(), sd::FuBullet::GetSlotState(), SdLayerManager::GetView(), sd::framework::ToolBarModule::HandleUpdateEnd(), ImpGetUndoManager(), InitWindows(), SdDrawDocument::InsertBookmarkAsObject(), sd::DrawViewShell::InsertURLButton(), sd::DrawViewShell::InsertURLField(), sd::FuInsertFile::InsSDDinDrMode(), sd::Window::KeyInput(), KeyInput(), sd::DrawViewShell::KeyInput(), sd::GraphicSizeCheckGUIEntry::markObject(), sd::LayerTabBar::MouseButtonDown(), sd::Ruler::MouseButtonDown(), MouseButtonDown(), MouseButtonUp(), MouseMove(), sd::Client::ObjectAreaChanged(), sd::DrawViewShell::ReadUserDataSequence(), ChangeSlideExclusionStateUndoAction::Redo(), SdDrawDocument::RemoveUnnecessaryMasterPages(), SdXImpressDocument::render(), sd::Client::RequestNewObjectArea(), Resize(), sd::DrawDocShell::SaveAs(), sd::DrawDocShell::SaveCompleted(), sd::DrawViewShell::ScannerEvent(), Scroll(), sd::DrawViewShell::SetActiveTabLayerIndex(), SetActiveWindow(), sd::ShowWindow::SetBlankMode(), sd::SdUnoDrawView::setCurrentPage(), SetCursorMm100Position(), sd::ShowWindow::SetEndMode(), sd::FormShellManager::SetFormShell(), SetPageSizeAndBorder(), sd::ShowWindow::SetPauseMode(), sd::DrawDocShell::SetPrinter(), sd::DrawViewShell::SetupPage(), SetWinViewPos(), SetZoom(), SetZoomRect(), sd::FuHangulHanjaConversion::StartConversion(), sd::LayerTabBar::StartRenaming(), sd::TabControl::StartRenaming(), sd::SlideShow::startWithArguments(), ChangeSlideExclusionStateUndoAction::Undo(), sd::DrawViewShell::Update3DWindow(), sd::Client::ViewChanged(), VirtHScrollHdl(), VirtVScrollHdl(), and sd::DrawDocShell::~DrawDocShell().

◆ GetViewFrame()

SfxViewFrame * sd::ViewShell::GetViewFrame ( ) const

Definition at line 118 of file viewshel.cxx.

References SfxViewShell::GetViewFrame(), and SfxShell::GetViewShell().

Referenced by sd::PresentationViewShell::Activate(), sd::LayerTabBar::ActivatePage(), sd::TabControl::ActivatePage(), sd::LayerTabBar::AllowRenaming(), sd::HeaderFooterDialog::apply(), SdModule::ApplyItemSet(), sd::DrawViewShell::ArrangeGUIElements(), sd::GraphicViewShell::ArrangeGUIElements(), sd::DrawViewShell::AssignFrom3DWindow(), sd::DrawViewShell::AttrExec(), sd::FuPoor::cancel(), sd::FuDraw::cancel(), sd::FuSelection::cancel(), sd::DrawViewShell::ChangeEditMode(), sd::slidesorter::controller::SlotManager::ChangeSlideExclusionState(), sd::AnnotationTextWindow::Command(), sd::LayerTabBar::Command(), sd::TabControl::Command(), Command(), sd::DrawViewShell::Command(), sd::OutlineViewShell::Command(), sd::DrawViewShell::CreateHRuler(), CreateOrDuplicatePage(), sd::CustomAnimationPane::createPath(), sd::DrawViewShell::CreateVRuler(), sd::FuConstructRectangle::Deactivate(), sd::FuZoom::Deactivate(), sd::ViewShellManager::Implementation::Deactivate(), sd::FuChar::DoExecute(), sd::FuCustomShowDlg::DoExecute(), sd::FuExecuteInteraction::DoExecute(), sd::FuExpandPage::DoExecute(), sd::FuInsertOLE::DoExecute(), sd::FuInsertAVMedia::DoExecute(), sd::FuLine::DoExecute(), sd::FuLink::DoExecute(), sd::FuNavigation::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuParagraph::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuScale::DoExecute(), sd::FuSearch::DoExecute(), sd::FuTemplate::DoExecute(), sd::LayerTabBar::DoubleClick(), sd::TabControl::DoubleClick(), sd::FuDraw::DoubleClick(), sd::SlideShow::end(), sd::DrawViewShell::ExecAnimationWin(), sd::DrawViewShell::ExecBmpMask(), sd::DrawViewShell::ExecChar(), sd::DrawViewShell::ExecCtrl(), sd::slidesorter::controller::SlotManager::ExecCtrl(), sd::DrawViewShell::ExecEffectWin(), sd::DrawViewShell::ExecGallery(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::ExecStatusBar(), sd::BezierObjectBar::Execute(), sd::DrawViewShell::Execute(), sd::OutlineViewShell::Execute(), sd::TextObjectBar::Execute(), sd::ui::table::TableObjectBar::Execute(), sd::TabControl::ExecuteDrop(), sd::FuDraw::ForcePointer(), sd::DrawViewShell::FreshNavigatrTree(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::DrawViewShell::FuTable(), sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporary(), sd::slidesorter::controller::SlotManager::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), sd::DrawViewShell::GetAttrState(), sd::OutlineViewShell::GetAttrState(), sd::DrawViewShell::GetCtrlState(), sd::OutlineViewShell::GetCtrlState(), sd::DrawViewShell::GetIMapState(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::ZoomList::GetNextZoomRect(), sd::ZoomList::GetPreviousZoomRect(), sd::SlideShow::GetWorkWindow(), sd::FuSelection::HandleImageMapClick(), IMPL_STATIC_LINK(), sd::FuFormatPaintBrush::implcancel(), sd::DrawViewShell::ImplDestroy(), ImpSidRedo(), ImpSidUndo(), accessibility::AccessibleDocumentViewBase::Init(), SdNavigatorWin::InitTreeLB(), sd::ZoomList::InsertZoomRect(), sd::FuText::InvalidateBindings(), sd::FuPoor::KeyInput(), sd::FuDraw::KeyInput(), sd::FuSelection::KeyInput(), sd::FuText::KeyInput(), sd::DrawViewShell::KeyInput(), sd::AnnotationTextWindow::KeyInput(), sd::DrawViewShell::ModelHasChanged(), sd::DrawViewShell::ModifyLayer(), sd::MotionPathTag::MouseButtonDown(), sd::FuOutlineText::MouseButtonDown(), sd::FuSelection::MouseButtonDown(), sd::FuText::MouseButtonDown(), sd::LayerTabBar::MouseButtonDown(), sd::TabControl::MouseButtonDown(), sd::DrawViewShell::MouseButtonDown(), sd::FuConstruct3dObject::MouseButtonUp(), sd::FuConstructArc::MouseButtonUp(), sd::FuConstructBezierPolygon::MouseButtonUp(), sd::FuConstructCustomShape::MouseButtonUp(), sd::FuConstructRectangle::MouseButtonUp(), sd::FuConstruct::MouseButtonUp(), sd::FuConstructUnoControl::MouseButtonUp(), sd::FuFormatPaintBrush::MouseButtonUp(), sd::FuOutlineText::MouseButtonUp(), sd::FuSelection::MouseButtonUp(), sd::FuText::MouseButtonUp(), sd::FuZoom::MouseButtonUp(), sd::DrawViewShell::MouseButtonUp(), sd::DrawViewShell::MouseMove(), sd::DrawViewShell::Notify(), sd::slidesorter::controller::SlotManager::NotifyEditModeChange(), sd::View::onAccessibilityOptionsChanged(), sd::DrawDocShell::OpenBookmark(), SdModule::OutlineToImpress(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::DrawViewShell::ReadFrameViewData(), sd::DrawViewShell::RenameSlide(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), sd::DrawViewShell::ResetActualLayer(), sd::DrawViewShell::ResetActualPage(), sd::Window::Resize(), sd::ShowWindow::RestartShow(), sd::DrawDocShell::SaveCompleted(), sd::DrawViewShell::ScannerEvent(), sd::LayerTabBar::Select(), sd::TabControl::Select(), sd::MotionPathTag::selectionChanged(), sd::DrawViewShell::SelectionHasChanged(), sd::ShowWindow::SetBlankMode(), sd::DrawViewShell::SetChildWindowState(), sd::FuConstructBezierPolygon::SetEditMode(), sd::FuSelection::SetEditMode(), sd::ShowWindow::SetEndMode(), sd::ShowWindow::SetPauseMode(), SdXShape::SetStyleSheet(), sd::DrawViewShell::SetupPage(), SdTPAction::SetView(), sd::DrawViewShell::SetZoom(), sd::OutlineViewShell::SetZoom(), sd::SdUnoDrawView::SetZoom(), sd::DrawViewShell::SetZoomRect(), sd::OutlineViewShell::SetZoomRect(), sd::slidesorter::SlideSorterViewShell::SetZoomRect(), sd::SdUnoDrawView::SetZoomType(), sd::DrawViewShell::ShowMousePosInfo(), sd::DrawViewShell::ShowSnapLineContextMenu(), sd::DrawViewShell::SwitchPage(), sd::ShowWindow::TerminateShow(), sd::AnnotationWindow::ToggleInsMode(), sd::DrawViewShell::Update3DWindow(), sd::FuOutlineText::UpdateForKeyPress(), sd::DrawViewShell::UpdateIMapDlg(), and sd::FuSearch::~FuSearch().

◆ GetViewOrigin()

Point const & sd::ViewShell::GetViewOrigin ( ) const

◆ GetViewShellBase()

ViewShellBase & sd::ViewShell::GetViewShellBase ( ) const

Definition at line 1397 of file viewshel.cxx.

References SfxShell::GetViewShell().

Referenced by sd::DrawViewShell::AcceptDrop(), sd::View::AcceptDrop(), sd::DrawViewShell::Activate(), sd::PresentationViewShell::Activate(), sd::slidesorter::SlideSorterViewShell::Activate(), Activate(), ActivateObject(), sd::DrawViewShell::ActivateObject(), ArrangeGUIElements(), sd::OutlineView::BeginModelChange(), sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::Command(), sd::OutlineView::ConnectToApplication(), sd::DrawViewShell::Construct(), sd::DrawViewShell::CreateAccessibleDocumentView(), sd::DrawViewShell::CreateHRuler(), sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::DrawViewShell::CreateVRuler(), Deactivate(), sd::DrawViewShell::DeleteActualPage(), sd::DrawView::DeleteMarked(), sd::FuConstruct3dObject::DoExecute(), sd::FuConstructArc::DoExecute(), sd::FuConstructCustomShape::DoExecute(), sd::FuConstructRectangle::DoExecute(), sd::FuConstructUnoControl::DoExecute(), sd::FuEditGluePoints::DoExecute(), sd::FuNavigation::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuText::DoExecute(), sd::DrawViewShell::DuplicateSelectedSlides(), sd::DrawViewShell::ExecCtrl(), SdModule::Execute(), sd::DrawDocShell::Execute(), sd::DrawViewShell::Execute(), sd::slidesorter::controller::Clipboard::ExecuteDrop(), sd::DrawViewShell::ExecuteDrop(), sd::slidesorter::controller::Clipboard::ExecuteOrAcceptShapeDrop(), sd::DrawViewShell::ExecutePropPanelAttr(), SdGRFFilter::Export(), fireSwitchCurrentPage(), sd::FuPoor::ForceScroll(), sd::DrawViewShell::FuPermanent(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuSupport(), sd::DrawViewShell::FuTemporary(), sd::slidesorter::SlideSorterViewShell::GetActualPage(), sd::DrawViewShell::GetCtrlState(), GetDoc(), GetDocSh(), sd::DrawViewShell::GetMenuState(), GetMenuState(), sd::DrawViewShell::GetModeSwitchingMenuState(), sd::View::GetSfxViewShell(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageFirst(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast(), sd::DrawViewShell::GetStatusBarState(), sd::OutlineViewShell::GetStatusBarState(), sd::DrawDocShell::GotoBookmark(), HandleScrollCommand(), sd::DrawViewShell::HidePage(), ImpGetUndoManager(), sd::slidesorter::SlideSorterViewShell::ImpGetUndoManager(), ImpSidRedo(), ImpSidUndo(), SdNavigatorWin::InitTreeLB(), sd::FuBullet::InsertFormattingMark(), sd::FuBullet::InsertSpecialCharacter(), sd::FuInsertFile::InsTextOrRTFinOlMode(), sd::SlideShow::IsRunning(), sd::DrawViewShell::IsSelected(), sd::DrawViewShell::IsSwitchPageAllowed(), sd::FuPoor::KeyInput(), KeyInput(), sd::Window::LogicInvalidate(), sd::slidesorter::SlideSorterViewShell::MainViewEndEditAndUnmarkAll(), sd::DrawViewShell::MakeVisible(), sd::DrawViewShell::ModifyLayer(), sd::FuSelection::MouseButtonDown(), MouseButtonDown(), sd::DrawView::Notify(), NotifyAccUpdate(), sd::ViewShellBase::NotifyCursor(), sd::OutlineView::OutlineView(), sd::PresentationViewShell::Paint(), sd::PaneHider::PaneHider(), sd::FuFormatPaintBrush::Paste(), PrepareClose(), sd::slidesorter::controller::SlideSorterController::PrepareEditModeChange(), accessibility::AccessibleDrawDocumentView::propertyChange(), sd::slidesorter::SlideSorterViewShell::ReadFrameViewData(), ChangeSlideExclusionStateUndoAction::Redo(), sd::DrawViewShell::RenameSlide(), sd::DrawViewShell::Resize(), sd::PresentationViewShell::Resize(), sd::ShowWindow::RestartShow(), sd::View::SdrBeginTextEdit(), sd::View::SdrEndTextEdit(), SdUndoAction::SdUndoAction(), sd::DrawViewShell::SelectionHasChanged(), sd::FuConstructBezierPolygon::SelectionHasChanged(), sd::FuSelection::SelectionHasChanged(), sd::DrawViewShell::SelectPage(), sd::DrawViewShell::SetActiveTabLayerIndex(), sd::DrawView::SetAttributes(), sd::OutlineViewShell::SetCurrentPage(), sd::ShowWindow::SetPauseMode(), SetupRulers(), sd::DrawViewShell::Shutdown(), sd::DrawViewShell::SwitchPage(), UIActivating(), UIDeactivated(), ChangeSlideExclusionStateUndoAction::Undo(), sd::DrawViewShell::VisAreaChanged(), sd::OutlineViewShell::VisAreaChanged(), WriteUserDataSequence(), sd::OutlineView::~OutlineView(), and ~ViewShell().

◆ GetWindowUpdater()

sd::WindowUpdater * sd::ViewShell::GetWindowUpdater ( ) const

Return the window updater of this view shell.

Returns
In rare circumstances the returned pointer may be <null>, i.e. when no memory is available anymore.

Definition at line 1392 of file viewshel.cxx.

References mpWindowUpdater.

Referenced by sd::Window::dispose(), and sd::Window::SetViewShell().

◆ GetWinViewPos()

Point const & sd::ViewShell::GetWinViewPos ( ) const

Definition at line 937 of file viewshe2.cxx.

References mpContentWindow.

Referenced by sd::SdUnoDrawView::GetViewOffset(), and HandleScrollCommand().

◆ GetZoom()

tools::Long sd::ViewShell::GetZoom ( ) const

◆ GetZoomList()

ZoomList * sd::ViewShell::GetZoomList ( )
inline

Definition at line 219 of file ViewShell.hxx.

Referenced by sd::FuPoor::KeyInput(), and sd::FuZoom::MouseButtonUp().

◆ HandleScrollCommand()

bool sd::ViewShell::HandleScrollCommand ( const CommandEvent rCEvt,
::sd::Window pWin 
)

◆ HasCurrentFunction() [1/2]

bool sd::ViewShell::HasCurrentFunction ( ) const
inline

◆ HasCurrentFunction() [2/2]

bool sd::ViewShell::HasCurrentFunction ( sal_uInt16  nSID)
inline

Definition at line 251 of file ViewShell.hxx.

◆ HasOldFunction()

bool sd::ViewShell::HasOldFunction ( ) const
inline

◆ HasRuler()

bool sd::ViewShell::HasRuler ( ) const
inline

◆ ImpGetRedoStrings()

void sd::ViewShell::ImpGetRedoStrings ( SfxItemSet rSet) const
protected

◆ ImpGetUndoManager()

SfxUndoManager * sd::ViewShell::ImpGetUndoManager ( ) const
protectedvirtual

◆ ImpGetUndoStrings()

void sd::ViewShell::ImpGetUndoStrings ( SfxItemSet rSet) const
protected

◆ ImpSidRedo()

void sd::ViewShell::ImpSidRedo ( SfxRequest rReq)
protected

◆ ImpSidUndo()

void sd::ViewShell::ImpSidUndo ( SfxRequest rReq)
protected

◆ Init()

void sd::ViewShell::Init ( bool  bIsMainViewShell)
virtual

The Init method has to be called from the outside directly after a new object of this class has been created.

It can be used for that part of the initialisation that can be run only after the creation of the new object is finished. This includes registration as listener at event broadcasters.

Derived classes should call this method at the head of their Init() methods.

Parameters
bIsMainViewShellThis flag tells the Init() method whether the new ViewShell will be the main view shell.

Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.

Definition at line 261 of file viewshel.cxx.

References VclPtr< class reference_type >::get(), mpContentWindow, mpImpl, SetActiveWindow(), and SetIsMainViewShell().

Referenced by sd::DrawViewShell::Init(), and sd::slidesorter::SlideSorterViewShell::Init().

◆ InitWindows()

void sd::ViewShell::InitWindows ( const Point rViewOrigin,
const Size rViewSize,
const Point rWinPos,
bool  bUpdate = false 
)

◆ InvalidateWindows()

void sd::ViewShell::InvalidateWindows ( )

Invalidate all split windows below the ?provided rectangle.

Definition at line 433 of file viewshe2.cxx.

References mpContentWindow.

Referenced by sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::ExecCtrl(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::FuSupport(), sd::OutlineViewShell::FuTemporary(), and KeyInput().

◆ IsMainViewShell()

bool sd::ViewShell::IsMainViewShell ( ) const

◆ IsPageFlipMode()

bool sd::ViewShell::IsPageFlipMode ( ) const

Definition at line 112 of file viewshel.cxx.

References mpContentWindow.

Referenced by HandleScrollCommand(), UpdateScrollBars(), and VirtVScrollHdl().

◆ IsStartShowWithDialog()

bool sd::ViewShell::IsStartShowWithDialog ( ) const
inline

Definition at line 264 of file ViewShell.hxx.

◆ KeyInput()

bool sd::ViewShell::KeyInput ( const KeyEvent rKEvt,
::sd::Window pWin 
)
virtual

◆ MouseButtonDown()

void sd::ViewShell::MouseButtonDown ( const MouseEvent rMEvt,
::sd::Window pWin 
)
virtual

◆ MouseButtonUp()

void sd::ViewShell::MouseButtonUp ( const MouseEvent rMEvt,
::sd::Window pWin 
)
virtual

◆ MouseMove()

void sd::ViewShell::MouseMove ( const MouseEvent rMEvt,
::sd::Window pWin 
)
virtual

◆ Notify()

bool sd::ViewShell::Notify ( NotifyEvent const &  rNEvt,
::sd::Window pWin 
)

◆ NotifyAccUpdate()

void sd::ViewShell::NotifyAccUpdate ( )

◆ Paint()

void sd::ViewShell::Paint ( const ::tools::Rectangle rRect,
::sd::Window pWin 
)
virtual

◆ PrePaint()

void sd::ViewShell::PrePaint ( )
virtual

Reimplemented in sd::DrawViewShell.

Definition at line 1510 of file viewshel.cxx.

Referenced by sd::Window::PrePaint().

◆ PrepareClose()

bool sd::ViewShell::PrepareClose ( bool  bUI = true)
virtual

Tell the FmFormShell that the view shell is closing.

Give it the opportunity to prevent that.

Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.

Definition at line 1076 of file viewshel.cxx.

References sd::ViewShellBase::GetFormShellManager(), GetViewShellBase(), and FmFormShell::PrepareClose().

Referenced by sd::DrawViewShell::PrepareClose(), sd::OutlineViewShell::PrepareClose(), and sd::ViewShellBase::PrepareClose().

◆ ReadFrameViewData()

void sd::ViewShell::ReadFrameViewData ( FrameView pView)
virtual

◆ ReadUserData()

void sd::ViewShell::ReadUserData ( )

◆ ReadUserDataSequence()

void sd::ViewShell::ReadUserDataSequence ( const css::uno::Sequence< css::beans::PropertyValue > &  rSequence)
virtual

◆ RelocateToParentWindow()

bool sd::ViewShell::RelocateToParentWindow ( vcl::Window pParentWindow)
virtual

Set the given window as new parent window.

This is not possible for all views, so the return value tells the caller if the relocation was successful.

Reimplemented in sd::DrawViewShell, and sd::slidesorter::SlideSorterViewShell.

Definition at line 1539 of file viewshel.cxx.

References mpContentWindow, mpHorizontalScrollBar, mpParentWindow, and mpVerticalScrollBar.

◆ RequestHelp()

bool sd::ViewShell::RequestHelp ( const HelpEvent rEvt)

Definition at line 583 of file viewshe2.cxx.

References GetCurrentFunction(), HelpEvent::GetMode(), and HasCurrentFunction().

Referenced by sd::Window::RequestHelp().

◆ Resize()

void sd::ViewShell::Resize ( )
virtual

Notify the view shell that its parent window has been resized.

The ViewShell places and resizes its UI elements accordingly. The new size can be obtained from the parent window.

Reimplemented in sd::DrawViewShell, and sd::PresentationViewShell.

Definition at line 908 of file viewshel.cxx.

References ArrangeGUIElements(), GetActiveWindow(), GetView(), Size::IsEmpty(), maViewPos, maViewSize, mpParentWindow, SetupRulers(), and SdrPaintView::VisAreaChanged().

Referenced by doShow(), sd::DrawViewShell::Resize(), sd::PresentationViewShell::Resize(), sd::framework::ViewShellWrapper::windowResized(), and sd::framework::ViewShellWrapper::windowShown().

◆ Scroll()

void sd::ViewShell::Scroll ( ::tools::Long  nX,
::tools::Long  nY 
)

◆ ScrollLines()

void sd::ViewShell::ScrollLines ( ::tools::Long  nLinesX,
::tools::Long  nLinesY 
)

Scroll a specific number of lines.

Is used in the automatic scrolling (character/drag).

Definition at line 251 of file viewshe2.cxx.

References mpHorizontalScrollBar, mpVerticalScrollBar, and Scroll().

Referenced by sd::Window::DropScroll(), ExecReq(), sd::FuPoor::ForceScroll(), and sd::FuPoor::KeyInput().

◆ SetActiveWindow()

void sd::ViewShell::SetActiveWindow ( ::sd::Window pWindow)

◆ SetCurrentFunction()

void sd::ViewShell::SetCurrentFunction ( const rtl::Reference< FuPoor > &  xFunction)

◆ SetCursorMm100Position()

void sd::ViewShell::SetCursorMm100Position ( const Point rPosition,
bool  bPoint,
bool  bClearMark 
)

Allows adjusting the point or mark of the selection to a document coordinate.

Definition at line 504 of file viewshel.cxx.

References GetView(), and EditView::SetCursorLogicPosition().

◆ SetDefTabHRuler()

void sd::ViewShell::SetDefTabHRuler ( sal_uInt16  nDefTab)

set DefTab at horizontal rulers

Definition at line 1067 of file viewshel.cxx.

References mpHorizontalRuler.

Referenced by SdModule::ApplyItemSet().

◆ SetFrameView()

void sd::ViewShell::SetFrameView ( FrameView pFrameView)

Setting a frame view triggers ReadFrameViewData() for the new frame.

Parameters
pFrameViewThe new frame view that replaces the old one.

Definition at line 598 of file viewshe2.cxx.

References mpFrameView, and ReadFrameViewData().

Referenced by sd::PresentationViewShell::FinishInitialization().

◆ SetGraphicMm100Position()

void sd::ViewShell::SetGraphicMm100Position ( bool  bStart,
const Point rPosition 
)

Allows starting or ending a graphic move or resize action.

Definition at line 533 of file viewshel.cxx.

References Point::getX(), Point::getY(), MOUSE_LEFT, MouseButtonDown(), MouseButtonUp(), MouseMove(), and mpActiveWindow.

◆ SetIsMainViewShell()

void sd::ViewShell::SetIsMainViewShell ( bool  bIsMainViewShell)

Set or reset the flag that indicates whether the called shell is the one displayed in the center pane.

By default this flag is set to <FALSE>. For the main view shell it thus has to be set to <TRUE>.

Definition at line 1498 of file viewshel.cxx.

References sd::DrawDocShell::Connect(), sd::DrawDocShell::Disconnect(), GetDocSh(), and mpImpl.

Referenced by Exit(), and Init().

◆ SetOldFunction()

void sd::ViewShell::SetOldFunction ( const rtl::Reference< FuPoor > &  xFunction)

◆ SetPageSizeAndBorder()

void sd::ViewShell::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 
)

◆ SetPrintedHandoutPageCount()

void sd::ViewShell::SetPrintedHandoutPageCount ( sal_uInt16  nPageCount)
inline

Definition at line 270 of file ViewShell.hxx.

◆ SetPrintedHandoutPageNum()

void sd::ViewShell::SetPrintedHandoutPageNum ( sal_uInt16  nPageNumber)
inline

Definition at line 267 of file ViewShell.hxx.

◆ SetRuler()

void sd::ViewShell::SetRuler ( bool  bRuler)

◆ SetScrollBarsVisible()

void sd::ViewShell::SetScrollBarsVisible ( bool  bVisible)

Definition at line 847 of file viewshe2.cxx.

References bVisible, mpHorizontalScrollBar, and mpVerticalScrollBar.

◆ SetStartShowWithDialog()

void sd::ViewShell::SetStartShowWithDialog ( bool  bIn)
inline

Definition at line 263 of file ViewShell.hxx.

Referenced by sd::FuCustomShowDlg::DoExecute().

◆ SetUIUnit()

void sd::ViewShell::SetUIUnit ( FieldUnit  eUnit)

Definition at line 1054 of file viewshel.cxx.

References mpHorizontalRuler, and mpVerticalRuler.

Referenced by SdModule::ApplyItemSet().

◆ SetupRulers()

void sd::ViewShell::SetupRulers ( )
private

◆ SetWinViewPos()

void sd::ViewShell::SetWinViewPos ( const Point rWinPos)

◆ SetZoom()

void sd::ViewShell::SetZoom ( ::tools::Long  nZoom)
virtual

◆ SetZoomFactor()

void sd::ViewShell::SetZoomFactor ( const Fraction rZoomX,
const Fraction rZoomY 
)
protectedvirtual

Set zoom factor for InPlace.

Reimplemented in sd::DrawViewShell.

Definition at line 543 of file viewshe2.cxx.

References SetZoom().

Referenced by sd::DrawViewShell::SetZoomFactor(), and sd::ViewShellBase::SetZoomFactor().

◆ SetZoomRect()

void sd::ViewShell::SetZoomRect ( const ::tools::Rectangle rZoomRect)
virtual

◆ ShowUIControls()

void sd::ViewShell::ShowUIControls ( bool  bVisible)
virtual

Show controls of the UI or hide them, depending on the given flag.

As a result the border is adapted.

Reimplemented in sd::DrawViewShell.

Definition at line 1518 of file viewshel.cxx.

References bVisible, mbHasRulers, mpContentWindow, mpHorizontalRuler, mpHorizontalScrollBar, mpVerticalRuler, and mpVerticalScrollBar.

Referenced by sd::ViewShellBase::ShowUIControls(), and sd::DrawViewShell::ShowUIControls().

◆ Shutdown()

void sd::ViewShell::Shutdown ( )
virtual

This method is more or less an alias to Deactivate().

It is called before an object of this class is taken from the stack of view shells.

When this method is not called before a view shell is taken from a stack then the Deactivate() call from the SFX as a response to RemoveSubShell() comes too late when the view shell is not on the stack anymore.

Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.

Definition at line 386 of file viewshel.cxx.

References Exit().

Referenced by sd::DrawViewShell::Shutdown(), and sd::OutlineViewShell::Shutdown().

◆ SwitchActiveViewFireFocus()

void sd::ViewShell::SwitchActiveViewFireFocus ( )

Definition at line 1565 of file viewshel.cxx.

References mpContentWindow, and SwitchViewFireFocus().

Referenced by KeyInput().

◆ SwitchViewFireFocus()

void sd::ViewShell::SwitchViewFireFocus ( const css::uno::Reference< css::accessibility::XAccessible > &  xAcc)
virtual

◆ UIActivating()

void sd::ViewShell::UIActivating ( SfxInPlaceClient )
virtual

◆ UIDeactivated()

void sd::ViewShell::UIDeactivated ( SfxInPlaceClient )
virtual

◆ UpdateHRuler()

void sd::ViewShell::UpdateHRuler ( )
protectedvirtual

Reimplemented in sd::DrawViewShell.

Definition at line 239 of file viewshe2.cxx.

Referenced by Scroll(), SetWinViewPos(), UpdateScrollBars(), and VirtHScrollHdl().

◆ UpdatePreview()

void sd::ViewShell::UpdatePreview ( SdPage pPage)
virtual

This method is still used by the OutlineViewShell to update the model according to the content of the outline view.

This in turn updates the previews in the slide sorter.

Reimplemented in sd::OutlineViewShell.

Definition at line 1087 of file viewshel.cxx.

Referenced by Activate(), sd::FuPage::ApplyItemSet(), sd::DrawViewShell::ExecCtrl(), sd::slidesorter::controller::SlotManager::ExecCtrl(), sd::slidesorter::controller::SelectionManager::SelectionHasChanged(), and sd::DrawViewShell::SwitchPage().

◆ UpdateScrollBars()

void sd::ViewShell::UpdateScrollBars ( )
virtual

Set internal values of all scroll bars that determine thumb size and position.

adjust Thumbpos and VisibleSize

The external values like size and position of the scroll bar controls are not modified.

Reimplemented in sd::slidesorter::SlideSorterViewShell.

Definition at line 71 of file viewshe2.cxx.

References GetActualPage(), GetDoc(), SdPage::GetPageKind(), SdrPage::GetPageNum(), SdDrawDocument::GetSdPageCount(), IsPageFlipMode(), mbHasRulers, mpContentWindow, mpHorizontalScrollBar, mpVerticalScrollBar, UpdateHRuler(), and UpdateVRuler().

Referenced by ArrangeGUIElements(), sd::OutlineViewShell::ArrangeGUIElements(), refreshpage(), sd::View::SdrBeginTextEdit(), SetPageSizeAndBorder(), sd::DrawViewShell::SetupPage(), SetWinViewPos(), SetZoom(), and SetZoomRect().

◆ UpdateVRuler()

void sd::ViewShell::UpdateVRuler ( )
protectedvirtual

Reimplemented in sd::DrawViewShell.

Definition at line 243 of file viewshe2.cxx.

Referenced by Scroll(), SetWinViewPos(), UpdateScrollBars(), and VirtVScrollHdl().

◆ VirtHScrollHdl()

void sd::ViewShell::VirtHScrollHdl ( ScrollAdaptor pHScroll)
protectedvirtual

◆ VirtVScrollHdl()

void sd::ViewShell::VirtVScrollHdl ( ScrollAdaptor pVScroll)
protectedvirtual

◆ VisAreaChanged()

void sd::ViewShell::VisAreaChanged ( const ::tools::Rectangle rRect)
virtual

this method is called when the visible area of the view from this viewshell is changed

Reimplemented in sd::DrawViewShell, and sd::OutlineViewShell.

Definition at line 902 of file viewshe2.cxx.

References SfxShell::GetViewShell(), and SfxViewShell::VisAreaChanged().

Referenced by sd::FuInsertOLE::DoExecute(), InitWindows(), Scroll(), SetWinViewPos(), SetZoom(), SetZoomRect(), VirtHScrollHdl(), VirtVScrollHdl(), sd::DrawViewShell::VisAreaChanged(), and sd::OutlineViewShell::VisAreaChanged().

◆ WriteFrameViewData()

void sd::ViewShell::WriteFrameViewData ( )
virtual

◆ WriteUserData()

void sd::ViewShell::WriteUserData ( )

Definition at line 805 of file viewshe2.cxx.

References WriteFrameViewData().

Referenced by sd::ViewShellBase::WriteUserData().

◆ WriteUserDataSequence()

void sd::ViewShell::WriteUserDataSequence ( css::uno::Sequence< css::beans::PropertyValue > &  rSequence)
virtual

Friends And Related Function Documentation

◆ ViewShellBase

friend class ViewShellBase
friend

Definition at line 428 of file ViewShell.hxx.

Member Data Documentation

◆ maAllWindowRectangle

::tools::Rectangle sd::ViewShell::maAllWindowRectangle
protected

Area covered by all windows, i.e.

the area of the parent window without the controls at the borders like rulers, scroll bars, tab bar, buttons. This rectangle may be set in window coordinates (i.e. pixel values relative to the parent window). It is transformed by every call to GetAllWindowRectangle() into screen coordinates (relative to the upper left corner of the screen.

Definition at line 480 of file ViewShell.hxx.

Referenced by ArrangeGUIElements(), and GetAllWindowRect().

◆ maScrBarWH

Size sd::ViewShell::maScrBarWH
protected

◆ maViewPos

Point sd::ViewShell::maViewPos
protected

◆ maViewSize

Size sd::ViewShell::maViewSize
protected

◆ MAX_HSPLIT_CNT

const int sd::ViewShell::MAX_HSPLIT_CNT = 1
static

Definition at line 105 of file ViewShell.hxx.

◆ MAX_VSPLIT_CNT

const int sd::ViewShell::MAX_VSPLIT_CNT = 1
static

Definition at line 106 of file ViewShell.hxx.

◆ mbHasRulers

bool sd::ViewShell::mbHasRulers
protected

◆ mbStartShowWithDialog

bool sd::ViewShell::mbStartShowWithDialog
protected

Definition at line 465 of file ViewShell.hxx.

◆ meShellType

ShellType sd::ViewShell::meShellType
protected

◆ mfAccumulatedZoom

double sd::ViewShell::mfAccumulatedZoom = 0
protected

Definition at line 459 of file ViewShell.hxx.

Referenced by HandleScrollCommand().

◆ mfLastZoomScale

double sd::ViewShell::mfLastZoomScale
protected

Definition at line 458 of file ViewShell.hxx.

Referenced by construct(), and HandleScrollCommand().

◆ MIN_SCROLLBAR_SIZE

const int sd::ViewShell::MIN_SCROLLBAR_SIZE = 50
static

Definition at line 107 of file ViewShell.hxx.

◆ mnPrintedHandoutPageCount

sal_uInt16 sd::ViewShell::mnPrintedHandoutPageCount
protected

Definition at line 467 of file ViewShell.hxx.

◆ mnPrintedHandoutPageNum

sal_uInt16 sd::ViewShell::mnPrintedHandoutPageNum
protected

Definition at line 466 of file ViewShell.hxx.

◆ mpActiveWindow

VclPtr< ::sd::Window> sd::ViewShell::mpActiveWindow
protected

The active window.

Definition at line 451 of file ViewShell.hxx.

Referenced by construct(), GetFrameWeld(), SetActiveWindow(), and SetGraphicMm100Position().

◆ mpContentWindow

VclPtr<sd::Window> sd::ViewShell::mpContentWindow
protected

◆ mpFrameView

FrameView* sd::ViewShell::mpFrameView
protected

◆ mpHorizontalRuler

VclPtr<SvxRuler> sd::ViewShell::mpHorizontalRuler
protected

◆ mpHorizontalScrollBar

VclPtr<ScrollAdaptor> sd::ViewShell::mpHorizontalScrollBar
protected

◆ mpImpl

std::unique_ptr<Implementation, o3tl::default_delete<Implementation> > sd::ViewShell::mpImpl
protected

◆ mpLayerTabBar

VclPtr<LayerTabBar> sd::ViewShell::mpLayerTabBar
protected

◆ mpParentWindow

VclPtr<vcl::Window> sd::ViewShell::mpParentWindow
private

Definition at line 535 of file ViewShell.hxx.

Referenced by RelocateToParentWindow(), and Resize().

◆ mpVerticalRuler

VclPtr<SvxRuler> sd::ViewShell::mpVerticalRuler
protected

◆ mpVerticalScrollBar

VclPtr<ScrollAdaptor> sd::ViewShell::mpVerticalScrollBar
protected

◆ mpView

::sd::View* sd::ViewShell::mpView
protected

◆ mpWindowUpdater

::std::unique_ptr< ::sd::WindowUpdater> sd::ViewShell::mpWindowUpdater
private

This window updater is used to keep all relevant windows up to date with reference to the digit language used to display digits in text shapes.

Definition at line 540 of file ViewShell.hxx.

Referenced by GetWindowUpdater().

◆ mpZoomList

std::unique_ptr<ZoomList> sd::ViewShell::mpZoomList
protected

◆ mxCurrentFunction

rtl::Reference<FuPoor> sd::ViewShell::mxCurrentFunction
protected

◆ mxOldFunction

rtl::Reference<FuPoor> sd::ViewShell::mxOldFunction
protected

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