diff options
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 14 | ||||
-rw-r--r-- | cui/source/customize/cfg.cxx | 10 | ||||
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 13 | ||||
-rw-r--r-- | cui/source/customize/macropg.cxx | 4 | ||||
-rw-r--r-- | cui/source/customize/selector.cxx | 12 | ||||
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 6 | ||||
-rw-r--r-- | cui/source/dialogs/linkdlg.cxx | 20 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/inc/cfg.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/fontsubs.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optdict.cxx | 10 | ||||
-rw-r--r-- | cui/source/options/optfltr.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/optjava.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 16 | ||||
-rw-r--r-- | cui/source/options/radiobtnbox.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 22 | ||||
-rw-r--r-- | cui/source/tabpages/macroass.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 4 |
21 files changed, 81 insertions, 80 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 651e69430f54..f326ed90eca9 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1047,10 +1047,10 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, Default) if (xReset.is()) xReset->reset(); - m_pEntriesBox->SetUpdateMode(sal_False); + m_pEntriesBox->SetUpdateMode(false); ResetConfig(); Init(m_xAct); - m_pEntriesBox->SetUpdateMode(sal_True); + m_pEntriesBox->SetUpdateMode(true); m_pEntriesBox->Invalidate(); m_pEntriesBox->Select(m_pEntriesBox->GetEntry(0, 0)); @@ -1147,7 +1147,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SelectHdl, Control*, pListBox ) if ( pUserData && pUserData->m_sCommand == sPossibleNewCommand ) { TAccInfo* pU1 = new TAccInfo(-1, -1, pUserData->m_aKey); - SvTreeListEntry* pE1 = m_pKeyBox->InsertEntry( pUserData->m_aKey.GetName(), 0L, sal_True, TREELIST_APPEND ); + SvTreeListEntry* pE1 = m_pKeyBox->InsertEntry( pUserData->m_aKey.GetName(), 0L, true, TREELIST_APPEND ); pE1->SetUserData(pU1); pE1->EnableChildrenOnDemand( false ); } @@ -1194,10 +1194,10 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, RadioHdl) if ( m_xAct.is() && ( xOld == m_xAct ) ) return 0; - m_pEntriesBox->SetUpdateMode( sal_False ); + m_pEntriesBox->SetUpdateMode( false ); ResetConfig(); Init(m_xAct); - m_pEntriesBox->SetUpdateMode( sal_True ); + m_pEntriesBox->SetUpdateMode( true ); m_pEntriesBox->Invalidate(); m_pGroupLBox->Init(m_xContext, m_xFrame, m_sModuleLongName, true); @@ -1266,10 +1266,10 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl) // open the configuration and update our UI css::uno::Reference< css::ui::XAcceleratorConfiguration > xTempAccMgr(xCfgMgr->getShortCutManager(), css::uno::UNO_QUERY_THROW); - m_pEntriesBox->SetUpdateMode(sal_False); + m_pEntriesBox->SetUpdateMode(false); ResetConfig(); Init(xTempAccMgr); - m_pEntriesBox->SetUpdateMode(sal_True); + m_pEntriesBox->SetUpdateMode(true); m_pEntriesBox->Invalidate(); m_pEntriesBox->Select(m_pEntriesBox->GetEntry(0, 0)); diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index b16f1cb86d58..cf210e082262 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -1429,9 +1429,9 @@ sal_Int8 SvxMenuEntriesListBox::AcceptDrop( const AcceptDropEvent& rEvt ) return SvTreeListBox::AcceptDrop( aNewAcceptDropEvent ); } -sal_Bool SvxMenuEntriesListBox::NotifyAcceptDrop( SvTreeListEntry* ) +bool SvxMenuEntriesListBox::NotifyAcceptDrop( SvTreeListEntry* ) { - return sal_True; + return true; } sal_Bool SvxMenuEntriesListBox::NotifyMoving( @@ -2043,7 +2043,7 @@ SvTreeListEntry* SvxConfigPage::InsertEntryIntoUI( { pNewEntry = m_pContentsListBox->InsertEntry( OUString(aSeparatorStr), - 0, sal_False, nPos, pNewEntryData); + 0, false, nPos, pNewEntryData); } else { @@ -2055,12 +2055,12 @@ SvTreeListEntry* SvxConfigPage::InsertEntryIntoUI( if ( !!aImage ) { pNewEntry = m_pContentsListBox->InsertEntry( - aName, aImage, aImage, 0, sal_False, nPos, pNewEntryData ); + aName, aImage, aImage, 0, false, nPos, pNewEntryData ); } else { pNewEntry = m_pContentsListBox->InsertEntry( - aName, 0, sal_False, nPos, pNewEntryData ); + aName, 0, false, nPos, pNewEntryData ); } if ( pNewEntryData->IsPopup() || diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index a4cec40fb6e3..f1ffaa1ef67a 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -564,7 +564,7 @@ void SfxConfigGroupListBox::Init(const css::uno::Reference< css::uno::XComponent const OUString& sModuleLongName, bool bEventMode) { - SetUpdateMode(sal_False); + SetUpdateMode(false); ClearAll(); // Remove all old entries from treelist box m_xFrame = xFrame; @@ -728,8 +728,9 @@ void SfxConfigGroupListBox::Init(const css::uno::Reference< css::uno::XComponent } MakeVisible( GetEntry( 0,0 ) ); - SetUpdateMode( sal_True ); + SetUpdateMode( true ); } + Image SfxConfigGroupListBox::GetImage( Reference< browse::XBrowseNode > node, Reference< XComponentContext > xCtx, @@ -860,13 +861,13 @@ void SfxConfigGroupListBox::GroupSelected() { SvTreeListEntry *pEntry = FirstSelected(); SfxGroupInfo_Impl *pInfo = (SfxGroupInfo_Impl*) pEntry->GetUserData(); - pFunctionListBox->SetUpdateMode(sal_False); + pFunctionListBox->SetUpdateMode(false); pFunctionListBox->ClearAll(); if ( pInfo->nKind != SFX_CFGGROUP_FUNCTION && pInfo->nKind != SFX_CFGGROUP_SCRIPTCONTAINER && pInfo->nKind != SFX_CFGGROUP_STYLES ) { - pFunctionListBox->SetUpdateMode(sal_True); + pFunctionListBox->SetUpdateMode(true); return; } @@ -979,7 +980,7 @@ void SfxConfigGroupListBox::GroupSelected() if ( pFunctionListBox->GetEntryCount() ) pFunctionListBox->Select( pFunctionListBox->GetEntry( 0, 0 ) ); - pFunctionListBox->SetUpdateMode(sal_True); + pFunctionListBox->SetUpdateMode(true); } sal_Bool SfxConfigGroupListBox::Expand( SvTreeListEntry* pParent ) @@ -993,7 +994,7 @@ sal_Bool SfxConfigGroupListBox::Expand( SvTreeListEntry* pParent ) if ( nChildCount+1 > nEntries ) { - MakeVisible( pParent, sal_True ); + MakeVisible( pParent, true ); } else { diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 011e8e032ed9..e9853587de44 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -553,7 +553,7 @@ void _SvxMacroTabPage::DisplayAppEvents( bool appEvents) rListBox.MakeVisible( pE ); } - rListBox.SetUpdateMode( sal_True ); + rListBox.SetUpdateMode( true ); EnableButtons(); } @@ -694,7 +694,7 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton* rListBox.GetModel()->InvalidateEntry( pE ); rListBox.Select( pE ); rListBox.MakeVisible( pE ); - rListBox.SetUpdateMode( sal_True ); + rListBox.SetUpdateMode( true ); pThis->EnableButtons(); return 0; diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx index 74a6bbcfc7f6..35380540a864 100644 --- a/cui/source/customize/selector.cxx +++ b/cui/source/customize/selector.cxx @@ -404,7 +404,7 @@ void SvxConfigGroupListBox::Init(bool bShowSlots, const Reference< frame::XFrame m_bShowSlots = bShowSlots; m_xFrame.set(xFrame); - SetUpdateMode(sal_False); + SetUpdateMode(false); ClearAll(); Reference< XComponentContext > xContext( @@ -527,7 +527,7 @@ void SvxConfigGroupListBox::Init(bool bShowSlots, const Reference< frame::XFrame } } MakeVisible( GetEntry( 0,0 ) ); - SetUpdateMode( sal_True ); + SetUpdateMode( true ); } Image SvxConfigGroupListBox::GetImage( @@ -623,12 +623,12 @@ void SvxConfigGroupListBox::GroupSelected() { SvTreeListEntry *pEntry = FirstSelected(); SvxGroupInfo_Impl *pInfo = (SvxGroupInfo_Impl*) pEntry->GetUserData(); - pFunctionListBox->SetUpdateMode(sal_False); + pFunctionListBox->SetUpdateMode(false); pFunctionListBox->ClearAll(); if ( pInfo->nKind != SVX_CFGGROUP_FUNCTION && pInfo->nKind != SVX_CFGGROUP_SCRIPTCONTAINER ) { - pFunctionListBox->SetUpdateMode(sal_True); + pFunctionListBox->SetUpdateMode(true); return; } @@ -794,7 +794,7 @@ void SvxConfigGroupListBox::GroupSelected() if ( pFunctionListBox->GetEntryCount() ) pFunctionListBox->Select( pFunctionListBox->GetEntry( 0, 0 ) ); - pFunctionListBox->SetUpdateMode(sal_True); + pFunctionListBox->SetUpdateMode(true); } sal_Bool SvxConfigGroupListBox::Expand( SvTreeListEntry* pParent ) @@ -808,7 +808,7 @@ sal_Bool SvxConfigGroupListBox::Expand( SvTreeListEntry* pParent ) if ( nChildCount+1 > nEntries ) { - MakeVisible( pParent, sal_True ); + MakeVisible( pParent, true ); } else { diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 77aff951ff2d..eb7ffba103b5 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -433,7 +433,7 @@ int SvxHlinkDlgMarkWnd::FillTree( uno::Reference< container::XNameAccess > xLink pEntry = maLbTree.InsertEntry ( aStrDisplayname, aBmp, aBmp, pParentEntry, - sal_False, TREELIST_APPEND, + false, TREELIST_APPEND, (void*)pData ); nEntries++; } @@ -442,7 +442,7 @@ int SvxHlinkDlgMarkWnd::FillTree( uno::Reference< container::XNameAccess > xLink // insert Displayname into treelist without bitmaps pEntry = maLbTree.InsertEntry ( aStrDisplayname, pParentEntry, - sal_False, TREELIST_APPEND, + false, TREELIST_APPEND, (void*)pData ); nEntries++; } @@ -452,7 +452,7 @@ int SvxHlinkDlgMarkWnd::FillTree( uno::Reference< container::XNameAccess > xLink // insert Displayname into treelist without bitmaps pEntry = maLbTree.InsertEntry ( aStrDisplayname, pParentEntry, - sal_False, TREELIST_APPEND, + false, TREELIST_APPEND, (void*)pData ); nEntries++; } diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx index a529574c7c29..b7c95ffac19c 100644 --- a/cui/source/dialogs/linkdlg.cxx +++ b/cui/source/dialogs/linkdlg.cxx @@ -163,7 +163,7 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox ) sal_uInt16 nObjectType = pLink->GetObjType(); if((OBJECT_CLIENT_FILE & nObjectType) != OBJECT_CLIENT_FILE) { - pSvTabListBox->SelectAll(sal_False); + pSvTabListBox->SelectAll(false); pSvTabListBox->Select(pEntry); nSelectionCount = 1; } @@ -177,7 +177,7 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox ) pLink = (SvBaseLink*)pEntry->GetUserData(); DBG_ASSERT(pLink, "Wo ist der Link?"); if( (OBJECT_CLIENT_FILE & pLink->GetObjType()) != OBJECT_CLIENT_FILE ) - pSvTabListBox->Select( pEntry, sal_False ); + pSvTabListBox->Select( pEntry, false ); } } @@ -329,7 +329,7 @@ IMPL_LINK_NOARG(SvBaseLinksDlg, UpdateNowClickHdl) { SvTreeListEntry* pSelEntry = rListBox.FirstSelected(); if( pE != pSelEntry ) - rListBox.Select( pSelEntry, sal_False ); + rListBox.Select( pSelEntry, false ); rListBox.Select( pE ); rListBox.MakeVisible( pE ); } @@ -502,7 +502,7 @@ IMPL_LINK( SvBaseLinksDlg, UpdateWaitingHdl, Timer*, pTimer ) { (void)pTimer; - Links().SetUpdateMode(sal_False); + Links().SetUpdateMode(false); for( sal_uLong nPos = Links().GetEntryCount(); nPos; ) { SvTreeListEntry* pBox = Links().GetEntry( --nPos ); @@ -515,7 +515,7 @@ IMPL_LINK( SvBaseLinksDlg, UpdateWaitingHdl, Timer*, pTimer ) Links().SetEntryText( sCur, pBox, 3 ); } } - Links().SetUpdateMode(sal_True); + Links().SetUpdateMode(true); return 0; } @@ -540,13 +540,13 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink ) if( bLinkFnd ) { - Links().SetUpdateMode(sal_False); + Links().SetUpdateMode(false); Links().GetModel()->Remove( Links().GetEntry( nPos ) ); SvTreeListEntry* pToUnselect = Links().FirstSelected(); InsertEntry( *_pLink, nPos, sal_True ); if(pToUnselect) - Links().Select(pToUnselect, sal_False); - Links().SetUpdateMode(sal_True); + Links().Select(pToUnselect, false); + Links().SetUpdateMode(true); } else { @@ -585,7 +585,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) if( pNewMgr ) // update has to be stopped before clear - Links().SetUpdateMode( sal_False ); + Links().SetUpdateMode( false ); Links().Clear(); pLinkMgr = pNewMgr; @@ -613,7 +613,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) Links().Select( pEntry ); LinksSelectHdl( 0 ); } - Links().SetUpdateMode( sal_True ); + Links().SetUpdateMode( true ); Links().Invalidate(); } } diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 90cac374df88..df8fc2c0887d 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -155,7 +155,7 @@ void SFTreeListBox::deleteAllTree() void SFTreeListBox::Init( const OUString& language ) { - SetUpdateMode( sal_False ); + SetUpdateMode( false ); deleteAllTree(); @@ -245,7 +245,7 @@ void SFTreeListBox::Init( const OUString& language ) SAL_WNODEPRECATED_DECLARATIONS_POP } - SetUpdateMode( sal_True ); + SetUpdateMode( true ); } Reference< XInterface > diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 23e6b56c7816..194654823346 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -297,7 +297,7 @@ bool SvxThesaurusDialog::UpdateAlternativesBox_Impl() const sal_Int32 nMeanings = aMeanings.getLength(); const uno::Reference< linguistic2::XMeaning > *pMeanings = aMeanings.getConstArray(); - m_pAlternativesCT->SetUpdateMode( sal_False ); + m_pAlternativesCT->SetUpdateMode( false ); // clear old user data of control before creating new ones via AddEntry below m_pAlternativesCT->ClearExtraData(); @@ -317,7 +317,7 @@ bool SvxThesaurusDialog::UpdateAlternativesBox_Impl() m_pAlternativesCT->AddEntry( -1, pSynonyms[k], false ); } - m_pAlternativesCT->SetUpdateMode( sal_True ); + m_pAlternativesCT->SetUpdateMode( true ); return nMeanings > 0; } diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index 14d9e0fa0d6b..370c893ee1eb 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -326,7 +326,7 @@ public: virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); - virtual sal_Bool NotifyAcceptDrop( SvTreeListEntry* pEntry ); + virtual bool NotifyAcceptDrop( SvTreeListEntry* pEntry ); virtual sal_Bool NotifyMoving( SvTreeListEntry*, SvTreeListEntry*, SvTreeListEntry*&, sal_uLong& ); diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 4bd0cd91258e..84a4868c6639 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -194,7 +194,7 @@ sal_Bool SvxFontSubstTabPage::FillItemSet( SfxItemSet& ) void SvxFontSubstTabPage::Reset( const SfxItemSet& ) { - m_pCheckLB->SetUpdateMode(sal_False); + m_pCheckLB->SetUpdateMode(false); m_pCheckLB->Clear(); FontList aFntLst( Application::GetDefaultDevice() ); @@ -217,7 +217,7 @@ void SvxFontSubstTabPage::Reset( const SfxItemSet& ) } CheckEnable(); - m_pCheckLB->SetUpdateMode(sal_True); + m_pCheckLB->SetUpdateMode(true); //fill font name box first m_pNonPropFontsOnlyCB->Check( diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 80504a5395fb..df029f024529 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -181,10 +181,10 @@ void CuiAboutConfigTabPage::Reset(/* const SfxItemSet&*/ ) m_vectorOfModified.clear(); m_pPrefBox->GetModel()->SetSortMode( SortNone ); - m_pPrefBox->SetUpdateMode(sal_False); + m_pPrefBox->SetUpdateMode(false); Reference< XNameAccess > xConfigAccess = getConfigAccess( "/", sal_False ); FillItems( xConfigAccess ); - m_pPrefBox->SetUpdateMode(sal_True); + m_pPrefBox->SetUpdateMode(true); } sal_Bool CuiAboutConfigTabPage::FillItemSet(/* SfxItemSet&*/ ) diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index e7c0911e722b..6a060430121d 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -534,7 +534,7 @@ void SvxEditDictionaryDialog::ShowWords_Impl( sal_uInt16 nId ) aStr += "\t"; aStr += pEntry[i]->getReplacementText(); } - pWordsLB->InsertEntry(aStr, 0, sal_False, nPos == TREELIST_ENTRY_NOTFOUND ? TREELIST_APPEND : nPos); + pWordsLB->InsertEntry(aStr, 0, false, nPos == TREELIST_ENTRY_NOTFOUND ? TREELIST_APPEND : nPos); } if (pWordsLB->GetEntryCount()) @@ -631,7 +631,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn) { // insert new entry in list-box etc... - pWordsLB->SetUpdateMode(sal_False); + pWordsLB->SetUpdateMode(false); sal_uLong _nPos = TREELIST_ENTRY_NOTFOUND; if(pReplaceFT->IsVisible()) @@ -649,13 +649,13 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn) else { _nPos = GetLBInsertPos( aNewWord ); - SvTreeListEntry* pInsEntry = pWordsLB->InsertEntry(sEntry, 0, sal_False, + SvTreeListEntry* pInsEntry = pWordsLB->InsertEntry(sEntry, 0, false, _nPos == TREELIST_ENTRY_NOTFOUND ? TREELIST_APPEND : _nPos); pNewEntry = pInsEntry; } pWordsLB->MakeVisible( pNewEntry ); - pWordsLB->SetUpdateMode(sal_True); + pWordsLB->SetUpdateMode(true); // if the request came from the ReplaceEdit, give focus to the ShortEdit if(pReplaceED->HasFocus()) pWordED->GrabFocus(); @@ -732,7 +732,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt) if(!bFound) { - pWordsLB->SelectAll(sal_False); + pWordsLB->SelectAll(false); pFirstSel = 0; aNewReplaceText = sNew; diff --git a/cui/source/options/optfltr.cxx b/cui/source/options/optfltr.cxx index a1c10e088d61..cf9bc8d45f54 100644 --- a/cui/source/options/optfltr.cxx +++ b/cui/source/options/optfltr.cxx @@ -228,7 +228,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet& ) { SvtFilterOptions& rOpt = SvtFilterOptions::Get(); - m_pCheckLB->SetUpdateMode(sal_False); + m_pCheckLB->SetUpdateMode(false); m_pCheckLB->Clear(); SvtModuleOptions aModuleOpt; @@ -279,7 +279,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet& ) } } } - m_pCheckLB->SetUpdateMode( sal_True ); + m_pCheckLB->SetUpdateMode( true ); } void OfaMSFilterTabPage2::InsertEntry( const OUString& _rTxt, sal_IntPtr _nType ) diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index b804422077a1..bb3f0ed983b5 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -538,7 +538,7 @@ void SvxJavaOptionsPage::AddJRE( JavaInfo* _pInfo ) void SvxJavaOptionsPage::HandleCheckEntry( SvTreeListEntry* _pEntry ) { - m_pJavaList->Select( _pEntry, sal_True ); + m_pJavaList->Select( _pEntry, true ); SvButtonState eState = m_pJavaList->GetCheckButtonState( _pEntry ); if ( SV_BUTTON_CHECKED == eState ) diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index d0cac4e3cc4d..b2f7c1ee5736 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1371,7 +1371,7 @@ void SvxLinguTabPage::AddDicBoxEntry( const uno::Reference< XDictionary > &rxDic, sal_uInt16 nIdx ) { - m_pLinguDicsCLB->SetUpdateMode(sal_False); + m_pLinguDicsCLB->SetUpdateMode(false); OUString aTxt( ::GetDicInfoStr( rxDic->getName(), LanguageTag( rxDic->getLocale() ).getLanguageType(), @@ -1386,14 +1386,14 @@ void SvxLinguTabPage::AddDicBoxEntry( lcl_SetCheckButton( pEntry, aData.IsChecked() ); } - m_pLinguDicsCLB->SetUpdateMode(sal_True); + m_pLinguDicsCLB->SetUpdateMode(true); } void SvxLinguTabPage::UpdateDicBox_Impl() { - m_pLinguDicsCLB->SetUpdateMode(sal_False); + m_pLinguDicsCLB->SetUpdateMode(false); m_pLinguDicsCLB->Clear(); sal_Int32 nDics = aDics.getLength(); @@ -1405,7 +1405,7 @@ void SvxLinguTabPage::UpdateDicBox_Impl() AddDicBoxEntry( rDic, (sal_uInt16)i ); } - m_pLinguDicsCLB->SetUpdateMode(sal_True); + m_pLinguDicsCLB->SetUpdateMode(true); } @@ -1450,7 +1450,7 @@ void SvxLinguTabPage::Reset( const SfxItemSet& rSet ) SvtLinguConfig aLngCfg; - m_pLinguOptionsCLB->SetUpdateMode(sal_False); + m_pLinguOptionsCLB->SetUpdateMode(false); m_pLinguOptionsCLB->Clear(); SvTreeList *pModel = m_pLinguOptionsCLB->GetModel(); @@ -1539,7 +1539,7 @@ void SvxLinguTabPage::Reset( const SfxItemSet& rSet ) pModel->Insert( pEntry ); lcl_SetCheckButton( pEntry, bVal ); - m_pLinguOptionsCLB->SetUpdateMode(sal_True); + m_pLinguOptionsCLB->SetUpdateMode(true); } @@ -2296,7 +2296,7 @@ IMPL_LINK( SvxEditModulesDlg, UpDownHdl_Impl, PushButton *, pBtn ) if (nCurPos != TREELIST_ENTRY_NOTFOUND && 0 != (pEntry = m_pModulesCLB->GetEntry(nCurPos))) { - m_pModulesCLB->SetUpdateMode(sal_False); + m_pModulesCLB->SetUpdateMode(false); SvTreeList *pModel = m_pModulesCLB->GetModel(); ModuleUserData_Impl* pData = (ModuleUserData_Impl*)pEntry->GetUserData(); @@ -2312,7 +2312,7 @@ IMPL_LINK( SvxEditModulesDlg, UpDownHdl_Impl, PushButton *, pBtn ) m_pModulesCLB->CheckEntryPos(nDestPos, bIsChecked ); m_pModulesCLB->SelectEntryPos(nDestPos ); SelectHdl_Impl(m_pModulesCLB); - m_pModulesCLB->SetUpdateMode(sal_True); + m_pModulesCLB->SetUpdateMode(true); } return 0; } diff --git a/cui/source/options/radiobtnbox.cxx b/cui/source/options/radiobtnbox.cxx index 47d37eb2f73c..fd7de8f3d505 100644 --- a/cui/source/options/radiobtnbox.cxx +++ b/cui/source/options/radiobtnbox.cxx @@ -66,7 +66,7 @@ void SvxRadioButtonListBox::KeyInput( const KeyEvent& rKEvt ) void SvxRadioButtonListBox::HandleEntryChecked( SvTreeListEntry* _pEntry ) { - Select( _pEntry, sal_True ); + Select( _pEntry, true ); SvButtonState eState = GetCheckButtonState( _pEntry ); if ( SV_BUTTON_CHECKED == eState ) diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 1a23f7da634d..287c1a525e5b 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -779,7 +779,7 @@ void OfaTreeOptionsDialog::InitTreeAndHandler() WB_CLIPCHILDREN | WB_HSCROLL | WB_FORCE_MAKEVISIBLE | WB_QUICK_SEARCH ); aTreeLB.SetSpaceBetweenEntries( 0 ); aTreeLB.SetSelectionMode( SINGLE_SELECTION ); - aTreeLB.SetSublistOpenWithLeftRight( sal_True ); + aTreeLB.SetSublistOpenWithLeftRight( true ); aTreeLB.SetExpandedHdl( LINK( this, OfaTreeOptionsDialog, ExpandedHdl_Impl ) ); aTreeLB.SetSelectHdl( LINK( this, OfaTreeOptionsDialog, ShowPageHdl_Impl ) ); aBackPB.SetClickHdl( LINK( this, OfaTreeOptionsDialog, BackHdl_Impl ) ); diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 9b2223718f94..848190c048b5 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -232,7 +232,7 @@ void OfaAutocorrOptionsPage::Reset( const SfxItemSet& ) SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect(); const long nFlags = pAutoCorrect->GetFlags(); - m_pCheckLB->SetUpdateMode(sal_False); + m_pCheckLB->SetUpdateMode(false); m_pCheckLB->Clear(); m_pCheckLB->InsertEntry(m_sInput); @@ -254,7 +254,7 @@ void OfaAutocorrOptionsPage::Reset( const SfxItemSet& ) m_pCheckLB->CheckEntryPos( nPos++, 0 != (nFlags & IgnoreDoubleSpace) ); m_pCheckLB->CheckEntryPos( nPos++, 0 != (nFlags & CorrectCapsLock) ); - m_pCheckLB->SetUpdateMode(sal_True); + m_pCheckLB->SetUpdateMode(true); } /*********************************************************************/ @@ -608,7 +608,7 @@ void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& ) SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); const long nFlags = pAutoCorrect->GetFlags(); - m_pCheckLB->SetUpdateMode(sal_False); + m_pCheckLB->SetUpdateMode(false); m_pCheckLB->Clear(); // The following entries have to be inserted in the same order @@ -678,7 +678,7 @@ void OfaSwAutoFmtOptionsPage::Reset( const SfxItemSet& ) m_pCheckLB->CheckEntryPos( CREATE_TABLE, CBCOL_SECOND, pOpt->bCreateTable ); m_pCheckLB->CheckEntryPos( REPLACE_STYLES, CBCOL_SECOND, pOpt->bReplaceStyles ); - m_pCheckLB->SetUpdateMode(sal_True); + m_pCheckLB->SetUpdateMode(true); } IMPL_LINK(OfaSwAutoFmtOptionsPage, SelectHdl, OfaACorrCheckListBox*, pBox) @@ -1030,7 +1030,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, { SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang); - m_pReplaceTLB->SetUpdateMode(sal_False); + m_pReplaceTLB->SetUpdateMode(false); SvxAutocorrWordList::Content aContent = pWordList->getSortedContent(); for( SvxAutocorrWordList::Content::const_iterator it = aContent.begin(); it != aContent.end(); ++it ) @@ -1055,7 +1055,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset, } m_pNewReplacePB->Enable(false); m_pDeleteReplacePB->Enable(false); - m_pReplaceTLB->SetUpdateMode(sal_True); + m_pReplaceTLB->SetUpdateMode(true); } SfxViewShell* pViewShell = SfxViewShell::Current(); @@ -1212,7 +1212,7 @@ IMPL_LINK(OfaAutocorrReplacePage, NewDelHdl, PushButton*, pBtn) bool bKeepSourceFormatting = !bReplaceEditChanged && !m_pTextOnlyCB->IsChecked(); NewEntry(m_pShortED->GetText(), m_pReplaceED->GetText(), bKeepSourceFormatting); - m_pReplaceTLB->SetUpdateMode(sal_False); + m_pReplaceTLB->SetUpdateMode(false); sal_uLong nPos = TREELIST_ENTRY_NOTFOUND; sEntry += "\t"; sEntry += m_pReplaceED->GetText(); @@ -1241,7 +1241,7 @@ IMPL_LINK(OfaAutocorrReplacePage, NewDelHdl, PushButton*, pBtn) } m_pReplaceTLB->MakeVisible( pInsEntry ); - m_pReplaceTLB->SetUpdateMode( sal_True ); + m_pReplaceTLB->SetUpdateMode( true ); // if the request came from the ReplaceEdit, give focus to the ShortEdit if(m_pReplaceED->HasFocus()) { @@ -1302,7 +1302,7 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, Edit*, pEdt) } if( !bFound ) { - m_pReplaceTLB->SelectAll( sal_False ); + m_pReplaceTLB->SelectAll( false ); pFirstSel = 0; m_pNewReplacePB->SetText( sNew ); if( bReplaceEditChanged ) @@ -1906,7 +1906,7 @@ void OfaQuoteTabPage::Reset( const SfxItemSet& ) { SvxSwAutoFmtFlags *pOpt = &pAutoCorrect->GetSwFlags(); - m_pSwCheckLB->SetUpdateMode( sal_False ); + m_pSwCheckLB->SetUpdateMode( false ); m_pSwCheckLB->Clear(); m_pSwCheckLB->GetModel()->Insert(CreateEntry(sNonBrkSpace, CBCOL_BOTH )); @@ -1917,7 +1917,7 @@ void OfaQuoteTabPage::Reset( const SfxItemSet& ) m_pSwCheckLB->CheckEntryPos( REPLACE_1ST, CBCOL_FIRST, pOpt->bChgOrdinalNumber ); m_pSwCheckLB->CheckEntryPos( REPLACE_1ST, CBCOL_SECOND, 0 != (nFlags & ChgOrdinalNumber) ); - m_pSwCheckLB->SetUpdateMode( sal_True ); + m_pSwCheckLB->SetUpdateMode( true ); } // Initialize the non Sw options diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 63bc895156ab..85d51c0e4588 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -336,7 +336,7 @@ IMPL_STATIC_LINK( _SfxMacroTabPage, AssignDeleteHdl_Impl, PushButton*, pBtn ) rListBox.GetModel()->InvalidateEntry( pE ); rListBox.Select( pE ); rListBox.MakeVisible( pE ); - rListBox.SetUpdateMode( sal_True ); + rListBox.SetUpdateMode( true ); pThis->EnableButtons(); return 0; diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 871c47cdfcf0..4c380af2f37a 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -812,7 +812,7 @@ void SvxNumberFormatTabPage::FillFormatListBox_Impl( std::vector<OUString>& rEnt short aPrivCat; m_pLbFormat->Clear(); - m_pLbFormat->SetUpdateMode( sal_False ); + m_pLbFormat->SetUpdateMode( false ); if( rEntries.empty() ) return; @@ -862,7 +862,7 @@ void SvxNumberFormatTabPage::FillFormatListBox_Impl( std::vector<OUString>& rEnt } } } - m_pLbFormat->SetUpdateMode( sal_True ); + m_pLbFormat->SetUpdateMode( true ); rEntries.clear(); } |