19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_PVIEW_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_PVIEW_HXX
59 void SetPagePreview( sal_Int16 nRow, sal_Int16 nCol );
105 sal_uInt16 SelectedPage()
const;
112 void SetSelectedPage( sal_uInt16 _nSelectedPageNum );
117 void CalcWish( sal_Int16 nNewRow, sal_Int16 nNewCol );
119 void SetWinSize(
const Size& rNewSize );
122 enum MoveMode{ MV_CALC, MV_PAGE_UP, MV_PAGE_DOWN, MV_DOC_STT, MV_DOC_END,
124 bool MovePage(
int eMoveMode );
127 OUString GetStatusStr( sal_uInt16 nPageCount )
const;
129 void RepaintCoreRect(
const SwRect& rRect );
136 void AdjustPreviewToNewZoom(
const sal_uInt16 _nZoomFactor,
141 return maPaintedPreviewDocRect;
153 bool SetBookPreviewMode(
const bool _bBookPreview );
155 virtual css::uno::Reference<css::accessibility::XAccessible>
CreateAccessible()
override;
191 SAL_DLLPRIVATE
void Init();
192 SAL_DLLPRIVATE
Point AlignToPixel(
const Point& rPt)
const;
194 SAL_DLLPRIVATE
void CreateScrollbar(
bool bHori);
199 SAL_DLLPRIVATE
bool ChgPage(
int eMvMode,
bool bUpdateScrollbar =
true );
206 SAL_DLLPRIVATE
void CalcAndSetBorderPixel(
SvBorder &rToFill );
217 SAL_DLLPRIVATE
void ExecPgUpAndPgDown(
const bool _bPgUp,
237 {
return m_pViewWin->GetViewShell(); }
239 { m_pViewWin->RepaintCoreRect( rRect ); }
241 void DocSzChgd(
const Size& rNewSize);
245 void ScrollViewSzChg();
246 void ScrollDocSzChg();
247 void ShowHScrollbar(
bool bShow);
248 void ShowVScrollbar(
bool bShow);
249 void EnableHScrollbar(
bool bEnable);
250 void EnableVScrollbar(
bool bEnable);
271 void ApplyAccessibilityOptions();
277 return mbResetFormDesignMode;
282 return mbFormDesignModeToReset;
294 void SetVScrollbarThumbPos(
const sal_uInt16 _nNewThumbPos );
virtual SfxPrinter * GetPrinter(bool bCreate=false)
virtual void Activate(bool IsMDIActivate) override
virtual void InnerResizePixel(const Point &rOfs, const Size &rSize, bool inplaceEditModeChange)
static void InitInterface_Impl()
virtual void OuterResizePixel(const Point &rOfs, const Size &rSize)
virtual bool HasPrintOptionsPage() const
virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL)
virtual std::unique_ptr< SfxTabPage > CreatePrintOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions)
page preview functionality in the writer
Provides the VCL widget that is used for the main area of the File -> Print Preview window.
sal_uInt16 GetDefSttPage() const
const tools::Rectangle & GetPaintedPreviewDocRect() const
void SetSttPage(sal_uInt16 n)
SwViewShell * mpViewShell
bool mbCalcScaleForPreviewLayout
sal_uInt16 GetSttPage() const
SwViewShell * GetViewShell() const
tools::Rectangle maPaintedPreviewDocRect
SwPagePreviewLayout * mpPgPreviewLayout
sal_uInt16 GetSelectedPage() const
void RepaintCoreRect(const SwRect &rRect)
VclPtr< SwScrollbar > m_pHScrollbar
tools::Rectangle m_aVisArea
VclPtr< SwPagePreviewWin > m_pViewWin
sal_uInt16 GetPageCount() const
VclPtr< SwScrollbar > m_pVScrollbar
sal_uInt16 GetNewPage() const
void SetNewCursorPos(const OUString &rStr)
bool ResetFormDesignMode() const
const OUString & GetNewCursorPos() const
OUString m_sNewCursorPosition
bool mbResetFormDesignMode
DECL_DLLPRIVATE_LINK(VertScrollHdl, weld::Scrollbar &, void)
SwViewShell * GetViewShell() const
bool FormDesignModeToReset() const
DECL_DLLPRIVATE_LINK(HoriScrollHdl, weld::Scrollbar &, void)
const OUString & GetPrevSwViewData() const
SFX_DECL_VIEWFACTORY(SwPagePreview)
bool mbFormDesignModeToReset
Of course Writer needs its own rectangles.
virtual void Command(const CommandEvent &rCEvt)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
virtual void KeyInput(const KeyEvent &rKEvt)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible()
virtual void Scroll(tools::Long nHorzScroll, tools::Long nVertScroll, ScrollFlags nFlags=ScrollFlags::NONE)
virtual void DataChanged(const DataChangedEvent &rDCEvt)
#define SFX_DECL_INTERFACE(nId)