32 #include <uiobject.hxx>
36 sal_uInt16 nRangeX, sal_uInt16 nRangeY)
40 if (
SwView* pSwView = dynamic_cast<SwView *>(pSfxViewShell))
41 pSwView->Scroll(rRect.
SVRect(), nRangeX, nRangeY);
49 if (
SwView* pSwView = dynamic_cast<SwView *>(pSfxViewShell))
50 return pSwView->IsScroll(rRect.
SVRect());
60 if (
SwView* pSwView = dynamic_cast<SwView *>(pSfxViewShell))
61 pSwView->DocSzChgd(rSize);
62 else if (
SwPagePreview* pSwPageView = dynamic_cast<SwPagePreview *>(pSfxViewShell))
63 pSwPageView->DocSzChgd(rSize);
71 if (
SwView* pSwView = dynamic_cast<SwView *>(pSfxViewShell))
73 if (pSwView->GetCurShell())
74 pSwView->UpdatePageNums();
80 if (
SwWrtShell* pWrtShell = dynamic_cast<SwWrtShell *>(pVwSh))
88 return (!rRuler.StartDocDrag( rMEvt, RulerType::Border ) &&
89 !rRuler.StartDocDrag( rMEvt, RulerType::Margin1) &&
90 !rRuler.StartDocDrag( rMEvt, RulerType::Margin2));
97 const bool bVerticalMode )
100 return !rRuler.StartDocDrag( rMEvt, RulerType::Indent);
113 if (
SwPagePreview* pSwPagePreview = dynamic_cast<SwPagePreview *>(pSfxViewShell))
114 pSwPagePreview->RepaintCoreRect(rRect);
121 if (
SwView* pSwView = dynamic_cast<SwView *>(pSfxViewShell))
122 return pSwView->JumpToSwMark(rMark);
129 Window::DataChanged( rDCEvt );
136 bool bViewWasLocked = pSh->
IsViewLocked(), bUnlockPaint =
false;
140 case DataChangedEventType::SETTINGS:
145 if( rDCEvt.
GetFlags() & AllSettingsFlags::STYLE )
154 case DataChangedEventType::PRINTER:
155 case DataChangedEventType::DISPLAY:
156 case DataChangedEventType::FONTS:
157 case DataChangedEventType::FONTSUBSTITUTION:
void FrameNotify(SwViewShell *pVwSh, FlyMode eMode)
void PageNumNotify(SwViewShell const *pVwSh)
virtual void DataChanged(const DataChangedEvent &) override
const SwView & GetView() const
std::function< std::unique_ptr< UIObject >vcl::Window *)> FactoryFunction
DataChangedEventType GetType() const
Of course Writer needs its own rectangles.
SfxViewShell * GetSfxViewShell() const
void SizeNotify(SwViewShell const *pVwSh, const Size &rSize)
bool JumpToSwMark(SwViewShell const *pVwSh, std::u16string_view rMark)
Used by the UI to modify the document model.
void InvalidateLayout(bool bSizeChanged)
AllSettingsFlags GetFlags() const
TableChgMode GetTableChgDefaultMode()
void RepaintPagePreview(SwViewShell const *pVwSh, const SwRect &rRect)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
void DeleteReplacementBitmaps()
static void SetFrameMode(FlyMode eMode, SwWrtShell *pShell)
bool RulerMarginDrag(const MouseEvent &rMEvt, const bool bVerticalMode)
SwDocShell * GetDocShell()
TableChgMode GetTableMode() const
SwWrtShell * GetWrtShellPtr() const
tools::Rectangle SVRect() const
void ScrollMDI(SwViewShell const *pVwSh, const SwRect &rRect, sal_uInt16 nRangeX, sal_uInt16 nRangeY)
bool IsScrollMDI(SwViewShell const *pVwSh, const SwRect &rRect)
virtual FactoryFunction GetUITestFactory() const override
bool RulerColumnDrag(const MouseEvent &rMEvt, bool bVerticalMode)
bool IsViewLocked() const
void UnlockPaint(bool bVirDev=false)