diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-09 12:33:15 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-09 16:34:28 -0400 |
commit | bd485290c77ce9b0a3a557513bf84817b48a5772 (patch) | |
tree | 69cda3e80ea2571c4f82646c37006fc747113bc9 /chart2 | |
parent | 7df90ca4ddc3edd2df10a7d74772f0bea28d35c0 (diff) |
Make it clear which bounding rectangle it returns & const.
Change-Id: I9c8080225cfbe0f38133ce2503bd2d0c1d0f5e13
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/diagram/VDiagram.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/inc/VDiagram.hxx | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/view/diagram/VDiagram.cxx b/chart2/source/view/diagram/VDiagram.cxx index 30913e220514..bdbc3dd44de5 100644 --- a/chart2/source/view/diagram/VDiagram.cxx +++ b/chart2/source/view/diagram/VDiagram.cxx @@ -675,7 +675,7 @@ void VDiagram::createShapes_3d() adjustPosAndSize_3d( m_aAvailablePosIncludingAxes, m_aAvailableSizeIncludingAxes ); } -::basegfx::B2IRectangle VDiagram::getCurrentRectangle() +basegfx::B2IRectangle VDiagram::getCurrentRectangle() const { return BaseGFXHelper::makeRectangle(m_aCurrentPosWithoutAxes,m_aCurrentSizeWithoutAxes); } diff --git a/chart2/source/view/inc/VDiagram.hxx b/chart2/source/view/inc/VDiagram.hxx index ecf6cf23836b..a57cc1482cbc 100644 --- a/chart2/source/view/inc/VDiagram.hxx +++ b/chart2/source/view/inc/VDiagram.hxx @@ -54,7 +54,10 @@ public: //methods ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes > getCoordinateRegion() { return css::uno::Reference<css::drawing::XShapes>( m_xCoordinateRegionShape, css::uno::UNO_QUERY );} - ::basegfx::B2IRectangle getCurrentRectangle(); + /** + * Get current bounding rectangle for the diagram without axes. + */ + basegfx::B2IRectangle getCurrentRectangle() const; void reduceToMimimumSize(); |