From 44f707ba8cb791df91bdb028e127cca107e3596b Mon Sep 17 00:00:00 2001 From: Ingrid Halama Date: Wed, 31 Mar 2010 18:43:41 +0200 Subject: chartpositioning: #i98398# treat diagram size without title sizes (correct ODF import/export, correct diagram sizing per mouse, correct API for import) --- .../source/controller/chartapiwrapper/Chart2ModelContact.hxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx') diff --git a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx index bab2eaff2d14..e20167e216c2 100644 --- a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx +++ b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx @@ -93,15 +93,9 @@ public: */ ::com::sun::star::awt::Size GetPageSize() const; - /** Returns the size of the diagram object in logic coordinates including - the space reserved for axis titles. + /** calculates the current axes title sizes and substract that space them from the given recangle */ - ::com::sun::star::awt::Size GetDiagramSizeIncludingTitle() const; - - /** Returns the position of the diagram in logic coordinates including - the space reserved for axis titles. - */ - ::com::sun::star::awt::Point GetDiagramPositionIncludingTitle() const; + ::com::sun::star::awt::Rectangle SubstractAxisTitleSizes( const ::com::sun::star::awt::Rectangle& rPositionRect ); /** Returns the position and size of the diagram in logic coordinates (100th mm) including the space used for axes including axes titles. @@ -149,6 +143,8 @@ public: private: //methods ExplicitValueProvider* getExplicitValueProvider() const; + ::com::sun::star::uno::Reference< + ::com::sun::star::lang::XUnoTunnel > getChartView() const; public: //member ::com::sun::star::uno::Reference< -- cgit