diff options
Diffstat (limited to 'chart2/source/model/main/ChartModel.cxx')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 6e2c06ed288d..f57da883577b 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -362,11 +362,11 @@ sal_Bool SAL_CALL ChartModel::attachResource( const OUString& rURL LifeTimeGuard aGuard(m_aLifeTimeManager); if(!aGuard.startApiCall()) - return sal_False; //behave passive if already disposed or closed or throw exception @todo? + return false; //behave passive if already disposed or closed or throw exception @todo? //mutex is acquired if(!m_aResource.isEmpty())//we have a resource already //@todo? or is setting a new resource allowed? - return sal_False; + return false; m_aResource = rURL; m_aMediaDescriptor = rMediaDescriptor; @@ -374,7 +374,7 @@ sal_Bool SAL_CALL ChartModel::attachResource( const OUString& rURL //@todo ? evaluate m_aMediaDescriptor; //@todo ? ... ??? --> nothing, this method is only for setting information - return sal_True; + return true; } OUString SAL_CALL ChartModel::getURL() throw(uno::RuntimeException, std::exception) @@ -481,7 +481,7 @@ sal_Bool SAL_CALL ChartModel::hasControllersLocked() throw(uno::RuntimeException { LifeTimeGuard aGuard(m_aLifeTimeManager); if(!aGuard.startApiCall()) - return sal_False; //behave passive if already disposed or closed or throw exception @todo? + return false; //behave passive if already disposed or closed or throw exception @todo? return ( m_nControllerLockCount != 0 ) ; } @@ -752,7 +752,7 @@ void SAL_CALL ChartModel::setFirstDiagram( const uno::Reference< chart2::XDiagra //don't keep the mutex locked while calling out ModifyListenerHelper::removeListener( xOldDiagram, xListener ); ModifyListenerHelper::addListener( xDiagram, xListener ); - setModified( sal_True ); + setModified( true ); } Reference< chart2::data::XDataSource > ChartModel::impl_createDefaultData() @@ -766,7 +766,7 @@ Reference< chart2::data::XDataSource > ChartModel::impl_createDefaultData() //init internal dataprovider { uno::Sequence< uno::Any > aArgs(1); - beans::NamedValue aParam( "CreateDefaultData" ,uno::makeAny(sal_True) ); + beans::NamedValue aParam( "CreateDefaultData" ,uno::makeAny(true) ); aArgs[0] <<= aParam; xIni->initialize(aArgs); } @@ -811,7 +811,7 @@ void SAL_CALL ChartModel::createInternalDataProvider( sal_Bool bCloneExistingDat m_xInternalDataProvider = ChartModelHelper::createInternalDataProvider( Reference<XChartDocument>(), true ); m_xDataProvider.set( m_xInternalDataProvider ); } - setModified( sal_True ); + setModified( true ); } sal_Bool SAL_CALL ChartModel::hasInternalDataProvider() @@ -852,7 +852,7 @@ void SAL_CALL ChartModel::attachDataProvider( const uno::Reference< chart2::data //the numberformatter is kept independent of the data provider! } - setModified( sal_True ); + setModified( true ); } void SAL_CALL ChartModel::attachNumberFormatsSupplier( const uno::Reference< util::XNumberFormatsSupplier >& xNewSupplier ) @@ -882,7 +882,7 @@ void SAL_CALL ChartModel::attachNumberFormatsSupplier( const uno::Reference< uti m_xNumberFormatsSupplier.set( xNewSupplier ); m_xOwnNumberFormatsSupplier.clear(); } - setModified( sal_True ); + setModified( true ); } void SAL_CALL ChartModel::setArguments( const Sequence< beans::PropertyValue >& aArguments ) @@ -921,7 +921,7 @@ void SAL_CALL ChartModel::setArguments( const Sequence< beans::PropertyValue >& } unlockControllers(); } - setModified( sal_True ); + setModified( true ); } Sequence< OUString > SAL_CALL ChartModel::getUsedRangeRepresentations() @@ -964,7 +964,7 @@ void SAL_CALL ChartModel::setChartTypeManager( const uno::Reference< chart2::XCh MutexGuard aGuard( m_aModelMutex ); m_xChartTypeManager = xNewManager; } - setModified( sal_True ); + setModified( true ); } uno::Reference< chart2::XChartTypeManager > SAL_CALL ChartModel::getChartTypeManager() @@ -1011,7 +1011,7 @@ void SAL_CALL ChartModel::setTitleObject( const uno::Reference< chart2::XTitle > m_xTitle = xTitle; ModifyListenerHelper::addListener( m_xTitle, this ); } - setModified( sal_True ); + setModified( true ); } // ____ XInterface (for old API wrapper) ____ @@ -1066,7 +1066,7 @@ void SAL_CALL ChartModel::setVisualAreaSize( ::sal_Int64 nAspect, const awt::Siz m_aVisualAreaSize = aSize; if( bChanged ) - setModified( sal_True ); + setModified( true ); } else { @@ -1422,7 +1422,7 @@ void ChartModel::getNextTimePoint() { if(!bSet) xTimeBased->setRange(mnStart, mnEnd); - xTimeBased->switchToNext(sal_True); + xTimeBased->switchToNext(true); } } bSet = true; |