summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-01-26 11:00:15 +0000
committerNoel Power <noel.power@novell.com>2012-02-03 12:43:42 +0000
commitc07e9299bb2c8d5477669568b12708bd2ff12684 (patch)
treead4de6430ced620df45523fdea71e1c818192e80 /oox/inc
parent3364fcc5a550fae001b24f4303a978662bb7c70f (diff)
improve xlsx shape/chart import, anchor to cell where needed fdo#45266
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/oox/xls/drawingbase.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/oox/inc/oox/xls/drawingbase.hxx b/oox/inc/oox/xls/drawingbase.hxx
index c79eb7a863c0..95fae469b8ab 100644
--- a/oox/inc/oox/xls/drawingbase.hxx
+++ b/oox/inc/oox/xls/drawingbase.hxx
@@ -32,6 +32,9 @@
#include "oox/drawingml/drawingmltypes.hxx"
#include "oox/xls/worksheethelper.hxx"
+#include <com/sun/star/drawing/XShape.hpp>
+#include <com/sun/star/table/XCell.hpp>
+
namespace oox {
namespace xls {
@@ -108,7 +111,12 @@ public:
/** Calculates the resulting shape anchor in 1/100 mm. */
::com::sun::star::awt::Rectangle calcAnchorRectHmm(
const ::com::sun::star::awt::Size& rPageSizeHmm ) const;
-
+ /** Returns the 'to' cell if it exists */
+ ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > getToCell() const;
+ /** Returns the 'from' cell if it exists */
+ ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell > getFromCell() const;
+ /** Applies Cell Anchor to an XShape if needed*/
+ void applyToXShape( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape>& rxShape );
private:
/** Converts the passed anchor to an absolute position in EMUs. */
::oox::drawingml::EmuPoint calcCellAnchorEmu( const CellAnchorModel& rModel ) const;