summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-02-08 17:45:34 +0000
committerNoel Power <noel.power@novell.com>2012-02-08 17:51:53 +0000
commit4908c16a73b397f83c327789f113658c1ea4d904 (patch)
tree0f6e2f451fb311af332b08fdd76fb3de7cf94e4c /oox
parent737a584d9a1cc29d2688871bdebbb0a7175c542c (diff)
handle row and column offsets for imported shape with cell anchor fdo#45266
This is an update to the previous commit ( for the same bug ) d3a26738b426846ee1a787e7c97280fc43002961
Diffstat (limited to 'oox')
-rw-r--r--oox/source/token/properties.txt2
-rw-r--r--oox/source/xls/drawingbase.cxx6
2 files changed, 8 insertions, 0 deletions
diff --git a/oox/source/token/properties.txt b/oox/source/token/properties.txt
index 94a1947842e8..176ae084813c 100644
--- a/oox/source/token/properties.txt
+++ b/oox/source/token/properties.txt
@@ -218,6 +218,7 @@ HelpText
HideInactiveSelection
HoriJustify
HoriJustifyMethod
+HoriOrientPosition
HorizontalSplitMode
HorizontalSplitPositionTwips
IgnoreBlankCells
@@ -496,6 +497,7 @@ VertJustifyMethod
VerticalAlign
VerticalSplitMode
VerticalSplitPositionTwips
+VertOrientPosition
ViewBox
Visible
VisibleFlag
diff --git a/oox/source/xls/drawingbase.cxx b/oox/source/xls/drawingbase.cxx
index 91ed337334b8..cfc9f32f861a 100644
--- a/oox/source/xls/drawingbase.cxx
+++ b/oox/source/xls/drawingbase.cxx
@@ -308,6 +308,12 @@ ShapeAnchor::applyToXShape( const ::com::sun::star::uno::Reference< ::com::sun::
{
PropertySet aShapeProp( rxShape );
aShapeProp.setProperty( PROP_Anchor, getFromCell() );
+ CellAnchorModel offSets;
+ offSets.mnColOffset = maFrom.mnColOffset;
+ offSets.mnRowOffset = maFrom.mnRowOffset;
+ EmuPoint aPos = calcCellAnchorEmu( offSets );
+ aShapeProp.setProperty( PROP_HoriOrientPosition, lclEmuToHmm( aPos.X ) );
+ aShapeProp.setProperty( PROP_VertOrientPosition, lclEmuToHmm( aPos.Y ) );
}
}