59#undef OUTPUT_DRAWMODE_COLOR
60#undef OUTPUT_DRAWMODE_CONTRAST
64 = DrawModeFlags::GrayLine | DrawModeFlags::GrayFill
65 | DrawModeFlags::BlackText | DrawModeFlags::GrayBitmap
66 | DrawModeFlags::GrayGradient;
68 = DrawModeFlags::BlackLine | DrawModeFlags::BlackText
69 | DrawModeFlags::WhiteFill | DrawModeFlags::GrayBitmap
70 | DrawModeFlags::WhiteGradient;
72 = DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill
73 | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient;
105 static const int MAX_HSPLIT_CNT = 1;
106 static const int MAX_VSPLIT_CNT = 1;
107 static const int MIN_SCROLLBAR_SIZE = 50;
127 virtual void Init (
bool bIsMainViewShell);
145 inline SdrView* GetDrawView()
const;
171 const ::tools::Rectangle& GetAllWindowRect();
174 virtual void PrePaint();
181 bool RequestHelp(
const HelpEvent& rEvt );
187 void SetDefTabHRuler( sal_uInt16 nDefTab );
192 void SetRuler(
bool bRuler);
194 void SetScrollBarsVisible(
bool bVisible);
200 virtual void UpdateScrollBars();
205 virtual void SetZoomRect(const ::tools::Rectangle& rZoomRect);
206 void InitWindows(
const Point& rViewOrigin,
const Size& rViewSize,
207 const Point& rWinPos,
bool bUpdate =
false);
208 void InvalidateWindows();
213 virtual void UpdatePreview (
SdPage* pPage);
215 void DrawMarkRect(const ::tools::Rectangle& rRect)
const;
227 void SetFrameView (
FrameView* pFrameView);
228 virtual void ReadFrameViewData(
FrameView* pView);
229 virtual void WriteFrameViewData();
230 void WriteUserData();
233 virtual bool ActivateObject(
SdrOle2Obj* pObj, sal_Int32 nVerb);
251 bool HasCurrentFunction( sal_uInt16 nSID ) {
return mxCurrentFunction.is() && (mxCurrentFunction->GetSlotID() == nSID ); }
256 void DeactivateCurrentFunction(
bool bPermanent =
false );
258 void SetPageSizeAndBorder(
PageKind ePageKind,
const Size& rNewSize,
260 bool bScaleAll,
Orientation eOrient, sal_uInt16 nPaperBin,
261 bool bBackgroundFullSize );
272 virtual bool PrepareClose(
bool bUI =
true );
281 virtual void WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& );
282 virtual void ReadUserDataSequence (
const css::uno::Sequence < css::beans::PropertyValue >& );
295 virtual css::uno::Reference<css::accessibility::XAccessible>
298 virtual void SwitchViewFireFocus(
const css::uno::Reference< css::accessibility::XAccessible >& xAcc );
299 void SwitchActiveViewFireFocus( );
301 void NotifyAccUpdate();
302 void fireSwitchCurrentPage(sal_Int32 pageIndex);
303 void SetWinViewPos(
const Point& rWinPos);
304 Point const & GetWinViewPos()
const;
305 Point const & GetViewOrigin()
const;
330 virtual void ArrangeGUIElements();
343 bool IsMainViewShell()
const;
349 void SetIsMainViewShell (
bool bIsMainViewShell);
374 virtual ErrCode DoVerb(sal_Int32 nVerb);
382 virtual void ShowUIControls (
bool bVisible);
383 bool IsPageFlipMode()
const;
389 virtual bool RelocateToParentWindow (
vcl::Window* pParentWindow);
408 virtual SdPage* CreateOrDuplicatePage (
412 const sal_Int32 nInsertPosition = -1);
415 void SetCursorMm100Position(
const Point& rPosition,
bool bPoint,
bool bClearMark);
417 css::uno::Reference<css::datatransfer::XTransferable> GetSelectionTransferable()
const;
419 void SetGraphicMm100Position(
bool bStart,
const Point& rPosition);
426 void DisposeFunctions();
459 double mfAccumulatedZoom = 0;
485 std::unique_ptr<Implementation, o3tl::default_delete<Implementation>>
mpImpl;
489 void ImpGetUndoStrings(
SfxItemSet &rSet)
const;
490 void ImpGetRedoStrings(
SfxItemSet &rSet)
const;
504 virtual void UpdateHRuler();
505 virtual void UpdateVRuler();
507 virtual void Activate(
bool IsMDIActivate)
override;
508 virtual void Deactivate(
bool IsMDIActivate)
override;
510 virtual void SetZoomFactor(
const Fraction &rZoomX,
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
This class contains (will contain) the implementation of methods that have not be accessible from the...
Base class of the stacked shell hierarchy.
VclPtr< SvxRuler > mpHorizontalRuler
Horizontal ruler is not shown by default.
VclPtr< ScrollAdaptor > mpVerticalScrollBar
Vertical scroll bar for whole document is always visible.
const rtl::Reference< FuPoor > & GetCurrentFunction() const
virtual SdPage * getCurrentPage() const =0
std::unique_ptr< Implementation, o3tl::default_delete< Implementation > > mpImpl
std::unique_ptr< ZoomList > mpZoomList
bool HasCurrentFunction(sal_uInt16 nSID)
VclPtr< SvxRuler > mpVerticalRuler
Vertical ruler is not shown by default.
virtual SdPage * GetActualPage()=0
sal_uInt16 mnPrintedHandoutPageNum
VclPtr< vcl::Window > mpParentWindow
sal_uInt16 GetPrintedHandoutPageNum() const
ShellType meShellType
The type of the shell. Returned by GetShellType().
rtl::Reference< FuPoor > mxOldFunction
void SetPrintedHandoutPageNum(sal_uInt16 nPageNumber)
FrameView * GetFrameView()
VclPtr< ::sd::Window > mpActiveWindow
The active window.
::sd::Window * GetActiveWindow() const
The active window is usually the mpContentWindow.
void SetPrintedHandoutPageCount(sal_uInt16 nPageCount)
DECL_DLLPRIVATE_LINK(HScrollHdl, weld::Scrollbar &, void)
::sd::View * GetView() const
::std::unique_ptr< ::sd::WindowUpdater > mpWindowUpdater
This window updater is used to keep all relevant windows up to date with reference to the digit langu...
bool IsStartShowWithDialog() const
const rtl::Reference< FuPoor > & GetOldFunction() const
vcl::Window * GetParentWindow() const
Return the window that is the parent of all controls of this view shell.
::tools::Rectangle maAllWindowRectangle
Area covered by all windows, i.e.
sal_uInt16 mnPrintedHandoutPageCount
VclPtr< LayerTabBar > mpLayerTabBar
Layer tab bar.
bool HasOldFunction() const
DECL_DLLPRIVATE_LINK(VScrollHdl, weld::Scrollbar &, void)
rtl::Reference< FuPoor > mxCurrentFunction
void SetStartShowWithDialog(bool bIn)
bool mbStartShowWithDialog
sal_uInt16 GetPrintedHandoutPageCount() const
VclPtr< sd::Window > mpContentWindow
Window inside the rulers and scroll bars that shows a view of the document.
bool HasCurrentFunction() const
virtual css::uno::Reference< css::drawing::XDrawSubController > CreateSubController()=0
Return a sub controller that implements the view shell specific part of the DrawController.
SdrView * GetDrawView() const
VclPtr< ScrollAdaptor > mpHorizontalScrollBar
Horizontal scroll bar for the current slide is displayed when needed.
bool mbHasRulers
This flag controls whether the rulers are visible.
The purpose of the <type>WindowUpdater</type> is to update output devices to take care of modified gl...
An SdWindow contains the actual working area of ViewShell.
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
const DrawModeFlags OUTPUT_DRAWMODE_CONTRAST
const DrawModeFlags OUTPUT_DRAWMODE_GRAYSCALE
const DrawModeFlags OUTPUT_DRAWMODE_BLACKWHITE
const DrawModeFlags OUTPUT_DRAWMODE_COLOR