summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-12 15:10:57 +0200
committerNoel Grandin <noel@peralex.com>2015-08-14 11:21:53 +0200
commit9b7eda2b4c4ef88967f156450e8bf1fb7ca1669a (patch)
tree1cb55f9b3cf9dd40357ddb479b3edd7f6fda242b
parent33fe6b93114964c7578f34df28211d846966a5a4 (diff)
loplugin: defaultparams
Change-Id: Ibf8328d5000d82d09d5621d3701039bcbdb49407
-rw-r--r--sc/source/ui/Accessibility/AccessibleEditObject.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx2
-rw-r--r--sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx4
-rw-r--r--sc/source/ui/StatisticsDialogs/SamplingDialog.cxx2
-rw-r--r--sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx2
-rw-r--r--sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx2
-rw-r--r--sc/source/ui/app/drwtrans.cxx2
-rw-r--r--sc/source/ui/app/inputhdl.cxx28
-rw-r--r--sc/source/ui/app/inputwin.cxx2
-rw-r--r--sc/source/ui/app/scmod.cxx2
-rw-r--r--sc/source/ui/app/transobj.cxx6
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx2
-rw-r--r--sc/source/ui/dbgui/PivotLayoutDialog.cxx14
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx12
-rw-r--r--sc/source/ui/dbgui/foptmgr.cxx4
-rw-r--r--sc/source/ui/dbgui/scendlg.cxx6
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx2
-rw-r--r--sc/source/ui/dbgui/scuiimoptdlg.cxx2
-rw-r--r--sc/source/ui/dbgui/sfiltdlg.cxx2
-rw-r--r--sc/source/ui/dbgui/textimportoptions.cxx2
-rw-r--r--sc/source/ui/dbgui/tpsort.cxx4
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx4
22 files changed, 55 insertions, 55 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
index c68816548c6f..f0dc5ef604a3 100644
--- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx
+++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
@@ -122,7 +122,7 @@ void ScAccessibleEditObject::GotFocus()
mbHasFocus = true;
CommitFocusGained();
if (mpTextHelper)
- mpTextHelper->SetFocus(true);
+ mpTextHelper->SetFocus();
}
//===== XInterface ==========================================================
@@ -376,7 +376,7 @@ void ScAccessibleEditObject::CreateTextHelper()
const ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl();
if ( pInputHdl && pInputHdl->IsEditMode() )
{
- mpTextHelper->SetFocus(true);
+ mpTextHelper->SetFocus();
}
else
{
diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
index fd790c3c3e31..682debe381ad 100644
--- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
+++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
@@ -730,7 +730,7 @@ void ScAccessibleSpreadsheet::RemoveSelection(ScMarkData &refScMarkData)
for(; miRemove != m_mapSelectionSend.end() ;)
{
if (refScMarkData.IsCellMarked(miRemove->first.Col(),miRemove->first.Row(),true) ||
- refScMarkData.IsCellMarked(miRemove->first.Col(),miRemove->first.Row(),false) )
+ refScMarkData.IsCellMarked(miRemove->first.Col(),miRemove->first.Row()) )
{
++miRemove;
continue;
diff --git a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
index 6a7467d16fb7..ddd48bdcfc19 100644
--- a/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx
@@ -110,7 +110,7 @@ ScAnalysisOfVarianceDialog::ScAnalysisOfVarianceDialog(
mpSingleFactorRadio->SetToggleHdl( LINK( this, ScAnalysisOfVarianceDialog, FactorChanged ) );
mpTwoFactorRadio->SetToggleHdl( LINK( this, ScAnalysisOfVarianceDialog, FactorChanged ) );
- mpSingleFactorRadio->Check(true);
+ mpSingleFactorRadio->Check();
mpTwoFactorRadio->Check(false);
FactorChanged(NULL);
@@ -525,7 +525,7 @@ void ScAnalysisOfVarianceDialog::AnovaTwoFactor(AddressWalkerWriter& output, For
// Degree of freedom
aTemplate.setTemplate("=%TOTAL_DF% - %ROW_DF% - %COLUMN_DF%");
- aTemplate.applyAddress("%TOTAL_DF%", output.current(0,1,0));
+ aTemplate.applyAddress("%TOTAL_DF%", output.current(0,1));
aTemplate.autoReplaceAddress("%ERROR_DF%", output.current());
output.writeFormula(aTemplate.getTemplate());
output.nextColumn();
diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
index f423d6f3148d..95ce7e55252a 100644
--- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx
@@ -108,7 +108,7 @@ void ScSamplingDialog::Init()
mpSampleSize->SetMax( SAL_MAX_INT64 );
mpOutputRangeEdit->GrabFocus();
- mpPeriodicMethodRadio->Check(true);
+ mpPeriodicMethodRadio->Check();
ToggleSamplingMethod(NULL);
}
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
index 54b623a7dea4..54f13b5af62e 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsInputOutputDialog.cxx
@@ -128,7 +128,7 @@ void ScStatisticsInputOutputDialog::Init()
mpGroupByColumnsRadio->SetToggleHdl( LINK( this, ScStatisticsInputOutputDialog, GroupByChanged ) );
mpGroupByRowsRadio->SetToggleHdl( LINK( this, ScStatisticsInputOutputDialog, GroupByChanged ) );
- mpGroupByColumnsRadio->Check(true);
+ mpGroupByColumnsRadio->Check();
mpGroupByRowsRadio->Check(false);
}
diff --git a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
index ce7cdf7744ba..b39fb1605bb4 100644
--- a/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/StatisticsTwoVariableDialog.cxx
@@ -113,7 +113,7 @@ void ScStatisticsTwoVariableDialog::Init()
mpGroupByColumnsRadio->SetToggleHdl( LINK( this, ScStatisticsTwoVariableDialog, GroupByChanged ) );
mpGroupByRowsRadio->SetToggleHdl( LINK( this, ScStatisticsTwoVariableDialog, GroupByChanged ) );
- mpGroupByColumnsRadio->Check(true);
+ mpGroupByColumnsRadio->Check();
mpGroupByRowsRadio->Check(false);
}
diff --git a/sc/source/ui/app/drwtrans.cxx b/sc/source/ui/app/drwtrans.cxx
index 8662cf4fed25..a0883bfd0ce9 100644
--- a/sc/source/ui/app/drwtrans.cxx
+++ b/sc/source/ui/app/drwtrans.cxx
@@ -556,7 +556,7 @@ bool ScDrawTransferObj::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, voi
::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );
// write document storage
- pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, false, false );
+ pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, false );
// mba: no relative URLs for clipboard!
SfxMedium aMedium( xWorkStore, OUString() );
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 09308b8e8ae7..f1b18377234a 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -320,7 +320,7 @@ static void lcl_Replace( EditView* pView, const OUString& rNewStr, const ESelect
// Dummy InsertText for Update and Paint
// To do that we need to cancel the selection from above (before QuickInsertText)
- pView->InsertText( EMPTY_OUSTRING, false );
+ pView->InsertText( EMPTY_OUSTRING );
sal_Int32 nLen = pEngine->GetTextLen(0);
ESelection aSel( 0, nLen, 0, nLen );
@@ -372,7 +372,7 @@ void ScInputHandler::UpdateRange( sal_uInt16 nIndex, const ScRange& rNew )
}
EditView* pActiveView = pTopView ? pTopView : pTableView;
- pActiveView->ShowCursor( false, true );
+ pActiveView->ShowCursor( false );
}
else
{
@@ -1195,7 +1195,7 @@ void completeFunction( EditView* pView, const OUString& rInsert, bool& rParInser
}
}
- pView->InsertText( aInsStr, false );
+ pView->InsertText( aInsStr );
if ( bDoParen ) // Put cursor between parentheses
{
@@ -1503,12 +1503,12 @@ void ScInputHandler::UseColData() // When typing
// When editing in input line, apply to both edit views
if ( pTableView )
{
- pTableView->InsertText( aIns, false );
+ pTableView->InsertText( aIns );
pTableView->SetSelection( aSelection );
}
if ( pTopView )
{
- pTopView->InsertText( aIns, false );
+ pTopView->InsertText( aIns );
pTopView->SetSelection( aSelection );
}
@@ -1566,7 +1566,7 @@ void ScInputHandler::NextAutoEntry( bool bBack )
if ( pTableView )
{
pTableView->DeleteSelected();
- pTableView->InsertText( aIns, false );
+ pTableView->InsertText( aIns );
pTableView->SetSelection( ESelection(
aSel.nEndPara, aSel.nStartPos + aIns.getLength(),
aSel.nEndPara, aSel.nStartPos ) );
@@ -1574,7 +1574,7 @@ void ScInputHandler::NextAutoEntry( bool bBack )
if ( pTopView )
{
pTopView->DeleteSelected();
- pTopView->InsertText( aIns, false );
+ pTopView->InsertText( aIns );
pTopView->SetSelection( ESelection(
aSel.nEndPara, aSel.nStartPos + aIns.getLength(),
aSel.nEndPara, aSel.nStartPos ) );
@@ -1632,7 +1632,7 @@ void ScInputHandler::UpdateParenthesis()
pEngine->QuickSetAttribs( aSet, aSelOther );
// Dummy InsertText for Update and Paint (selection is empty)
- pTableView->InsertText( EMPTY_OUSTRING, false );
+ pTableView->InsertText( EMPTY_OUSTRING );
bFound = true;
}
@@ -1706,7 +1706,7 @@ void ScInputHandler::UpdateActiveView()
sal_uInt16 nCount = pEngine->GetViewCount();
if (nCount > 0)
{
- pTableView = pEngine->GetView(0);
+ pTableView = pEngine->GetView();
for (sal_uInt16 i=1; i<nCount; i++)
{
EditView* pThis = pEngine->GetView(i);
@@ -1840,7 +1840,7 @@ void ScInputHandler::RemoveRangeFinder()
pEngine->SetUpdateMode(true);
EditView* pActiveView = pTopView ? pTopView : pTableView;
- pActiveView->ShowCursor( false, true );
+ pActiveView->ShowCursor( false );
DeleteRangeFinder(); // Deletes the list and the labels on the table
}
@@ -2822,9 +2822,9 @@ void ScInputHandler::AddRefEntry()
RemoveSelection();
if (pTableView)
- pTableView->InsertText( OUString(cSep), false );
+ pTableView->InsertText( OUString(cSep) );
if (pTopView)
- pTopView->InsertText( OUString(cSep), false );
+ pTopView->InsertText( OUString(cSep) );
DataChanged();
}
@@ -2950,7 +2950,7 @@ void ScInputHandler::InsertFunction( const OUString& rFuncName, bool bAddPar )
if (pTableView)
{
- pTableView->InsertText( aText, false );
+ pTableView->InsertText( aText );
if (bAddPar)
{
ESelection aSel = pTableView->GetSelection();
@@ -2961,7 +2961,7 @@ void ScInputHandler::InsertFunction( const OUString& rFuncName, bool bAddPar )
}
if (pTopView)
{
- pTopView->InsertText( aText, false );
+ pTopView->InsertText( aText );
if (bAddPar)
{
ESelection aSel = pTopView->GetSelection();
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index de0f33765526..57288e033ae9 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -448,7 +448,7 @@ void ScInputWindow::Select()
const bool bContinue = ( i != 0 );
if ( !pViewSh->AutoSum( aRange, bSubTotal, bSetCursor, bContinue ) )
{
- pViewSh->MarkRange( aRange, false, false );
+ pViewSh->MarkRange( aRange, false );
pViewSh->SetCursor( aRange.aEnd.Col(), aRange.aEnd.Row() );
const ScRangeList aRangeList;
ScAddress aAddr = aRange.aEnd;
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index d6b6726d0a0b..6a8a3429ce56 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -571,7 +571,7 @@ void ScModule::Execute( SfxRequest& rReq )
void ScModule::GetState( SfxItemSet& rSet )
{
ScDocShell* pDocSh = PTR_CAST(ScDocShell, SfxObjectShell::Current());
- bool bTabView = pDocSh && (pDocSh->GetBestViewShell(true) != NULL);
+ bool bTabView = pDocSh && (pDocSh->GetBestViewShell() != NULL);
SfxWhichIter aIter(rSet);
for (sal_uInt16 nWhich = aIter.FirstWhich(); nWhich; nWhich = aIter.NextWhich())
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 11a696f2b196..ade33871b2a2 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -368,7 +368,7 @@ bool ScTransferObj::GetData( const datatransfer::DataFlavor& rFlavor, const OUSt
aMtf.SetPrefMapMode( aMapMode );
aMtf.Record( pVDev );
- pEmbObj->DoDraw( pVDev, Point(), aVisArea.GetSize(), JobSetup(), ASPECT_CONTENT );
+ pEmbObj->DoDraw( pVDev, Point(), aVisArea.GetSize(), JobSetup() );
aMtf.Stop();
aMtf.WindStart();
@@ -445,7 +445,7 @@ bool ScTransferObj::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, void* p
::comphelper::OStorageHelper::GetStorageFromURL( aTempFile.GetURL(), embed::ElementModes::READWRITE );
// write document storage
- pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, false, false );
+ pEmbObj->SetupStorage( xWorkStore, SOFFICE_FILEFORMAT_CURRENT, false );
// mba: no relative URLs for clipboard!
SfxMedium aMedium( xWorkStore, OUString() );
@@ -649,7 +649,7 @@ void ScTransferObj::InitDocShell(bool bLimitToPageSize)
rDestDoc.CopyFromClip( aDestRange, aDestMark, IDF_ALL, NULL, pDoc, false );
pDoc->SetClipArea( aDestRange, bWasCut );
- StripRefs( pDoc, nStartX,nStartY, nEndX,nEndY, &rDestDoc, 0,0 );
+ StripRefs( pDoc, nStartX,nStartY, nEndX,nEndY, &rDestDoc, 0 );
ScRange aMergeRange = aDestRange;
rDestDoc.ExtendMerge( aMergeRange, true );
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index b4dc71b3ac1f..a9fa128d92e5 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1243,7 +1243,7 @@ IMPL_LINK_NOARG(ScCheckListMenuWindow, EdModifyHdl)
if ( aLabelDisp.toAsciiLowerCase().indexOf( aSearchText ) != -1 )
{
- maChecks->ShowCheckEntry( aLabelDisp, maMembers[i].mpParent, true, true );
+ maChecks->ShowCheckEntry( aLabelDisp, maMembers[i].mpParent, true );
++nSelCount;
}
else
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
index 812a786c6dd5..0512a142a3c5 100644
--- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
@@ -276,13 +276,13 @@ void ScPivotLayoutDialog::SetupSource()
if (bIsNamedRange)
{
- mpSourceListBox->SelectEntry(sSourceNamedRangeName, true);
- mpSourceRadioNamedRange->Check(true);
+ mpSourceListBox->SelectEntry(sSourceNamedRangeName);
+ mpSourceRadioNamedRange->Check();
}
else
{
- mpSourceListBox->SelectEntryPos(0, true);
- mpSourceRadioSelection->Check(true);
+ mpSourceListBox->SelectEntryPos(0);
+ mpSourceRadioSelection->Check();
}
// If entries - select first entry, otherwise disable the radio button.
@@ -311,14 +311,14 @@ void ScPivotLayoutDialog::SetupDestination()
// If entries - select first entry, otherwise disable the radio button.
if (mpDestinationListBox->GetEntryCount() > 0)
- mpDestinationListBox->SelectEntryPos(0, true);
+ mpDestinationListBox->SelectEntryPos(0);
else
mpDestinationRadioNamedRange->Disable();
//
if (mbNewPivotTable)
{
- mpDestinationRadioNewSheet->Check(true);
+ mpDestinationRadioNewSheet->Check();
}
else
{
@@ -327,7 +327,7 @@ void ScPivotLayoutDialog::SetupDestination()
ScAddress aAddress(maPivotParameters.nCol, maPivotParameters.nRow, maPivotParameters.nTab);
OUString aAddressString = aAddress.Format(SCA_VALID | SCA_TAB_3D | SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE, mpDocument, maAddressDetails);
mpDestinationEdit->SetText(aAddressString);
- mpDestinationRadioSelection->Check(true);
+ mpDestinationRadioSelection->Check();
}
}
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index ba3163b9ece4..df1beb0e18e6 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -192,10 +192,10 @@ void ScDbNameDlg::dispose()
void ScDbNameDlg::Init()
{
- m_pBtnHeader->Check( true ); // Default: with column headers
- m_pBtnTotals->Check( false ); // Default: without totals row
- m_pBtnDoSize->Check( true );
- m_pBtnKeepFmt->Check( true );
+ m_pBtnHeader->Check(); // Default: with column headers
+ m_pBtnTotals->Check( false ); // Default: without totals row
+ m_pBtnDoSize->Check();
+ m_pBtnKeepFmt->Check();
m_pBtnOk->SetClickHdl ( LINK( this, ScDbNameDlg, OkBtnHdl ) );
m_pBtnCancel->SetClickHdl ( LINK( this, ScDbNameDlg, CancelBtnHdl ) );
@@ -474,7 +474,7 @@ IMPL_LINK_NOARG(ScDbNameDlg, AddBtnHdl)
m_pBtnAdd->Disable();
m_pBtnRemove->Disable();
m_pEdAssign->SetText( EMPTY_OUSTRING );
- m_pBtnHeader->Check( true ); // Default: with column headers
+ m_pBtnHeader->Check(); // Default: with column headers
m_pBtnTotals->Check( false ); // Default: without totals row
m_pBtnDoSize->Check( false );
m_pBtnKeepFmt->Check( false );
@@ -555,7 +555,7 @@ IMPL_LINK_NOARG(ScDbNameDlg, RemoveBtnHdl)
m_pBtnRemove->Disable();
m_pEdAssign->SetText( EMPTY_OUSTRING );
theCurArea = ScRange();
- m_pBtnHeader->Check( true ); // Default: with column headers
+ m_pBtnHeader->Check(); // Default: with column headers
m_pBtnTotals->Check( false ); // Default: without totals row
m_pBtnDoSize->Check( false );
m_pBtnKeepFmt->Check( false );
diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx
index f17ae254715e..d50c7a9232c2 100644
--- a/sc/source/ui/dbgui/foptmgr.cxx
+++ b/sc/source/ui/dbgui/foptmgr.cxx
@@ -121,7 +121,7 @@ void ScFilterOptionsMgr::Init()
pLbCopyArea->SetEntryData( nInsert, new OUString( aRefStr ) );
}
- pBtnDestPers->Check( true ); // beim Aufruf immer an
+ pBtnDestPers->Check(); // beim Aufruf immer an
pLbCopyArea->SelectEntryPos( 0 );
pEdCopyArea->SetText( EMPTY_OUSTRING );
@@ -173,7 +173,7 @@ void ScFilterOptionsMgr::Init()
rQueryData.nDestTab
).Format(SCA_ABS_3D, pDoc, eConv);
- pBtnCopyResult->Check( true );
+ pBtnCopyResult->Check();
pEdCopyArea->SetText( aString );
EdAreaModifyHdl( pEdCopyArea );
pLbCopyArea->Enable();
diff --git a/sc/source/ui/dbgui/scendlg.cxx b/sc/source/ui/dbgui/scendlg.cxx
index 0403320279dc..6f1381c8ef18 100644
--- a/sc/source/ui/dbgui/scendlg.cxx
+++ b/sc/source/ui/dbgui/scendlg.cxx
@@ -94,10 +94,10 @@ ScNewScenarioDlg::ScNewScenarioDlg( vcl::Window* pParent, const OUString& rName,
m_pCbShowFrame->SetClickHdl( LINK( this, ScNewScenarioDlg, EnableHdl ) );
m_pLbColor->SelectEntry( Color( COL_LIGHTGRAY ) );
- m_pCbShowFrame->Check(true);
- m_pCbTwoWay->Check(true);
+ m_pCbShowFrame->Check();
+ m_pCbTwoWay->Check();
m_pCbCopyAll->Check(false);
- m_pCbProtect->Check(true);
+ m_pCbProtect->Check();
if (bIsEdit)
m_pCbCopyAll->Enable(false);
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index 5f990a93a712..3f348769af9d 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -412,7 +412,7 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa
pLbCustomLang->SetLanguageList(
SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false);
pLbCustomLang->InsertLanguage(LANGUAGE_SYSTEM);
- pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage), true);
+ pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage));
// *** column type ListBox ***
sal_Int32 nCount = comphelper::string::getTokenCount(aColumnUser, ';');
diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx
index a1c1e487b530..8d75619fe006 100644
--- a/sc/source/ui/dbgui/scuiimoptdlg.cxx
+++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx
@@ -204,7 +204,7 @@ ScImportOptionsDlg::ScImportOptionsDlg(
m_pCbFixed->SetClickHdl( LINK( this, ScImportOptionsDlg, FixedWidthHdl ) );
m_pCbFixed->Check( false );
m_pCbShown->Show();
- m_pCbShown->Check( true );
+ m_pCbShown->Check();
m_pCbQuoteAll->Show();
m_pCbQuoteAll->Check( false );
m_pCbFormulas->Show();
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx
index ba3eae03833f..08e62128c496 100644
--- a/sc/source/ui/dbgui/sfiltdlg.cxx
+++ b/sc/source/ui/dbgui/sfiltdlg.cxx
@@ -207,7 +207,7 @@ void ScSpecialFilterDlg::Init( const SfxItemSet& rArgSet )
aStrUndefined );
// Spezialfilter braucht immer Spaltenkoepfe
- pBtnHeader->Check(true);
+ pBtnHeader->Check();
pBtnHeader->Disable();
// Modal-Modus einschalten
diff --git a/sc/source/ui/dbgui/textimportoptions.cxx b/sc/source/ui/dbgui/textimportoptions.cxx
index e0be3a2bc573..9971bb8bc129 100644
--- a/sc/source/ui/dbgui/textimportoptions.cxx
+++ b/sc/source/ui/dbgui/textimportoptions.cxx
@@ -78,7 +78,7 @@ void ScTextImportOptionsDlg::init()
m_pRbAutomatic->SetClickHdl(aLink);
m_pRbCustom->SetClickHdl(aLink);
- m_pRbAutomatic->Check(true);
+ m_pRbAutomatic->Check();
m_pLbCustomLang->SetLanguageList(
SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false);
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx
index 296c53fe08ae..c5336a7c2fd7 100644
--- a/sc/source/ui/dbgui/tpsort.cxx
+++ b/sc/source/ui/dbgui/tpsort.cxx
@@ -647,7 +647,7 @@ void ScTabPageSortOptions::Reset( const SfxItemSet* /* rArgSet */ )
{
if ( aSortData.bUserDef )
{
- m_pBtnSortUser->Check( true );
+ m_pBtnSortUser->Check();
m_pLbSortUser->Enable();
m_pLbSortUser->SelectEntryPos( aSortData.nUserIndex );
}
@@ -956,7 +956,7 @@ IMPL_LINK_NOARG(ScTabPageSortOptions, FillAlgorHdl)
{
OUString sAlg = pArray[i];
OUString sUser = pColRes->GetTranslation( sAlg );
- m_pLbAlgorithm->InsertEntry( sUser, LISTBOX_APPEND );
+ m_pLbAlgorithm->InsertEntry( sUser );
}
m_pLbAlgorithm->SelectEntryPos( 0 ); // first entry is default
m_pFtAlgorithm->Enable( nCount > 1 ); // enable only if there is a choice
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index 923e6fb2d7f5..25d3ad90d39e 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -362,7 +362,7 @@ IMPL_LINK( ScTpSubTotalGroup, SelectHdl, void *, pLb )
else if ( pLb == mpLbFunctions )
{
*pFunction = nFunction;
- mpLbColumns->CheckEntryPos( nColumn, true );
+ mpLbColumns->CheckEntryPos( nColumn );
}
}
return 0;
@@ -507,7 +507,7 @@ void ScTpSubTotalOptions::Reset( const SfxItemSet* /* rArgSet */ )
if ( rSubTotalData.bUserDef )
{
- pBtnUserDef->Check( true );
+ pBtnUserDef->Check();
pLbUserDef->Enable();
pLbUserDef->SelectEntryPos( rSubTotalData.nUserIndex );
}