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);
63 pSwPageView->DocSzChgd(rSize);
71 if (
SwView* pSwView =
dynamic_cast<SwView *
>(pSfxViewShell))
73 if (pSwView->GetCurShell())
74 pSwView->UpdatePageNums();
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);
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:
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
static void SetFrameMode(FlyMode eMode, SwWrtShell *pShell)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
virtual FactoryFunction GetUITestFactory() const override
bool RulerMarginDrag(const MouseEvent &rMEvt, const bool bVerticalMode)
virtual void DataChanged(const DataChangedEvent &) override
const SwView & GetView() const
bool RulerColumnDrag(const MouseEvent &rMEvt, bool bVerticalMode)
TableChgMode GetTableMode() const
Of course Writer needs its own rectangles.
tools::Rectangle SVRect() const
bool IsViewLocked() const
void UnlockPaint(bool bVirDev=false)
void DeleteReplacementBitmaps()
void InvalidateLayout(bool bSizeChanged)
SfxViewShell * GetSfxViewShell() const
void LockPaint(LockPaintReason eReason)
SwWrtShell * GetWrtShellPtr() const
SwDocShell * GetDocShell()
Used by the UI to modify the document model.
void SizeNotify(SwViewShell const *pVwSh, const Size &rSize)
TableChgMode GetTableChgDefaultMode()
void PageNumNotify(SwViewShell const *pVwSh)
bool JumpToSwMark(SwViewShell const *pVwSh, std::u16string_view rMark)
bool IsScrollMDI(SwViewShell const *pVwSh, const SwRect &rRect)
void FrameNotify(SwViewShell *pVwSh, FlyMode eMode)
void RepaintPagePreview(SwViewShell const *pVwSh, const SwRect &rRect)
void ScrollMDI(SwViewShell const *pVwSh, const SwRect &rRect, sal_uInt16 nRangeX, sal_uInt16 nRangeY)
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction