20#include <config_wasm_strip.h>
24#include <uiobject.hxx>
41 aResult.setWidth( rAWTRect.Width );
42 aResult.setHeight( rAWTRect.Height );
52 , m_pWindowController( pController )
54 , m_pViewShellWindow( nullptr )
100 Window::Paint(rRenderContext, rRect);
110 Window::MouseButtonDown(rMEvt);
118 Window::MouseMove( rMEvt );
124 Window::Tracking( rTEvt );
132 Window::MouseButtonUp( rMEvt );
151 Window::Deactivate();
169 Window::Command( rCEvt );
177 Window::KeyInput(rKEvt);
180 Window::KeyInput( rKEvt );
185#if !ENABLE_WASM_STRIP_ACCESSIBILITY
189 return Window::CreateAccessible();
199 if ( (rDCEvt.
GetType() == DataChangedEventType::SETTINGS) &&
200 (rDCEvt.
GetFlags() & AllSettingsFlags::STYLE) )
208 bool bHelpHandled =
false;
209 if( ( rHEvt.
GetMode() & HelpEventMode::QUICK ) &&
213 OUString aQuickHelpText;
214 awt::Rectangle aHelpRect;
238 DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill |
239 DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient;
259 if (
nullptr == pCurrentShell )
288 const auto& scaleX = aCWMapMode.
GetScaleX();
289 const auto& scaleY = aCWMapMode.
GetScaleY();
290 const auto nXNum =
p.first * scaleX.GetDenominator();
291 const auto nXDen =
p.second * scaleX.GetNumerator();
292 const auto nYNum =
p.first * scaleY.GetDenominator();
293 const auto nYDen =
p.second * scaleY.GetNumerator();
297 aRectangle = aRectangle.
scale(scaleX.GetDenominator(), scaleX.GetNumerator(),
298 scaleY.GetDenominator(), scaleY.GetNumerator());
306 aResultRectangle = aRectangle;
356 const auto& scaleX = aCWMapMode.
GetScaleX();
357 const auto& scaleY = aCWMapMode.
GetScaleY();
358 const auto nXNum =
p.first * scaleX.GetDenominator();
359 const auto nXDen =
p.second * scaleX.GetNumerator();
360 const auto nYNum =
p.first * scaleY.GetDenominator();
361 const auto nYDen =
p.second * scaleY.GetNumerator();
const StyleSettings & GetStyleSettings() const
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
HelpEventMode GetMode() const
const Point & GetMousePosPixel() const
static bool IsBalloonHelpEnabled()
static void ShowQuickHelp(vcl::Window *pParent, const tools::Rectangle &rScreenRect, const OUString &rHelpText, QuickHelpFlags nStyle=QuickHelpFlags::NONE)
static void ShowBalloon(vcl::Window *pParent, const Point &rScreenPos, const tools::Rectangle &, const OUString &rHelpText)
const Fraction & GetScaleX() const
const Fraction & GetScaleY() const
void SetAntialiasing(AntialiasingFlags nMode)
void SetDrawMode(DrawModeFlags nDrawMode)
virtual bool IsVirtual() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
constexpr Point scale(sal_Int64 nMulX, sal_Int64 nDivX, sal_Int64 nMulY, sal_Int64 nDivY) const
void setY(tools::Long nY)
constexpr tools::Long X() const
vcl::Window * GetEditWin() const
static void notifyInvalidation(SfxViewShell const *pThisView, tools::Rectangle const *)
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
SfxInPlaceClient * GetIPClient() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
bool GetHighContrastMode() const
reference_type * get() const
bool execute_KeyInput(const KeyEvent &rKEvt)
css::uno::Reference< css::accessibility::XAccessible > CreateAccessible()
void execute_MouseButtonUp(const MouseEvent &rMEvt)
bool requestQuickHelp(::Point aAtLogicPosition, bool bIsBalloonHelp, OUString &rOutQuickHelpText, css::awt::Rectangle &rOutEqualRect)
get help text to be shown in a quick help
void execute_MouseButtonDown(const MouseEvent &rMEvt)
void execute_Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
void execute_Command(const CommandEvent &rCEvt)
void execute_MouseMove(const MouseEvent &rMEvt)
ChartWindow(ChartController *pController, vcl::Window *pParent, WinBits nStyle)
VclPtr< vcl::Window > m_pViewShellWindow
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
ChartController * GetController()
virtual void ImplInvalidate(const vcl::Region *rRegion, InvalidateFlags nFlags) override
virtual void Deactivate() override
virtual void Command(const CommandEvent &rCEvt) override
virtual FactoryFunction GetUITestFactory() const override
virtual void Activate() override
void adjustHighContrastMode()
virtual void Tracking(const TrackingEvent &rTEvt) override
virtual ~ChartWindow() override
virtual void LoseFocus() override
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual void PrePaint(vcl::RenderContext &rRenderContext) override
virtual void GetFocus() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
ChartController * m_pWindowController
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
tools::Rectangle GetBoundingBox()
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
virtual void dispose() override
vcl::Window * GetParentEditWin()
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual void Resize() override
virtual void LogicInvalidate(const tools::Rectangle *pRectangle) override
Notify the LOK client about an invalidated area.
virtual void KeyInput(const KeyEvent &rKEvt) override
virtual void RequestHelp(const HelpEvent &rHEvt) override
Point OutputToScreenPixel(const Point &rPos) const
virtual void dispose() override
virtual void RequestHelp(const HelpEvent &rHEvt)
Point LogicToPixel(const Point &rLogicPt) const
Point GetOffsetPixelFrom(const vcl::Window &rWindow) const
void set_id(const OUString &rID)
virtual void EnableRTL(bool bEnable=true)
bool IsMapModeEnabled() const
const AllSettings & GetSettings() const
const MapMode & GetMapMode() const
::OutputDevice const * GetOutDev() const
Point PixelToLogic(const Point &rDevicePt) const
virtual Size GetSizePixel() const
virtual void DataChanged(const DataChangedEvent &rDCEvt)
Point GetPointerPosPixel()
virtual void ImplInvalidate(const vcl::Region *pRegion, InvalidateFlags nFlags)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
bool IsAncestorOf(const vcl::Window &rWindow) const
void SetHelpId(const OUString &)
constexpr OUStringLiteral HID_SCH_WIN_DOCUMENT
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)