diff options
Diffstat (limited to 'oox/source/drawingml/chart/objectformatter.cxx')
-rw-r--r-- | oox/source/drawingml/chart/objectformatter.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx index 184cb111f02f..5b576d824ba3 100644 --- a/oox/source/drawingml/chart/objectformatter.cxx +++ b/oox/source/drawingml/chart/objectformatter.cxx @@ -1121,6 +1121,26 @@ bool ObjectFormatter::isAutomaticFill( const ModelRef< Shape >& rxShapeProp ) return !rxShapeProp || !rxShapeProp->getFillProperties().moFillType.has(); } +bool ObjectFormatter::getTextRotation( const ModelRef< TextBody >& rxTextProp, sal_Int32 nDefaultRotation ) +{ + if( rxTextProp.is() ) + { + double fAnglevalue = static_cast< double >( rxTextProp->getTextProperties().moRotation.get( nDefaultRotation ) ); + if( fAnglevalue < -5400000.0 || fAnglevalue > 5400000.0 || fAnglevalue == 0.0 ) + { + return true; + } + else + { + return false; + } + } + else + { + return false; + } +} + } // namespace chart } // namespace drawingml } // namespace oox |