diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:46 +0200 |
commit | 3b7609446ba50b6181843ce05f48c100087f3006 (patch) | |
tree | 8d75eb6130056197ff31391a2891d4919ca0fcef /sw/source/ui | |
parent | a003d8c59d0324ab3f44ec608f473e654ce48902 (diff) |
loplugin:defaultparams
Change-Id: Ib5b0e87064b6dcff03f6b77287a80ee2a03b8799
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/chrdlg/numpara.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dbui/addresslistdialog.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dbui/createaddresslistdialog.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmaddressblockpage.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmlayoutpage.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmoutputpage.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/dialog/ascfldlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 12 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/column.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/glosbib.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/misc/insfnote.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/num.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/srtdlg.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatablehelper.cxx | 2 |
22 files changed, 38 insertions, 39 deletions
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx index 7427ce3e16c5..287dfde6c67d 100644 --- a/sw/source/ui/chrdlg/numpara.cxx +++ b/sw/source/ui/chrdlg/numpara.cxx @@ -339,7 +339,7 @@ IMPL_LINK_NOARG_TYPED( SwParagraphNumTabPage, EditNumStyleSelectHdl_Impl, ListBo IMPL_LINK_NOARG_TYPED(SwParagraphNumTabPage, EditNumStyleHdl_Impl, Button*, void) { OUString aTemplName(m_pNumberStyleLB->GetSelectEntry()); - ExecuteEditNumStyle_Impl( SID_STYLE_EDIT, aTemplName, OUString(),SFX_STYLE_FAMILY_PSEUDO, 0 ); + ExecuteEditNumStyle_Impl( SID_STYLE_EDIT, aTemplName, OUString(),SFX_STYLE_FAMILY_PSEUDO ); } // Internal: Perform functions through the Dispatcher diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 873708621172..1ca1d49ffe91 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -474,7 +474,7 @@ void SwAddPrinterTabPage::Reset( const SfxItemSet* ) } if (m_pProspectCB->IsChecked()) { - m_pProspectCB_RTL->Enable(true); + m_pProspectCB_RTL->Enable(); m_pNoRB->Enable( false ); m_pOnlyRB->Enable( false ); m_pEndRB->Enable( false ); diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx index 2e5f5ba90c99..a41b95849552 100644 --- a/sw/source/ui/dbui/addresslistdialog.cxx +++ b/sw/source/ui/dbui/addresslistdialog.cxx @@ -518,7 +518,7 @@ IMPL_LINK_TYPED(SwAddressListDialog, StaticListBoxSelectHdl_Impl, void*, p, void m_aDBData.sDataSource = SvTabListBox::GetEntryText(pSelect, ITEMID_NAME - 1); m_aDBData.sCommand = SvTabListBox::GetEntryText(pSelect, ITEMID_TABLE - 1); m_aDBData.nCommandType = pUserData->nCommandType; - m_pOK->Enable(true); + m_pOK->Enable(); } if(SvTabListBox::GetEntryText(pSelect, ITEMID_TABLE - 1) == m_sConnecting) m_pListLB->SetEntryText(OUString(), pSelect, ITEMID_TABLE - 1); diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx index d108103ce461..9f9fb7fbce30 100644 --- a/sw/source/ui/dbui/createaddresslistdialog.cxx +++ b/sw/source/ui/dbui/createaddresslistdialog.cxx @@ -218,7 +218,7 @@ void SwAddressControl_Impl::SetData(SwCSVData& rDBData) } else { - m_pScrollBar->Enable(true); + m_pScrollBar->Enable(); m_pScrollBar->SetRange(Range(0, nLines)); m_pScrollBar->SetThumbPos(0); m_pScrollBar->SetVisibleSize(nVisibleLines); diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index c9157bc58df3..5c65f3ff498c 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -1743,8 +1743,8 @@ void SwInsertDBColAutoPilot::Load() m_pIbDbcolAllTo->Enable( false ); m_pIbDbcolOneTo->Enable( false ); } - m_pIbDbcolOneFrom->Enable( true ); - m_pIbDbcolAllFrom->Enable( true ); + m_pIbDbcolOneFrom->Enable(); + m_pIbDbcolAllFrom->Enable(); } m_pEdDbText->SetText( pNewData->sEdit ); diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx index 3a0cf443a898..fe8c59a3543b 100644 --- a/sw/source/ui/dbui/mmaddressblockpage.cxx +++ b/sw/source/ui/dbui/mmaddressblockpage.cxx @@ -705,8 +705,8 @@ IMPL_LINK_TYPED(SwCustomizeAddressBlockDialog, SelectionChangedHdl_Impl, Address m_pFieldCB->InsertEntry(*aIterator); } m_pFieldCB->SetText(sSelect); - m_pFieldCB->Enable(true); - m_pFieldFT->Enable(true); + m_pFieldCB->Enable(); + m_pFieldFT->Enable(); } else { diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx index 16dfdd50b3b4..b0438805205b 100644 --- a/sw/source/ui/dbui/mmlayoutpage.cxx +++ b/sw/source/ui/dbui/mmlayoutpage.cxx @@ -622,7 +622,7 @@ void SwMailMergeLayoutPage::InsertGreeting(SwWrtShell& rShell, SwMailMergeConfig IMPL_LINK_NOARG_TYPED(SwMailMergeLayoutPage, PreviewLoadedHdl_Impl, SwOneExampleFrame&, void) { - m_pExampleContainerWIN->Show(true); + m_pExampleContainerWIN->Show(); Reference< XModel > & xModel = m_pExampleFrame->GetModel(); //now the ViewOptions should be set properly diff --git a/sw/source/ui/dbui/mmoutputpage.cxx b/sw/source/ui/dbui/mmoutputpage.cxx index 6aad4e4211d8..6f949aee867a 100644 --- a/sw/source/ui/dbui/mmoutputpage.cxx +++ b/sw/source/ui/dbui/mmoutputpage.cxx @@ -432,7 +432,7 @@ IMPL_LINK_TYPED(SwMailMergeOutputPage, OutputTypeHdl_Impl, Button*, pButton, voi Control** pSaveMergeControl = aSaveMergedControls; do { - (*pSaveMergeControl)->Show(true); + (*pSaveMergeControl)->Show(); } while(*(++pSaveMergeControl)); if(!m_pFromRB->IsChecked() && !m_pSaveAsOneRB->IsChecked()) @@ -453,7 +453,7 @@ IMPL_LINK_TYPED(SwMailMergeOutputPage, OutputTypeHdl_Impl, Button*, pButton, voi Control** pPrinterControl = aPrintControls; do { - (*pPrinterControl)->Show(true); + (*pPrinterControl)->Show(); } while(*(++pPrinterControl)); if(!m_pFromRB->IsChecked()) @@ -475,7 +475,7 @@ IMPL_LINK_TYPED(SwMailMergeOutputPage, OutputTypeHdl_Impl, Button*, pButton, voi vcl::Window** pMailControl = aMailControls; do { - (*pMailControl)->Show(true); + (*pMailControl)->Show(); } while(*(++pMailControl)); diff --git a/sw/source/ui/dialog/ascfldlg.cxx b/sw/source/ui/dialog/ascfldlg.cxx index e88370572485..918addc6883f 100644 --- a/sw/source/ui/dialog/ascfldlg.cxx +++ b/sw/source/ui/dialog/ascfldlg.cxx @@ -168,7 +168,7 @@ SwAsciiFilterDlg::SwAsciiFilterDlg( vcl::Window* pParent, SwDocShell& rDocSh, } } - m_pLanguageLB->SetLanguageList( SvxLanguageListFlags::ALL, true, false ); + m_pLanguageLB->SetLanguageList( SvxLanguageListFlags::ALL, true ); m_pLanguageLB->SelectLanguage( aOpt.GetLanguage() ); } diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index f4fe433bfeb8..7c5cc8584e60 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -573,12 +573,12 @@ IMPL_LINK_TYPED( SwEditRegionDlg, GetFirstEntryHdl, SvTreeListBox *, pBox, void { bDontCheckPasswd = true; SvTreeListEntry* pEntry=pBox->FirstSelected(); - m_pHideCB->Enable(true); + m_pHideCB->Enable(); // edit in readonly sections - m_pEditInReadonlyCB->Enable(true); + m_pEditInReadonlyCB->Enable(); - m_pProtectCB->Enable(true); - m_pFileCB->Enable(true); + m_pProtectCB->Enable(); + m_pFileCB->Enable(); ::com::sun::star::uno::Sequence <sal_Int8> aCurPasswd; if( 1 < pBox->GetSelectionCount() ) { @@ -676,8 +676,8 @@ IMPL_LINK_TYPED( SwEditRegionDlg, GetFirstEntryHdl, SvTreeListBox *, pBox, void } else if (pEntry ) { - m_pCurName->Enable(true); - m_pOptionsPB->Enable(true); + m_pCurName->Enable(); + m_pOptionsPB->Enable(); SectRepr* pRepr=static_cast<SectRepr*>(pEntry->GetUserData()); SwSectionData const& rData( pRepr->GetSectionData() ); m_pConditionED->SetText(rData.GetCondition()); diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index 4a5d5b4002c9..1e63bb8e6a81 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -1227,7 +1227,7 @@ void SwColumnPage::Update(MetricField *pInteractiveField) void SwColumnPage::ActivatePage(const SfxItemSet& rSet) { bool bVertical = false; - if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_FRAMEDIR, true)) + if (SfxItemState::DEFAULT <= rSet.GetItemState(RES_FRAMEDIR)) { const SvxFrameDirectionItem& rDirItem = static_cast<const SvxFrameDirectionItem&>(rSet.Get(RES_FRAMEDIR)); diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 63145d2620c1..95b8aee2f1c9 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -3074,7 +3074,7 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet ) if( (!bHtmlMode || (0 != (nHtmlMode&HTMLMODE_SOME_STYLES))) && sDlgType != "PictureDialog" && sDlgType != "ObjectDialog" && SfxItemState::UNKNOWN != ( eState = rSet->GetItemState( - RES_FRAMEDIR, true )) ) + RES_FRAMEDIR )) ) { pTextFlowFT->Show(); pTextFlowLB->Show(); diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 57b073269961..d4cad9b07265 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -847,7 +847,7 @@ SwTOXSelectTabPage::SwTOXSelectTabPage(vcl::Window* pParent, const SfxItemSet& r pIndexEntryWrapper = new IndexEntrySupplierWrapper(); m_pLanguageLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, - false, false ); + false ); //Default mode is arranged to be the tallest mode //of alphabetical index, lock that height in now @@ -4105,7 +4105,7 @@ void SwEntryBrowseBox::ReadEntries(SvStream& rInStr) } if( pToInsert ) aEntryArr.push_back(pToInsert); - RowInserted(0, aEntryArr.size() + 1, true); + RowInserted(0, aEntryArr.size() + 1); } void SwEntryBrowseBox::WriteEntries(SvStream& rOutStr) @@ -4172,7 +4172,7 @@ SwAutoMarkDlg_Impl::SwAutoMarkDlg_Impl(vcl::Window* pParent, const OUString& rAu SetText(GetText() + ": " + sAutoMarkURL); bool bError = false; if( bCreateMode ) - m_pEntriesBB->RowInserted(0, 1, true); + m_pEntriesBB->RowInserted(0); else { SfxMedium aMed( sAutoMarkURL, STREAM_STD_READ ); diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 7f5108e0c577..a1726f11421e 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -1068,7 +1068,7 @@ SwAuthorMarkPane::SwAuthorMarkPane(Dialog &rDialog, bool bNewDlg) m_rDialog.get(m_pEntryLB, "entrylb"); m_rDialog.get(m_pActionBT, bNewEntry ? OString("insert") : OString("modify")); - m_pActionBT->Show(true); + m_pActionBT->Show(); m_rDialog.get(m_pCloseBT, "close"); m_rDialog.get(m_pCreateEntryPB, "new"); m_rDialog.get(m_pEditEntryPB, "edit"); diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx index 24cbf3ce654e..59d9bf13e465 100644 --- a/sw/source/ui/misc/glosbib.cxx +++ b/sw/source/ui/misc/glosbib.cxx @@ -91,7 +91,7 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(vcl::Window * pParent, m_pPathLB->SetEntryData(i, reinterpret_cast<void*>(nCaseReadonly)); } m_pPathLB->SelectEntryPos(0); - m_pPathLB->Enable(true); + m_pPathLB->Enable(); const size_t nCount = pHdl->GetGroupCnt(); for( size_t i = 0; i < nCount; ++i) diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 3ab52b95f415..6f94e2c7c6a0 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -446,8 +446,7 @@ IMPL_LINK_TYPED( SwGlossaryDlg, MenuHdl, Menu *, pMn, bool ) if (sItemIdent == "replace") { pGlossaryHdl->NewGlossary(m_pNameED->GetText(), - m_pShortNameEdit->GetText(), - false); + m_pShortNameEdit->GetText()); } else if (sItemIdent == "replacetext") { diff --git a/sw/source/ui/misc/insfnote.cxx b/sw/source/ui/misc/insfnote.cxx index f4b424fae7c3..8f0f7247e7e0 100644 --- a/sw/source/ui/misc/insfnote.cxx +++ b/sw/source/ui/misc/insfnote.cxx @@ -96,7 +96,7 @@ IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberEditHdl, Edit&, void) IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberAutoBtnHdl, Button*, void) { - m_pOkBtn->Enable( true ); + m_pOkBtn->Enable(); } IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberExtCharHdl, Button*, void) diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 569b42efa367..6b15cf6a57a5 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -344,8 +344,8 @@ void SwNumPositionTabPage::InitControls() if ( aNumFormatArr[nLvl]->GetLabelFollowedBy() == SvxNumberFormat::LISTTAB ) { - m_pListtabFT->Enable( true ); - m_pListtabMF->Enable( true ); + m_pListtabFT->Enable(); + m_pListtabMF->Enable(); if ( bSameListtab ) { m_pListtabMF->SetValue(m_pListtabMF->Normalize(aNumFormatArr[nLvl]->GetListtabPos()),FUNIT_TWIP); diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index f88b043c5ab9..5c235f9fea9b 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -512,8 +512,8 @@ void SwOutlineSettingsTabPage::Update() else m_pCharFormatLB->SetNoSelection(); - m_pAllLevelFT->Enable(true); - m_pAllLevelNF->Enable(true); + m_pAllLevelFT->Enable(); + m_pAllLevelNF->Enable(); m_pAllLevelNF->SetMax(MAXLEVEL); if(bSameComplete) { @@ -545,8 +545,8 @@ void SwOutlineSettingsTabPage::Update() if(nTmpLevel) { - m_pAllLevelFT->Enable(true); - m_pAllLevelNF->Enable(true); + m_pAllLevelFT->Enable(); + m_pAllLevelNF->Enable(); m_pAllLevelNF->SetMax(nTmpLevel + 1); m_pAllLevelNF->SetValue(rFormat.GetIncludeUpperLevels()); } diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 6c3e70d16617..d4410caf9953 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -217,7 +217,7 @@ bool SwTextGridPage::FillItemSet(SfxItemSet *rSet) void SwTextGridPage::Reset(const SfxItemSet *rSet) { - if(SfxItemState::DEFAULT <= rSet->GetItemState(RES_TEXTGRID, true)) + if(SfxItemState::DEFAULT <= rSet->GetItemState(RES_TEXTGRID)) { const SwTextGridItem& rGridItem = static_cast<const SwTextGridItem&>(rSet->Get(RES_TEXTGRID)); RadioButton* pButton = 0; @@ -306,7 +306,7 @@ void SwTextGridPage::PutGridItem(SfxItemSet& rSet) void SwTextGridPage::UpdatePageSize(const SfxItemSet& rSet) { - if( SfxItemState::UNKNOWN != rSet.GetItemState( RES_FRAMEDIR, true )) + if( SfxItemState::UNKNOWN != rSet.GetItemState( RES_FRAMEDIR )) { const SvxFrameDirectionItem& rDirItem = static_cast<const SvxFrameDirectionItem&>(rSet.Get(RES_FRAMEDIR)); diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx index f6cdfa9d71e9..a75f46504e51 100644 --- a/sw/source/ui/misc/srtdlg.cxx +++ b/sw/source/ui/misc/srtdlg.cxx @@ -205,7 +205,7 @@ SwSortDlg::SwSortDlg(vcl::Window* pParent, SwWrtShell &rShell) if( LANGUAGE_NONE == nLang || LANGUAGE_DONTKNOW == nLang ) nLang = (sal_uInt16)GetAppLanguage(); - m_pLangLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, true, false); + m_pLangLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, true ); m_pLangLB->SelectLanguage( nLang ); LanguageHdl( 0 ); diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx index 84e34638145d..8ffa710dcba8 100644 --- a/sw/source/ui/vba/vbatablehelper.cxx +++ b/sw/source/ui/vba/vbatablehelper.cxx @@ -162,7 +162,7 @@ void SwVbaTableHelper::InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, rCols.SetLeft ( 0 ); rCols.SetRight ( UNO_TABLE_COLUMN_SUM ); rCols.SetRightMax( UNO_TABLE_COLUMN_SUM ); - pTable->GetTabCols( rCols, pStart, false ); + pTable->GetTabCols( rCols, pStart ); } sal_Int32 SwVbaTableHelper::GetColCount( SwTabCols& rCols ) |