diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-02 12:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-02 13:45:36 +0200 |
commit | 3dcf6dfceee58360501396390d78c006351aef47 (patch) | |
tree | 6e8cea499ee3a9543a03fd4a5321f5153c76cd65 /chart2 | |
parent | 3b35bcf25fce566f91d084574650181ea791dff8 (diff) |
remove unnecessary use of 'this->'
Change-Id: I5c115389af7d24c18ddaf5fbec8c00f35017a5b4
Reviewed-on: https://gerrit.libreoffice.org/40671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
70 files changed, 385 insertions, 385 deletions
diff --git a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx index 3dcbd4210a9f..53e21e9cce90 100644 --- a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx @@ -491,7 +491,7 @@ Reference< beans::XPropertySet > SAL_CALL AxisWrapper::getMinorGrid() // ____ XShape ____ awt::Point SAL_CALL AxisWrapper::getPosition() { - awt::Point aResult( m_spChart2ModelContact->GetAxisPosition( this->getAxis() ) ); + awt::Point aResult( m_spChart2ModelContact->GetAxisPosition( getAxis() ) ); return aResult; } @@ -502,7 +502,7 @@ void SAL_CALL AxisWrapper::setPosition( const awt::Point& /*aPosition*/ ) awt::Size SAL_CALL AxisWrapper::getSize() { - awt::Size aSize( m_spChart2ModelContact->GetAxisSize( this->getAxis() ) ); + awt::Size aSize( m_spChart2ModelContact->GetAxisSize( getAxis() ) ); return aSize; } @@ -581,7 +581,7 @@ void SAL_CALL AxisWrapper::removeEventListener( //ReferenceSizePropertyProvider void AxisWrapper::updateReferenceSize() { - Reference< beans::XPropertySet > xProp( this->getAxis(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getAxis(), uno::UNO_QUERY ); if( xProp.is() ) { if( xProp->getPropertyValue("ReferencePageSize").hasValue() ) @@ -592,7 +592,7 @@ void AxisWrapper::updateReferenceSize() Any AxisWrapper::getReferenceSize() { Any aRet; - Reference< beans::XPropertySet > xProp( this->getAxis(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getAxis(), uno::UNO_QUERY ); if( xProp.is() ) aRet = xProp->getPropertyValue("ReferencePageSize"); return aRet; @@ -631,7 +631,7 @@ Reference< chart2::XAxis > AxisWrapper::getAxis() // WrappedPropertySet Reference< beans::XPropertySet > AxisWrapper::getInnerPropertySet() { - return Reference< beans::XPropertySet >( this->getAxis(), uno::UNO_QUERY ); + return Reference< beans::XPropertySet >( getAxis(), uno::UNO_QUERY ); } const Sequence< beans::Property >& AxisWrapper::getPropertySequence() diff --git a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx index 4770c8d1dbf6..e2febd960ea7 100644 --- a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx +++ b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx @@ -52,12 +52,12 @@ Chart2ModelContact::Chart2ModelContact( Chart2ModelContact::~Chart2ModelContact() { - this->clear(); + clear(); } void Chart2ModelContact::setModel( const css::uno::Reference< css::frame::XModel >& xChartModel ) { - this->clear(); + clear(); m_xChartModel = xChartModel; mpModel = dynamic_cast<ChartModel*>(xChartModel.get()); uno::Reference< lang::XMultiServiceFactory > xTableFactory( xChartModel, uno::UNO_QUERY ); @@ -95,7 +95,7 @@ Reference< chart2::XChartDocument > Chart2ModelContact::getChart2Document() cons Reference< chart2::XDiagram > Chart2ModelContact::getChart2Diagram() const { - return ChartModelHelper::findDiagram( this->getChartModel() ); + return ChartModelHelper::findDiagram( getChartModel() ); } uno::Reference< lang::XUnoTunnel > const & Chart2ModelContact::getChartView() const diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx index e1d872866b21..daa633e01eed 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx @@ -947,7 +947,7 @@ void ChartDocumentWrapper::setBaseDiagram( const OUString& rBaseDiagram ) uno::Reference< XDiagram > xDiagram( ChartDocumentWrapper::createInstance( rBaseDiagram ), uno::UNO_QUERY ); if( xDiagram.is() ) - this->setDiagram( xDiagram ); + setDiagram( xDiagram ); } void ChartDocumentWrapper::setAddIn( const Reference< util::XRefreshable >& xAddIn ) @@ -979,7 +979,7 @@ Reference< drawing::XShapes > ChartDocumentWrapper::getAdditionalShapes() const { // get additional non-chart shapes for XML export uno::Reference< drawing::XShapes > xFoundShapes; - uno::Reference< drawing::XDrawPage > xDrawPage( this->impl_getDrawPage() ); + uno::Reference< drawing::XDrawPage > xDrawPage( impl_getDrawPage() ); uno::Reference< drawing::XShapes > xDrawPageShapes( xDrawPage, uno::UNO_QUERY ); if( !xDrawPageShapes.is() ) @@ -1036,7 +1036,7 @@ void SAL_CALL ChartDocumentWrapper::removeEventListener( const Reference< lang:: // ____ XDrawPageSupplier ____ uno::Reference< drawing::XDrawPage > SAL_CALL ChartDocumentWrapper::getDrawPage() { - return this->impl_getDrawPage(); + return impl_getDrawPage(); } uno::Reference< drawing::XDrawPage > ChartDocumentWrapper::impl_getDrawPage() const @@ -1383,7 +1383,7 @@ void SAL_CALL ChartDocumentWrapper::setDelegator( // this is a sort of dispose() from the new model,so release resources here try { - this->dispose(); + dispose(); } catch (const uno::Exception& ex) { diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx index 371249471359..52d59ff21b54 100644 --- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx @@ -537,7 +537,7 @@ void SAL_CALL DataSeriesPointWrapper::disposing( const lang::EventObject& /*Sour bool DataSeriesPointWrapper::isSupportingAreaProperties() { - Reference< chart2::XDataSeries > xSeries( this->getDataSeries() ); + Reference< chart2::XDataSeries > xSeries( getDataSeries() ); Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() ); Reference< chart2::XChartType > xChartType( DiagramHelper::getChartTypeOfSeries( xDiagram, xSeries ) ); sal_Int32 nDimensionCount = DiagramHelper::getDimension( xDiagram ); @@ -565,7 +565,7 @@ Reference< beans::XPropertySet > DataSeriesPointWrapper::getDataPointProperties( { Reference< beans::XPropertySet > xPointProp; - Reference< chart2::XDataSeries > xSeries( this->getDataSeries() ); + Reference< chart2::XDataSeries > xSeries( getDataSeries() ); // may throw an IllegalArgumentException if( xSeries.is() ) @@ -577,7 +577,7 @@ Reference< beans::XPropertySet > DataSeriesPointWrapper::getDataPointProperties( //ReferenceSizePropertyProvider void DataSeriesPointWrapper::updateReferenceSize() { - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet(), uno::UNO_QUERY ); if( xProp.is() ) { if( xProp->getPropertyValue("ReferencePageSize").hasValue() ) @@ -588,7 +588,7 @@ void DataSeriesPointWrapper::updateReferenceSize() Any DataSeriesPointWrapper::getReferenceSize() { Any aRet; - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet(), uno::UNO_QUERY ); if( xProp.is() ) aRet = xProp->getPropertyValue("ReferencePageSize"); return aRet; @@ -794,16 +794,16 @@ void SAL_CALL DataSeriesPointWrapper::setPropertyValue( const OUString& rPropert switch(aNewValue) { case css::chart::ChartErrorCategory_CONSTANT_VALUE: - aHigh = this->getPropertyValue("ConstantErrorHigh"); - aLow = this->getPropertyValue("ConstantErrorLow"); + aHigh = getPropertyValue("ConstantErrorHigh"); + aLow = getPropertyValue("ConstantErrorLow"); bSetHighAndLowValues = true; break; case css::chart::ChartErrorCategory_PERCENT: - aHigh = aLow = this->getPropertyValue("PercentageError"); + aHigh = aLow = getPropertyValue("PercentageError"); bSetHighAndLowValues = true; break; case css::chart::ChartErrorCategory_ERROR_MARGIN: - aHigh = aLow = this->getPropertyValue("ErrorMargin"); + aHigh = aLow = getPropertyValue("ErrorMargin"); bSetHighAndLowValues = true; break; default: @@ -817,14 +817,14 @@ void SAL_CALL DataSeriesPointWrapper::setPropertyValue( const OUString& rPropert switch(aNewValue) { case css::chart::ChartErrorCategory_CONSTANT_VALUE: - this->setPropertyValue("ConstantErrorHigh",aHigh); - this->setPropertyValue("ConstantErrorLow",aLow); + setPropertyValue("ConstantErrorHigh",aHigh); + setPropertyValue("ConstantErrorLow",aLow); break; case css::chart::ChartErrorCategory_PERCENT: - this->setPropertyValue("PercentageError",aHigh); + setPropertyValue("PercentageError",aHigh); break; case css::chart::ChartErrorCategory_ERROR_MARGIN: - this->setPropertyValue("ErrorMargin",aHigh); + setPropertyValue("ErrorMargin",aHigh); break; default: break; diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 67f3c256e549..d90aaa73f32c 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -727,7 +727,7 @@ awt::Point SAL_CALL DiagramWrapper::getPosition() void SAL_CALL DiagramWrapper::setPosition( const awt::Point& aPosition ) { ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() ); - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet() ); if( xProp.is() ) { awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); @@ -757,7 +757,7 @@ awt::Size SAL_CALL DiagramWrapper::getSize() void SAL_CALL DiagramWrapper::setSize( const awt::Size& aSize ) { ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() ); - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet() ); if( xProp.is() ) { awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); @@ -790,7 +790,7 @@ OUString SAL_CALL DiagramWrapper::getShapeType() void SAL_CALL DiagramWrapper::setAutomaticDiagramPositioning() { ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() ); - uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > xDiaProps( getDiagram(), uno::UNO_QUERY ); if( xDiaProps.is() ) { xDiaProps->setPropertyValue( "RelativeSize", Any() ); @@ -799,7 +799,7 @@ void SAL_CALL DiagramWrapper::setAutomaticDiagramPositioning() } sal_Bool SAL_CALL DiagramWrapper::isAutomaticDiagramPositioning( ) { - uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > xDiaProps( getDiagram(), uno::UNO_QUERY ); if( xDiaProps.is() ) { Any aRelativeSize( xDiaProps->getPropertyValue( "RelativeSize" ) ); @@ -813,13 +813,13 @@ void SAL_CALL DiagramWrapper::setDiagramPositionExcludingAxes( const awt::Rectan { ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() ); DiagramHelper::setDiagramPositioning( m_spChart2ModelContact->getChartModel(), rPositionRect ); - uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > xDiaProps( getDiagram(), uno::UNO_QUERY ); if( xDiaProps.is() ) xDiaProps->setPropertyValue("PosSizeExcludeAxes", uno::Any(true) ); } sal_Bool SAL_CALL DiagramWrapper::isExcludingDiagramPositioning() { - uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > xDiaProps( getDiagram(), uno::UNO_QUERY ); if( xDiaProps.is() ) { Any aRelativeSize( xDiaProps->getPropertyValue( "RelativeSize" ) ); @@ -841,7 +841,7 @@ void SAL_CALL DiagramWrapper::setDiagramPositionIncludingAxes( const awt::Rectan { ControllerLockGuardUNO aCtrlLockGuard( m_spChart2ModelContact->getChartModel() ); DiagramHelper::setDiagramPositioning( m_spChart2ModelContact->getChartModel(), rPositionRect ); - uno::Reference< beans::XPropertySet > xDiaProps( this->getDiagram(), uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > xDiaProps( getDiagram(), uno::UNO_QUERY ); if( xDiaProps.is() ) xDiaProps->setPropertyValue("PosSizeExcludeAxes", uno::Any(false) ); } @@ -1487,7 +1487,7 @@ private: //member WrappedNumberOfLinesProperty::WrappedNumberOfLinesProperty(const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact) : WrappedProperty("NumberOfLines",OUString()) , m_spChart2ModelContact( spChart2ModelContact ) - , m_aOuterValue( this->getPropertyDefault(nullptr) ) + , m_aOuterValue( getPropertyDefault(nullptr) ) { } diff --git a/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx b/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx index 9b20ac825035..5f763c67a272 100644 --- a/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx @@ -84,7 +84,7 @@ Any WrappedLegendAlignmentProperty::getPropertyValue( const Reference< beans::XP else { aRet = xInnerPropertySet->getPropertyValue( m_aInnerName ); - aRet = this->convertInnerToOuterValue( aRet ); + aRet = convertInnerToOuterValue( aRet ); } } return aRet; @@ -110,7 +110,7 @@ void WrappedLegendAlignmentProperty::setPropertyValue( const Any& rOuterValue, c return; //set corresponding LegendPosition - Any aInnerValue = this->convertOuterToInnerValue( rOuterValue ); + Any aInnerValue = convertOuterToInnerValue( rOuterValue ); xInnerPropertySet->setPropertyValue( m_aInnerName, aInnerValue ); //correct LegendExpansion @@ -282,7 +282,7 @@ awt::Point SAL_CALL LegendWrapper::getPosition() void SAL_CALL LegendWrapper::setPosition( const awt::Point& aPosition ) { - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet() ); if( xProp.is() ) { awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); @@ -302,13 +302,13 @@ awt::Size SAL_CALL LegendWrapper::getSize() void SAL_CALL LegendWrapper::setSize( const awt::Size& aSize ) { - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet() ); if( xProp.is() ) { awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); awt::Rectangle aPageRectangle( 0,0,aPageSize.Width,aPageSize.Height); - awt::Point aPos( this->getPosition() ); + awt::Point aPos( getPosition() ); awt::Rectangle aNewPositionAndSize(aPos.X,aPos.Y,aSize.Width,aSize.Height); PositionAndSizeHelper::moveObject( OBJECTTYPE_LEGEND @@ -347,7 +347,7 @@ void SAL_CALL LegendWrapper::removeEventListener( //ReferenceSizePropertyProvider void LegendWrapper::updateReferenceSize() { - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet(), uno::UNO_QUERY ); if( xProp.is() ) { if( xProp->getPropertyValue( "ReferencePageSize" ).hasValue() ) @@ -358,7 +358,7 @@ void LegendWrapper::updateReferenceSize() Any LegendWrapper::getReferenceSize() { Any aRet; - Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getInnerPropertySet(), uno::UNO_QUERY ); if( xProp.is() ) aRet = xProp->getPropertyValue( "ReferencePageSize" ); diff --git a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx index ecdffda68ad3..579252a64814 100644 --- a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx @@ -257,7 +257,7 @@ void SAL_CALL MinMaxLineWrapper::setPropertyValues( const uno::Sequence< OUStrin OUString aPropertyName( rNameSeq[nN] ); try { - this->setPropertyValue( aPropertyName, rValueSeq[nN] ); + setPropertyValue( aPropertyName, rValueSeq[nN] ); } catch( const beans::UnknownPropertyException& ex ) { @@ -275,7 +275,7 @@ uno::Sequence< uno::Any > SAL_CALL MinMaxLineWrapper::getPropertyValues( const u for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyValue( aPropertyName ); + aRetSeq[nN] = getPropertyValue( aPropertyName ); } } return aRetSeq; @@ -304,8 +304,8 @@ beans::PropertyState SAL_CALL MinMaxLineWrapper::getPropertyState( const OUStrin if( rPropertyName == m_aWrappedLineJointProperty.getOuterName() ) return beans::PropertyState_DEFAULT_VALUE; - uno::Any aDefault( this->getPropertyDefault( rPropertyName ) ); - uno::Any aValue( this->getPropertyValue( rPropertyName ) ); + uno::Any aDefault( getPropertyDefault( rPropertyName ) ); + uno::Any aValue( getPropertyValue( rPropertyName ) ); if( aDefault == aValue ) return beans::PropertyState_DEFAULT_VALUE; @@ -321,14 +321,14 @@ uno::Sequence< beans::PropertyState > SAL_CALL MinMaxLineWrapper::getPropertySta for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyState( aPropertyName ); + aRetSeq[nN] = getPropertyState( aPropertyName ); } } return aRetSeq; } void SAL_CALL MinMaxLineWrapper::setPropertyToDefault( const OUString& rPropertyName ) { - this->setPropertyValue( rPropertyName, this->getPropertyDefault(rPropertyName) ); + setPropertyValue( rPropertyName, getPropertyDefault(rPropertyName) ); } uno::Any SAL_CALL MinMaxLineWrapper::getPropertyDefault( const OUString& rPropertyName ) @@ -348,7 +348,7 @@ void SAL_CALL MinMaxLineWrapper::setAllPropertiesToDefault( ) for(sal_Int32 nN=0; nN<rPropSeq.getLength(); nN++) { OUString aPropertyName( rPropSeq[nN].Name ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } void SAL_CALL MinMaxLineWrapper::setPropertiesToDefault( const uno::Sequence< OUString >& rNameSeq ) @@ -356,7 +356,7 @@ void SAL_CALL MinMaxLineWrapper::setPropertiesToDefault( const uno::Sequence< OU for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } uno::Sequence< uno::Any > SAL_CALL MinMaxLineWrapper::getPropertyDefaults( const uno::Sequence< OUString >& rNameSeq ) @@ -368,7 +368,7 @@ uno::Sequence< uno::Any > SAL_CALL MinMaxLineWrapper::getPropertyDefaults( const for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyDefault( aPropertyName ); + aRetSeq[nN] = getPropertyDefault( aPropertyName ); } } return aRetSeq; diff --git a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx index 5c03301bb21c..bd4e44614e88 100644 --- a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx @@ -200,12 +200,12 @@ TitleWrapper::~TitleWrapper() // ____ XShape ____ awt::Point SAL_CALL TitleWrapper::getPosition() { - return m_spChart2ModelContact->GetTitlePosition( this->getTitleObject() ); + return m_spChart2ModelContact->GetTitlePosition( getTitleObject() ); } void SAL_CALL TitleWrapper::setPosition( const awt::Point& aPosition ) { - Reference< beans::XPropertySet > xPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xPropertySet( getInnerPropertySet() ); if(xPropertySet.is()) { awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() ); @@ -220,7 +220,7 @@ void SAL_CALL TitleWrapper::setPosition( const awt::Point& aPosition ) awt::Size SAL_CALL TitleWrapper::getSize() { - return m_spChart2ModelContact->GetTitleSize( this->getTitleObject() ); + return m_spChart2ModelContact->GetTitleSize( getTitleObject() ); } void SAL_CALL TitleWrapper::setSize( const awt::Size& /*aSize*/ ) @@ -260,7 +260,7 @@ Reference< beans::XPropertySet > TitleWrapper::getFirstCharacterPropertySet() { Reference< beans::XPropertySet > xProp; - Reference< chart2::XTitle > xTitle( this->getTitleObject() ); + Reference< chart2::XTitle > xTitle( getTitleObject() ); if( xTitle.is()) { Sequence< Reference< chart2::XFormattedString > > aStrings( xTitle->getText()); @@ -299,7 +299,7 @@ void TitleWrapper::setFastCharacterPropertyValue( OSL_ASSERT( FAST_PROPERTY_ID_START_CHAR_PROP <= nHandle && nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP ); - Reference< chart2::XTitle > xTitle( this->getTitleObject() ); + Reference< chart2::XTitle > xTitle( getTitleObject() ); if( xTitle.is()) { Sequence< Reference< chart2::XFormattedString > > aStrings( xTitle->getText()); @@ -426,7 +426,7 @@ void SAL_CALL TitleWrapper::removePropertyChangeListener( const OUString& rPrope //ReferenceSizePropertyProvider void TitleWrapper::updateReferenceSize() { - Reference< beans::XPropertySet > xProp( this->getTitleObject(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getTitleObject(), uno::UNO_QUERY ); if( xProp.is() ) { if( xProp->getPropertyValue( "ReferencePageSize" ).hasValue() ) @@ -437,7 +437,7 @@ void TitleWrapper::updateReferenceSize() Any TitleWrapper::getReferenceSize() { Any aRet; - Reference< beans::XPropertySet > xProp( this->getTitleObject(), uno::UNO_QUERY ); + Reference< beans::XPropertySet > xProp( getTitleObject(), uno::UNO_QUERY ); if( xProp.is() ) aRet = xProp->getPropertyValue( "ReferencePageSize" ); @@ -457,7 +457,7 @@ Reference< chart2::XTitle > TitleWrapper::getTitleObject() Reference< beans::XPropertySet > TitleWrapper::getInnerPropertySet() { - return Reference< beans::XPropertySet >( this->getTitleObject(), uno::UNO_QUERY ); + return Reference< beans::XPropertySet >( getTitleObject(), uno::UNO_QUERY ); } const Sequence< beans::Property >& TitleWrapper::getPropertySequence() diff --git a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx index 256eb8c29461..ea7ea6e36a5c 100644 --- a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx @@ -233,7 +233,7 @@ void SAL_CALL UpDownBarWrapper::setPropertyValues( const uno::Sequence< OUString OUString aPropertyName( rNameSeq[nN] ); try { - this->setPropertyValue( aPropertyName, rValueSeq[nN] ); + setPropertyValue( aPropertyName, rValueSeq[nN] ); } catch( const beans::UnknownPropertyException& ex ) { @@ -251,7 +251,7 @@ uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyValues( const un for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyValue( aPropertyName ); + aRetSeq[nN] = getPropertyValue( aPropertyName ); } } return aRetSeq; @@ -272,8 +272,8 @@ void SAL_CALL UpDownBarWrapper::firePropertiesChangeEvent( const uno::Sequence< //XPropertyState beans::PropertyState SAL_CALL UpDownBarWrapper::getPropertyState( const OUString& rPropertyName ) { - uno::Any aDefault( this->getPropertyDefault( rPropertyName ) ); - uno::Any aValue( this->getPropertyValue( rPropertyName ) ); + uno::Any aDefault( getPropertyDefault( rPropertyName ) ); + uno::Any aValue( getPropertyValue( rPropertyName ) ); if( aDefault == aValue ) return beans::PropertyState_DEFAULT_VALUE; @@ -289,14 +289,14 @@ uno::Sequence< beans::PropertyState > SAL_CALL UpDownBarWrapper::getPropertyStat for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyState( aPropertyName ); + aRetSeq[nN] = getPropertyState( aPropertyName ); } } return aRetSeq; } void SAL_CALL UpDownBarWrapper::setPropertyToDefault( const OUString& rPropertyName ) { - this->setPropertyValue( rPropertyName, this->getPropertyDefault(rPropertyName) ); + setPropertyValue( rPropertyName, getPropertyDefault(rPropertyName) ); } uno::Any SAL_CALL UpDownBarWrapper::getPropertyDefault( const OUString& rPropertyName ) @@ -316,7 +316,7 @@ void SAL_CALL UpDownBarWrapper::setAllPropertiesToDefault( ) for(sal_Int32 nN=0; nN<rPropSeq.getLength(); nN++) { OUString aPropertyName( rPropSeq[nN].Name ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } void SAL_CALL UpDownBarWrapper::setPropertiesToDefault( const uno::Sequence< OUString >& rNameSeq ) @@ -324,7 +324,7 @@ void SAL_CALL UpDownBarWrapper::setPropertiesToDefault( const uno::Sequence< OUS for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyDefaults( const uno::Sequence< OUString >& rNameSeq ) @@ -336,7 +336,7 @@ uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyDefaults( const for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyDefault( aPropertyName ); + aRetSeq[nN] = getPropertyDefault( aPropertyName ); } } return aRetSeq; diff --git a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx index 2c34d58db293..125e5f48785e 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedNumberFormatProperty.cxx @@ -48,7 +48,7 @@ void WrappedNumberFormatProperty::setPropertyValue( const Any& rOuterValue, cons throw lang::IllegalArgumentException( "Property 'NumberFormat' requires value of type sal_Int32", nullptr, 0 ); if(xInnerPropertySet.is()) - xInnerPropertySet->setPropertyValue(getInnerName(), this->convertOuterToInnerValue(rOuterValue)); + xInnerPropertySet->setPropertyValue(getInnerName(), convertOuterToInnerValue(rOuterValue)); } Any WrappedNumberFormatProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const diff --git a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx index 1336709da311..449b347057bf 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedSplineProperties.cxx @@ -67,7 +67,7 @@ public: if (!xChartTypePropertySet.is()) continue; - Any aSingleValue = this->convertInnerToOuterValue( xChartTypePropertySet->getPropertyValue(m_aOwnInnerName) ); + Any aSingleValue = convertInnerToOuterValue( xChartTypePropertySet->getPropertyValue(m_aOwnInnerName) ); PROPERTYTYPE aCurValue = PROPERTYTYPE(); aSingleValue >>= aCurValue; if( !bHasDetectableInnerValue ) @@ -116,7 +116,7 @@ public: css::uno::Reference< css::beans::XPropertySet > xChartTypePropertySet( aChartTypes[nN], css::uno::UNO_QUERY ); if( xChartTypePropertySet.is() ) { - xChartTypePropertySet->setPropertyValue(m_aOwnInnerName,this->convertOuterToInnerValue(uno::Any(aNewValue))); + xChartTypePropertySet->setPropertyValue(m_aOwnInnerName,convertOuterToInnerValue(uno::Any(aNewValue))); } } catch( uno::Exception & ex ) diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx index 58b28cd88c81..7b91f73dd2d7 100644 --- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx +++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx @@ -87,24 +87,24 @@ ChartTypeParameter::ChartTypeParameter( sal_Int32 SubTypeIndex, bool HasXAxisWit bool ChartTypeParameter::mapsToSameService( const ChartTypeParameter& rParameter ) const { - return this->mapsToSimilarService( rParameter, 0 ); + return mapsToSimilarService( rParameter, 0 ); } bool ChartTypeParameter::mapsToSimilarService( const ChartTypeParameter& rParameter, sal_Int32 nTheHigherTheLess ) const { sal_Int32 nMax=7; if(nTheHigherTheLess>nMax) return true; - if( this->bXAxisWithValues!=rParameter.bXAxisWithValues ) + if( bXAxisWithValues!=rParameter.bXAxisWithValues ) return nTheHigherTheLess>nMax-1; - if( this->b3DLook!=rParameter.b3DLook ) + if( b3DLook!=rParameter.b3DLook ) return nTheHigherTheLess>nMax-2; - if( this->eStackMode!=rParameter.eStackMode ) + if( eStackMode!=rParameter.eStackMode ) return nTheHigherTheLess>nMax-3; - if( this->nSubTypeIndex!=rParameter.nSubTypeIndex ) + if( nSubTypeIndex!=rParameter.nSubTypeIndex ) return nTheHigherTheLess>nMax-4; - if( this->bSymbols!=rParameter.bSymbols ) + if( bSymbols!=rParameter.bSymbols ) return nTheHigherTheLess>nMax-5; - if( this->bLines!=rParameter.bLines ) + if( bLines!=rParameter.bLines ) return nTheHigherTheLess>nMax-6; return true; } @@ -124,7 +124,7 @@ Image ChartTypeDialogController::getImage() } bool ChartTypeDialogController::isSubType( const OUString& rServiceName ) { - const tTemplateServiceChartTypeParameterMap& rTemplateMap = this->getTemplateMap(); + const tTemplateServiceChartTypeParameterMap& rTemplateMap = getTemplateMap(); tTemplateServiceChartTypeParameterMap::const_iterator aIt( rTemplateMap.find( rServiceName )); return aIt != rTemplateMap.end(); } @@ -133,7 +133,7 @@ ChartTypeParameter ChartTypeDialogController::getChartTypeParameterForService( , const uno::Reference< beans::XPropertySet >& xTemplateProps ) { ChartTypeParameter aRet; - const tTemplateServiceChartTypeParameterMap& rTemplateMap = this->getTemplateMap(); + const tTemplateServiceChartTypeParameterMap& rTemplateMap = getTemplateMap(); tTemplateServiceChartTypeParameterMap::const_iterator aIt( rTemplateMap.find( rServiceName )); if( aIt != rTemplateMap.end()) aRet = (*aIt).second; @@ -275,7 +275,7 @@ uno::Reference< XChartTypeTemplate > ChartTypeDialogController::getCurrentTempla { uno::Reference< XChartTypeTemplate > xTemplate(nullptr); - OUString aServiceName( this->getServiceNameForParameter( rParameter ) ); + OUString aServiceName( getServiceNameForParameter( rParameter ) ); if(!aServiceName.isEmpty()) { xTemplate.set( xTemplateManager->createInstance( aServiceName ), uno::UNO_QUERY ); @@ -315,7 +315,7 @@ uno::Reference< XChartTypeTemplate > ChartTypeDialogController::getCurrentTempla try { - this->setTemplateProperties( xTemplateProps ); + setTemplateProperties( xTemplateProps ); } catch( const uno::Exception & ex ) { @@ -331,7 +331,7 @@ void ChartTypeDialogController::commitToModel( const ChartTypeParameter& rParame , const uno::Reference< XChartDocument >& xChartModel ) { uno::Reference< lang::XMultiServiceFactory > xTemplateManager( xChartModel->getChartTypeManager(), uno::UNO_QUERY ); - uno::Reference< XChartTypeTemplate > xTemplate( this->getCurrentTemplate( rParameter, xTemplateManager ) ); + uno::Reference< XChartTypeTemplate > xTemplate( getCurrentTemplate( rParameter, xTemplateManager ) ); if(xTemplate.is()) { uno::Reference< frame::XModel > xModel( xChartModel, uno::UNO_QUERY); diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx index bff4b4f2c6d6..b9ef8f7c6129 100644 --- a/chart2/source/controller/dialogs/DataBrowser.cxx +++ b/chart2/source/controller/dialogs/DataBrowser.cxx @@ -1275,13 +1275,13 @@ void DataBrowser::RenewSeriesHeaders() void DataBrowser::ImplAdjustHeaderControls() { - sal_uInt16 nColCount = this->GetColumnCount(); - sal_uInt32 nCurrentPos = this->GetPosPixel().getX(); - sal_uInt32 nMaxPos = nCurrentPos + this->GetOutputSizePixel().getWidth(); + sal_uInt16 nColCount = GetColumnCount(); + sal_uInt32 nCurrentPos = GetPosPixel().getX(); + sal_uInt32 nMaxPos = nCurrentPos + GetOutputSizePixel().getWidth(); sal_uInt32 nStartPos = nCurrentPos; // width of header column - nCurrentPos += this->GetColumnWidth( 0 ); + nCurrentPos += GetColumnWidth( 0 ); Dialog* pDialog = GetParentDialog(); vcl::Window* pWin = pDialog->get<VclContainer>("columns"); @@ -1301,7 +1301,7 @@ void DataBrowser::ImplAdjustHeaderControls() if( (*aIt)->GetStartColumn() == i ) nStartPos = nCurrentPos; - nCurrentPos += (this->GetColumnWidth( i )); + nCurrentPos += (GetColumnWidth( i )); if( (*aIt)->GetEndColumn() == i ) { diff --git a/chart2/source/controller/dialogs/TitleDialogData.cxx b/chart2/source/controller/dialogs/TitleDialogData.cxx index 892c9a46003d..52ed6c38f767 100644 --- a/chart2/source/controller/dialogs/TitleDialogData.cxx +++ b/chart2/source/controller/dialogs/TitleDialogData.cxx @@ -47,11 +47,11 @@ void TitleDialogData::readFromModel( const uno::Reference< frame::XModel>& xChar //get possibilities uno::Sequence< sal_Bool > aAxisPossibilityList; AxisHelper::getAxisOrGridPossibilities( aAxisPossibilityList, xDiagram ); - this->aPossibilityList[2]=aAxisPossibilityList[0];//x axis title - this->aPossibilityList[3]=aAxisPossibilityList[1];//y axis title - this->aPossibilityList[4]=aAxisPossibilityList[2];//z axis title - this->aPossibilityList[5]=aAxisPossibilityList[3];//secondary x axis title - this->aPossibilityList[6]=aAxisPossibilityList[4];//secondary y axis title + aPossibilityList[2]=aAxisPossibilityList[0];//x axis title + aPossibilityList[3]=aAxisPossibilityList[1];//y axis title + aPossibilityList[4]=aAxisPossibilityList[2];//z axis title + aPossibilityList[5]=aAxisPossibilityList[3];//secondary x axis title + aPossibilityList[6]=aAxisPossibilityList[4];//secondary y axis title //find out which title exists and get their text //main title: @@ -61,8 +61,8 @@ void TitleDialogData::readFromModel( const uno::Reference< frame::XModel>& xChar { uno::Reference< XTitle > xTitle = TitleHelper::getTitle( static_cast< TitleHelper::eTitleType >( nTitleIndex ), xChartModel ); - this->aExistenceList[nTitleIndex] = xTitle.is(); - this->aTextList[nTitleIndex]=TitleHelper::getCompleteString( xTitle ); + aExistenceList[nTitleIndex] = xTitle.is(); + aTextList[nTitleIndex]=TitleHelper::getCompleteString( xTitle ); } } @@ -76,12 +76,12 @@ bool TitleDialogData::writeDifferenceToModel( nN < static_cast< sal_Int32 >( TitleHelper::NORMAL_TITLE_END ); nN++) { - if( !pOldState || ( pOldState->aExistenceList[nN] != this->aExistenceList[nN] ) ) + if( !pOldState || ( pOldState->aExistenceList[nN] != aExistenceList[nN] ) ) { - if(this->aExistenceList[nN]) + if(aExistenceList[nN]) { TitleHelper::createTitle( - static_cast< TitleHelper::eTitleType >( nN ), this->aTextList[nN], xChartModel, xContext, + static_cast< TitleHelper::eTitleType >( nN ), aTextList[nN], xChartModel, xContext, apReferenceSizeProvider.get() ); bChanged = true; } @@ -91,14 +91,14 @@ bool TitleDialogData::writeDifferenceToModel( bChanged = true; } } - else if( !pOldState || ( pOldState->aTextList[nN] != this->aTextList[nN] ) ) + else if( !pOldState || ( pOldState->aTextList[nN] != aTextList[nN] ) ) { //change content uno::Reference< XTitle > xTitle( TitleHelper::getTitle( static_cast< TitleHelper::eTitleType >( nN ), xChartModel ) ); if(xTitle.is()) { - TitleHelper::setCompleteString( this->aTextList[nN], xTitle, xContext ); + TitleHelper::setCompleteString( aTextList[nN], xTitle, xContext ); bChanged = true; } } diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx index 180af39f4b56..97f7d6030208 100644 --- a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx +++ b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx @@ -58,7 +58,7 @@ CreationWizard::CreationWizard(vcl::Window* pParent, const uno::Reference<frame: m_pDialogModel.reset(new DialogModel(m_xChartModel, m_xComponentContext)); defaultButton(WizardButtonFlags::FINISH); - this->setTitleBase(SchResId(STR_DLG_CHART_WIZARD)); + setTitleBase(SchResId(STR_DLG_CHART_WIZARD)); WizardPath aPath = { STATE_CHARTTYPE, @@ -69,13 +69,13 @@ CreationWizard::CreationWizard(vcl::Window* pParent, const uno::Reference<frame: declarePath(PATH_FULL, aPath); - this->SetRoadmapHelpId(HID_SCH_WIZARD_ROADMAP); - this->SetRoadmapInteractive(true); + SetRoadmapHelpId(HID_SCH_WIZARD_ROADMAP); + SetRoadmapInteractive(true); Size aAdditionalRoadmapSize(LogicToPixel(Size(85, 0), MapUnit::MapAppFont)); Size aSize(LogicToPixel(Size(CHART_WIZARD_PAGEWIDTH, CHART_WIZARD_PAGEHEIGHT), MapUnit::MapAppFont)); aSize.Width() += aAdditionalRoadmapSize.Width(); - this->SetSizePixel(aSize); + SetSizePixel(aSize); if (!m_pDialogModel->getModel().isDataFromSpreadsheet()) { diff --git a/chart2/source/controller/dialogs/dlg_InsertErrorBars.cxx b/chart2/source/controller/dialogs/dlg_InsertErrorBars.cxx index 5cf894f2313c..38873290091e 100644 --- a/chart2/source/controller/dialogs/dlg_InsertErrorBars.cxx +++ b/chart2/source/controller/dialogs/dlg_InsertErrorBars.cxx @@ -52,7 +52,7 @@ InsertErrorBarsDialog::InsertErrorBarsDialog( { ObjectType objType = eType == ErrorBarResources::ERROR_BAR_Y ? OBJECTTYPE_DATA_ERRORS_Y : OBJECTTYPE_DATA_ERRORS_X; - this->SetText( ObjectNameProvider::getName_ObjectForAllSeries(objType) ); + SetText( ObjectNameProvider::getName_ObjectForAllSeries(objType) ); m_apErrorBarResources->SetChartDocumentForRangeChoosing( xChartDocument ); } diff --git a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx index 07d8e5564dde..1a48ef5125ca 100644 --- a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx +++ b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx @@ -338,7 +338,7 @@ SchAttribTabDlg::SchAttribTabDlg(vcl::Window* pParent, NumberFormatterWrapper aNumberFormatterWrapper( xNumberFormatsSupplier ); m_pNumberFormatter = aNumberFormatterWrapper.getSvNumberFormatter(); - this->SetText( pDialogParameter->getLocalizedName() ); + SetText( pDialogParameter->getLocalizedName() ); SvtCJKOptions aCJKOptions; diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx index f691d7cc5f68..7f9d4fe106c6 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx @@ -302,7 +302,7 @@ IMPL_LINK_NOARG(ThreeD_SceneIllumination_TabPage, fillControlsFromModel, void*, lcl_selectColor( *m_pLB_AmbientLight, lcl_getAmbientColor( m_xSceneProperties )); - this->updatePreview(); + updatePreview(); } void ThreeD_SceneIllumination_TabPage::applyLightSourceToModel( sal_uInt32 nLightNumber ) @@ -449,7 +449,7 @@ IMPL_LINK( ThreeD_SceneIllumination_TabPage, SelectColorHdl, SvxColorListBox&, r applyLightSourceToModel( nL ); } } - this->updatePreview(); + updatePreview(); } IMPL_LINK( ThreeD_SceneIllumination_TabPage, ClickLightSourceButtonHdl, Button*, pBtn, void ) @@ -495,7 +495,7 @@ IMPL_LINK( ThreeD_SceneIllumination_TabPage, ClickLightSourceButtonHdl, Button*, { lcl_selectColor( *m_pLB_LightSource, pInfo->aLightSource.nDiffuseColor ); } - this->updatePreview(); + updatePreview(); } void ThreeD_SceneIllumination_TabPage::updatePreview() diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx index 7228effb0e49..795571f6e569 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.cxx +++ b/chart2/source/controller/dialogs/tp_ChartType.cxx @@ -334,7 +334,7 @@ SplinePropertiesDialog::SplinePropertiesDialog( vcl::Window* pParent ) get(m_pFT_SplineOrder, "PolynomialsLabel"); get(m_pMF_SplineOrder, "PolynomialsSpinButton"); - this->SetText( SchResId( STR_DLG_SMOOTH_LINE_PROPERTIES ) ); + SetText( SchResId( STR_DLG_SMOOTH_LINE_PROPERTIES ) ); m_pLB_Spline_Type->SetSelectHdl( LINK (this, SplinePropertiesDialog, SplineTypeListBoxHdl ) ); } @@ -692,7 +692,7 @@ ChartTypeTabPage::ChartTypeTabPage(vcl::Window* pParent m_pFT_ChooseType->SetStyle(m_pFT_ChooseType->GetStyle() | WB_NOLABEL); } - this->SetText( SchResId(STR_PAGE_CHARTTYPE) ); + SetText( SchResId(STR_PAGE_CHARTTYPE) ); m_pMainTypeList->SetStyle(m_pMainTypeList->GetStyle() | WB_ITEMBORDER | WB_DOUBLEBORDER | WB_FLATVALUESET | WB_3DLOOK ); m_pMainTypeList->SetSelectHdl( LINK( this, ChartTypeTabPage, SelectMainTypeHdl ) ); @@ -817,7 +817,7 @@ void ChartTypeTabPage::stateChanged( ChangingResource* /*pResource*/ ) return; m_nChangingCalls++; - ChartTypeParameter aParameter( this->getCurrentParamter() ); + ChartTypeParameter aParameter( getCurrentParamter() ); if( m_pCurrentMainType ) { m_pCurrentMainType->adjustParameterToSubType( aParameter ); @@ -838,7 +838,7 @@ void ChartTypeTabPage::stateChanged( ChangingResource* /*pResource*/ ) ASSERT_EXCEPTION(ex); } //the controls have to be enabled/disabled accordingly - this->fillAllControls( aParameter ); + fillAllControls( aParameter ); m_nChangingCalls--; } @@ -857,9 +857,9 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectSubTypeHdl, ValueSet*, void) { if( m_pCurrentMainType ) { - ChartTypeParameter aParameter( this->getCurrentParamter() ); + ChartTypeParameter aParameter( getCurrentParamter() ); m_pCurrentMainType->adjustParameterToSubType( aParameter ); - this->fillAllControls( aParameter, false ); + fillAllControls( aParameter, false ); commitToModel( aParameter ); } } @@ -871,7 +871,7 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl, ListBox&, void) void ChartTypeTabPage::selectMainType() { - ChartTypeParameter aParameter( this->getCurrentParamter() ); + ChartTypeParameter aParameter( getCurrentParamter() ); if( m_pCurrentMainType ) { @@ -879,10 +879,10 @@ void ChartTypeTabPage::selectMainType() m_pCurrentMainType->hideExtraControls(); } - m_pCurrentMainType = this->getSelectedMainType(); + m_pCurrentMainType = getSelectedMainType(); if( m_pCurrentMainType ) { - this->showAllControls(*m_pCurrentMainType); + showAllControls(*m_pCurrentMainType); m_pCurrentMainType->adjustParameterToMainType( aParameter ); commitToModel( aParameter ); @@ -902,8 +902,8 @@ void ChartTypeTabPage::selectMainType() ASSERT_EXCEPTION(ex); } - this->fillAllControls( aParameter ); - uno::Reference< beans::XPropertySet > xTemplateProps( this->getCurrentTemplate(), uno::UNO_QUERY ); + fillAllControls( aParameter ); + uno::Reference< beans::XPropertySet > xTemplateProps( getCurrentTemplate(), uno::UNO_QUERY ); m_pCurrentMainType->fillExtraControls(aParameter,m_xChartModel,xTemplateProps); } } @@ -967,10 +967,10 @@ void ChartTypeTabPage::initializePage() bFound = true; m_pMainTypeList->SelectEntryPos( nM ); - this->showAllControls( **aIter ); + showAllControls( **aIter ); uno::Reference< beans::XPropertySet > xTemplateProps( aTemplate.first, uno::UNO_QUERY ); ChartTypeParameter aParameter = (*aIter)->getChartTypeParameterForService( aServiceName, xTemplateProps ); - m_pCurrentMainType = this->getSelectedMainType(); + m_pCurrentMainType = getSelectedMainType(); //set ThreeDLookScheme aParameter.eThreeDLookScheme = ThreeDHelper::detectScheme( xDiagram ); @@ -987,7 +987,7 @@ void ChartTypeTabPage::initializePage() ASSERT_EXCEPTION(ex); } - this->fillAllControls( aParameter ); + fillAllControls( aParameter ); if( m_pCurrentMainType ) m_pCurrentMainType->fillExtraControls(aParameter,m_xChartModel,xTemplateProps); break; @@ -1015,7 +1015,7 @@ uno::Reference< XChartTypeTemplate > ChartTypeTabPage::getCurrentTemplate() cons { if( m_pCurrentMainType && m_xChartModel.is() ) { - ChartTypeParameter aParameter( this->getCurrentParamter() ); + ChartTypeParameter aParameter( getCurrentParamter() ); m_pCurrentMainType->adjustParameterToSubType( aParameter ); uno::Reference< lang::XMultiServiceFactory > xTemplateManager( m_xChartModel->getChartTypeManager(), uno::UNO_QUERY ); return m_pCurrentMainType->getCurrentTemplate( aParameter, xTemplateManager ); diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx index 14d99d672ce3..627b96aae979 100644 --- a/chart2/source/controller/dialogs/tp_DataSource.cxx +++ b/chart2/source/controller/dialogs/tp_DataSource.cxx @@ -219,7 +219,7 @@ DataSourceTabPage::DataSourceTabPage( m_pFT_CAPTION->Show(!bHideDescription); m_aFixedTextRange = m_pFT_RANGE->GetText(); - this->SetText( SchResId( STR_OBJECT_DATASERIES_PLURAL ) ); + SetText( SchResId( STR_OBJECT_DATASERIES_PLURAL ) ); // set handlers m_pLB_SERIES->SetSelectHdl( LINK( this, DataSourceTabPage, SeriesSelectionChangedHdl )); diff --git a/chart2/source/controller/dialogs/tp_RangeChooser.cxx b/chart2/source/controller/dialogs/tp_RangeChooser.cxx index 6879b87c34fb..c4ec2b3f24f1 100644 --- a/chart2/source/controller/dialogs/tp_RangeChooser.cxx +++ b/chart2/source/controller/dialogs/tp_RangeChooser.cxx @@ -96,7 +96,7 @@ RangeChooserTabPage::RangeChooserTabPage( vcl::Window* pParent m_pFT_Caption->Show(!bHideDescription); - this->SetText( m_pFTTitle->GetText());// OH:remove later with dialog + SetText( m_pFTTitle->GetText());// OH:remove later with dialog // set defaults as long as DetectArguments does not work m_pRB_Columns->Check(); diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx index 1898a18797b3..0c1d2255e931 100644 --- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx +++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx @@ -133,7 +133,7 @@ DrawViewWrapper::DrawViewWrapper( SdrModel* pSdrModel, OutputDevice* pOut) void DrawViewWrapper::ReInit() { - OutputDevice* pOutDev = this->GetFirstOutputDevice(); + OutputDevice* pOutDev = GetFirstOutputDevice(); Size aOutputSize(100,100); if(pOutDev) aOutputSize = pOutDev->GetOutputSize(); @@ -144,13 +144,13 @@ void DrawViewWrapper::ReInit() mbGridVisible = false; mbHlplVisible = false; - this->SetNoDragXorPolys(true);//for interactive 3D resize-dragging: paint only a single rectangle (not a simulated 3D object) + SetNoDragXorPolys(true);//for interactive 3D resize-dragging: paint only a single rectangle (not a simulated 3D object) //a correct work area is at least necessary for correct values in the position and size dialog tools::Rectangle aRect(Point(0,0), aOutputSize); - this->SetWorkArea(aRect); + SetWorkArea(aRect); - this->ShowSdrPage(this->GetModel()->GetPage(0)); + ShowSdrPage(GetModel()->GetPage(0)); } DrawViewWrapper::~DrawViewWrapper() @@ -161,7 +161,7 @@ DrawViewWrapper::~DrawViewWrapper() SdrPageView* DrawViewWrapper::GetPageView() const { - SdrPageView* pSdrPageView = this->GetSdrPageView(); + SdrPageView* pSdrPageView = GetSdrPageView(); return pSdrPageView; }; @@ -226,9 +226,9 @@ void DrawViewWrapper::MarkObject( SdrObject* pObj ) if( m_pMarkHandleProvider ) bFrameDragSingles = m_pMarkHandleProvider->getFrameDragSingles(); - this->SetFrameDragSingles(bFrameDragSingles);//decide whether each single object should get handles - this->SdrView::MarkObj( pObj, this->GetPageView() ); - this->showMarkHandles(); + SetFrameDragSingles(bFrameDragSingles);//decide whether each single object should get handles + SdrView::MarkObj( pObj, GetPageView() ); + showMarkHandles(); } void DrawViewWrapper::setMarkHandleProvider( MarkHandleProvider* pMarkHandleProvider ) @@ -240,14 +240,14 @@ void DrawViewWrapper::CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg { svtools::ColorConfig aColorConfig; Color aFillColor( aColorConfig.GetColorValue( svtools::DOCCOLOR ).nColor ); - this->SetApplicationBackgroundColor(aFillColor); - this->E3dView::CompleteRedraw( pOut, rReg ); + SetApplicationBackgroundColor(aFillColor); + E3dView::CompleteRedraw( pOut, rReg ); } SdrObject* DrawViewWrapper::getSelectedObject() const { SdrObject* pObj(nullptr); - const SdrMarkList& rMarkList = this->GetMarkedObjectList(); + const SdrMarkList& rMarkList = GetMarkedObjectList(); if(rMarkList.GetMarkCount() == 1) { SdrMark* pMark = rMarkList.GetMark(0); @@ -258,7 +258,7 @@ SdrObject* DrawViewWrapper::getSelectedObject() const SdrObject* DrawViewWrapper::getTextEditObject() const { - SdrObject* pObj = this->getSelectedObject(); + SdrObject* pObj = getSelectedObject(); SdrObject* pTextObj = nullptr; if( pObj && pObj->HasTextEdit()) pTextObj = static_cast<SdrTextObj*>(pObj); @@ -299,7 +299,7 @@ SdrObject* DrawViewWrapper::getNamedSdrObject( const OUString& rName ) const { if(rName.isEmpty()) return nullptr; - SdrPageView* pSdrPageView = this->GetPageView(); + SdrPageView* pSdrPageView = GetPageView(); if( pSdrPageView ) { return DrawModelWrapper::getNamedSdrObject( rName, pSdrPageView->GetObjList() ); @@ -320,14 +320,14 @@ bool DrawViewWrapper::IsObjectHit( SdrObject const * pObj, const Point& rPnt ) void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) { //prevent wrong reselection of objects - SdrModel* pSdrModel( this->GetModel() ); + SdrModel* pSdrModel( GetModel() ); if( pSdrModel && pSdrModel->isLocked() ) return; const SdrHint* pSdrHint = dynamic_cast< const SdrHint* >( &rHint ); //#i76053# do nothing when only changes on the hidden draw page were made ( e.g. when the symbols for the dialogs are created ) - SdrPageView* pSdrPageView = this->GetPageView(); + SdrPageView* pSdrPageView = GetPageView(); if( pSdrHint && pSdrPageView ) { if( pSdrPageView->GetPage() != pSdrHint->GetPage() ) @@ -343,7 +343,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) { // #i79965# remember map mode OSL_ASSERT( ! m_bRestoreMapMode ); - OutputDevice* pOutDev = this->GetFirstOutputDevice(); + OutputDevice* pOutDev = GetFirstOutputDevice(); if( pOutDev ) { m_aMapModeToRestore = pOutDev->GetMapMode(); @@ -356,7 +356,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) OSL_ASSERT( m_bRestoreMapMode ); if( m_bRestoreMapMode ) { - OutputDevice* pOutDev = this->GetFirstOutputDevice(); + OutputDevice* pOutDev = GetFirstOutputDevice(); if( pOutDev ) { pOutDev->SetMapMode( m_aMapModeToRestore ); diff --git a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx index 34d983605907..5b66bf5e018e 100644 --- a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx +++ b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx @@ -146,7 +146,7 @@ SdrObjList* ViewElementListProvider::GetSymbolList() const Graphic ViewElementListProvider::GetSymbolGraphic( sal_Int32 nStandardSymbol, const SfxItemSet* pSymbolShapeProperties ) const { - SdrObjList* pSymbolList = this->GetSymbolList(); + SdrObjList* pSymbolList = GetSymbolList(); if( !pSymbolList->GetObjCount() ) return Graphic(); if(nStandardSymbol<0) diff --git a/chart2/source/controller/itemsetwrapper/MultipleItemConverter.cxx b/chart2/source/controller/itemsetwrapper/MultipleItemConverter.cxx index 9befc3810665..b8e284827136 100644 --- a/chart2/source/controller/itemsetwrapper/MultipleItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/MultipleItemConverter.cxx @@ -47,7 +47,7 @@ void MultipleItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const } for( ; aIter != aEnd; ++aIter ) { - SfxItemSet aSet = this->CreateEmptyItemSet(); + SfxItemSet aSet = CreateEmptyItemSet(); (*aIter)->FillItemSet( aSet ); InvalidateUnequalItems( rOutItemSet, aSet ); } diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx index ab8189642b36..2135ae701eee 100644 --- a/chart2/source/controller/main/ChartController_TextEdit.cxx +++ b/chart2/source/controller/main/ChartController_TextEdit.cxx @@ -48,7 +48,7 @@ using namespace ::com::sun::star; void ChartController::executeDispatch_EditText( const Point* pMousePixel ) { - this->StartTextEdit( pMousePixel ); + StartTextEdit( pMousePixel ); } void ChartController::StartTextEdit( const Point* pMousePixel ) @@ -154,7 +154,7 @@ void ChartController::executeDispatch_InsertSpecialCharacter() return; } if( !m_pDrawViewWrapper->IsTextEdit() ) - this->StartTextEdit(); + StartTextEdit(); SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create(); OSL_ENSURE( pFact, "No dialog factory" ); diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx index 68b85a0b65a8..36c6a569985e 100644 --- a/chart2/source/controller/main/ChartController_Tools.cxx +++ b/chart2/source/controller/main/ChartController_Tools.cxx @@ -334,7 +334,7 @@ void ChartController::impl_PasteGraphic( // note: the XPropertySet of the model is the old API. Also the property // "AdditionalShapes" that is used there. uno::Reference< beans::XPropertySet > xModelProp( getModel(), uno::UNO_QUERY ); - DrawModelWrapper * pDrawModelWrapper( this->GetDrawModelWrapper()); + DrawModelWrapper * pDrawModelWrapper( GetDrawModelWrapper()); if( ! (xGraphic.is() && xModelProp.is())) return; uno::Reference< lang::XMultiServiceFactory > xFact( pDrawModelWrapper->getShapeFactory()); @@ -377,7 +377,7 @@ void ChartController::impl_PasteGraphic( void ChartController::impl_PasteShapes( SdrModel* pModel ) { - DrawModelWrapper* pDrawModelWrapper( this->GetDrawModelWrapper() ); + DrawModelWrapper* pDrawModelWrapper( GetDrawModelWrapper() ); if ( pDrawModelWrapper && m_pDrawViewWrapper ) { Reference< drawing::XDrawPage > xDestPage( pDrawModelWrapper->getMainDrawPage() ); @@ -433,7 +433,7 @@ void ChartController::impl_PasteShapes( SdrModel* pModel ) void ChartController::impl_PasteStringAsTextShape( const OUString& rString, const awt::Point& rPosition ) { - DrawModelWrapper* pDrawModelWrapper( this->GetDrawModelWrapper() ); + DrawModelWrapper* pDrawModelWrapper( GetDrawModelWrapper() ); if ( pDrawModelWrapper && m_pDrawViewWrapper ) { const Reference< lang::XMultiServiceFactory >& xShapeFactory( pDrawModelWrapper->getShapeFactory() ); diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index dbbccd268591..c05c56af059d 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -524,7 +524,7 @@ IMPL_LINK_NOARG(ChartController, DoubleClickWaitingHdl, Timer *, void) if( !m_bWaitingForMouseUp && m_aSelection.maybeSwitchSelectionAfterSingleClickWasEnsured() ) { - this->impl_selectObjectAndNotiy(); + impl_selectObjectAndNotiy(); SolarMutexGuard aGuard; auto pChartWindow(GetChartWindow()); if( pChartWindow ) @@ -592,7 +592,7 @@ void ChartController::execute_MouseButtonDown( const MouseEvent& rMEvt ) } else { - this->EndTextEdit(); + EndTextEdit(); } } @@ -882,7 +882,7 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt ) if( !m_bWaitingForDoubleClick && m_aSelection.maybeSwitchSelectionAfterSingleClickWasEnsured() ) { - this->impl_selectObjectAndNotiy(); + impl_selectObjectAndNotiy(); } } else @@ -1308,7 +1308,7 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt ) bReturn = true; if( nCode == KEY_ESCAPE ) { - this->EndTextEdit(); + EndTextEdit(); } } } @@ -1616,9 +1616,9 @@ sal_Bool SAL_CALL ChartController::select( const uno::Any& rSelection ) SolarMutexGuard aGuard; if ( m_pDrawViewWrapper && m_pDrawViewWrapper->IsTextEdit() ) { - this->EndTextEdit(); + EndTextEdit(); } - this->impl_selectObjectAndNotiy(); + impl_selectObjectAndNotiy(); auto pChartWindow(GetChartWindow()); if ( pChartWindow ) { diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx index c35cf55a067e..b03f10164b17 100644 --- a/chart2/source/controller/main/ChartWindow.cxx +++ b/chart2/source/controller/main/ChartWindow.cxx @@ -57,8 +57,8 @@ ChartWindow::ChartWindow( ChartController* pController, vcl::Window* pParent, Wi #endif { set_id("chart_window"); - this->SetHelpId( HID_SCH_WIN_DOCUMENT ); - this->SetMapMode( MapMode(MapUnit::Map100thMM) ); + SetHelpId( HID_SCH_WIN_DOCUMENT ); + SetMapMode( MapMode(MapUnit::Map100thMM) ); adjustHighContrastMode(); // chart does not depend on exact pixel painting => enable antialiased drawing SetAntialiasing( AntialiasingFlags::EnableB2dDraw | GetAntialiasing() ); diff --git a/chart2/source/controller/main/DragMethod_PieSegment.cxx b/chart2/source/controller/main/DragMethod_PieSegment.cxx index 8271118a2e6f..4e831cfc4d5e 100644 --- a/chart2/source/controller/main/DragMethod_PieSegment.cxx +++ b/chart2/source/controller/main/DragMethod_PieSegment.cxx @@ -110,7 +110,7 @@ bool DragMethod_PieSegment::EndSdrDrag(bool /*bCopy*/) try { - Reference< frame::XModel > xChartModel( this->getChartModel() ); + Reference< frame::XModel > xChartModel( getChartModel() ); if( xChartModel.is() ) { Reference< beans::XPropertySet > xPointProperties( diff --git a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx index 3dbfa1810cd4..3afb0008ad5c 100644 --- a/chart2/source/controller/main/DragMethod_RotateDiagram.cxx +++ b/chart2/source/controller/main/DragMethod_RotateDiagram.cxx @@ -73,7 +73,7 @@ DragMethod_RotateDiagram::DragMethod_RotateDiagram( DrawViewWrapper& rDrawViewWr m_aWireframePolyPolygon = m_pScene->CreateWireframe(); - uno::Reference< chart2::XDiagram > xDiagram( ChartModelHelper::findDiagram(this->getChartModel()) ); + uno::Reference< chart2::XDiagram > xDiagram( ChartModelHelper::findDiagram(getChartModel()) ); uno::Reference< beans::XPropertySet > xDiagramProperties( xDiagram, uno::UNO_QUERY ); if( xDiagramProperties.is() ) { @@ -161,12 +161,12 @@ bool DragMethod_RotateDiagram::EndSdrDrag(bool /*bCopy*/) if(m_bRightAngledAxes) ThreeDHelper::adaptRadAnglesForRightAngledAxes( fResultX, fResultY ); - ThreeDHelper::setRotationAngleToDiagram( uno::Reference< beans::XPropertySet >( ChartModelHelper::findDiagram( this->getChartModel() ), uno::UNO_QUERY ) + ThreeDHelper::setRotationAngleToDiagram( uno::Reference< beans::XPropertySet >( ChartModelHelper::findDiagram( getChartModel() ), uno::UNO_QUERY ) , fResultX, fResultY, fResultZ ); } else { - ThreeDHelper::setRotationToDiagram( ( uno::Reference< beans::XPropertySet >( ChartModelHelper::findDiagram( this->getChartModel() ), uno::UNO_QUERY ) ) + ThreeDHelper::setRotationToDiagram( ( uno::Reference< beans::XPropertySet >( ChartModelHelper::findDiagram( getChartModel() ), uno::UNO_QUERY ) ) , m_nInitialHorizontalAngleDegree+m_nAdditionalHorizontalAngleDegree, m_nInitialVerticalAngleDegree+m_nAdditionalVerticalAngleDegree ); } diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx index f5d9c854b94f..f6043b0d5cdc 100644 --- a/chart2/source/model/main/BaseCoordinateSystem.cxx +++ b/chart2/source/model/main/BaseCoordinateSystem.cxx @@ -230,7 +230,7 @@ Reference< chart2::XAxis > SAL_CALL BaseCoordinateSystem::getAxisByDimension( OSL_ASSERT( m_aAllAxis.size() == static_cast< size_t >( getDimension())); - if( nAxisIndex < 0 || nAxisIndex > this->getMaximumAxisIndexByDimension(nDimensionIndex) ) + if( nAxisIndex < 0 || nAxisIndex > getMaximumAxisIndexByDimension(nDimensionIndex) ) throw lang::IndexOutOfBoundsException(); return m_aAllAxis[ nDimensionIndex ][nAxisIndex]; diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index a73aa04f49ef..c0289c3af548 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -887,7 +887,7 @@ Reference< chart2::data::XRangeHighlighter > SAL_CALL ChartModel::getRangeHighli { if( ! m_xRangeHighlighter.is()) { - uno::Reference< view::XSelectionSupplier > xSelSupp( this->getCurrentController(), uno::UNO_QUERY ); + uno::Reference< view::XSelectionSupplier > xSelSupp( getCurrentController(), uno::UNO_QUERY ); if( xSelSupp.is() ) m_xRangeHighlighter.set( ChartModelHelper::createRangeHighlighter( xSelSupp )); } @@ -1036,7 +1036,7 @@ embed::VisualRepresentation SAL_CALL ChartModel::getPreferredVisualRepresentatio //get view from old api wrapper Reference< datatransfer::XTransferable > xTransferable( - this->createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); + createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); if( xTransferable.is() ) { datatransfer::DataFlavor aDataFlavor( lcl_aGDIMetaFileMIMEType, @@ -1071,13 +1071,13 @@ embed::VisualRepresentation SAL_CALL ChartModel::getPreferredVisualRepresentatio uno::Any SAL_CALL ChartModel::getTransferData( const datatransfer::DataFlavor& aFlavor ) { uno::Any aResult; - if( this->isDataFlavorSupported( aFlavor )) + if( isDataFlavorSupported( aFlavor )) { try { //get view from old api wrapper Reference< datatransfer::XTransferable > xTransferable( - this->createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); + createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); if( xTransferable.is() && xTransferable->isDataFlavorSupported( aFlavor )) { @@ -1289,7 +1289,7 @@ uno::Sequence< Reference< chart2::data::XLabeledDataSequence > > SAL_CALL ChartM OUString SAL_CALL ChartModel::dump() { uno::Reference< qa::XDumper > xDumper( - this->createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); + createInstance( CHART_VIEW_SERVICE_NAME ), uno::UNO_QUERY ); if (xDumper.is()) return xDumper->dump(); diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx index ec3e3cfe292d..b61911bc1eed 100644 --- a/chart2/source/model/main/DataPoint.cxx +++ b/chart2/source/model/main/DataPoint.cxx @@ -188,7 +188,7 @@ void SAL_CALL DataPoint::setFastPropertyValue_NoBroadcast( { uno::Any aOldValue; Reference< util::XModifyBroadcaster > xBroadcaster; - this->getFastPropertyValue( aOldValue, nHandle ); + getFastPropertyValue( aOldValue, nHandle ); if( aOldValue.hasValue() && (aOldValue >>= xBroadcaster) && xBroadcaster.is()) diff --git a/chart2/source/model/main/DataSeries.cxx b/chart2/source/model/main/DataSeries.cxx index 6eebded278cb..0df608770e26 100644 --- a/chart2/source/model/main/DataSeries.cxx +++ b/chart2/source/model/main/DataSeries.cxx @@ -276,7 +276,7 @@ void SAL_CALL DataSeries::setFastPropertyValue_NoBroadcast( { uno::Any aOldValue; Reference< util::XModifyBroadcaster > xBroadcaster; - this->getFastPropertyValue( aOldValue, nHandle ); + getFastPropertyValue( aOldValue, nHandle ); if( aOldValue.hasValue() && (aOldValue >>= xBroadcaster) && xBroadcaster.is()) diff --git a/chart2/source/model/template/BarChartTypeTemplate.cxx b/chart2/source/model/template/BarChartTypeTemplate.cxx index 85eb2d5c7724..cf176a1e153e 100644 --- a/chart2/source/model/template/BarChartTypeTemplate.cxx +++ b/chart2/source/model/template/BarChartTypeTemplate.cxx @@ -257,7 +257,7 @@ void SAL_CALL BarChartTypeTemplate::applyStyle( { //apply Geometry3D uno::Any aAGeometry3D; - this->getFastPropertyValue( aAGeometry3D, PROP_BAR_TEMPLATE_GEOMETRY3D ); + getFastPropertyValue( aAGeometry3D, PROP_BAR_TEMPLATE_GEOMETRY3D ); DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "Geometry3D", aAGeometry3D ); } catch( const uno::Exception & ex ) diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx index 32cae2fa556c..99f3de05a8e3 100644 --- a/chart2/source/model/template/CandleStickChartType.cxx +++ b/chart2/source/model/template/CandleStickChartType.cxx @@ -296,7 +296,7 @@ void SAL_CALL CandleStickChartType::setFastPropertyValue_NoBroadcast( { uno::Any aOldValue; Reference< util::XModifyBroadcaster > xBroadcaster; - this->getFastPropertyValue( aOldValue, nHandle ); + getFastPropertyValue( aOldValue, nHandle ); if( aOldValue.hasValue() && (aOldValue >>= xBroadcaster) && xBroadcaster.is()) diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx index a6b182c2497d..d3b9e2bfab86 100644 --- a/chart2/source/model/template/ChartType.cxx +++ b/chart2/source/model/template/ChartType.cxx @@ -178,7 +178,7 @@ void SAL_CALL ChartType::setDataSeries( const Sequence< Reference< chart2::XData m_bNotifyChanges = false; try { - Sequence< Reference< chart2::XDataSeries > > aOldSeries( this->getDataSeries() ); + Sequence< Reference< chart2::XDataSeries > > aOldSeries( getDataSeries() ); for( sal_Int32 nN=0; nN<aOldSeries.getLength(); ++nN ) ModifyListenerHelper::removeListener( aOldSeries[nN], m_xModifyEventForwarder ); m_aDataSeries.clear(); diff --git a/chart2/source/model/template/PieChartTypeTemplate.cxx b/chart2/source/model/template/PieChartTypeTemplate.cxx index 4cf0c415e207..9f7c559617db 100644 --- a/chart2/source/model/template/PieChartTypeTemplate.cxx +++ b/chart2/source/model/template/PieChartTypeTemplate.cxx @@ -459,11 +459,11 @@ void SAL_CALL PieChartTypeTemplate::applyStyle( const OUString aOffsetPropName( "Offset" ); // get offset mode chart2::PieChartOffsetMode ePieOffsetMode; - this->getFastPropertyValue( PROP_PIE_TEMPLATE_OFFSET_MODE ) >>= ePieOffsetMode; + getFastPropertyValue( PROP_PIE_TEMPLATE_OFFSET_MODE ) >>= ePieOffsetMode; // get default offset double fDefaultOffset = 0.5; - this->getFastPropertyValue( PROP_PIE_TEMPLATE_DEFAULT_OFFSET ) >>= fDefaultOffset; + getFastPropertyValue( PROP_PIE_TEMPLATE_DEFAULT_OFFSET ) >>= fDefaultOffset; double fOffsetToSet = fDefaultOffset; uno::Sequence< sal_Int32 > aAttributedDataPointIndexList; diff --git a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx index d3c0cf84fbd9..fe5adbca6dc6 100644 --- a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx +++ b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx @@ -138,9 +138,9 @@ uno::Sequence< geometry::RealPoint2D > SAL_CALL ExponentialRegressionCurveCalcul // optimize result uno::Sequence< geometry::RealPoint2D > aResult( 2 ); aResult[0].X = min; - aResult[0].Y = this->getCurveValue( min ); + aResult[0].Y = getCurveValue( min ); aResult[1].X = max; - aResult[1].Y = this->getCurveValue( max ); + aResult[1].Y = getCurveValue( max ); return aResult; } diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 439762471e26..cc6a7c31e49c 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -902,11 +902,11 @@ Sequence< uno::Any > SAL_CALL InternalDataProvider::getDataByRangeRepresentation sal_Int32 nLevelCount = lcl_getInnerLevelCount( aCategories ); if( nLevelCount == 1 ) { - aResult = this->getDataByRangeRepresentation( lcl_aCategoriesLevelRangeNamePrefix + OUString::number( 0 ) ); + aResult = getDataByRangeRepresentation( lcl_aCategoriesLevelRangeNamePrefix + OUString::number( 0 ) ); } else { - Sequence< OUString > aLabels = m_bDataInColumns ? this->getRowDescriptions() : this->getColumnDescriptions(); + Sequence< OUString > aLabels = m_bDataInColumns ? getRowDescriptions() : getColumnDescriptions(); aResult.realloc( aLabels.getLength() ); transform( aLabels.begin(), aLabels.end(), aResult.getArray(), CommonFunctors::makeAny< OUString >() ); diff --git a/chart2/source/tools/LinearRegressionCurveCalculator.cxx b/chart2/source/tools/LinearRegressionCurveCalculator.cxx index 7c6e5240d14e..d9b2b5e02983 100644 --- a/chart2/source/tools/LinearRegressionCurveCalculator.cxx +++ b/chart2/source/tools/LinearRegressionCurveCalculator.cxx @@ -62,9 +62,9 @@ uno::Sequence< geometry::RealPoint2D > SAL_CALL LinearRegressionCurveCalculator: // optimize result uno::Sequence< geometry::RealPoint2D > aResult( 2 ); aResult[0].X = min; - aResult[0].Y = this->getCurveValue( min ); + aResult[0].Y = getCurveValue( min ); aResult[1].X = max; - aResult[1].Y = this->getCurveValue( max ); + aResult[1].Y = getCurveValue( max ); return aResult; } diff --git a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx index 8102c6afb8d7..4891d5766ef9 100644 --- a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx +++ b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx @@ -115,9 +115,9 @@ uno::Sequence< geometry::RealPoint2D > SAL_CALL LogarithmicRegressionCurveCalcul // optimize result uno::Sequence< geometry::RealPoint2D > aResult( 2 ); aResult[0].X = min; - aResult[0].Y = this->getCurveValue( min ); + aResult[0].Y = getCurveValue( min ); aResult[1].X = max; - aResult[1].Y = this->getCurveValue( max ); + aResult[1].Y = getCurveValue( max ); return aResult; } diff --git a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx index 92ae9ed8ef29..ea97330cce78 100644 --- a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx +++ b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx @@ -127,9 +127,9 @@ uno::Sequence< geometry::RealPoint2D > SAL_CALL PotentialRegressionCurveCalculat // optimize result uno::Sequence< geometry::RealPoint2D > aResult( 2 ); aResult[0].X = min; - aResult[0].Y = this->getCurveValue( min ); + aResult[0].Y = getCurveValue( min ); aResult[1].X = max; - aResult[1].Y = this->getCurveValue( max ); + aResult[1].Y = getCurveValue( max ); return aResult; } diff --git a/chart2/source/tools/RegressionCurveCalculator.cxx b/chart2/source/tools/RegressionCurveCalculator.cxx index 4a1dc26a468d..836f74f04deb 100644 --- a/chart2/source/tools/RegressionCurveCalculator.cxx +++ b/chart2/source/tools/RegressionCurveCalculator.cxx @@ -161,7 +161,7 @@ Sequence< geometry::RealPoint2D > SAL_CALL RegressionCurveCalculator::getCurveVa if( bDoXScaling ) x = xInverseScaling->doScaling( x ); aResult[nP].X = x; - aResult[nP].Y = this->getCurveValue( x ); + aResult[nP].Y = getCurveValue( x ); } return aResult; diff --git a/chart2/source/tools/WrappedDefaultProperty.cxx b/chart2/source/tools/WrappedDefaultProperty.cxx index ef74d61e9dee..cb87cfa23f62 100644 --- a/chart2/source/tools/WrappedDefaultProperty.cxx +++ b/chart2/source/tools/WrappedDefaultProperty.cxx @@ -42,7 +42,7 @@ void WrappedDefaultProperty::setPropertyToDefault( { Reference< beans::XPropertySet > xInnerPropSet( xInnerPropertyState, uno::UNO_QUERY ); if( xInnerPropSet.is()) - this->setPropertyValue( m_aOuterDefaultValue, xInnerPropSet ); + setPropertyValue( m_aOuterDefaultValue, xInnerPropSet ); } uno::Any WrappedDefaultProperty::getPropertyDefault( @@ -58,8 +58,8 @@ beans::PropertyState WrappedDefaultProperty::getPropertyState( try { Reference< beans::XPropertySet > xInnerProp( xInnerPropertyState, uno::UNO_QUERY_THROW ); - uno::Any aValue = this->getPropertyValue( xInnerProp ); - if( m_aOuterDefaultValue == this->convertInnerToOuterValue( aValue )) + uno::Any aValue = getPropertyValue( xInnerProp ); + if( m_aOuterDefaultValue == convertInnerToOuterValue( aValue )) aState = beans::PropertyState_DEFAULT_VALUE; } catch( const beans::UnknownPropertyException& ex ) diff --git a/chart2/source/tools/WrappedProperty.cxx b/chart2/source/tools/WrappedProperty.cxx index 0b7c93c70dc6..d6ccf5895047 100644 --- a/chart2/source/tools/WrappedProperty.cxx +++ b/chart2/source/tools/WrappedProperty.cxx @@ -54,7 +54,7 @@ Any WrappedProperty::convertOuterToInnerValue( const Any& rOuterValue ) const void WrappedProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const { if(xInnerPropertySet.is()) - xInnerPropertySet->setPropertyValue( this->getInnerName(), this->convertOuterToInnerValue( rOuterValue ) ); + xInnerPropertySet->setPropertyValue( getInnerName(), convertOuterToInnerValue( rOuterValue ) ); } Any WrappedProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const @@ -62,16 +62,16 @@ Any WrappedProperty::getPropertyValue( const Reference< beans::XPropertySet >& x Any aRet; if( xInnerPropertySet.is() ) { - aRet = xInnerPropertySet->getPropertyValue( this->getInnerName() ); - aRet = this->convertInnerToOuterValue( aRet ); + aRet = xInnerPropertySet->getPropertyValue( getInnerName() ); + aRet = convertInnerToOuterValue( aRet ); } return aRet; } void WrappedProperty::setPropertyToDefault( const Reference< beans::XPropertyState >& xInnerPropertyState ) const { - if( xInnerPropertyState.is() && !this->getInnerName().isEmpty() ) - xInnerPropertyState->setPropertyToDefault(this->getInnerName()); + if( xInnerPropertyState.is() && !getInnerName().isEmpty() ) + xInnerPropertyState->setPropertyToDefault(getInnerName()); else { Reference< beans::XPropertySet > xInnerProp( xInnerPropertyState, uno::UNO_QUERY ); @@ -84,8 +84,8 @@ Any WrappedProperty::getPropertyDefault( const Reference< beans::XPropertyState Any aRet; if( xInnerPropertyState.is() ) { - aRet = xInnerPropertyState->getPropertyDefault( this->getInnerName() ); - aRet = this->convertInnerToOuterValue( aRet ); + aRet = xInnerPropertyState->getPropertyDefault( getInnerName() ); + aRet = convertInnerToOuterValue( aRet ); } return aRet; } @@ -93,7 +93,7 @@ Any WrappedProperty::getPropertyDefault( const Reference< beans::XPropertyState beans::PropertyState WrappedProperty::getPropertyState( const Reference< beans::XPropertyState >& xInnerPropertyState ) const { beans::PropertyState aState = beans::PropertyState_DIRECT_VALUE; - OUString aInnerName( this->getInnerName() ); + OUString aInnerName( getInnerName() ); if( xInnerPropertyState.is() && !aInnerName.isEmpty() ) aState = xInnerPropertyState->getPropertyState( aInnerName ); else @@ -101,12 +101,12 @@ beans::PropertyState WrappedProperty::getPropertyState( const Reference< beans:: try { Reference< beans::XPropertySet > xInnerProp( xInnerPropertyState, uno::UNO_QUERY ); - uno::Any aValue = this->getPropertyValue( xInnerProp ); + uno::Any aValue = getPropertyValue( xInnerProp ); if( !aValue.hasValue() ) aState = beans::PropertyState_DEFAULT_VALUE; else { - uno::Any aDefault = this->getPropertyDefault( xInnerPropertyState ); + uno::Any aDefault = getPropertyDefault( xInnerPropertyState ); if( aValue == aDefault ) aState = beans::PropertyState_DEFAULT_VALUE; } diff --git a/chart2/source/tools/WrappedPropertySet.cxx b/chart2/source/tools/WrappedPropertySet.cxx index 401b63e8f35b..75aea02f3d44 100644 --- a/chart2/source/tools/WrappedPropertySet.cxx +++ b/chart2/source/tools/WrappedPropertySet.cxx @@ -96,7 +96,7 @@ void SAL_CALL WrappedPropertySet::setPropertyValue( const OUString& rPropertyNam { sal_Int32 nHandle = getInfoHelper().getHandleByName( rPropertyName ); const WrappedProperty* pWrappedProperty = getWrappedProperty( nHandle ); - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( pWrappedProperty ) pWrappedProperty->setPropertyValue( rValue, xInnerPropertySet ); else if( xInnerPropertySet.is() ) @@ -142,7 +142,7 @@ Any SAL_CALL WrappedPropertySet::getPropertyValue( const OUString& rPropertyName { sal_Int32 nHandle = getInfoHelper().getHandleByName( rPropertyName ); const WrappedProperty* pWrappedProperty = getWrappedProperty( nHandle ); - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( pWrappedProperty ) aRet = pWrappedProperty->getPropertyValue( xInnerPropertySet ); else if( xInnerPropertySet.is() ) @@ -177,7 +177,7 @@ Any SAL_CALL WrappedPropertySet::getPropertyValue( const OUString& rPropertyName void SAL_CALL WrappedPropertySet::addPropertyChangeListener( const OUString& rPropertyName, const Reference< beans::XPropertyChangeListener >& xListener ) { - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( xInnerPropertySet.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -189,7 +189,7 @@ void SAL_CALL WrappedPropertySet::addPropertyChangeListener( const OUString& rPr } void SAL_CALL WrappedPropertySet::removePropertyChangeListener( const OUString& rPropertyName, const Reference< beans::XPropertyChangeListener >& aListener ) { - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( xInnerPropertySet.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -201,7 +201,7 @@ void SAL_CALL WrappedPropertySet::removePropertyChangeListener( const OUString& } void SAL_CALL WrappedPropertySet::addVetoableChangeListener( const OUString& rPropertyName, const Reference< beans::XVetoableChangeListener >& aListener ) { - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( xInnerPropertySet.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -213,7 +213,7 @@ void SAL_CALL WrappedPropertySet::addVetoableChangeListener( const OUString& rPr } void SAL_CALL WrappedPropertySet::removeVetoableChangeListener( const OUString& rPropertyName, const Reference< beans::XVetoableChangeListener >& aListener ) { - Reference< beans::XPropertySet > xInnerPropertySet( this->getInnerPropertySet() ); + Reference< beans::XPropertySet > xInnerPropertySet( getInnerPropertySet() ); if( xInnerPropertySet.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -234,7 +234,7 @@ void SAL_CALL WrappedPropertySet::setPropertyValues( const Sequence< OUString >& OUString aPropertyName( rNameSeq[nN] ); try { - this->setPropertyValue( aPropertyName, rValueSeq[nN] ); + setPropertyValue( aPropertyName, rValueSeq[nN] ); } catch( const beans::UnknownPropertyException& ex ) { @@ -258,7 +258,7 @@ Sequence< Any > SAL_CALL WrappedPropertySet::getPropertyValues( const Sequence< try { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyValue( aPropertyName ); + aRetSeq[nN] = getPropertyValue( aPropertyName ); } catch( const beans::UnknownPropertyException& ex ) { @@ -293,7 +293,7 @@ beans::PropertyState SAL_CALL WrappedPropertySet::getPropertyState( const OUStri { beans::PropertyState aState( beans::PropertyState_DIRECT_VALUE ); - Reference< beans::XPropertyState > xInnerPropertyState( this->getInnerPropertyState() ); + Reference< beans::XPropertyState > xInnerPropertyState( getInnerPropertyState() ); if( xInnerPropertyState.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -328,7 +328,7 @@ Sequence< beans::PropertyState > SAL_CALL WrappedPropertySet::getPropertyStates( for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyState( aPropertyName ); + aRetSeq[nN] = getPropertyState( aPropertyName ); } } return aRetSeq; @@ -336,7 +336,7 @@ Sequence< beans::PropertyState > SAL_CALL WrappedPropertySet::getPropertyStates( void SAL_CALL WrappedPropertySet::setPropertyToDefault( const OUString& rPropertyName ) { - Reference< beans::XPropertyState > xInnerPropertyState( this->getInnerPropertyState() ); + Reference< beans::XPropertyState > xInnerPropertyState( getInnerPropertyState() ); if( xInnerPropertyState.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -349,7 +349,7 @@ void SAL_CALL WrappedPropertySet::setPropertyToDefault( const OUString& rPropert Any SAL_CALL WrappedPropertySet::getPropertyDefault( const OUString& rPropertyName ) { Any aRet; - Reference< beans::XPropertyState > xInnerPropertyState( this->getInnerPropertyState() ); + Reference< beans::XPropertyState > xInnerPropertyState( getInnerPropertyState() ); if( xInnerPropertyState.is() ) { const WrappedProperty* pWrappedProperty = getWrappedProperty( rPropertyName ); @@ -368,7 +368,7 @@ void SAL_CALL WrappedPropertySet::setAllPropertiesToDefault( ) for(sal_Int32 nN=0; nN<rPropSeq.getLength(); nN++) { OUString aPropertyName( rPropSeq[nN].Name ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } void SAL_CALL WrappedPropertySet::setPropertiesToDefault( const Sequence< OUString >& rNameSeq ) @@ -376,7 +376,7 @@ void SAL_CALL WrappedPropertySet::setPropertiesToDefault( const Sequence< OUStri for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - this->setPropertyToDefault( aPropertyName ); + setPropertyToDefault( aPropertyName ); } } Sequence< Any > SAL_CALL WrappedPropertySet::getPropertyDefaults( const Sequence< OUString >& rNameSeq ) @@ -388,7 +388,7 @@ Sequence< Any > SAL_CALL WrappedPropertySet::getPropertyDefaults( const Sequence for(sal_Int32 nN=0; nN<rNameSeq.getLength(); nN++) { OUString aPropertyName( rNameSeq[nN] ); - aRetSeq[nN] = this->getPropertyDefault( aPropertyName ); + aRetSeq[nN] = getPropertyDefault( aPropertyName ); } } return aRetSeq; diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index 901242455252..60a8d4bcf167 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -210,7 +210,7 @@ void TickFactory2D::addPointSequenceForTickLine( drawing::PointSequenceSequence& if( fInnerDirectionSign==0.0 ) fInnerDirectionSign = 1.0; - B2DVector aTickScreenPosition = this->getTickScreenPosition2D(fScaledLogicTickValue); + B2DVector aTickScreenPosition = getTickScreenPosition2D(fScaledLogicTickValue); if( bPlaceAtLabels ) aTickScreenPosition += m_aAxisLineToLabelLineShift; @@ -305,7 +305,7 @@ void TickFactory2D::updateScreenValues( TickInfoArraysType& rAllTickInfos ) cons { TickInfo& rTickInfo = (*aTickIter); rTickInfo.aTickScreenPosition = - this->getTickScreenPosition2D( rTickInfo.fScaledTickValue ); + getTickScreenPosition2D( rTickInfo.fScaledTickValue ); } } } diff --git a/chart2/source/view/axes/Tickmarks_Equidistant.cxx b/chart2/source/view/axes/Tickmarks_Equidistant.cxx index df37b2ef07fd..e22faf768011 100644 --- a/chart2/source/view/axes/Tickmarks_Equidistant.cxx +++ b/chart2/source/view/axes/Tickmarks_Equidistant.cxx @@ -146,7 +146,7 @@ void EquidistantTickFactory::addSubTicks( sal_Int32 nDepth, uno::Sequence< uno:: if(!pfNextParentTick) return; - sal_Int32 nMaxSubTickCount = this->getMaxTickCount( nDepth ); + sal_Int32 nMaxSubTickCount = getMaxTickCount( nDepth ); if(!nMaxSubTickCount) return; @@ -159,7 +159,7 @@ void EquidistantTickFactory::addSubTicks( sal_Int32 nDepth, uno::Sequence< uno:: { for( sal_Int32 nPartTick = 1; nPartTick<nIntervalCount; nPartTick++ ) { - pValue = this->getMinorTick( nPartTick, nDepth + pValue = getMinorTick( nPartTick, nDepth , fLastParentTick, *pfNextParentTick ); if(!pValue) continue; @@ -311,8 +311,8 @@ bool EquidistantTickFactory::isVisible( double fScaledValue ) const void EquidistantTickFactory::getAllTicks( TickInfoArraysType& rAllTickInfos ) const { //create point sequences for each tick depth - sal_Int32 nDepthCount = this->getTickDepth(); - sal_Int32 nMaxMajorTickCount = this->getMaxTickCount(0); + sal_Int32 nDepthCount = getTickDepth(); + sal_Int32 nMaxMajorTickCount = getMaxTickCount(0); if (nDepthCount <= 0 || nMaxMajorTickCount <= 0) return; @@ -323,7 +323,7 @@ void EquidistantTickFactory::getAllTicks( TickInfoArraysType& rAllTickInfos ) co sal_Int32 nRealMajorTickCount = 0; for( sal_Int32 nMajorTick=0; nMajorTick<nMaxMajorTickCount; nMajorTick++ ) { - double* pValue = this->getMajorTick( nMajorTick ); + double* pValue = getMajorTick( nMajorTick ); if(!pValue) continue; aAllTicks[0][nRealMajorTickCount] = *pValue; @@ -334,7 +334,7 @@ void EquidistantTickFactory::getAllTicks( TickInfoArraysType& rAllTickInfos ) co aAllTicks[0].realloc(nRealMajorTickCount); if(nDepthCount>0) - this->addSubTicks( 1, aAllTicks ); + addSubTicks( 1, aAllTicks ); //so far we have added all ticks between the outer major tick marks //this was necessary to create sub ticks correctly diff --git a/chart2/source/view/axes/VAxisBase.cxx b/chart2/source/view/axes/VAxisBase.cxx index 59ed66cdc917..2f48b1c8facf 100644 --- a/chart2/source/view/axes/VAxisBase.cxx +++ b/chart2/source/view/axes/VAxisBase.cxx @@ -152,7 +152,7 @@ void VAxisBase::setExplicitScaleAndIncrement( void VAxisBase::createAllTickInfos( TickInfoArraysType& rAllTickInfos ) { - std::unique_ptr< TickFactory > apTickFactory( this->createTickFactory() ); + std::unique_ptr< TickFactory > apTickFactory( createTickFactory() ); if( m_aScale.ShiftedCategoryPosition ) apTickFactory->getAllTicksShifted( rAllTickInfos ); else @@ -178,7 +178,7 @@ bool VAxisBase::prepareShapeCreation() return true; //create named group shape - m_xGroupShape_Shapes = this->createGroupShape( m_xLogicTarget, m_nDimension==2 ? m_aCID : ""); + m_xGroupShape_Shapes = createGroupShape( m_xLogicTarget, m_nDimension==2 ? m_aCID : ""); if( m_aAxisProperties.m_bDisplayLabels ) m_xTextTarget = m_pShapeFactory->createGroup2D( m_xFinalTarget, m_aCID ); diff --git a/chart2/source/view/axes/VAxisProperties.cxx b/chart2/source/view/axes/VAxisProperties.cxx index f791d065a126..43ef2d33ea12 100644 --- a/chart2/source/view/axes/VAxisProperties.cxx +++ b/chart2/source/view/axes/VAxisProperties.cxx @@ -273,7 +273,7 @@ void AxisProperties::initAxisPositioning( const uno::Reference< beans::XProperty void AxisProperties::init( bool bCartesian ) { uno::Reference< beans::XPropertySet > xProp = - uno::Reference<beans::XPropertySet>::query( this->m_xAxisModel ); + uno::Reference<beans::XPropertySet>::query( m_xAxisModel ); if( !xProp.is() ) return; @@ -347,11 +347,11 @@ void AxisProperties::init( bool bCartesian ) else if(m_nMajorTickmarks!=0) nMaxDepth=1; - this->m_aTickmarkPropertiesList.clear(); + m_aTickmarkPropertiesList.clear(); for( sal_Int32 nDepth=0; nDepth<nMaxDepth; nDepth++ ) { - TickmarkProperties aTickmarkProperties = this->makeTickmarkProperties( nDepth ); - this->m_aTickmarkPropertiesList.push_back( aTickmarkProperties ); + TickmarkProperties aTickmarkProperties = makeTickmarkProperties( nDepth ); + m_aTickmarkPropertiesList.push_back( aTickmarkProperties ); } } catch( const uno::Exception& e ) @@ -382,26 +382,26 @@ void AxisLabelProperties::init( const uno::Reference< XAxis >& xAxisModel ) { try { - xProp->getPropertyValue( "TextBreak" ) >>= this->bLineBreakAllowed; - xProp->getPropertyValue( "TextOverlap" ) >>= this->bOverlapAllowed; - xProp->getPropertyValue( "StackCharacters" ) >>= this->bStackCharacters; - xProp->getPropertyValue( "TextRotation" ) >>= this->fRotationAngleDegree; + xProp->getPropertyValue( "TextBreak" ) >>= bLineBreakAllowed; + xProp->getPropertyValue( "TextOverlap" ) >>= bOverlapAllowed; + xProp->getPropertyValue( "StackCharacters" ) >>= bStackCharacters; + xProp->getPropertyValue( "TextRotation" ) >>= fRotationAngleDegree; css::chart::ChartAxisArrangeOrderType eArrangeOrder; xProp->getPropertyValue( "ArrangeOrder" ) >>= eArrangeOrder; switch(eArrangeOrder) { case css::chart::ChartAxisArrangeOrderType_SIDE_BY_SIDE: - this->eStaggering = SIDE_BY_SIDE; + eStaggering = SIDE_BY_SIDE; break; case css::chart::ChartAxisArrangeOrderType_STAGGER_EVEN: - this->eStaggering = STAGGER_EVEN; + eStaggering = STAGGER_EVEN; break; case css::chart::ChartAxisArrangeOrderType_STAGGER_ODD: - this->eStaggering = STAGGER_ODD; + eStaggering = STAGGER_ODD; break; default: - this->eStaggering = STAGGER_AUTO; + eStaggering = STAGGER_AUTO; break; } } diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index 63d50e40e172..d5429ac3ff59 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -1560,7 +1560,7 @@ void VCartesianAxis::createLabels() if (!m_aAxisProperties.m_bDisplayLabels) return; - std::unique_ptr< TickFactory2D > apTickFactory2D( this->createTickFactory2D() ); + std::unique_ptr< TickFactory2D > apTickFactory2D( createTickFactory2D() ); TickFactory2D* pTickFactory2D = apTickFactory2D.get(); if( !pTickFactory2D ) return; @@ -1614,7 +1614,7 @@ void VCartesianAxis::createMaximumLabels() if (!m_aAxisProperties.m_bDisplayLabels) return; - std::unique_ptr< TickFactory2D > apTickFactory2D( this->createTickFactory2D() ); + std::unique_ptr< TickFactory2D > apTickFactory2D( createTickFactory2D() ); TickFactory2D* pTickFactory2D = apTickFactory2D.get(); if( !pTickFactory2D ) return; @@ -1651,7 +1651,7 @@ void VCartesianAxis::updatePositions() if (!m_aAxisProperties.m_bDisplayLabels) return; - std::unique_ptr< TickFactory2D > apTickFactory2D( this->createTickFactory2D() ); + std::unique_ptr< TickFactory2D > apTickFactory2D( createTickFactory2D() ); TickFactory2D* pTickFactory2D = apTickFactory2D.get(); if( !pTickFactory2D ) return; @@ -1752,7 +1752,7 @@ void VCartesianAxis::createShapes() if( !prepareShapeCreation() ) return; - std::unique_ptr< TickFactory2D > apTickFactory2D( this->createTickFactory2D() ); + std::unique_ptr< TickFactory2D > apTickFactory2D( createTickFactory2D() ); TickFactory2D* pTickFactory2D = apTickFactory2D.get(); if( !pTickFactory2D ) return; diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx index 9321ec109678..091d61718a60 100644 --- a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx +++ b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx @@ -67,7 +67,7 @@ void VCartesianCoordinateSystem::createGridShapes() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); for( sal_Int32 nDimensionIndex=0; nDimensionIndex<3; nDimensionIndex++) { @@ -77,15 +77,15 @@ void VCartesianCoordinateSystem::createGridShapes() continue; VCartesianGrid aGrid(nDimensionIndex,nDimensionCount, getGridListFromAxis( xAxis )); - aGrid.setExplicitScaleAndIncrement( this->getExplicitScale(nDimensionIndex,nAxisIndex) - , this->getExplicitIncrement(nDimensionIndex,nAxisIndex) ); + aGrid.setExplicitScaleAndIncrement( getExplicitScale(nDimensionIndex,nAxisIndex) + , getExplicitIncrement(nDimensionIndex,nAxisIndex) ); aGrid.set3DWallPositions( m_eLeftWallPos, m_eBackWallPos, m_eBottomPos ); aGrid.initPlotter(m_xLogicTargetForGrids,m_xFinalTarget,m_xShapeFactory - , this->createCIDForGrid( nDimensionIndex,nAxisIndex ) ); + , createCIDForGrid( nDimensionIndex,nAxisIndex ) ); if(nDimensionCount==2) aGrid.setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - aGrid.setScales( this->getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); + aGrid.setScales( getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); aGrid.createShapes(); } } @@ -104,7 +104,7 @@ void VCartesianCoordinateSystem::createVAxisList( m_aAxisMap.clear(); sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); if(nDimensionCount<=0) return; @@ -118,11 +118,11 @@ void VCartesianCoordinateSystem::createVAxisList( sal_Int32 nMaxAxisIndex = m_xCooSysModel->getMaximumAxisIndexByDimension(nDimensionIndex); for( sal_Int32 nAxisIndex = 0; nAxisIndex <= nMaxAxisIndex; nAxisIndex++ ) { - Reference< XAxis > xAxis = this->getAxisByDimension(nDimensionIndex,nAxisIndex); + Reference< XAxis > xAxis = getAxisByDimension(nDimensionIndex,nAxisIndex); if(!xAxis.is() || !AxisHelper::shouldAxisBeDisplayed( xAxis, m_xCooSysModel )) continue; - AxisProperties aAxisProperties(xAxis,this->getExplicitCategoriesProvider()); + AxisProperties aAxisProperties(xAxis,getExplicitCategoriesProvider()); aAxisProperties.m_nDimensionIndex = nDimensionIndex; aAxisProperties.m_bSwapXAndY = bSwapXAndY; aAxisProperties.m_bIsMainAxis = (nAxisIndex==0); @@ -146,7 +146,7 @@ void VCartesianCoordinateSystem::createVAxisList( } aAxisProperties.init(true); if(aAxisProperties.m_bDisplayLabels) - aAxisProperties.m_nNumberFormatKey = this->getNumberFormatKeyForAxis(xAxis, xChartDoc); + aAxisProperties.m_nNumberFormatKey = getNumberFormatKeyForAxis(xAxis, xChartDoc); std::shared_ptr< VAxisBase > apVAxis( new VCartesianAxis(aAxisProperties,xNumberFormatsSupplier,nDimensionIndex,nDimensionCount) ); tFullAxisIndex aFullAxisIndex( nDimensionIndex, nAxisIndex ); @@ -164,7 +164,7 @@ void VCartesianCoordinateSystem::initVAxisInList() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); tVAxisMap::iterator aIt( m_aAxisMap.begin() ); tVAxisMap::const_iterator aEnd( m_aAxisMap.end() ); @@ -175,12 +175,12 @@ void VCartesianCoordinateSystem::initVAxisInList() { sal_Int32 nDimensionIndex = aIt->first.first; sal_Int32 nAxisIndex = aIt->first.second; - pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement( nDimensionIndex, nAxisIndex ) ); + pVAxis->setExplicitScaleAndIncrement( getExplicitScale( nDimensionIndex, nAxisIndex ), getExplicitIncrement( nDimensionIndex, nAxisIndex ) ); pVAxis->initPlotter(m_xLogicTargetForAxes,m_xFinalTarget,m_xShapeFactory - , this->createCIDForAxis( nDimensionIndex, nAxisIndex ) ); + , createCIDForAxis( nDimensionIndex, nAxisIndex ) ); if(nDimensionCount==2) pVAxis->setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - pVAxis->setScales( this->getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); + pVAxis->setScales( getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); } } } @@ -191,7 +191,7 @@ void VCartesianCoordinateSystem::updateScalesAndIncrementsOnAxes() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); tVAxisMap::iterator aIt( m_aAxisMap.begin() ); tVAxisMap::const_iterator aEnd( m_aAxisMap.end() ); @@ -202,10 +202,10 @@ void VCartesianCoordinateSystem::updateScalesAndIncrementsOnAxes() { sal_Int32 nDimensionIndex = aIt->first.first; sal_Int32 nAxisIndex = aIt->first.second; - pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement( nDimensionIndex, nAxisIndex ) ); + pVAxis->setExplicitScaleAndIncrement( getExplicitScale( nDimensionIndex, nAxisIndex ), getExplicitIncrement( nDimensionIndex, nAxisIndex ) ); if(nDimensionCount==2) pVAxis->setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - pVAxis->setScales( this->getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); + pVAxis->setScales( getExplicitScales(nDimensionIndex,nAxisIndex), bSwapXAndY ); } } } diff --git a/chart2/source/view/axes/VCartesianGrid.cxx b/chart2/source/view/axes/VCartesianGrid.cxx index 57073235c0ff..aa71888bd9f3 100644 --- a/chart2/source/view/axes/VCartesianGrid.cxx +++ b/chart2/source/view/axes/VCartesianGrid.cxx @@ -200,7 +200,7 @@ void VCartesianGrid::createShapes() //create named group shape Reference< drawing::XShapes > xGroupShape_Shapes( - this->createGroupShape( m_xLogicTarget, m_aCID ) ); + createGroupShape( m_xLogicTarget, m_aCID ) ); if(!xGroupShape_Shapes.is()) return; @@ -209,7 +209,7 @@ void VCartesianGrid::createShapes() fillLinePropertiesFromGridModel( aLinePropertiesList, m_aGridPropertiesList ); //create all scaled tickmark values - std::unique_ptr< TickFactory > apTickFactory( this->createTickFactory() ); + std::unique_ptr< TickFactory > apTickFactory( createTickFactory() ); TickFactory& aTickFactory = *apTickFactory.get(); TickInfoArraysType aAllTickInfos; aTickFactory.getAllTicks( aAllTickInfos ); @@ -232,7 +232,7 @@ void VCartesianGrid::createShapes() Reference< drawing::XShapes > xTarget( xGroupShape_Shapes ); if( nDepth > 0 ) { - xTarget.set( this->createGroupShape( m_xLogicTarget + xTarget.set( createGroupShape( m_xLogicTarget , ObjectIdentifier::addChildParticle( m_aCID, ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_SUBGRID, nDepth-1 ) ) ) ); if(!xTarget.is()) diff --git a/chart2/source/view/axes/VCoordinateSystem.cxx b/chart2/source/view/axes/VCoordinateSystem.cxx index bf409b8341b1..741516b7159c 100644 --- a/chart2/source/view/axes/VCoordinateSystem.cxx +++ b/chart2/source/view/axes/VCoordinateSystem.cxx @@ -178,7 +178,7 @@ uno::Sequence< sal_Int32 > VCoordinateSystem::getCoordinateSystemResolution( if( nYResolution < 10 ) nYResolution = 10; - if( this->getPropertySwapXAndYAxis() ) + if( getPropertySwapXAndYAxis() ) std::swap(nXResolution,nYResolution); //2D @@ -232,7 +232,7 @@ void VCoordinateSystem::impl_adjustDimensionAndIndex( sal_Int32& rDimensionIndex { impl_adjustDimension( rDimensionIndex ); - if( rAxisIndex < 0 || rAxisIndex > this->getMaximumAxisIndexByDimension(rDimensionIndex) ) + if( rAxisIndex < 0 || rAxisIndex > getMaximumAxisIndexByDimension(rDimensionIndex) ) rAxisIndex = 0; } @@ -251,7 +251,7 @@ std::vector< ExplicitScaleData > VCoordinateSystem::getExplicitScales( sal_Int32 std::vector< ExplicitScaleData > aRet(m_aExplicitScales); impl_adjustDimensionAndIndex( nDimensionIndex, nAxisIndex ); - aRet[nDimensionIndex]=this->getExplicitScale( nDimensionIndex, nAxisIndex ); + aRet[nDimensionIndex]=getExplicitScale( nDimensionIndex, nAxisIndex ); return aRet; } @@ -261,7 +261,7 @@ std::vector< ExplicitIncrementData > VCoordinateSystem::getExplicitIncrements( s std::vector< ExplicitIncrementData > aRet(m_aExplicitIncrements); impl_adjustDimensionAndIndex( nDimensionIndex, nAxisIndex ); - aRet[nDimensionIndex]=this->getExplicitIncrement( nDimensionIndex, nAxisIndex ); + aRet[nDimensionIndex]=getExplicitIncrement( nDimensionIndex, nAxisIndex ); return aRet; } diff --git a/chart2/source/view/axes/VPolarAngleAxis.cxx b/chart2/source/view/axes/VPolarAngleAxis.cxx index 8d58afb19212..f8796f4a29e0 100644 --- a/chart2/source/view/axes/VPolarAngleAxis.cxx +++ b/chart2/source/view/axes/VPolarAngleAxis.cxx @@ -164,13 +164,13 @@ void VPolarAngleAxis::createLabels() if( m_aAxisProperties.m_bDisplayLabels ) { //get the transformed screen values for all tickmarks in aAllTickInfos - std::unique_ptr< TickFactory > apTickFactory( this->createTickFactory() ); + std::unique_ptr< TickFactory > apTickFactory( createTickFactory() ); //create tick mark text shapes //@todo: iterate through all tick depth which should be labeled EquidistantTickIter aTickIter( m_aAllTickInfos, m_aIncrement, 0 ); - this->updateUnscaledValuesAtTicks( aTickIter ); + updateUnscaledValuesAtTicks( aTickIter ); removeTextShapesFromTicks(); diff --git a/chart2/source/view/axes/VPolarCoordinateSystem.cxx b/chart2/source/view/axes/VPolarCoordinateSystem.cxx index 732157432d21..3928b5b07c9f 100644 --- a/chart2/source/view/axes/VPolarCoordinateSystem.cxx +++ b/chart2/source/view/axes/VPolarCoordinateSystem.cxx @@ -46,7 +46,7 @@ uno::Sequence< sal_Int32 > VPolarCoordinateSystem::getCoordinateSystemResolution if( aResolution.getLength() >= 2 ) { - if( this->getPropertySwapXAndYAxis() ) + if( getPropertySwapXAndYAxis() ) { aResolution[0]/=2;//radius aResolution[1]*=4;//outer circle resolution @@ -82,13 +82,13 @@ void VPolarCoordinateSystem::createVAxisList( sal_Int32 nMaxAxisIndex = m_xCooSysModel->getMaximumAxisIndexByDimension(nDimensionIndex); for( sal_Int32 nAxisIndex = 0; nAxisIndex <= nMaxAxisIndex; nAxisIndex++ ) { - Reference< XAxis > xAxis( this->getAxisByDimension(nDimensionIndex,nAxisIndex) ); + Reference< XAxis > xAxis( getAxisByDimension(nDimensionIndex,nAxisIndex) ); if(!xAxis.is() || !AxisHelper::shouldAxisBeDisplayed( xAxis, m_xCooSysModel )) continue; - AxisProperties aAxisProperties(xAxis,this->getExplicitCategoriesProvider()); + AxisProperties aAxisProperties(xAxis,getExplicitCategoriesProvider()); aAxisProperties.init(); if(aAxisProperties.m_bDisplayLabels) - aAxisProperties.m_nNumberFormatKey = this->getNumberFormatKeyForAxis(xAxis, xChartDoc); + aAxisProperties.m_nNumberFormatKey = getNumberFormatKeyForAxis(xAxis, xChartDoc); std::shared_ptr< VAxisBase > apVAxis( VPolarAxis::createAxis( aAxisProperties,xNumberFormatsSupplier,nDimensionIndex,nDimensionCount) ); tFullAxisIndex aFullAxisIndex( nDimensionIndex, nAxisIndex ); @@ -105,7 +105,7 @@ void VPolarCoordinateSystem::initVAxisInList() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); tVAxisMap::iterator aIt( m_aAxisMap.begin() ); tVAxisMap::const_iterator aEnd( m_aAxisMap.end() ); @@ -116,15 +116,15 @@ void VPolarCoordinateSystem::initVAxisInList() { sal_Int32 nDimensionIndex = aIt->first.first; sal_Int32 nAxisIndex = aIt->first.second; - pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement(nDimensionIndex, nAxisIndex) ); + pVAxis->setExplicitScaleAndIncrement( getExplicitScale( nDimensionIndex, nAxisIndex ), getExplicitIncrement(nDimensionIndex, nAxisIndex) ); pVAxis->initPlotter(m_xLogicTargetForAxes,m_xFinalTarget,m_xShapeFactory - , this->createCIDForAxis( nDimensionIndex, nAxisIndex ) ); + , createCIDForAxis( nDimensionIndex, nAxisIndex ) ); VPolarAxis* pVPolarAxis = dynamic_cast< VPolarAxis* >( pVAxis ); if( pVPolarAxis ) - pVPolarAxis->setIncrements( this->getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); + pVPolarAxis->setIncrements( getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); if(nDimensionCount==2) pVAxis->setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - pVAxis->setScales( this->getExplicitScales( nDimensionIndex, nAxisIndex ), bSwapXAndY ); + pVAxis->setScales( getExplicitScales( nDimensionIndex, nAxisIndex ), bSwapXAndY ); } } } @@ -135,7 +135,7 @@ void VPolarCoordinateSystem::updateScalesAndIncrementsOnAxes() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); tVAxisMap::iterator aIt( m_aAxisMap.begin() ); tVAxisMap::const_iterator aEnd( m_aAxisMap.end() ); @@ -146,13 +146,13 @@ void VPolarCoordinateSystem::updateScalesAndIncrementsOnAxes() { sal_Int32 nDimensionIndex = aIt->first.first; sal_Int32 nAxisIndex = aIt->first.second; - pVAxis->setExplicitScaleAndIncrement( this->getExplicitScale( nDimensionIndex, nAxisIndex ), this->getExplicitIncrement(nDimensionIndex, nAxisIndex) ); + pVAxis->setExplicitScaleAndIncrement( getExplicitScale( nDimensionIndex, nAxisIndex ), getExplicitIncrement(nDimensionIndex, nAxisIndex) ); VPolarAxis* pVPolarAxis = dynamic_cast< VPolarAxis* >( pVAxis ); if( pVPolarAxis ) - pVPolarAxis->setIncrements( this->getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); + pVPolarAxis->setIncrements( getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); if(nDimensionCount==2) pVAxis->setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - pVAxis->setScales( this->getExplicitScales( nDimensionIndex, nAxisIndex ), bSwapXAndY ); + pVAxis->setScales( getExplicitScales( nDimensionIndex, nAxisIndex ), bSwapXAndY ); } } } @@ -163,7 +163,7 @@ void VPolarCoordinateSystem::createGridShapes() return; sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); - bool bSwapXAndY = this->getPropertySwapXAndYAxis(); + bool bSwapXAndY = getPropertySwapXAndYAxis(); for( sal_Int32 nDimensionIndex=0; nDimensionIndex<3; nDimensionIndex++) { @@ -174,12 +174,12 @@ void VPolarCoordinateSystem::createGridShapes() continue; VPolarGrid aGrid(nDimensionIndex,nDimensionCount,getGridListFromAxis( xAxis )); - aGrid.setIncrements( this->getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); + aGrid.setIncrements( getExplicitIncrements( nDimensionIndex, nAxisIndex ) ); aGrid.initPlotter(m_xLogicTargetForGrids,m_xFinalTarget,m_xShapeFactory - , this->createCIDForGrid( nDimensionIndex, nAxisIndex ) ); + , createCIDForGrid( nDimensionIndex, nAxisIndex ) ); if(nDimensionCount==2) aGrid.setTransformationSceneToScreen( m_aMatrixSceneToScreen ); - aGrid.setScales( this->getExplicitScales( nDimensionIndex, nAxisIndex), bSwapXAndY ); + aGrid.setScales( getExplicitScales( nDimensionIndex, nAxisIndex), bSwapXAndY ); aGrid.createShapes(); } } diff --git a/chart2/source/view/axes/VPolarGrid.cxx b/chart2/source/view/axes/VPolarGrid.cxx index 279f38c956f2..09e0d6a237f2 100644 --- a/chart2/source/view/axes/VPolarGrid.cxx +++ b/chart2/source/view/axes/VPolarGrid.cxx @@ -106,7 +106,7 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT , const std::vector<VLineProperties>& rLinePropertiesList ) { Reference< drawing::XShapes > xMainTarget( - this->createGroupShape( xLogicTarget, m_aCID ) ); + createGroupShape( xLogicTarget, m_aCID ) ); const ExplicitScaleData& rAngleScale = m_pPosHelper->getScales()[0]; Reference< XScaling > xInverseScaling( NULL ); @@ -160,7 +160,7 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic , const std::vector<VLineProperties>& rLinePropertiesList ) { Reference< drawing::XShapes > xMainTarget( - this->createGroupShape( xLogicTarget, m_aCID ) ); + createGroupShape( xLogicTarget, m_aCID ) ); const ExplicitScaleData& rRadiusScale = m_pPosHelper->getScales()[1]; const ExplicitScaleData& rAngleScale = m_pPosHelper->getScales()[0]; @@ -182,7 +182,7 @@ void VPolarGrid::create2DRadiusGrid( const Reference< drawing::XShapes >& xLogic Reference< drawing::XShapes > xTarget( xMainTarget ); if( nDepth > 0 ) { - xTarget.set( this->createGroupShape( xLogicTarget + xTarget.set( createGroupShape( xLogicTarget , ObjectIdentifier::addChildParticle( m_aCID, ObjectIdentifier::createChildParticleWithIndex( OBJECTTYPE_SUBGRID, nDepth-1 ) ) ) ); if(!xTarget.is()) @@ -238,9 +238,9 @@ void VPolarGrid::createShapes() if(m_nDimension==2) { if(m_nDimensionIndex==1) - this->create2DRadiusGrid( m_xLogicTarget, aRadiusTickInfos, aAngleTickInfos, aLinePropertiesList ); + create2DRadiusGrid( m_xLogicTarget, aRadiusTickInfos, aAngleTickInfos, aLinePropertiesList ); //else //no Angle Grid so far as this equals exactly the y axis positions - // this->create2DAngleGrid( m_xLogicTarget, aRadiusTickInfos, aAngleTickInfos, aLinePropertiesList ); + // create2DAngleGrid( m_xLogicTarget, aRadiusTickInfos, aAngleTickInfos, aLinePropertiesList ); } } diff --git a/chart2/source/view/charttypes/AreaChart.cxx b/chart2/source/view/charttypes/AreaChart.cxx index 9ef01a23fbb2..8de84f507d43 100644 --- a/chart2/source/view/charttypes/AreaChart.cxx +++ b/chart2/source/view/charttypes/AreaChart.cxx @@ -414,7 +414,7 @@ bool AreaChart::impl_createLine( VDataSeries* pSeries uno::Reference< drawing::XShape > xShape(nullptr); if(m_nDimension==3) { - double fDepth = this->getTransformedDepth(); + double fDepth = getTransformedDepth(); sal_Int32 nPolyCount = aPoly.SequenceX.getLength(); for(sal_Int32 nPoly=0;nPoly<nPolyCount;nPoly++) { @@ -511,7 +511,7 @@ bool AreaChart::impl_createArea( VDataSeries* pSeries if(m_nDimension==3) { xShape = m_pShapeFactory->createArea3D( xSeriesGroupShape_Shapes - , aPoly, this->getTransformedDepth() ); + , aPoly, getTransformedDepth() ); } else //m_nDimension!=3 { @@ -552,7 +552,7 @@ void AreaChart::impl_createSeriesShapes() for( ; aSeriesIter != aSeriesEnd; ++aSeriesIter ) { sal_Int32 nAttachedAxisIndex = (*aSeriesIter)->getAttachedAxisIndex(); - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -699,7 +699,7 @@ void AreaChart::createShapes() if( rLogicYSumMap.find(nAttachedAxisIndex)==rLogicYSumMap.end() ) rLogicYSumMap[nAttachedAxisIndex]=0.0; - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -737,7 +737,7 @@ void AreaChart::createShapes() uno::Reference< drawing::XShapes > xSeriesGroupShape_Shapes = getSeriesGroupShapeFrontChild(*aSeriesIter, m_xSeriesTarget); sal_Int32 nAttachedAxisIndex = (*aSeriesIter)->getAttachedAxisIndex(); - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -929,7 +929,7 @@ void AreaChart::createShapes() LabelAlignment eAlignment = LABEL_ALIGN_TOP; drawing::Position3D aScenePosition3D( aScenePosition.PositionX , aScenePosition.PositionY - , aScenePosition.PositionZ+this->getTransformedDepth() ); + , aScenePosition.PositionZ+getTransformedDepth() ); sal_Int32 nLabelPlacement = pSeries->getLabelPlacement( nIndex, m_xChartTypeModel, pPosHelper->isSwapXAndY() ); diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 702b90f7569c..85fd8a8bfaa5 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -85,7 +85,7 @@ drawing::Direction3D BarChart::getPreferredDiagramAspectRatio() const if( m_nDimension == 3 ) { aRet = drawing::Direction3D(1.0,-1.0,1.0); - BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( MAIN_AXIS_INDEX) ) ); + BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( MAIN_AXIS_INDEX) ) ); if (pPosHelper) { drawing::Direction3D aScale( pPosHelper->getScaledLogicWidth() ); @@ -498,7 +498,7 @@ void BarChart::createShapes() { nAttachedAxisIndex = aXSlotIter->getAttachedAxisIndexForFirstSeries(); //2ND_AXIS_IN_BARS so far one can assume to have the same plotter for each z slot - pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( nAttachedAxisIndex ) ) ); + pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) ); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); } @@ -874,7 +874,7 @@ void BarChart::createShapes() { sal_Int32 nAttachedAxisIndex = aXSlotIter->getAttachedAxisIndexForFirstSeries(); //2ND_AXIS_IN_BARS so far one can assume to have the same plotter for each z slot - pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( nAttachedAxisIndex ) ) ); + pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) ); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); } diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx index 19c278fff217..79165ade1ff6 100644 --- a/chart2/source/view/charttypes/BubbleChart.cxx +++ b/chart2/source/view/charttypes/BubbleChart.cxx @@ -235,7 +235,7 @@ void BubbleChart::createShapes() uno::Reference< drawing::XShapes > xSeriesGroupShape_Shapes = getSeriesGroupShape(*aSeriesIter, xSeriesTarget); sal_Int32 nAttachedAxisIndex = pSeries->getAttachedAxisIndex(); - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper; PlotterBase::m_pPosHelper = pPosHelper; @@ -330,7 +330,7 @@ void BubbleChart::createShapes() LabelAlignment eAlignment = LABEL_ALIGN_TOP; drawing::Position3D aScenePosition3D( aScenePosition.PositionX , aScenePosition.PositionY - , aScenePosition.PositionZ+this->getTransformedDepth() ); + , aScenePosition.PositionZ+getTransformedDepth() ); sal_Int32 nLabelPlacement = pSeries->getLabelPlacement( nIndex, m_xChartTypeModel, pPosHelper->isSwapXAndY() ); diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx index 969fcb4550b8..294629fda718 100644 --- a/chart2/source/view/charttypes/CandleStickChart.cxx +++ b/chart2/source/view/charttypes/CandleStickChart.cxx @@ -151,7 +151,7 @@ void CandleStickChart::createShapes() { nAttachedAxisIndex = aXSlotIter->getAttachedAxisIndexForFirstSeries(); //2ND_AXIS_IN_BARS so far one can assume to have the same plotter for each z slot - pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( nAttachedAxisIndex ) ) ); + pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) ); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); } diff --git a/chart2/source/view/charttypes/NetChart.cxx b/chart2/source/view/charttypes/NetChart.cxx index 4ed5410c0729..cf80469a70af 100644 --- a/chart2/source/view/charttypes/NetChart.cxx +++ b/chart2/source/view/charttypes/NetChart.cxx @@ -265,7 +265,7 @@ void NetChart::impl_createSeriesShapes() for( ; aSeriesIter != aSeriesEnd; ++aSeriesIter ) { sal_Int32 nAttachedAxisIndex = (*aSeriesIter)->getAttachedAxisIndex(); - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -404,7 +404,7 @@ void NetChart::createShapes() if( aLogicYSumMap.find(nAttachedAxisIndex)==aLogicYSumMap.end() ) aLogicYSumMap[nAttachedAxisIndex]=0.0; - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -447,7 +447,7 @@ void NetChart::createShapes() uno::Reference< drawing::XShapes > xSeriesGroupShape_Shapes = getSeriesGroupShapeFrontChild(*aSeriesIter, m_xSeriesTarget); sal_Int32 nAttachedAxisIndex = (*aSeriesIter)->getAttachedAxisIndex(); - PlottingPositionHelper* pPosHelper = &(this->getPlottingPositionHelper( nAttachedAxisIndex )); + PlottingPositionHelper* pPosHelper = &(getPlottingPositionHelper( nAttachedAxisIndex )); if(!pPosHelper) pPosHelper = m_pMainPosHelper.get(); PlotterBase::m_pPosHelper = pPosHelper; @@ -617,7 +617,7 @@ void NetChart::createShapes() LabelAlignment eAlignment = LABEL_ALIGN_TOP; drawing::Position3D aScenePosition3D( aScenePosition.PositionX , aScenePosition.PositionY - , aScenePosition.PositionZ+this->getTransformedDepth() ); + , aScenePosition.PositionZ+getTransformedDepth() ); sal_Int32 nLabelPlacement = pSeries->getLabelPlacement( nIndex, m_xChartTypeModel, pPosHelper->isSwapXAndY() ); diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx index 272d26ad82b6..184d824ce919 100644 --- a/chart2/source/view/charttypes/PieChart.cxx +++ b/chart2/source/view/charttypes/PieChart.cxx @@ -602,7 +602,7 @@ void PieChart::createShapes() if( !bIsVisible ) continue; - aParam.mfDepth = this->getTransformedDepth() * (n3DRelativeHeight / 100.0); + aParam.mfDepth = getTransformedDepth() * (n3DRelativeHeight / 100.0); uno::Reference< drawing::XShapes > xSeriesGroupShape_Shapes = getSeriesGroupShape(pSeries, xSeriesTarget); ///collect data point information (logic coordinates, style ): @@ -773,7 +773,7 @@ PieChart::PieLabelInfo::PieLabelInfo() bool PieChart::PieLabelInfo::moveAwayFrom( const PieChart::PieLabelInfo* pFix, const awt::Size& rPageSize, bool bMoveHalfWay, bool bMoveClockwise ) { //return true if the move was successful - if(!this->bMovementAllowed) + if(!bMovementAllowed) return false; const sal_Int32 nLabelDistanceX = rPageSize.Width/50; @@ -781,7 +781,7 @@ bool PieChart::PieLabelInfo::moveAwayFrom( const PieChart::PieLabelInfo* pFix, c ///compute the rectangle representing the intersection of the label bounding ///boxes (`aOverlap`). - ::basegfx::B2IRectangle aOverlap( lcl_getRect( this->xLabelGroupShape ) ); + ::basegfx::B2IRectangle aOverlap( lcl_getRect( xLabelGroupShape ) ); aOverlap.intersect( lcl_getRect( pFix->xLabelGroupShape ) ); if( !aOverlap.isEmpty() ) { @@ -797,7 +797,7 @@ bool PieChart::PieLabelInfo::moveAwayFrom( const PieChart::PieLabelInfo* pFix, c ///`aTangentialDirection` is greater than the vertical component, ///the magnitude of the shift is equal to `aOverlap.Width` else to ///`aOverlap.Height`; - basegfx::B2IVector aRadiusDirection = this->aFirstPosition - this->aOrigin; + basegfx::B2IVector aRadiusDirection = aFirstPosition - aOrigin; aRadiusDirection.setLength(1.0); basegfx::B2IVector aTangentialDirection( -aRadiusDirection.getY(), aRadiusDirection.getX() ); bool bShiftHorizontal = abs(aTangentialDirection.getX()) > abs(aTangentialDirection.getY()); @@ -813,17 +813,17 @@ bool PieChart::PieLabelInfo::moveAwayFrom( const PieChart::PieLabelInfo* pFix, c ///`aTangentialDirection` is reversed; if(!bMoveClockwise) nShift*=-1; - awt::Point aOldPos( this->xLabelGroupShape->getPosition() ); + awt::Point aOldPos( xLabelGroupShape->getPosition() ); basegfx::B2IVector aNewPos = basegfx::B2IVector( aOldPos.X, aOldPos.Y ) + nShift*aTangentialDirection; ///a final check is performed in order to be sure that the moved label ///is still inside the page document; awt::Point aNewAWTPos( aNewPos.getX(), aNewPos.getY() ); - if( !lcl_isInsidePage( aNewAWTPos, this->xLabelGroupShape->getSize(), rPageSize ) ) + if( !lcl_isInsidePage( aNewAWTPos, xLabelGroupShape->getSize(), rPageSize ) ) return false; - this->xLabelGroupShape->setPosition( aNewAWTPos ); - this->bMoved = true; + xLabelGroupShape->setPosition( aNewAWTPos ); + bMoved = true; } return true; diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 589812594ff6..160fbd7f194d 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -299,9 +299,9 @@ uno::Reference< drawing::XShapes > VSeriesPlotter::getSeriesGroupShapeFrontChild if(!xShapes.is()) { //ensure that the series group shape is already created - uno::Reference< drawing::XShapes > xSeriesShapes( this->getSeriesGroupShape( pDataSeries, xTarget ) ); + uno::Reference< drawing::XShapes > xSeriesShapes( getSeriesGroupShape( pDataSeries, xTarget ) ); //ensure that the back child is created first - this->getSeriesGroupShapeBackChild( pDataSeries, xTarget ); + getSeriesGroupShapeBackChild( pDataSeries, xTarget ); //use series group shape as parent for the new created front group shape xShapes = createGroupShape( xSeriesShapes ); pDataSeries->m_xFrontSubGroupShape = xShapes; @@ -316,7 +316,7 @@ uno::Reference< drawing::XShapes > VSeriesPlotter::getSeriesGroupShapeBackChild( if(!xShapes.is()) { //ensure that the series group shape is already created - uno::Reference< drawing::XShapes > xSeriesShapes( this->getSeriesGroupShape( pDataSeries, xTarget ) ); + uno::Reference< drawing::XShapes > xSeriesShapes( getSeriesGroupShape( pDataSeries, xTarget ) ); //use series group shape as parent for the new created back group shape xShapes = createGroupShape( xSeriesShapes ); pDataSeries->m_xBackSubGroupShape = xShapes; @@ -350,7 +350,7 @@ uno::Reference< drawing::XShapes > VSeriesPlotter::getErrorBarsGroupShape( VData if(!xShapes.is()) { //create a group shape for this series and add to logic target: - xShapes = this->createGroupShape( xTarget,rDataSeries.getErrorBarsCID(bYError) ); + xShapes = createGroupShape( xTarget,rDataSeries.getErrorBarsCID(bYError) ); rShapeGroup = xShapes; } return xShapes; @@ -1011,7 +1011,7 @@ void VSeriesPlotter::createErrorBar_X( const drawing::Position3D& rUnscaledLogic if( xErrorBarProp.is()) { uno::Reference< drawing::XShapes > xErrorBarsGroup_Shapes( - this->getErrorBarsGroupShape(rVDataSeries, xTarget, false) ); + getErrorBarsGroupShape(rVDataSeries, xTarget, false) ); createErrorBar( xErrorBarsGroup_Shapes , rUnscaledLogicPosition, xErrorBarProp @@ -1033,7 +1033,7 @@ void VSeriesPlotter::createErrorBar_Y( const drawing::Position3D& rUnscaledLogic if( xErrorBarProp.is()) { uno::Reference< drawing::XShapes > xErrorBarsGroup_Shapes( - this->getErrorBarsGroupShape(rVDataSeries, xTarget, true) ); + getErrorBarsGroupShape(rVDataSeries, xTarget, true) ); createErrorBar( xErrorBarsGroup_Shapes , rUnscaledLogicPosition, xErrorBarProp @@ -1423,7 +1423,7 @@ double VSeriesPlotter::getMinimumYInRange( double fMinimumX, double fMaximumX, s if( !m_bCategoryXAxis || ( m_pExplicitCategoriesProvider && m_pExplicitCategoriesProvider->isDateAxis() ) ) { double fMinY, fMaxY; - this->getMinimumAndMaximiumYInContinuousXRange( fMinY, fMaxY, fMinimumX, fMaximumX, nAxisIndex ); + getMinimumAndMaximiumYInContinuousXRange( fMinY, fMaxY, fMinimumX, fMaximumX, nAxisIndex ); return fMinY; } @@ -1456,7 +1456,7 @@ double VSeriesPlotter::getMaximumYInRange( double fMinimumX, double fMaximumX, s if( !m_bCategoryXAxis || ( m_pExplicitCategoriesProvider && m_pExplicitCategoriesProvider->isDateAxis() ) ) { double fMinY, fMaxY; - this->getMinimumAndMaximiumYInContinuousXRange( fMinY, fMaxY, fMinimumX, fMaximumX, nAxisIndex ); + getMinimumAndMaximiumYInContinuousXRange( fMinY, fMaxY, fMinimumX, fMaximumX, nAxisIndex ); return fMaxY; } @@ -1975,7 +1975,7 @@ void VDataSeriesGroup::calculateYMinAndMaxForCategoryRange( double fMinimumY; ::rtl::math::setNan(&fMinimumY); double fMaximumY; ::rtl::math::setNan(&fMaximumY); - this->calculateYMinAndMaxForCategory( nCatIndex + calculateYMinAndMaxForCategory( nCatIndex , bSeparateStackingForDifferentSigns, fMinimumY, fMaximumY, nAxisIndex ); if(rfMinimumY > fMinimumY) @@ -2133,7 +2133,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntries( continue; std::vector<ViewLegendEntry> aSeriesEntries( - this->createLegendEntriesForSeries( + createLegendEntriesForSeries( rEntryKeyAspectRatio, *pSeries, xTextProperties, xTarget, xShapeFactory, xContext)); @@ -2284,8 +2284,8 @@ Reference< drawing::XShape > VSeriesPlotter::createLegendSymbolForSeries( , const Reference< lang::XMultiServiceFactory >& xShapeFactory ) { - LegendSymbolStyle eLegendSymbolStyle = this->getLegendSymbolStyle(); - uno::Any aExplicitSymbol( this->getExplicitSymbol( rSeries, -1 ) ); + LegendSymbolStyle eLegendSymbolStyle = getLegendSymbolStyle(); + uno::Any aExplicitSymbol( getExplicitSymbol( rSeries, -1 ) ); VLegendSymbolFactory::PropertyType ePropType = VLegendSymbolFactory::PropertyType::FilledSeries; @@ -2315,8 +2315,8 @@ Reference< drawing::XShape > VSeriesPlotter::createLegendSymbolForPoint( , const Reference< lang::XMultiServiceFactory >& xShapeFactory ) { - LegendSymbolStyle eLegendSymbolStyle = this->getLegendSymbolStyle(); - uno::Any aExplicitSymbol( this->getExplicitSymbol(rSeries,nPointIndex) ); + LegendSymbolStyle eLegendSymbolStyle = getLegendSymbolStyle(); + uno::Any aExplicitSymbol( getExplicitSymbol(rSeries,nPointIndex) ); VLegendSymbolFactory::PropertyType ePropType = VLegendSymbolFactory::PropertyType::FilledSeries; @@ -2393,7 +2393,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries( uno::Reference< drawing::XShapes > xSymbolGroup( AbstractShapeFactory::getOrCreateShapeFactory(xShapeFactory)->createGroup2D( xTarget )); // create the symbol - Reference< drawing::XShape > xShape( this->createLegendSymbolForPoint( rEntryKeyAspectRatio, + Reference< drawing::XShape > xShape( createLegendSymbolForPoint( rEntryKeyAspectRatio, rSeries, nIdx, xSymbolGroup, xShapeFactory ) ); // set CID to symbol for selection @@ -2422,7 +2422,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries( uno::Reference< drawing::XShapes > xSymbolGroup( AbstractShapeFactory::getOrCreateShapeFactory(xShapeFactory)->createGroup2D( xTarget )); // create the symbol - Reference< drawing::XShape > xShape( this->createLegendSymbolForSeries( + Reference< drawing::XShape > xShape( createLegendSymbolForSeries( rEntryKeyAspectRatio, rSeries, xSymbolGroup, xShapeFactory ) ); // set CID to symbol for selection diff --git a/chart2/source/view/main/DrawModelWrapper.cxx b/chart2/source/view/main/DrawModelWrapper.cxx index 613c4b5ac246..0eaab2eb4155 100644 --- a/chart2/source/view/main/DrawModelWrapper.cxx +++ b/chart2/source/view/main/DrawModelWrapper.cxx @@ -148,7 +148,7 @@ uno::Reference< uno::XInterface > DrawModelWrapper::createUnoModel() uno::Reference< frame::XModel > DrawModelWrapper::getUnoModel() { - uno::Reference< uno::XInterface > xI = this->SdrModel::getUnoModel(); + uno::Reference< uno::XInterface > xI = SdrModel::getUnoModel(); return uno::Reference<frame::XModel>::query( xI ); } @@ -159,7 +159,7 @@ SdrModel& DrawModelWrapper::getSdrModel() uno::Reference< lang::XMultiServiceFactory > DrawModelWrapper::getShapeFactory() { - uno::Reference< lang::XMultiServiceFactory > xShapeFactory( this->getUnoModel(), uno::UNO_QUERY ); + uno::Reference< lang::XMultiServiceFactory > xShapeFactory( getUnoModel(), uno::UNO_QUERY ); return xShapeFactory; } @@ -189,14 +189,14 @@ uno::Reference< drawing::XDrawPage > const & DrawModelWrapper::getMainDrawPage() //ensure that additional shapes are in front of the chart objects so create the chart root before // let us disable this call for now // TODO:moggi - // AbstractShapeFactory::getOrCreateShapeFactory(this->getShapeFactory())->getOrCreateChartRootShape( m_xMainDrawPage ); + // AbstractShapeFactory::getOrCreateShapeFactory(getShapeFactory())->getOrCreateChartRootShape( m_xMainDrawPage ); return m_xMainDrawPage; } uno::Reference< drawing::XDrawPage > const & DrawModelWrapper::getHiddenDrawPage() { if( !m_xHiddenDrawPage.is() ) { - uno::Reference< drawing::XDrawPagesSupplier > xDrawPagesSuplier( this->getUnoModel(), uno::UNO_QUERY ); + uno::Reference< drawing::XDrawPagesSupplier > xDrawPagesSuplier( getUnoModel(), uno::UNO_QUERY ); if( xDrawPagesSuplier.is() ) { uno::Reference< drawing::XDrawPages > xDrawPages( xDrawPagesSuplier->getDrawPages () ); @@ -240,13 +240,13 @@ uno::Reference< drawing::XShapes > DrawModelWrapper::getChartRootShape( void DrawModelWrapper::lockControllers() { - uno::Reference< frame::XModel > xDrawModel( this->getUnoModel() ); + uno::Reference< frame::XModel > xDrawModel( getUnoModel() ); if( xDrawModel.is()) xDrawModel->lockControllers(); } void DrawModelWrapper::unlockControllers() { - uno::Reference< frame::XModel > xDrawModel( this->getUnoModel() ); + uno::Reference< frame::XModel > xDrawModel( getUnoModel() ); if( xDrawModel.is()) xDrawModel->unlockControllers(); } @@ -258,36 +258,36 @@ OutputDevice* DrawModelWrapper::getReferenceDevice() const SfxItemPool& DrawModelWrapper::GetItemPool() { - return this->SdrModel::GetItemPool(); + return SdrModel::GetItemPool(); } XColorListRef DrawModelWrapper::GetColorList() const { - return this->SdrModel::GetColorList(); + return SdrModel::GetColorList(); } XDashListRef DrawModelWrapper::GetDashList() const { - return this->SdrModel::GetDashList(); + return SdrModel::GetDashList(); } XLineEndListRef DrawModelWrapper::GetLineEndList() const { - return this->SdrModel::GetLineEndList(); + return SdrModel::GetLineEndList(); } XGradientListRef DrawModelWrapper::GetGradientList() const { - return this->SdrModel::GetGradientList(); + return SdrModel::GetGradientList(); } XHatchListRef DrawModelWrapper::GetHatchList() const { - return this->SdrModel::GetHatchList(); + return SdrModel::GetHatchList(); } XBitmapListRef DrawModelWrapper::GetBitmapList() const { - return this->SdrModel::GetBitmapList(); + return SdrModel::GetBitmapList(); } XPatternListRef DrawModelWrapper::GetPatternList() const { - return this->SdrModel::GetPatternList(); + return SdrModel::GetPatternList(); } SdrObject* DrawModelWrapper::getNamedSdrObject( const OUString& rName ) diff --git a/chart2/source/view/main/PlottingPositionHelper.cxx b/chart2/source/view/main/PlottingPositionHelper.cxx index f378e32a4b73..b42346c1210a 100644 --- a/chart2/source/view/main/PlottingPositionHelper.cxx +++ b/chart2/source/view/main/PlottingPositionHelper.cxx @@ -87,7 +87,7 @@ PlottingPositionHelper* PlottingPositionHelper::clone() const PlottingPositionHelper* PlottingPositionHelper::createSecondaryPosHelper( const ExplicitScaleData& rSecondaryScale ) { - PlottingPositionHelper* pRet = this->clone(); + PlottingPositionHelper* pRet = clone(); pRet->m_aScales[1]=rSecondaryScale; return pRet; } @@ -175,23 +175,23 @@ uno::Reference< XTransformation > PlottingPositionHelper::getTransformationScale drawing::Position3D PlottingPositionHelper::transformLogicToScene( double fX, double fY, double fZ, bool bClip ) const { - this->doLogicScaling( &fX,&fY,&fZ ); + doLogicScaling( &fX,&fY,&fZ ); if(bClip) - this->clipScaledLogicValues( &fX,&fY,&fZ ); + clipScaledLogicValues( &fX,&fY,&fZ ); - return this->transformScaledLogicToScene( fX, fY, fZ, false ); + return transformScaledLogicToScene( fX, fY, fZ, false ); } drawing::Position3D PlottingPositionHelper::transformScaledLogicToScene( double fX, double fY, double fZ, bool bClip ) const { if( bClip ) - this->clipScaledLogicValues( &fX,&fY,&fZ ); + clipScaledLogicValues( &fX,&fY,&fZ ); drawing::Position3D aPos( fX, fY, fZ); uno::Reference< XTransformation > xTransformation = - this->getTransformationScaledLogicToScene(); + getTransformationScaledLogicToScene(); uno::Sequence< double > aSeq = xTransformation->transform( Position3DToSequence(aPos) ); return SequenceToPosition3D(aSeq); @@ -233,7 +233,7 @@ void PlottingPositionHelper::transformScaledLogicToScene( drawing::PolyPolygonSh double& fX = xValues[nP]; double& fY = yValues[nP]; double& fZ = zValues[nP]; - aScenePosition = this->transformScaledLogicToScene( fX,fY,fZ,true ); + aScenePosition = transformScaledLogicToScene( fX,fY,fZ,true ); fX = aScenePosition.PositionX; fY = aScenePosition.PositionY; fZ = aScenePosition.PositionZ; @@ -412,8 +412,8 @@ double PolarPlottingPositionHelper::getWidthAngleDegree( double& fStartLogicValu fStartLogicValueOnAngleAxis = fHelp; } - double fStartAngleDegree = this->transformToAngleDegree( fStartLogicValueOnAngleAxis ); - double fEndAngleDegree = this->transformToAngleDegree( fEndLogicValueOnAngleAxis ); + double fStartAngleDegree = transformToAngleDegree( fStartLogicValueOnAngleAxis ); + double fEndAngleDegree = transformToAngleDegree( fEndLogicValueOnAngleAxis ); double fWidthAngleDegree = fEndAngleDegree - fStartAngleDegree; if( ::rtl::math::approxEqual( fStartAngleDegree, fEndAngleDegree ) @@ -598,19 +598,19 @@ double PolarPlottingPositionHelper::transformToRadius( double fLogicValueOnRadiu drawing::Position3D PolarPlottingPositionHelper::transformLogicToScene( double fX, double fY, double fZ, bool bClip ) const { if(bClip) - this->clipLogicValues( &fX,&fY,&fZ ); + clipLogicValues( &fX,&fY,&fZ ); double fLogicValueOnAngleAxis = m_bSwapXAndY ? fY : fX; double fLogicValueOnRadiusAxis = m_bSwapXAndY ? fX : fY; - return this->transformAngleRadiusToScene( fLogicValueOnAngleAxis, fLogicValueOnRadiusAxis, fZ ); + return transformAngleRadiusToScene( fLogicValueOnAngleAxis, fLogicValueOnRadiusAxis, fZ ); } drawing::Position3D PolarPlottingPositionHelper::transformScaledLogicToScene( double fX, double fY, double fZ, bool bClip ) const { if(bClip) - this->clipScaledLogicValues( &fX,&fY,&fZ ); + clipScaledLogicValues( &fX,&fY,&fZ ); double fLogicValueOnAngleAxis = m_bSwapXAndY ? fY : fX; double fLogicValueOnRadiusAxis = m_bSwapXAndY ? fX : fY; - return this->transformAngleRadiusToScene( fLogicValueOnAngleAxis, fLogicValueOnRadiusAxis, fZ, false ); + return transformAngleRadiusToScene( fLogicValueOnAngleAxis, fLogicValueOnRadiusAxis, fZ, false ); } drawing::Position3D PolarPlottingPositionHelper::transformUnitCircleToScene( double fUnitAngleDegree, double fUnitRadius , double fLogicZ ) const @@ -629,8 +629,8 @@ drawing::Position3D PolarPlottingPositionHelper::transformUnitCircleToScene( dou drawing::Position3D PolarPlottingPositionHelper::transformAngleRadiusToScene( double fLogicValueOnAngleAxis, double fLogicValueOnRadiusAxis, double fLogicZ, bool bDoScaling ) const { - double fUnitAngleDegree = this->transformToAngleDegree(fLogicValueOnAngleAxis,bDoScaling); - double fUnitRadius = this->transformToRadius(fLogicValueOnRadiusAxis,bDoScaling); + double fUnitAngleDegree = transformToAngleDegree(fLogicValueOnAngleAxis,bDoScaling); + double fUnitRadius = transformToRadius(fLogicValueOnRadiusAxis,bDoScaling); return transformUnitCircleToScene( fUnitAngleDegree, fUnitRadius, fLogicZ ); } diff --git a/chart2/source/view/main/PolarLabelPositionHelper.cxx b/chart2/source/view/main/PolarLabelPositionHelper.cxx index a5d266f545ea..d7a71d605557 100644 --- a/chart2/source/view/main/PolarLabelPositionHelper.cxx +++ b/chart2/source/view/main/PolarLabelPositionHelper.cxx @@ -77,7 +77,7 @@ awt::Point PolarLabelPositionHelper::getLabelScreenPositionAndAlignmentForUnitCi else fRadius = fUnitCircleInnerRadius + (fUnitCircleOuterRadius-fUnitCircleInnerRadius)/2.0 ; - awt::Point aRet( this->transformSceneToScreenPosition( + awt::Point aRet( transformSceneToScreenPosition( m_pPosHelper->transformUnitCircleToScene( fAngleDegree, fRadius, fLogicZ+0.5 ) ) ); if(m_nDimensionCount==3 && nLabelPlacement == css::chart::DataLabelPlacement::OUTSIDE) @@ -85,10 +85,10 @@ awt::Point PolarLabelPositionHelper::getLabelScreenPositionAndAlignmentForUnitCi //check whether the upper or the downer edge is more distant from the center //take the farest point to put the label to - awt::Point aP0( this->transformSceneToScreenPosition( + awt::Point aP0( transformSceneToScreenPosition( m_pPosHelper->transformUnitCircleToScene( 0, 0, fLogicZ ) ) ); awt::Point aP1(aRet); - awt::Point aP2( this->transformSceneToScreenPosition( + awt::Point aP2( transformSceneToScreenPosition( m_pPosHelper->transformUnitCircleToScene( fAngleDegree, fRadius, fLogicZ-0.5 ) ) ); ::basegfx::B2DVector aV0( aP0.X, aP0.Y ); @@ -158,7 +158,7 @@ awt::Point PolarLabelPositionHelper::getLabelScreenPositionAndAlignmentForUnitCi //add a scaling independent Offset if requested if( nScreenValueOffsetInRadiusDirection != 0) { - awt::Point aOrigin( this->transformSceneToScreenPosition( + awt::Point aOrigin( transformSceneToScreenPosition( m_pPosHelper->transformUnitCircleToScene( 0.0, 0.0, fLogicZ+0.5 ) ) ); basegfx::B2IVector aDirection( aRet.X- aOrigin.X, aRet.Y- aOrigin.Y ); aDirection.setLength(nScreenValueOffsetInRadiusDirection); diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx index 1c9f6061ef9b..09c8236840a9 100644 --- a/chart2/source/view/main/VDataSeries.cxx +++ b/chart2/source/view/main/VDataSeries.cxx @@ -572,7 +572,7 @@ bool VDataSeries::hasExplicitNumberFormat( sal_Int32 nPointIndex, bool bForPerce { OUString aPropName = bForPercentage ? OUString("PercentageNumberFormat") : OUString(CHART_UNONAME_NUMFMT); bool bHasNumberFormat = false; - uno::Reference< beans::XPropertySet > xPointProp( this->getPropertiesOfPoint( nPointIndex )); + uno::Reference< beans::XPropertySet > xPointProp( getPropertiesOfPoint( nPointIndex )); sal_Int32 nNumberFormat = -1; if( xPointProp.is() && (xPointProp->getPropertyValue(aPropName) >>= nNumberFormat) ) bHasNumberFormat = true; @@ -582,7 +582,7 @@ sal_Int32 VDataSeries::getExplicitNumberFormat( sal_Int32 nPointIndex, bool bFor { OUString aPropName = bForPercentage ? OUString("PercentageNumberFormat") : OUString(CHART_UNONAME_NUMFMT); sal_Int32 nNumberFormat = -1; - uno::Reference< beans::XPropertySet > xPointProp( this->getPropertiesOfPoint( nPointIndex )); + uno::Reference< beans::XPropertySet > xPointProp( getPropertiesOfPoint( nPointIndex )); if( xPointProp.is() ) xPointProp->getPropertyValue(aPropName) >>= nNumberFormat; return nNumberFormat; @@ -625,7 +625,7 @@ sal_Int32 VDataSeries::getLabelPlacement( sal_Int32 nPointIndex, const uno::Refe sal_Int32 nLabelPlacement=0; try { - uno::Reference< beans::XPropertySet > xPointProps( this->getPropertiesOfPoint( nPointIndex ) ); + uno::Reference< beans::XPropertySet > xPointProps( getPropertiesOfPoint( nPointIndex ) ); if( xPointProps.is() ) xPointProps->getPropertyValue("LabelPlacement") >>= nLabelPlacement; @@ -807,7 +807,7 @@ Symbol* VDataSeries::getSymbolProperties( sal_Int32 index ) const adaptPointCache( index ); if (!m_apSymbolProperties_AttributedPoint) m_apSymbolProperties_AttributedPoint - = getSymbolPropertiesFromPropertySet(this->getPropertiesOfPoint(index)); + = getSymbolPropertiesFromPropertySet(getPropertiesOfPoint(index)); pRet = m_apSymbolProperties_AttributedPoint.get(); //if a single data point does not have symbols but the dataseries itself has symbols //we create an invisible symbol shape to enable selection of that point @@ -815,7 +815,7 @@ Symbol* VDataSeries::getSymbolProperties( sal_Int32 index ) const { if (!m_apSymbolProperties_Series) m_apSymbolProperties_Series - = getSymbolPropertiesFromPropertySet(this->getPropertiesOfSeries()); + = getSymbolPropertiesFromPropertySet(getPropertiesOfSeries()); if( m_apSymbolProperties_Series.get() && m_apSymbolProperties_Series->Style != SymbolStyle_NONE ) { if (!m_apSymbolProperties_InvisibleSymbolForSelection) @@ -835,7 +835,7 @@ Symbol* VDataSeries::getSymbolProperties( sal_Int32 index ) const { if (!m_apSymbolProperties_Series) m_apSymbolProperties_Series - = getSymbolPropertiesFromPropertySet(this->getPropertiesOfSeries()); + = getSymbolPropertiesFromPropertySet(getPropertiesOfSeries()); pRet = m_apSymbolProperties_Series.get(); } @@ -856,7 +856,7 @@ uno::Reference< beans::XPropertySet > VDataSeries::getXErrorBarProperties( sal_I { uno::Reference< beans::XPropertySet > xErrorBarProp; - uno::Reference< beans::XPropertySet > xPointProp( this->getPropertiesOfPoint( index )); + uno::Reference< beans::XPropertySet > xPointProp( getPropertiesOfPoint( index )); if( xPointProp.is() ) xPointProp->getPropertyValue(CHART_UNONAME_ERRORBAR_X) >>= xErrorBarProp; return xErrorBarProp; @@ -866,7 +866,7 @@ uno::Reference< beans::XPropertySet > VDataSeries::getYErrorBarProperties( sal_I { uno::Reference< beans::XPropertySet > xErrorBarProp; - uno::Reference< beans::XPropertySet > xPointProp( this->getPropertiesOfPoint( index )); + uno::Reference< beans::XPropertySet > xPointProp( getPropertiesOfPoint( index )); if( xPointProp.is() ) xPointProp->getPropertyValue(CHART_UNONAME_ERRORBAR_Y) >>= xErrorBarProp; return xErrorBarProp; @@ -879,7 +879,7 @@ bool VDataSeries::hasPointOwnColor( sal_Int32 index ) const try { - uno::Reference< beans::XPropertyState > xPointState( this->getPropertiesOfPoint(index), uno::UNO_QUERY_THROW ); + uno::Reference< beans::XPropertyState > xPointState( getPropertiesOfPoint(index), uno::UNO_QUERY_THROW ); return (xPointState->getPropertyState("Color") != beans::PropertyState_DEFAULT_VALUE ); } catch(const uno::Exception& e) @@ -905,7 +905,7 @@ bool VDataSeries::isAttributedDataPoint( sal_Int32 index ) const bool VDataSeries::isVaryColorsByPoint() const { bool bVaryColorsByPoint = false; - Reference< beans::XPropertySet > xSeriesProp( this->getPropertiesOfSeries() ); + Reference< beans::XPropertySet > xSeriesProp( getPropertiesOfSeries() ); if( xSeriesProp.is() ) xSeriesProp->getPropertyValue("VaryColorsByPoint") >>= bVaryColorsByPoint; return bVaryColorsByPoint; @@ -915,7 +915,7 @@ uno::Reference< beans::XPropertySet > VDataSeries::getPropertiesOfPoint( sal_Int { if( isAttributedDataPoint( index ) ) return m_xDataSeries->getDataPointByIndex(index); - return this->getPropertiesOfSeries(); + return getPropertiesOfSeries(); } uno::Reference<beans::XPropertySet> VDataSeries::getPropertiesOfSeries() const @@ -958,14 +958,14 @@ DataPointLabel* VDataSeries::getDataPointLabel( sal_Int32 index ) const adaptPointCache( index ); if( !m_apLabel_AttributedPoint.get() ) m_apLabel_AttributedPoint - = getDataPointLabelFromPropertySet(this->getPropertiesOfPoint(index)); + = getDataPointLabelFromPropertySet(getPropertiesOfPoint(index)); pRet = m_apLabel_AttributedPoint.get(); } else { if (!m_apLabel_Series) m_apLabel_Series - = getDataPointLabelFromPropertySet(this->getPropertiesOfPoint(index)); + = getDataPointLabelFromPropertySet(getPropertiesOfPoint(index)); pRet = m_apLabel_Series.get(); } if( !m_bAllowPercentValueInDataLabel ) @@ -978,7 +978,7 @@ DataPointLabel* VDataSeries::getDataPointLabel( sal_Int32 index ) const DataPointLabel* VDataSeries::getDataPointLabelIfLabel( sal_Int32 index ) const { - DataPointLabel* pLabel = this->getDataPointLabel( index ); + DataPointLabel* pLabel = getDataPointLabel( index ); if( !pLabel || (!pLabel->ShowNumber && !pLabel->ShowNumberInPercent && !pLabel->ShowCategoryName ) ) return nullptr; @@ -1000,7 +1000,7 @@ bool VDataSeries::getTextLabelMultiPropertyLists( sal_Int32 index // Cache these properties for this point. m_apLabelPropNames_AttributedPoint.reset(new tNameSequence); m_apLabelPropValues_AttributedPoint.reset(new tAnySequence); - xTextProp.set( this->getPropertiesOfPoint( index )); + xTextProp.set( getPropertiesOfPoint( index )); PropertyMapper::getTextLabelMultiPropertyLists( xTextProp, *m_apLabelPropNames_AttributedPoint, *m_apLabelPropValues_AttributedPoint); bDoDynamicFontResize = true; @@ -1015,7 +1015,7 @@ bool VDataSeries::getTextLabelMultiPropertyLists( sal_Int32 index // Cache these properties for the whole series. m_apLabelPropNames_Series.reset(new tNameSequence); m_apLabelPropValues_Series.reset(new tAnySequence); - xTextProp.set( this->getPropertiesOfPoint( index )); + xTextProp.set( getPropertiesOfPoint( index )); PropertyMapper::getTextLabelMultiPropertyLists( xTextProp, *m_apLabelPropNames_Series, *m_apLabelPropValues_Series); bDoDynamicFontResize = true; diff --git a/chart2/source/view/main/VLineProperties.cxx b/chart2/source/view/main/VLineProperties.cxx index 614770a199de..76cddf36f94c 100644 --- a/chart2/source/view/main/VLineProperties.cxx +++ b/chart2/source/view/main/VLineProperties.cxx @@ -29,10 +29,10 @@ using namespace ::com::sun::star; VLineProperties::VLineProperties() { - this->Color <<= sal_Int32(0x000000); //type sal_Int32 UNO_NAME_LINECOLOR - this->LineStyle <<= drawing::LineStyle_SOLID; //type drawing::LineStyle for property UNO_NAME_LINESTYLE - this->Transparence <<= sal_Int16(0);//type sal_Int16 for property UNO_NAME_LINETRANSPARENCE - this->Width <<= sal_Int32(0);//type sal_Int32 for property UNO_NAME_LINEWIDTH + Color <<= sal_Int32(0x000000); //type sal_Int32 UNO_NAME_LINECOLOR + LineStyle <<= drawing::LineStyle_SOLID; //type drawing::LineStyle for property UNO_NAME_LINESTYLE + Transparence <<= sal_Int16(0);//type sal_Int16 for property UNO_NAME_LINETRANSPARENCE + Width <<= sal_Int32(0);//type sal_Int32 for property UNO_NAME_LINEWIDTH } void VLineProperties::initFromPropertySet( const uno::Reference< beans::XPropertySet >& xProp ) @@ -41,11 +41,11 @@ void VLineProperties::initFromPropertySet( const uno::Reference< beans::XPropert { try { - this->Color = xProp->getPropertyValue( "LineColor" ); - this->LineStyle = xProp->getPropertyValue( "LineStyle" ); - this->Transparence = xProp->getPropertyValue( "LineTransparence" ); - this->Width = xProp->getPropertyValue( "LineWidth" ); - this->DashName = xProp->getPropertyValue( "LineDashName" ); + Color = xProp->getPropertyValue( "LineColor" ); + LineStyle = xProp->getPropertyValue( "LineStyle" ); + Transparence = xProp->getPropertyValue( "LineTransparence" ); + Width = xProp->getPropertyValue( "LineWidth" ); + DashName = xProp->getPropertyValue( "LineDashName" ); } catch( const uno::Exception& e ) { @@ -53,7 +53,7 @@ void VLineProperties::initFromPropertySet( const uno::Reference< beans::XPropert } } else - this->LineStyle <<= drawing::LineStyle_NONE; + LineStyle <<= drawing::LineStyle_NONE; } bool VLineProperties::isLineVisible() const @@ -61,11 +61,11 @@ bool VLineProperties::isLineVisible() const bool bRet = false; drawing::LineStyle aLineStyle(drawing::LineStyle_SOLID); - this->LineStyle >>= aLineStyle; + LineStyle >>= aLineStyle; if( aLineStyle != drawing::LineStyle_NONE ) { sal_Int16 nLineTransparence=0; - this->Transparence >>= nLineTransparence; + Transparence >>= nLineTransparence; if(nLineTransparence!=100) { bRet = true; |