diff options
author | Ingrid Halama <iha@openoffice.org> | 2010-03-31 18:43:41 +0200 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2010-03-31 18:43:41 +0200 |
commit | 44f707ba8cb791df91bdb028e127cca107e3596b (patch) | |
tree | e9eba9b1caab08e28b754909fae0e23a5b7b82f6 /chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx | |
parent | 9ffefc5a02fe8c45c8dc6c2627b67e32101b2960 (diff) |
chartpositioning: #i98398# treat diagram size without title sizes (correct ODF import/export, correct diagram sizing per mouse, correct API for import)
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/Chart2ModelContact.hxx | 12 |
1 files changed, 4 insertions, 8 deletions
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< |