diff options
Diffstat (limited to 'oox/source/drawingml/shape3dproperties.cxx')
-rw-r--r-- | oox/source/drawingml/shape3dproperties.cxx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/oox/source/drawingml/shape3dproperties.cxx b/oox/source/drawingml/shape3dproperties.cxx index 86498aa3507e..853ed4643285 100644 --- a/oox/source/drawingml/shape3dproperties.cxx +++ b/oox/source/drawingml/shape3dproperties.cxx @@ -120,7 +120,7 @@ OUString Shape3DProperties::getCameraPrstName( sal_Int32 nElement ) css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getCameraAttributes() { - css::uno::Sequence<css::beans::PropertyValue> aSeq(3); + css::uno::Sequence<css::beans::PropertyValue> aSeq(6); sal_Int32 nSize = 0; if( mfFieldOfVision.has() ) { @@ -140,6 +140,24 @@ css::uno::Sequence< css::beans::PropertyValue > Shape3DProperties::getCameraAttr aSeq[nSize].Value = css::uno::Any( getCameraPrstName( mnPreset.use() ) ); nSize++; } + if( maCameraRotation.mnLatitude.has() ) + { + aSeq[nSize].Name = "rotLat"; + aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnLatitude.use() ); + nSize++; + } + if( maCameraRotation.mnLongitude.has() ) + { + aSeq[nSize].Name = "rotLon"; + aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnLongitude.use() ); + nSize++; + } + if( maCameraRotation.mnRevolution.has() ) + { + aSeq[nSize].Name = "rotRev"; + aSeq[nSize].Value = css::uno::Any( maCameraRotation.mnRevolution.use() ); + nSize++; + } aSeq.realloc( nSize ); return aSeq; } |