diff options
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/certpath.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/fontsubs.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optasian.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optcolor.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optctl.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optdict.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optfltr.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optgdlg.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/optinet2.cxx | 14 | ||||
-rw-r--r-- | cui/source/options/optjava.cxx | 8 | ||||
-rw-r--r-- | cui/source/options/personalization.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/radiobtnbox.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 2 |
13 files changed, 30 insertions, 30 deletions
diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx index 10c2ebc1bf90..89a4930942a8 100644 --- a/cui/source/options/certpath.cxx +++ b/cui/source/options/certpath.cxx @@ -174,7 +174,7 @@ IMPL_LINK( CertPathDialog, CheckHdl_Impl, SvSimpleTable *, pList ) void CertPathDialog::HandleCheckEntry( SvTreeListEntry* _pEntry ) { - m_pCertPathList->Select( _pEntry, true ); + m_pCertPathList->Select( _pEntry ); SvButtonState eState = m_pCertPathList->GetCheckButtonState( _pEntry ); if (SV_BUTTON_CHECKED == eState) diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 7874a065a23e..848625204ca8 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -180,7 +180,7 @@ bool SvxFontSubstTabPage::FillItemSet( SfxItemSet* ) SubstitutionStruct aAdd; aAdd.sFont = SvTabListBox::GetEntryText(pEntry, 0); aAdd.sReplaceBy = SvTabListBox::GetEntryText(pEntry, 1); - aAdd.bReplaceAlways = SvxFontSubstCheckListBox::IsChecked(pEntry, 0); + aAdd.bReplaceAlways = SvxFontSubstCheckListBox::IsChecked(pEntry); aAdd.bReplaceOnScreenOnly = SvxFontSubstCheckListBox::IsChecked(pEntry, 1); pConfig->AddSubstitution(aAdd); pEntry = m_pCheckLB->Next(pEntry); @@ -459,7 +459,7 @@ void SvxFontSubstCheckListBox::KeyInput( const KeyEvent& rKEvt ) else { sal_uInt16 nCheck = IsChecked(nSelPos, 1) ? 1 : 0; - if(IsChecked(nSelPos, 0)) + if(IsChecked(nSelPos)) nCheck += 2; nCheck--; nCheck &= 3; diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx index 81d9a39266fc..31d4b4308659 100644 --- a/cui/source/options/optasian.cxx +++ b/cui/source/options/optasian.cxx @@ -284,9 +284,9 @@ void SvxAsianLayoutPage::Reset( const SfxItemSet* ) m_pHintFT->Enable(false); } if(bKernWesternText) - m_pCharKerningRB->Check(true); + m_pCharKerningRB->Check(); else - m_pCharPunctKerningRB->Check(true); + m_pCharPunctKerningRB->Check(); switch(nCompress) { case 0 : m_pNoCompressionRB->Check(); break; diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index 9098a795dbc0..999aeecdea2b 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -569,7 +569,7 @@ void ColorConfigWindow_Impl::CreateEntries() aCheckBox->SetText(sSampleText); aFixedText->SetText(sSampleText); Size aCheckSize(aCheckBox->CalcMinimumSize(0x7fffffff)); - Size aFixedSize(aFixedText->CalcMinimumSize(0x7fffffff)); + Size aFixedSize(aFixedText->CalcMinimumSize()); nCheckBoxLabelOffset = aCheckSize.Width() - aFixedSize.Width(); } diff --git a/cui/source/options/optctl.cxx b/cui/source/options/optctl.cxx index 652bba938bf9..4cc080630f75 100644 --- a/cui/source/options/optctl.cxx +++ b/cui/source/options/optctl.cxx @@ -32,8 +32,8 @@ IMPL_LINK_NOARG(SvxCTLOptionsPage, SequenceCheckingCB_Hdl) // #i48117#: by default restricted and type&replace have to be switched on if(bIsSequenceChecking) { - m_pTypeReplaceCB->Check( true ); - m_pRestrictedCB->Check( true ); + m_pTypeReplaceCB->Check(); + m_pRestrictedCB->Check(); } return 0; } diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index 3a0bd9ebfaa7..7026e5f3664f 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -188,7 +188,7 @@ IMPL_LINK_NOARG(SvxNewDictionaryDialog, OKHdl_Impl) ErrorHandler::HandleError( *new StringErrorInfo( ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE, sDict ) ); - EndDialog( RET_CANCEL ); + EndDialog(); } if (xDicList.is() && xNewDic.is()) diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index 5ede579184e7..af543b331743 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -319,9 +319,9 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet* ) m_pCheckLB->SetUpdateMode( true ); if (rOpt.IsCharBackground2Highlighting()) - aHighlightingRB->Check(true); + aHighlightingRB->Check(); else - aShadingRB->Check(true); + aShadingRB->Check(); aHighlightingRB->SaveValue(); } diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index bcdcd41547c9..3ed38ddeff13 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1104,7 +1104,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage(vcl::Window* pParent, const SfxItemSet& m_pComplexLanguageLB->SetLanguageList( SvxLanguageListFlags::CTL | SvxLanguageListFlags::ONLY_KNOWN, true, false, true ); m_pComplexLanguageLB->InsertDefaultLanguage( css::i18n::ScriptType::COMPLEX ); - m_pLocaleSettingLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false, false); + m_pLocaleSettingLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false); m_pLocaleSettingLB->InsertSystemLanguage( ); const NfCurrencyTable& rCurrTab = SvNumberFormatter::GetTheCurrencyTable(); @@ -1603,7 +1603,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet ) { m_pWesternLanguageLB->GrabFocus(); m_pCurrentDocCB->Enable(true); - m_pCurrentDocCB->Check(true); + m_pCurrentDocCB->Check(); } } @@ -1639,7 +1639,7 @@ namespace void lcl_checkLanguageCheckBox(CheckBox* _rCB,bool _bNewValue,bool _bOldValue) { if ( _bNewValue ) - _rCB->Check(true); + _rCB->Check(); else _rCB->Check( _bOldValue ); // #i15082# do not call SaveValue() in running dialog... diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 61b1870227f8..59bee66ad0a7 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -689,7 +689,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) if ( xMasterPasswd->changeMasterPassword( Reference< task::XInteractionHandler >() ) ) { m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordCB->Check( true ); + m_pMasterPasswordCB->Check(); m_pMasterPasswordCB->Enable( true ); m_pMasterPasswordFT->Enable( true ); m_pShowConnectionsPB->Enable( true ); @@ -708,7 +708,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) if( RET_YES == nRet ) { xMasterPasswd->allowPersistentStoring( sal_False ); - m_pMasterPasswordCB->Check( true ); + m_pMasterPasswordCB->Check(); m_pMasterPasswordPB->Enable( false ); m_pMasterPasswordCB->Enable( false ); m_pMasterPasswordFT->Enable( false ); @@ -716,7 +716,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) } else { - m_pSavePasswordsCB->Check( true ); + m_pSavePasswordsCB->Check(); m_pMasterPasswordPB->Enable( true ); m_pShowConnectionsPB->Enable( true ); } @@ -776,7 +776,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl) } else { - m_pMasterPasswordCB->Check( true ); + m_pMasterPasswordCB->Check(); m_pMasterPasswordPB->Enable( true ); m_pShowConnectionsPB->Enable( true ); } @@ -876,7 +876,7 @@ void SvxSecurityTabPage::InitControls() m_pMasterPasswordPB->Enable( false ); m_pMasterPasswordCB->Enable( false ); - m_pMasterPasswordCB->Check( true ); + m_pMasterPasswordCB->Check(); m_pMasterPasswordFT->Enable( false ); m_pShowConnectionsPB->Enable( false ); @@ -890,14 +890,14 @@ void SvxSecurityTabPage::InitControls() { m_pMasterPasswordCB->Enable( true ); m_pShowConnectionsPB->Enable( true ); - m_pSavePasswordsCB->Check( true ); + m_pSavePasswordsCB->Check(); if ( xMasterPasswd->isDefaultMasterPasswordUsed() ) m_pMasterPasswordCB->Check( false ); else { m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordCB->Check( true ); + m_pMasterPasswordCB->Check(); m_pMasterPasswordFT->Enable( true ); } } diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 14c2a22563d3..6001535501d1 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -555,7 +555,7 @@ void SvxJavaOptionsPage::AddJRE( JavaInfo* _pInfo ) void SvxJavaOptionsPage::HandleCheckEntry( SvTreeListEntry* _pEntry ) { - m_pJavaList->Select( _pEntry, true ); + m_pJavaList->Select( _pEntry ); SvButtonState eState = m_pJavaList->GetCheckButtonState( _pEntry ); if ( SV_BUTTON_CHECKED == eState ) @@ -1001,7 +1001,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddArchiveHdl_Impl) OUString sFile = aURL.getFSysPath( INetURLObject::FSYS_DETECT ); if ( !IsPathDuplicate( sURL ) ) { - sal_Int32 nPos = m_pPathList->InsertEntry( sFile, SvFileInformationManager::GetImage( aURL, false ) ); + sal_Int32 nPos = m_pPathList->InsertEntry( sFile, SvFileInformationManager::GetImage( aURL ) ); m_pPathList->SelectEntryPos( nPos ); } else @@ -1038,7 +1038,7 @@ IMPL_LINK_NOARG(SvxJavaClassPathDlg, AddPathHdl_Impl) OUString sNewFolder = aURL.getFSysPath( INetURLObject::FSYS_DETECT ); if ( !IsPathDuplicate( sFolderURL ) ) { - sal_Int32 nPos = m_pPathList->InsertEntry( sNewFolder, SvFileInformationManager::GetImage( aURL, false ) ); + sal_Int32 nPos = m_pPathList->InsertEntry( sNewFolder, SvFileInformationManager::GetImage( aURL ) ); m_pPathList->SelectEntryPos( nPos ); } else @@ -1134,7 +1134,7 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath ) OUString sToken = _rPath.getToken( 0, CLASSPATH_DELIMITER, nIdx ); INetURLObject aURL( sToken, INetURLObject::FSYS_DETECT ); OUString sPath = aURL.getFSysPath( INetURLObject::FSYS_DETECT ); - m_pPathList->InsertEntry( sPath, SvFileInformationManager::GetImage( aURL, false ) ); + m_pPathList->InsertEntry( sPath, SvFileInformationManager::GetImage( aURL ) ); } // select first entry m_pPathList->SelectEntryPos(0); diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 5e550a22b3ce..8c0c5941026a 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -203,7 +203,7 @@ IMPL_LINK( SelectPersonaDialog, ActionCancel, PushButton*, /* pButton */ ) if( m_rSearchThread.is() ) m_rSearchThread->StopExecution(); - EndDialog( RET_CANCEL ); + EndDialog(); return 0; } @@ -417,7 +417,7 @@ void SvxPersonalizationTabPage::LoadDefaultImages() aStream.ReadLine( aLine ); OUString aPersonaSetting( OStringToOUString( aLine, RTL_TEXTENCODING_UTF8 ) ); OUString aPreviewFile; - sal_Int32 nNewIndex = aPersonaSetting.indexOf( ';', 0 ); + sal_Int32 nNewIndex = aPersonaSetting.indexOf( ';' ); if( nNewIndex < 0 ) break; aPreviewFile = aPersonaSetting.copy( 0, nNewIndex ); @@ -518,7 +518,7 @@ IMPL_LINK( SvxPersonalizationTabPage, SelectInstalledPersona, ListBox*, ) m_pExtensionPersonaPreview->Show(); sal_Int32 nSelectedPos = m_pPersonaList->GetSelectEntryPos(); OUString aSettings = m_vExtensionPersonaSettings[nSelectedPos]; - sal_Int32 nIndex = aSettings.indexOf( ';', 0 ); + sal_Int32 nIndex = aSettings.indexOf( ';' ); OUString aPreviewFile = aSettings.copy( 0, nIndex ); m_aPersonaSettings = aSettings.copy( nIndex + 1 ); diff --git a/cui/source/options/radiobtnbox.cxx b/cui/source/options/radiobtnbox.cxx index 500617bedf28..1f1a422d9c84 100644 --- a/cui/source/options/radiobtnbox.cxx +++ b/cui/source/options/radiobtnbox.cxx @@ -62,7 +62,7 @@ void SvxRadioButtonListBox::KeyInput( const KeyEvent& rKEvt ) void SvxRadioButtonListBox::HandleEntryChecked( SvTreeListEntry* _pEntry ) { - Select( _pEntry, true ); + Select( _pEntry ); SvButtonState eState = GetCheckButtonState( _pEntry ); if ( SV_BUTTON_CHECKED == eState ) diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 303ecba50b49..3cb968246754 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -793,7 +793,7 @@ void OfaTreeOptionsDialog::InitTreeAndHandler() WB_CLIPCHILDREN | WB_HSCROLL | WB_FORCE_MAKEVISIBLE | WB_QUICK_SEARCH ); pTreeLB->SetSpaceBetweenEntries( 0 ); pTreeLB->SetSelectionMode( SINGLE_SELECTION ); - pTreeLB->SetSublistOpenWithLeftRight( true ); + pTreeLB->SetSublistOpenWithLeftRight(); pTreeLB->SetExpandedHdl( LINK( this, OfaTreeOptionsDialog, ExpandedHdl_Impl ) ); pTreeLB->SetSelectHdl( LINK( this, OfaTreeOptionsDialog, ShowPageHdl_Impl ) ); pBackPB->SetClickHdl( LINK( this, OfaTreeOptionsDialog, BackHdl_Impl ) ); |