summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/lokcomponenthelpers.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sfx2/lokcomponenthelpers.hxx b/include/sfx2/lokcomponenthelpers.hxx
index c9468b7d1c3b..6a3d964689b4 100644
--- a/include/sfx2/lokcomponenthelpers.hxx
+++ b/include/sfx2/lokcomponenthelpers.hxx
@@ -29,11 +29,13 @@ private:
css::uno::Reference<css::frame::XController> mxController;
css::uno::Reference<css::frame::XDispatch> mxDispatcher;
VclPtr<vcl::Window> mpWindow;
+ bool mbNegativeX;
public:
- LokChartHelper(SfxViewShell* pViewShell)
+ LokChartHelper(SfxViewShell* pViewShell, bool bNegativeX = false)
: mpViewShell(pViewShell)
, mpWindow(nullptr)
+ , mbNegativeX(bNegativeX)
{}
css::uno::Reference<css::frame::XController>& GetXController();
@@ -43,7 +45,7 @@ public:
void Invalidate();
bool Hit(const Point& aPos);
- static bool HitAny(const Point& aPos);
+ static bool HitAny(const Point& aPos, bool bNegativeX = false);
void PaintTile(VirtualDevice& rRenderContext, const tools::Rectangle& rTileRect);
static void PaintAllChartsOnTile(VirtualDevice& rDevice,
int nOutputWidth, int nOutputHeight,