57class AnnotationManager;
58class ViewOverlayManager;
60#define CHECK_RANGE(nMin, nValue, nMax) ((nValue >= nMin) && (nValue <= nMax))
78 static void InitInterface_Impl();
98 virtual void Init (
bool bIsMainViewShell)
override;
102 void PrePaint()
override;
103 virtual void Paint(const ::tools::Rectangle& rRect,
::sd::Window* pWin)
override;
110 virtual void ArrangeGUIElements()
override;
122 virtual void Resize()
override;
124 void ShowMousePosInfo(const ::tools::Rectangle& rRect,
::sd::Window const * pWin);
126 virtual void ChangeEditMode (
EditMode eMode,
bool bIsLayerModeActive);
129 virtual void SetZoomRect( const ::tools::Rectangle& rZoomRect )
override;
131 void InsertURLField(
const OUString& rURL,
const OUString& rText,
const OUString& rTarget);
132 void InsertURLButton(
const OUString& rURL,
const OUString& rText,
const OUString& rTarget,
135 void SelectionHasChanged();
136 void ModelHasChanged();
137 virtual void Activate(
bool bIsMDIActivate)
override;
138 virtual void Deactivate(
bool IsMDIActivate)
override;
141 OUString GetSelectionText(
bool bCompleteWords );
142 bool HasSelection(
bool bText )
const;
158 void GetModeSwitchingMenuState (
SfxItemSet &rSet);
187 void ExecutePropPanelAttr (
SfxRequest const & rReq);
192 void Update3DWindow();
193 void AssignFrom3DWindow();
206 void FuDeleteSelectedObjects();
207 void FuSupportRotate(
SfxRequest const & rReq);
217 void GetStateGoToPreviousPage (
SfxItemSet& rSet);
220 void GetStateGoToFirstPage (
SfxItemSet& rSet);
227 void ExecuteAnnotation (
SfxRequest const & rRequest);
228 void GetAnnotationState (
SfxItemSet& rItemSet);
232 virtual bool PrepareClose(
bool bUI =
true )
override;
242 virtual SdPage* getCurrentPage()
const override;
244 void ResetActualPage();
245 void ResetActualLayer();
246 bool SwitchPage(sal_uInt16 nPage,
bool bAllowChangeFocus =
true);
247 bool IsSwitchPageAllowed()
const;
253 bool SelectPage(sal_uInt16 nPage, sal_uInt16 nSelect);
254 bool IsSelected(sal_uInt16 nPage);
256 void GotoBookmark(std::u16string_view rBookmark);
260 void FreshNavigatrTree();
261 void MakeVisible(const ::tools::Rectangle& rRect,
vcl::Window& rWin);
263 virtual void ReadFrameViewData(
FrameView* pView)
override;
264 virtual void WriteFrameViewData()
override;
266 virtual ErrCode DoVerb(sal_Int32 nVerb)
override;
267 virtual bool ActivateObject(
SdrOle2Obj* pObj, sal_Int32 nVerb)
override;
286 virtual void ShowUIControls (
bool bVisible)
override;
297 virtual void WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& )
override;
298 virtual void ReadUserDataSequence (
const css::uno::Sequence < css::beans::PropertyValue >& )
override;
300 virtual void VisAreaChanged(const ::tools::Rectangle& rRect)
override;
309 virtual css::uno::Reference<css::accessibility::XAccessible>
310 CreateAccessibleDocumentView (
::sd::Window* pWindow)
override;
320 int GetTabLayerCount()
const;
329 int GetActiveTabLayerIndex()
const;
339 void SetActiveTabLayerIndex (
int nId);
358 bool RenameSlide( sal_uInt16 nPageId,
const OUString & rName );
361 void ModifyLayer(
SdrLayer* pLayer,
const OUString& rLayerName,
const OUString& rLayerTitle,
const OUString& rLayerDesc,
bool bIsVisible,
bool bIsLocked,
bool bIsPrintable );
363 virtual css::uno::Reference<css::drawing::XDrawSubController> CreateSubController()
override;
370 virtual bool RelocateToParentWindow (
vcl::Window* pParentWindow)
override;
372 OUString
const & GetSidebarContextName()
const;
385 void DeleteActualPage();
386 void DeleteActualLayer();
390 virtual void UpdateHRuler()
override;
391 virtual void UpdateVRuler()
override;
392 virtual void SetZoomFactor(
const Fraction& rZoomX,
const Fraction& rZoomY)
override;
395 bool bSize,
bool bMargin,
bool bScaleAll );
411 virtual SdPage* CreateOrDuplicatePage (
415 const sal_Int32 nInsertPosition = -1)
override;
417 void DuplicateSelectedSlides (
SfxRequest& rRequest);
423 void StopSlideShow();
439 void ShowSnapLineContextMenu(
weld::Window* pParent, const ::tools::Rectangle& rRect,
440 SdrPageView& rPageView,
const sal_uInt16 nSnapLineIndex);
449 bool ShouldDisableEditHyperlink()
const;
452 void EnableEditHyperlink();
475 bool mbFirstTimeActivation =
true;
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
bool mbIsInSwitchPage
This flag is used to prevent nested calls to SwitchPage().
void SetZoomOnPage(bool bZoom)
bool IsZoomOnPage() const
void SetPageKind(PageKind ePageKind)
TabControl & GetPageTabControl()
Return a pointer to the tab control for pages.
css::uno::Reference< css::scanner::XScannerManager2 > mxScannerManager
EditMode GetEditMode() const
std::unique_ptr< DrawView > mpDrawView
bool IsMouseSelecting() const
bool IsLayerModeActive() const
rtl::Reference< TransferableClipboardListener > mxClipEvtLstnr
css::uno::Reference< css::lang::XEventListener > mxScannerListener
DrawViewShell(const DrawViewShell &)=delete
std::vector< std::unique_ptr< SdrExternalToolEdit > > m_ExternalEdits
sal_uInt16 GetCurPagePos() const
::std::unique_ptr< ViewOverlayManager > mpViewOverlayManager
DECL_DLLPRIVATE_LINK(NameObjectHdl, AbstractSvxObjectNameDialog &, bool)
const SdViewOptions & GetViewOptions() const
VclPtr< TabControl > maTabControl
RotateTransliteration m_aRotateCase
bool mbIsLayerModeActive
This flag controls whether the layer mode is active, i.e.
tools::AsynchronousCall maAsynchronousSwitchPageCall
On some occasions it is necessary to make SwitchPage calls asynchronously.
DECL_DLLPRIVATE_LINK(ClipboardChanged, TransferableDataHelper *, void)
SdViewOptions maViewOptions
bool IsInputLocked() const
::std::unique_ptr< SvxClipboardFormatItem > mpCurrentClipboardFormats
This item contains the clipboard formats of the current clipboard content that are supported both by ...
virtual SdPage * GetActualPage() override
DrawView * GetDrawView() const
DrawViewShell & operator=(const DrawViewShell &)=delete
DECL_DLLPRIVATE_LINK(RenameSlideHdl, AbstractSvxNameDialog &, bool)
::tools::Rectangle maMarkRect
::std::unique_ptr< AnnotationManager > mpAnnotationManager
PageKind GetPageKind() const
const Point & GetMousePos() const
std::optional< bool > moAtContextMenu_DisableEditHyperlink
bool IsMouseButtonDown() const
bool IsInSwitchPage() const
::rtl::Reference< svx::sidebar::SelectionChangeHandler > mpSelectionChangeHandler
Listen for selection changes and broadcast context changes for the sidebar.
DECL_DLLPRIVATE_LINK(TabSplitHdl, TabBar *, void)
Derivative of sd::View; contains also a pointer to the document.
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
Base class of the stacked shell hierarchy.
bool Notify(NotifyEvent const &rNEvt, ::sd::Window *pWin)
An SdWindow contains the actual working area of ViewShell.
#define SD_IF_SDDRAWVIEWSHELL
void MergePageBackgroundFilling(SdPage *pPage, SdStyleSheet *pStyleSheet, bool bMasterPage, SfxItemSet &rMergedAttr)
Merge the background properties together and deposit the result in rMergeAttr.
#define SFX_DECL_INTERFACE(nId)
View options for the current view.