49 virtual void dispose()
override;
175 virtual void Resize()
override;
178 const ::tools::Rectangle& rRect)
override;
193 virtual css::uno::Reference<css::accessibility::XAccessible>
CreateAccessible()
override;
Base class of the stacked shell hierarchy.
An SdWindow contains the actual working area of ViewShell.
const Point & GetWinViewPos() const
void DropScroll(const Point &rMousePos)
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
double GetVisibleWidth() const
::tools::Long SetZoomFactor(::tools::Long nZoom)
This internally used method performs the actual adaptation of the window's map mode to the specified ...
bool DeleteSurroundingText(const Selection &rSelection) override
double GetScrlPageHeight() const
OUString GetSurroundingText() const override
void GrabFocus()
Activate window.
Selection GetSurroundingTextSelection() const override
double GetVisibleX() const
virtual void LoseFocus() override
Deactivate window.
double GetVisibleY() const
FactoryFunction GetUITestFactory() const override
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
virtual void PrePaint(vcl::RenderContext &rRenderContext) override
void SetViewShell(ViewShell *pViewSh)
void SetViewSize(const Size &rSize)
Set size of the whole working area which can be seen with the window.
void CalcMinZoom()
Calculate the minimal zoom factor as the value at which the application area would completely fill th...
void SetMaxZoom(::tools::Long nMax)
double GetVisibleHeight() const
virtual ~Window() override
virtual void Paint(vcl::RenderContext &rRenderContext, const ::tools::Rectangle &rRect) override
void SetUseDropScroll(bool bUseDropScroll)
The DropScroll() method is used by AcceptDrop() to scroll the content of the window while dragging an...
::tools::Long GetMaxZoom() const
bool mbMinZoomAutoCalc
This flag tells whether to re-calculate the minimal zoom factor depending on the current zoom factor.
void SetCenterAllowed(bool bIsAllowed)
const Point & GetViewOrigin() const
double GetScrlLineHeight() const
::tools::Long GetMinZoom() const
void SetMinZoomAutoCalc(bool bAuto)
void SetMinZoom(::tools::Long nMin)
ViewShell * GetViewShell()
virtual void dispose() override
::tools::Long GetZoomForRect(const ::tools::Rectangle &rZoomRect)
virtual void KeyInput(const KeyEvent &rKEvt) override
void LogicInvalidate(const ::tools::Rectangle *pRectangle) override
void SetWinViewPos(const Point &rPnt)
Set the position of the upper left corner from the visible area of the window.
::tools::Long SetZoomRect(const ::tools::Rectangle &rZoomRect)
This method is called when the whole page shall be displayed in the window.
Window(vcl::Window *pParent)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
virtual bool EventNotify(NotifyEvent &rNEvt) override
virtual void Command(const CommandEvent &rCEvt) override
virtual void RequestHelp(const HelpEvent &rEvt) override
void SetViewOrigin(const Point &rPnt)
Set origin of the representation in respect to the whole working area.
::tools::Long GetZoom() const
double GetScrlPageWidth() const
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
Create an accessibility object that makes this window accessible.
double GetScrlLineWidth() const
void SetVisibleXY(double fX, double fY)
Set x and y position of the visible area as fraction (< 1) of the whole working area.
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
OutlinerView * GetOutlinerView() const
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
void UpdateMapOrigin(bool bInvalidate=true)
Calculate origin of the map mode according to the size of the view and window (its size in model coor...
virtual void MouseMove(const MouseEvent &rMEvt) override
void SetZoomIntegral(::tools::Long nZoom)
Set the zoom factor to the specified value and center the display area around the zoom center.
const Size & GetViewSize() const
virtual void Resize() override
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction