diff options
Diffstat (limited to 'chart2/source/tools/ReferenceSizeProvider.cxx')
-rw-r--r-- | chart2/source/tools/ReferenceSizeProvider.cxx | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/chart2/source/tools/ReferenceSizeProvider.cxx b/chart2/source/tools/ReferenceSizeProvider.cxx index 93ba4b43cfc3..ddddc7d71ee4 100644 --- a/chart2/source/tools/ReferenceSizeProvider.cxx +++ b/chart2/source/tools/ReferenceSizeProvider.cxx @@ -226,32 +226,18 @@ void ReferenceSizeProvider::getAutoResizeFromPropSet( } } -void ReferenceSizeProvider::getAutoResizeFromTitle( - const Reference< XTitle > & xTitle, - ReferenceSizeProvider::AutoResizeState & rInOutState ) -{ - Reference< beans::XPropertySet > xProp( xTitle, uno::UNO_QUERY ); - if( xProp.is()) - getAutoResizeFromPropSet( xProp, rInOutState ); -} - void ReferenceSizeProvider::impl_getAutoResizeFromTitled( const Reference< XTitled > & xTitled, ReferenceSizeProvider::AutoResizeState & rInOutState ) { if( xTitled.is()) { - Reference< XTitle > xTitle( xTitled->getTitleObject()); - if( xTitle.is()) - getAutoResizeFromTitle( xTitle, rInOutState ); + Reference< beans::XPropertySet > xProp( xTitled->getTitleObject(), uno::UNO_QUERY ); + if( xProp.is()) + getAutoResizeFromPropSet( xProp, rInOutState ); } } -ReferenceSizeProvider::AutoResizeState ReferenceSizeProvider::getAutoResizeState() const -{ - return getAutoResizeState( m_xChartDoc ); -} - /** Retrieves the state auto-resize from all objects that support this feature. If all objects return the same state, AUTO_RESIZE_YES or AUTO_RESIZE_NO is returned. |