diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-12 15:09:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 10:52:46 +0200 |
commit | 70a30fd179266f65500b880ccb0f87011b670fca (patch) | |
tree | 881d1723620d030171ff3de9bad2cc96f80994ed /chart2/source/controller/dialogs | |
parent | 9045d0bf35c9b4d5f6d8f791017124341abf8d4f (diff) |
loplugin: defaultparams
Change-Id: I65c0ed65b20f606cf1409a3158ff1ef1e2d6cd9f
Diffstat (limited to 'chart2/source/controller/dialogs')
11 files changed, 39 insertions, 39 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx index d967d6d79808..37f259ec8b5b 100644 --- a/chart2/source/controller/dialogs/DataBrowserModel.cxx +++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx @@ -915,7 +915,7 @@ void DataBrowserModel::updateFromModel() } // add ranges for error bars if present for a series - if( StatisticsHelper::usesErrorBarRanges( aSeries[nSeriesIdx], /* bYError = */ true )) + if( StatisticsHelper::usesErrorBarRanges( aSeries[nSeriesIdx] )) addErrorBarRanges( aSeries[nSeriesIdx], nYAxisNumberFormatKey, nSeqIdx, nHeaderEnd, true ); if( StatisticsHelper::usesErrorBarRanges( aSeries[nSeriesIdx], /* bYError = */ false )) diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx index 6f0e30738e29..cab2df17b2f3 100644 --- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx +++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx @@ -617,7 +617,7 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe { Reference< chart2::XDataSeries > xSeries( ObjectIdentifier::getDataSeriesForCID(rObjectCID , xChartModel)); Reference< chart2::XRegressionCurveContainer > xCurveCnt( xSeries, uno::UNO_QUERY ); - aRet += getName(eObjectType, false); + aRet += getName(eObjectType); if( xCurveCnt.is()) { @@ -685,12 +685,12 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe else { // non-verbose - aRet = ObjectNameProvider::getName( eObjectType, false ); + aRet = ObjectNameProvider::getName( eObjectType ); } } else { - aRet = ObjectNameProvider::getName( eObjectType, false ); + aRet = ObjectNameProvider::getName( eObjectType ); } return aRet; } @@ -833,7 +833,7 @@ OUString ObjectNameProvider::getName_ObjectForSeries( if( xSeries.is() ) { OUString aRet = SCH_RESSTR(STR_OBJECT_FOR_SERIES); - replaceParamterInString( aRet, "%OBJECTNAME", getName( eObjectType, false /*bPlural*/ ) ); + replaceParamterInString( aRet, "%OBJECTNAME", getName( eObjectType ) ); replaceParamterInString( aRet, "%SERIESNAME", lcl_getDataSeriesName( rSeriesCID, xChartModel ) ); return aRet; } diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx index 6f0d2b8ec022..5ee6d2afc6b8 100644 --- a/chart2/source/controller/dialogs/res_DataLabel.cxx +++ b/chart2/source/controller/dialogs/res_DataLabel.cxx @@ -77,7 +77,7 @@ void lcl_setBoolItemToCheckBox( const SfxItemSet& rInAttrs, sal_uInt16 nWhichId, rCheckbox.Check( static_cast<const SfxBoolItem*>(pPoolItem)->GetValue() ); else { - rCheckbox.EnableTriState( true ); + rCheckbox.EnableTriState(); rCheckbox.SetState( TRISTATE_INDET ); } } diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx index ce21c1c31c88..0bace68f9495 100644 --- a/chart2/source/controller/dialogs/res_LegendPosition.cxx +++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx @@ -188,16 +188,16 @@ void LegendPositionResources::initFromItemSet( const SfxItemSet& rInAttrs ) switch( nLegendPosition ) { case chart2::LegendPosition_LINE_START: - m_pRbtLeft->Check(true); + m_pRbtLeft->Check(); break; case chart2::LegendPosition_PAGE_START: - m_pRbtTop->Check(true); + m_pRbtTop->Check(); break; case chart2::LegendPosition_LINE_END: - m_pRbtRight->Check(true); + m_pRbtRight->Check(); break; case chart2::LegendPosition_PAGE_END: - m_pRbtBottom->Check(true); + m_pRbtBottom->Check(); break; default: break; diff --git a/chart2/source/controller/dialogs/res_Trendline.cxx b/chart2/source/controller/dialogs/res_Trendline.cxx index acc8d0872502..98f1641c9f06 100644 --- a/chart2/source/controller/dialogs/res_Trendline.cxx +++ b/chart2/source/controller/dialogs/res_Trendline.cxx @@ -179,7 +179,7 @@ void TrendlineResources::Reset( const SfxItemSet& rInAttrs ) aState = rInAttrs.GetItemState( SCHATTR_REGRESSION_SET_INTERCEPT, true, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCB_SetIntercept->EnableTriState( true ); + m_pCB_SetIntercept->EnableTriState(); m_pCB_SetIntercept->SetState( TRISTATE_INDET ); } else @@ -192,7 +192,7 @@ void TrendlineResources::Reset( const SfxItemSet& rInAttrs ) aState = rInAttrs.GetItemState( SCHATTR_REGRESSION_SHOW_EQUATION, true, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCB_ShowEquation->EnableTriState( true ); + m_pCB_ShowEquation->EnableTriState(); m_pCB_ShowEquation->SetState( TRISTATE_INDET ); } else @@ -205,7 +205,7 @@ void TrendlineResources::Reset( const SfxItemSet& rInAttrs ) aState = rInAttrs.GetItemState( SCHATTR_REGRESSION_SHOW_COEFF, true, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCB_ShowCorrelationCoeff->EnableTriState( true ); + m_pCB_ShowCorrelationCoeff->EnableTriState(); m_pCB_ShowCorrelationCoeff->SetState( TRISTATE_INDET ); } else diff --git a/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx b/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx index 7c866eed86b5..0e48c337d3f4 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx @@ -113,9 +113,9 @@ ThreeD_SceneAppearance_TabPage::ThreeD_SceneAppearance_TabPage( m_pCB_Shading->SetToggleHdl( LINK( this, ThreeD_SceneAppearance_TabPage, SelectShading ) ); m_pCB_ObjectLines->SetToggleHdl( LINK( this, ThreeD_SceneAppearance_TabPage, SelectRoundedEdgeOrObjectLines ) ); - m_pCB_RoundedEdge->EnableTriState( true ); - m_pCB_Shading->EnableTriState( true ); - m_pCB_ObjectLines->EnableTriState( true ); + m_pCB_RoundedEdge->EnableTriState(); + m_pCB_Shading->EnableTriState(); + m_pCB_ObjectLines->EnableTriState(); initControlsFromModel(); } @@ -217,11 +217,11 @@ void ThreeD_SceneAppearance_TabPage::initControlsFromModel() else if(aProps.m_aShadeMode == drawing::ShadeMode_SMOOTH) { m_pCB_Shading->EnableTriState( false ); - m_pCB_Shading->Check(true); + m_pCB_Shading->Check(); } else { - m_pCB_Shading->EnableTriState( true ); + m_pCB_Shading->EnableTriState(); m_pCB_Shading->SetState( TRISTATE_INDET ); } @@ -233,18 +233,18 @@ void ThreeD_SceneAppearance_TabPage::initControlsFromModel() else if(aProps.m_nObjectLines==1) { m_pCB_ObjectLines->EnableTriState( false ); - m_pCB_ObjectLines->Check(true); + m_pCB_ObjectLines->Check(); } else { - m_pCB_ObjectLines->EnableTriState( true ); + m_pCB_ObjectLines->EnableTriState(); m_pCB_ObjectLines->SetState( TRISTATE_INDET ); } if(aProps.m_nRoundedEdges >= 5) { m_pCB_RoundedEdge->EnableTriState( false ); - m_pCB_RoundedEdge->Check(true); + m_pCB_RoundedEdge->Check(); } else if(aProps.m_nRoundedEdges<0) { @@ -253,7 +253,7 @@ void ThreeD_SceneAppearance_TabPage::initControlsFromModel() } else { - m_pCB_RoundedEdge->EnableTriState( true ); + m_pCB_RoundedEdge->EnableTriState(); m_pCB_RoundedEdge->Check(false); } m_pCB_RoundedEdge->Enable( !m_pCB_ObjectLines->IsChecked() ); diff --git a/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx b/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx index 7c76e18a6e12..b1cf19fbf44f 100644 --- a/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx +++ b/chart2/source/controller/dialogs/tp_3D_SceneGeometry.cxx @@ -283,7 +283,7 @@ IMPL_LINK_NOARG(ThreeD_SceneGeometry_TabPage, RightAngledAxesToggled) m_pMFZRotation->SetValue(m_nZRotation); } - ThreeDHelper::switchRightAngledAxes( m_xSceneProperties, m_pCbxRightAngledAxes->IsChecked(), true /*bRotateLights*/ ); + ThreeDHelper::switchRightAngledAxes( m_xSceneProperties, m_pCbxRightAngledAxes->IsChecked() ); return 0; } diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.cxx b/chart2/source/controller/dialogs/tp_AxisLabel.cxx index 7859bb61de45..9fac6a5c3824 100644 --- a/chart2/source/controller/dialogs/tp_AxisLabel.cxx +++ b/chart2/source/controller/dialogs/tp_AxisLabel.cxx @@ -61,7 +61,7 @@ SchAxisLabelTabPage::SchAxisLabelTabPage( vcl::Window* pParent, const SfxItemSet get(m_pFtABCD,"labelABCD"); m_pCtrlDial->SetText(m_pFtABCD->GetText()); m_pOrientHlp = new svx::OrientationHelper(*m_pCtrlDial, *m_pNfRotate, *m_pCbStacked); - m_pOrientHlp->Enable( true ); + m_pOrientHlp->Enable(); m_pCbStacked->EnableTriState( false ); m_pOrientHlp->AddDependentWindow( *m_pFlOrient ); @@ -162,7 +162,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) SfxItemState aState = rInAttrs->GetItemState( SCHATTR_AXIS_SHOWDESCR, false, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCbShowDescription->EnableTriState( true ); + m_pCbShowDescription->EnableTriState(); m_pCbShowDescription->SetState( TRISTATE_INDET ); } else @@ -210,7 +210,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) aState = rInAttrs->GetItemState( SCHATTR_AXIS_LABEL_OVERLAP, false, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCbTextOverlap->EnableTriState( true ); + m_pCbTextOverlap->EnableTriState(); m_pCbTextOverlap->SetState( TRISTATE_INDET ); } else @@ -229,7 +229,7 @@ void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs ) aState = rInAttrs->GetItemState( SCHATTR_AXIS_LABEL_BREAK, false, &pPoolItem ); if( aState == SfxItemState::DONTCARE ) { - m_pCbTextBreak->EnableTriState( true ); + m_pCbTextBreak->EnableTriState(); m_pCbTextBreak->SetState( TRISTATE_INDET ); } else diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx index f27f8e8cf64c..4a430b9efb84 100644 --- a/chart2/source/controller/dialogs/tp_Scale.cxx +++ b/chart2/source/controller/dialogs/tp_Scale.cxx @@ -342,12 +342,12 @@ void ScaleTabPage::Reset(const SfxItemSet* rInAttrs) m_pLB_AxisType->SelectEntryPos( nPos ); } - m_pCbxAutoMin->Check( true ); - m_pCbxAutoMax->Check( true ); - m_pCbxAutoStepMain->Check( true ); - m_pCbxAutoStepHelp->Check( true ); - m_pCbxAutoOrigin->Check( true ); - m_pCbx_AutoTimeResolution->Check( true ); + m_pCbxAutoMin->Check(); + m_pCbxAutoMax->Check(); + m_pCbxAutoStepMain->Check(); + m_pCbxAutoStepHelp->Check(); + m_pCbxAutoOrigin->Check(); + m_pCbx_AutoTimeResolution->Check(); if (rInAttrs->GetItemState(SCHATTR_AXIS_AUTO_MIN,true,&pPoolItem) == SfxItemState::SET) m_pCbxAutoMin->Check(static_cast<const SfxBoolItem*>(pPoolItem)->GetValue()); diff --git a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx index e6d372178752..06a4e5d3fbf5 100644 --- a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx +++ b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx @@ -141,14 +141,14 @@ void SchOptionTabPage::Reset(const SfxItemSet* rInAttrs) { const SfxPoolItem *pPoolItem = NULL; - m_pRbtAxis1->Check(true); + m_pRbtAxis1->Check(); m_pRbtAxis2->Check(false); if (rInAttrs->GetItemState(SCHATTR_AXIS,true, &pPoolItem) == SfxItemState::SET) { long nVal=static_cast<const SfxInt32Item*>(pPoolItem)->GetValue(); if(nVal==CHART_AXIS_SECONDARY_Y) { - m_pRbtAxis2->Check(true); + m_pRbtAxis2->Check(); m_pRbtAxis1->Check(false); } } @@ -214,11 +214,11 @@ void SchOptionTabPage::Reset(const SfxItemSet* rInAttrs) long nVal=static_cast<const SfxInt32Item*>(pPoolItem)->GetValue(); if(nVal==::com::sun::star::chart::MissingValueTreatment::LEAVE_GAP) - m_pRB_DontPaint->Check(true); + m_pRB_DontPaint->Check(); else if(nVal==::com::sun::star::chart::MissingValueTreatment::USE_ZERO) - m_pRB_AssumeZero->Check(true); + m_pRB_AssumeZero->Check(); else if(nVal==::com::sun::star::chart::MissingValueTreatment::CONTINUE) - m_pRB_ContinueLine->Check(true); + m_pRB_ContinueLine->Check(); } else { diff --git a/chart2/source/controller/dialogs/tp_TitleRotation.cxx b/chart2/source/controller/dialogs/tp_TitleRotation.cxx index 25fa53dde0b8..42326214a03e 100644 --- a/chart2/source/controller/dialogs/tp_TitleRotation.cxx +++ b/chart2/source/controller/dialogs/tp_TitleRotation.cxx @@ -46,7 +46,7 @@ SchAlignmentTabPage::SchAlignmentTabPage(vcl::Window* pWindow, m_pOrientHlp = new svx::OrientationHelper(*m_pCtrlDial, *m_pNfRotate, *m_pCbStacked); m_pCbStacked->EnableTriState( false ); - m_pOrientHlp->Enable( true ); + m_pOrientHlp->Enable(); m_pOrientHlp->AddDependentWindow( *m_pFtRotate, TRISTATE_TRUE ); if( !bWithRotation ) |