diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-21 12:53:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-21 12:53:51 +0100 |
commit | e8f8f24c8415898c787bbfb629247ed62e73a2b9 (patch) | |
tree | dae18a3acbf29c192118e7c003f80df8da8e21ae /cui | |
parent | Don't unnecessarily(?) drop compiler flags when rewriting (diff) | |
download | core-e8f8f24c8415898c787bbfb629247ed62e73a2b9.tar.gz core-e8f8f24c8415898c787bbfb629247ed62e73a2b9.zip |
vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
Diffstat (limited to 'cui')
51 files changed, 301 insertions, 301 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index ddef6003f4ed..dd768be7da09 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -1580,7 +1580,7 @@ SvxConfigPage::SvxConfigPage( { aDescriptionField.SetControlBackground( GetSettings().GetStyleSettings().GetDialogColor() ); aDescriptionField.SetAutoScroll( sal_True ); - aDescriptionField.EnableCursor( sal_False ); + aDescriptionField.EnableCursor( false ); aMoveUpButton.SetAccessibleRelationMemberOf(&aContentsSeparator); aMoveDownButton.SetAccessibleRelationMemberOf(&aContentsSeparator); @@ -1697,13 +1697,13 @@ void SvxConfigPage::Reset( const SfxItemSet& ) { if ( pDocData != NULL && pDocData->HasURL( m_aURLToSelect ) ) { - aSaveInListBox.SelectEntryPos( nPos, sal_True ); + aSaveInListBox.SelectEntryPos( nPos, true ); pCurrentSaveInData = pDocData; bURLToSelectFound = true; } else if ( pModuleData->HasURL( m_aURLToSelect ) ) { - aSaveInListBox.SelectEntryPos( 0, sal_True ); + aSaveInListBox.SelectEntryPos( 0, true ); pCurrentSaveInData = pModuleData; bURLToSelectFound = true; } @@ -1715,12 +1715,12 @@ void SvxConfigPage::Reset( const SfxItemSet& ) // it the SaveIn listbox, otherwise select the module data if ( pDocData != NULL && pDocData->HasSettings() ) { - aSaveInListBox.SelectEntryPos( nPos, sal_True ); + aSaveInListBox.SelectEntryPos( nPos, true ); pCurrentSaveInData = pDocData; } else { - aSaveInListBox.SelectEntryPos( 0, sal_True ); + aSaveInListBox.SelectEntryPos( 0, true ); pCurrentSaveInData = pModuleData; } } @@ -1960,7 +1960,7 @@ void SvxConfigPage::ReloadTopLevelListBox( SvxConfigEntry* pToSelect ) nSelectionPos = nSelectionPos < aTopLevelListBox.GetEntryCount() ? nSelectionPos : aTopLevelListBox.GetEntryCount() - 1; - aTopLevelListBox.SelectEntryPos( nSelectionPos, sal_True ); + aTopLevelListBox.SelectEntryPos( nSelectionPos, true ); aTopLevelListBox.GetSelectHdl().Call( this ); } @@ -2313,7 +2313,7 @@ void SvxMenuConfigPage::Init() ReloadTopLevelListBox(); - aTopLevelListBox.SelectEntryPos(0, sal_True); + aTopLevelListBox.SelectEntryPos(0, true); aTopLevelListBox.GetSelectHdl().Call(this); } @@ -2356,9 +2356,9 @@ void SvxMenuConfigPage::UpdateButtonStates() aMoveUpButton.Enable( false ); aMoveDownButton.Enable( false ); - pPopup->EnableItem( ID_BEGIN_GROUP, sal_True ); - pPopup->EnableItem( ID_RENAME, sal_False ); - pPopup->EnableItem( ID_DELETE, sal_False ); + pPopup->EnableItem( ID_BEGIN_GROUP, true ); + pPopup->EnableItem( ID_RENAME, false ); + pPopup->EnableItem( ID_DELETE, false ); aDescriptionField.Clear(); @@ -2376,17 +2376,17 @@ void SvxMenuConfigPage::UpdateButtonStates() if ( pEntryData->IsSeparator() ) { - pPopup->EnableItem( ID_DELETE, sal_True ); - pPopup->EnableItem( ID_BEGIN_GROUP, sal_False ); - pPopup->EnableItem( ID_RENAME, sal_False ); + pPopup->EnableItem( ID_DELETE, true ); + pPopup->EnableItem( ID_BEGIN_GROUP, false ); + pPopup->EnableItem( ID_RENAME, false ); aDescriptionField.Clear(); } else { - pPopup->EnableItem( ID_BEGIN_GROUP, sal_True ); - pPopup->EnableItem( ID_DELETE, sal_True ); - pPopup->EnableItem( ID_RENAME, sal_True ); + pPopup->EnableItem( ID_BEGIN_GROUP, true ); + pPopup->EnableItem( ID_DELETE, true ); + pPopup->EnableItem( ID_RENAME, true ); aDescriptionField.SetNewText( pEntryData->GetHelpText() ); } @@ -3086,11 +3086,11 @@ void SvxToolbarConfigPage::DeleteSelectedTopLevel() // subtract one from the entry count if ( nSelectionPos != aTopLevelListBox.GetEntryCount() - 1 ) { - aTopLevelListBox.SelectEntryPos( nSelectionPos + 1, sal_True ); + aTopLevelListBox.SelectEntryPos( nSelectionPos + 1, true ); } else { - aTopLevelListBox.SelectEntryPos( nSelectionPos - 1, sal_True ); + aTopLevelListBox.SelectEntryPos( nSelectionPos - 1, true ); } aTopLevelListBox.GetSelectHdl().Call( this ); @@ -3573,7 +3573,7 @@ void SvxToolbarConfigPage::Init() m_aURLToSelect += "standardbar"; } - aTopLevelListBox.SelectEntryPos(nPos, sal_True); + aTopLevelListBox.SelectEntryPos(nPos, true); aTopLevelListBox.GetSelectHdl().Call(this); } @@ -4404,15 +4404,15 @@ IMPL_LINK( SvxToolbarConfigPage, SelectToolbarEntry, Control *, pBox ) void SvxToolbarConfigPage::UpdateButtonStates() { PopupMenu* pPopup = aModifyCommandButton.GetPopupMenu(); - pPopup->EnableItem( ID_RENAME, sal_False ); - pPopup->EnableItem( ID_DELETE, sal_False ); - pPopup->EnableItem( ID_BEGIN_GROUP, sal_False ); - pPopup->EnableItem( ID_DEFAULT_COMMAND, sal_False ); - pPopup->EnableItem( ID_ICON_ONLY, sal_False ); - pPopup->EnableItem( ID_ICON_AND_TEXT, sal_False ); - pPopup->EnableItem( ID_TEXT_ONLY, sal_False ); - pPopup->EnableItem( ID_CHANGE_SYMBOL, sal_False ); - pPopup->EnableItem( ID_RESET_SYMBOL, sal_False ); + pPopup->EnableItem( ID_RENAME, false ); + pPopup->EnableItem( ID_DELETE, false ); + pPopup->EnableItem( ID_BEGIN_GROUP, false ); + pPopup->EnableItem( ID_DEFAULT_COMMAND, false ); + pPopup->EnableItem( ID_ICON_ONLY, false ); + pPopup->EnableItem( ID_ICON_AND_TEXT, false ); + pPopup->EnableItem( ID_TEXT_ONLY, false ); + pPopup->EnableItem( ID_CHANGE_SYMBOL, false ); + pPopup->EnableItem( ID_RESET_SYMBOL, false ); aDescriptionField.Clear(); @@ -4424,22 +4424,22 @@ void SvxToolbarConfigPage::UpdateButtonStates() SvxConfigEntry* pEntryData = (SvxConfigEntry*) selection->GetUserData(); if ( pEntryData->IsSeparator() ) - pPopup->EnableItem( ID_DELETE, sal_True ); + pPopup->EnableItem( ID_DELETE, true ); else { - pPopup->EnableItem( ID_BEGIN_GROUP, sal_True ); - pPopup->EnableItem( ID_DELETE, sal_True ); - pPopup->EnableItem( ID_RENAME, sal_True ); - pPopup->EnableItem( ID_ICON_ONLY, sal_True ); - pPopup->EnableItem( ID_ICON_AND_TEXT, sal_True ); - pPopup->EnableItem( ID_TEXT_ONLY, sal_True ); - pPopup->EnableItem( ID_CHANGE_SYMBOL, sal_True ); + pPopup->EnableItem( ID_BEGIN_GROUP, true ); + pPopup->EnableItem( ID_DELETE, true ); + pPopup->EnableItem( ID_RENAME, true ); + pPopup->EnableItem( ID_ICON_ONLY, true ); + pPopup->EnableItem( ID_ICON_AND_TEXT, true ); + pPopup->EnableItem( ID_TEXT_ONLY, true ); + pPopup->EnableItem( ID_CHANGE_SYMBOL, true ); if ( !pEntryData->IsUserDefined() ) - pPopup->EnableItem( ID_DEFAULT_COMMAND, sal_True ); + pPopup->EnableItem( ID_DEFAULT_COMMAND, true ); if ( pEntryData->IsIconModified() ) - pPopup->EnableItem( ID_RESET_SYMBOL, sal_True ); + pPopup->EnableItem( ID_RESET_SYMBOL, true ); aDescriptionField.SetNewText( pEntryData->GetHelpText() ); } @@ -4560,7 +4560,7 @@ IMPL_LINK( SvxToolbarConfigPage, NewToolbarHdl, Button *, pButton ) } pNameDialog->m_pSaveInListBox->SelectEntryPos( - aSaveInListBox.GetSelectEntryPos(), sal_True ); + aSaveInListBox.GetSelectEntryPos(), true ); if ( pNameDialog->Execute() == RET_OK ) { @@ -4573,7 +4573,7 @@ IMPL_LINK( SvxToolbarConfigPage, NewToolbarHdl, Button *, pButton ) if ( GetSaveInData() != pData ) { - aSaveInListBox.SelectEntryPos( nInsertPos, sal_True ); + aSaveInListBox.SelectEntryPos( nInsertPos, true ); aSaveInListBox.GetSelectHdl().Call(this); } @@ -4587,7 +4587,7 @@ IMPL_LINK( SvxToolbarConfigPage, NewToolbarHdl, Button *, pButton ) nInsertPos = aTopLevelListBox.InsertEntry( pToolbar->GetName() ); aTopLevelListBox.SetEntryData( nInsertPos, pToolbar ); - aTopLevelListBox.SelectEntryPos( nInsertPos, sal_True ); + aTopLevelListBox.SelectEntryPos( nInsertPos, true ); aTopLevelListBox.GetSelectHdl().Call(this); pData->SetModified( true ); @@ -4905,7 +4905,7 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( Window *pWindow, OUStringHash, ::std::equal_to< OUString > > ImageInfo; - aTbSymbol.SetPageScroll( sal_True ); + aTbSymbol.SetPageScroll( true ); bool bLargeIcons = GetImageType() & css::ui::ImageType::SIZE_LARGE; m_nExpectedSize = bLargeIcons ? 26 : 16; @@ -5112,7 +5112,7 @@ IMPL_LINK( SvxIconSelectorDialog, SelectHdl, ToolBox *, pToolBox ) if ( aTbSymbol.IsItemChecked( nId ) ) { - aTbSymbol.CheckItem( nId, sal_False ); + aTbSymbol.CheckItem( nId, false ); } } @@ -5519,7 +5519,7 @@ SvxIconChangeDialog::SvxIconChangeDialog( aFImageInfo.SetImage(InfoBox::GetStandardImage()); aLineEditDescription.SetControlBackground( GetSettings().GetStyleSettings().GetDialogColor() ); aLineEditDescription.SetAutoScroll( sal_True ); - aLineEditDescription.EnableCursor( sal_False ); + aLineEditDescription.EnableCursor( false ); aLineEditDescription.SetText(aMessage); } diff --git a/cui/source/customize/eventdlg.cxx b/cui/source/customize/eventdlg.cxx index dd61fc2e7884..397a493bfe1e 100644 --- a/cui/source/customize/eventdlg.cxx +++ b/cui/source/customize/eventdlg.cxx @@ -91,7 +91,7 @@ SvxEventConfigPage::SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet, nPos = aSaveInListBox.InsertEntry( utl::ConfigManager::getProductName() ); aSaveInListBox.SetEntryData( nPos, new bool(true) ); - aSaveInListBox.SelectEntryPos( nPos, sal_True ); + aSaveInListBox.SelectEntryPos( nPos, true ); } // ----------------------------------------------------------------------- @@ -163,7 +163,7 @@ void SvxEventConfigPage::ImplInitDocument() sal_uInt16 nPos = aSaveInListBox.InsertEntry( aTitle ); aSaveInListBox.SetEntryData( nPos, new bool(false) ); - aSaveInListBox.SelectEntryPos( nPos, sal_True ); + aSaveInListBox.SelectEntryPos( nPos, true ); bAppConfig = false; } @@ -183,7 +183,7 @@ IMPL_LINK( SvxEventConfigPage, SelectHdl_Impl, ListBox *, pBox ) bool* bApp = (bool*) aSaveInListBox.GetEntryData( aSaveInListBox.GetSelectEntryPos()); - mpImpl->pEventLB->SetUpdateMode( sal_False ); + mpImpl->pEventLB->SetUpdateMode( false ); bAppConfig = *bApp; if ( *bApp ) { @@ -217,7 +217,7 @@ IMPL_LINK( SvxEventConfigPage, SelectHdl_Impl, ListBox *, pBox ) _SvxMacroTabPage::DisplayAppEvents( false ); } - mpImpl->pEventLB->SetUpdateMode( sal_True ); + mpImpl->pEventLB->SetUpdateMode( true ); return sal_True; } diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index e81980986e99..e3fcb2b1ca64 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -511,7 +511,7 @@ void _SvxMacroTabPage::DisplayAppEvents( bool appEvents) bAppEvents = appEvents; SvHeaderTabListBox& rListBox = mpImpl->pEventLB->GetListBox(); - mpImpl->pEventLB->SetUpdateMode( sal_False ); + mpImpl->pEventLB->SetUpdateMode( false ); rListBox.Clear(); EventsHash* eventsHash; Reference< container::XNameReplace> nameReplace; @@ -711,7 +711,7 @@ long _SvxMacroTabPage::GenericHandler_Impl( _SvxMacroTabPage* pThis, PushButton* } // update the listbox entry - pImpl->pEventLB->SetUpdateMode( sal_False ); + pImpl->pEventLB->SetUpdateMode( false ); pE->ReplaceItem( new IconLBoxString( pE, 0, sEventURL, &pImpl->aMacroImg, &pImpl->aComponentImg ), LB_MACROS_ITEMPOS ); diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 1b984c5d23f3..c28f120ef5de 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -422,7 +422,7 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent */ IMPL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog *, EMPTYARG ) { - pThis->SetUpdateMode( sal_False ); + pThis->SetUpdateMode( false ); //show or hide AutoCorrect depending on the modules abilities pThis->m_pAutoCorrPB->Show(pThis->rParent.HasAutoCorrection()); pThis->SpellContinue_Impl(); @@ -445,7 +445,7 @@ IMPL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog *, EMPTYARG ) pThis->LockFocusChanges(false); //show grammar CheckBox depending on the modules abilities pThis->m_pCheckGrammarCB->Check( pThis->rParent.IsGrammarChecking() ); - pThis->SetUpdateMode( sal_True ); + pThis->SetUpdateMode( true ); pThis->Show(); return 0; }; @@ -742,12 +742,12 @@ IMPL_LINK_NOARG(SpellDialog, IgnoreHdl) // ----------------------------------------------------------------------- -sal_Bool SpellDialog::Close() +bool SpellDialog::Close() { GetBindings().GetDispatcher()-> Execute(rParent.GetType(), SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD); - return sal_True; + return true; } // ----------------------------------------------------------------------- @@ -1641,8 +1641,8 @@ bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, com::sun: void SentenceEditWindow_Impl::MoveErrorMarkTo(sal_uInt16 nStart, sal_uInt16 nEnd, bool bGrammarError) { TextEngine* pTextEngine = GetTextEngine(); - pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTCOLOR, sal_True ); - pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTWEIGHT, sal_True ); + pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTCOLOR, true ); + pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTWEIGHT, true ); pTextEngine->SetAttrib( TextAttribFontWeight(WEIGHT_BOLD), 0, nStart, nEnd ); pTextEngine->SetAttrib( TextAttribFontColor(bGrammarError ? COL_LIGHTBLUE : COL_LIGHTRED), 0, nStart, nEnd ); m_nErrorStart = nStart; @@ -1695,7 +1695,7 @@ void SentenceEditWindow_Impl::ChangeMarkedWord(const OUString& rNewWord, Languag pTextEngine->SetAttrib(*pNewBackground, 0, nStart, m_nErrorStart); delete pNewBackground; } - pTextEngine->SetModified(sal_True); + pTextEngine->SetModified(true); //adjust end position long nEndTemp = m_nErrorEnd; @@ -2012,8 +2012,8 @@ void SentenceEditWindow_Impl::SetUndoEditMode(bool bSet) //remove error marks TextEngine* pTextEngine = GetTextEngine(); - pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTCOLOR, sal_True ); - pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTWEIGHT, sal_True ); + pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTCOLOR, true ); + pTextEngine->RemoveAttribs( 0, (sal_uInt16)TEXTATTR_FONTWEIGHT, true ); //put the appropriate action on the Undo-stack SpellUndoAction_Impl* pAction = new SpellUndoAction_Impl( diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index e4bdbb540a98..f045590f0629 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -275,10 +275,10 @@ OUString AboutDialog::GetCopyrightString() return aCopyrightString; } -sal_Bool AboutDialog::Close() +bool AboutDialog::Close() { EndDialog( RET_OK ); - return sal_False; + return false; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 952bf399c5c4..7c647f39d3b8 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -274,7 +274,7 @@ void SvxShowText::SetFont( const Font& rFont ) aFont.SetWeight( WEIGHT_NORMAL ); aFont.SetAlign( ALIGN_TOP ); aFont.SetSize( PixelToLogic( Size( 0, nWinHeight/2 ) ) ); - aFont.SetTransparent( sal_True ); + aFont.SetTransparent( true ); Control::SetFont( aFont ); mnY = ( nWinHeight - GetTextHeight() ) / 2; @@ -313,7 +313,7 @@ SvxShowText::~SvxShowText() void SvxCharacterMap::init() { aFont = GetFont(); - aFont.SetTransparent( sal_True ); + aFont.SetTransparent( true ); aFont.SetFamily( FAMILY_DONTKNOW ); aFont.SetPitch( PITCH_DONTKNOW ); aFont.SetCharSet( RTL_TEXTENCODING_DONTKNOW ); diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx index 5893b9f68725..23e362a8507f 100644 --- a/cui/source/dialogs/cuifmsearch.cxx +++ b/cui/source/dialogs/cuifmsearch.cxx @@ -238,7 +238,7 @@ void FmSearchDialog::Init(const OUString& strVisibleFields, const OUString& sIni m_lbField.SetSelectHdl(LINK(this, FmSearchDialog, OnFieldSelected)); m_cmbSearchText.SetModifyHdl(LINK(this, FmSearchDialog, OnSearchTextModified)); - m_cmbSearchText.EnableAutocomplete(sal_False); + m_cmbSearchText.EnableAutocomplete(false); m_cmbSearchText.SetGetFocusHdl(LINK(this, FmSearchDialog, OnFocusGrabbed)); m_cbUseFormat.SetToggleHdl(LINK(this, FmSearchDialog, OnCheckBoxToggled)); @@ -291,14 +291,14 @@ void FmSearchDialog::Init(const OUString& strVisibleFields, const OUString& sIni FreeResource(); } -sal_Bool FmSearchDialog::Close() +bool FmSearchDialog::Close() { // If the close button is disabled and ESC is pressed in a dialog, // then Frame will call Close anyway, which I don't want to happen // while I'm in the middle of a search (maybe one that's running // in its own thread) if (!m_pbClose.IsEnabled()) - return sal_False; + return false; return ModalDialog::Close(); } @@ -343,7 +343,7 @@ IMPL_LINK_NOARG(FmSearchDialog, OnClickedSearchAgain) if (m_cbStartOver.IsChecked()) { - m_cbStartOver.Check(sal_False); + m_cbStartOver.Check(false); EnableSearchUI(sal_False); if (m_rbSearchForText.IsChecked()) m_pSearchEngine->StartOver(strThisRoundText); @@ -815,15 +815,15 @@ void FmSearchDialog::LoadParams() // all fields/single field (AFTER selcting the field because OnClickedFieldRadios expects a valid value there) if (aParams.bAllFields) { - m_rbSingleField.Check(sal_False); - m_rbAllFields.Check(sal_True); + m_rbSingleField.Check(false); + m_rbAllFields.Check(true); LINK(this, FmSearchDialog, OnClickedFieldRadios).Call(&m_rbAllFields); // OnClickedFieldRadios also calls to RebuildUsedFields } else { - m_rbAllFields.Check(sal_False); - m_rbSingleField.Check(sal_True); + m_rbAllFields.Check(false); + m_rbSingleField.Check(true); LINK(this, FmSearchDialog, OnClickedFieldRadios).Call(&m_rbSingleField); } @@ -843,9 +843,9 @@ void FmSearchDialog::LoadParams() LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_aHalfFullFormsCJK); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_aSoundsLikeCJK); - m_cbWildCard.Check(sal_False); - m_cbRegular.Check(sal_False); - m_cbApprox.Check(sal_False); + m_cbWildCard.Check(false); + m_cbRegular.Check(false); + m_cbApprox.Check(false); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_cbWildCard); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_cbRegular); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(&m_cbApprox); @@ -861,7 +861,7 @@ void FmSearchDialog::LoadParams() pToCheck = &m_aSoundsLikeCJK; if (pToCheck) { - pToCheck->Check(sal_True); + pToCheck->Check(true); LINK(this, FmSearchDialog, OnCheckBoxToggled).Call(pToCheck); } @@ -873,14 +873,14 @@ void FmSearchDialog::LoadParams() m_pSearchEngine->SetTransliterationFlags( aParams.getTransliterationFlags( ) ); - m_rbSearchForText.Check(sal_False); - m_rbSearchForNull.Check(sal_False); - m_rbSearchForNotNull.Check(sal_False); + m_rbSearchForText.Check(false); + m_rbSearchForNull.Check(false); + m_rbSearchForNotNull.Check(false); switch (aParams.nSearchForType) { - case 1: m_rbSearchForNull.Check(sal_True); break; - case 2: m_rbSearchForNotNull.Check(sal_True); break; - default: m_rbSearchForText.Check(sal_True); break; + case 1: m_rbSearchForNull.Check(true); break; + case 2: m_rbSearchForNotNull.Check(true); break; + default: m_rbSearchForText.Check(true); break; } LINK(this, FmSearchDialog, OnClickedFieldRadios).Call(&m_rbSearchForText); } diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index bff5ad288e55..dcd508d4f82d 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -379,7 +379,7 @@ IMPL_LINK_NOARG(TakeProgress, CleanUpHdl) sal_uInt32 i, nCount; GetParent()->EnterWait(); - mpBrowser->aLbxFound.SetUpdateMode( sal_False ); + mpBrowser->aLbxFound.SetUpdateMode( false ); mpBrowser->aLbxFound.SetNoSelection(); // mark all taken positions in aRemoveEntries @@ -411,7 +411,7 @@ IMPL_LINK_NOARG(TakeProgress, CleanUpHdl) aRemainingVector.clear(); - mpBrowser->aLbxFound.SetUpdateMode( sal_True ); + mpBrowser->aLbxFound.SetUpdateMode( true ); mpBrowser->SelectFoundHdl( NULL ); GetParent()->LeaveWait(); @@ -768,7 +768,7 @@ void TPGalleryThemeProperties::SetXChgData( ExchangeData* _pData ) aBtnTakeAll.SetClickHdl(LINK(this, TPGalleryThemeProperties, ClickTakeAllHdl)); aCbxPreview.SetClickHdl(LINK(this, TPGalleryThemeProperties, ClickPreviewHdl)); aCbbFileType.SetSelectHdl(LINK(this, TPGalleryThemeProperties, SelectFileTypeHdl)); - aCbbFileType.EnableDDAutoWidth( sal_False ); + aCbbFileType.EnableDDAutoWidth( false ); aLbxFound.SetDoubleClickHdl(LINK(this, TPGalleryThemeProperties, DClickFoundHdl)); aLbxFound.SetSelectHdl(LINK(this, TPGalleryThemeProperties, SelectFoundHdl)); aLbxFound.InsertEntry(OUString(CUI_RES(RID_SVXSTR_GALLERY_NOFILES))); diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index de58b79976d7..0f1efdaf8b50 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -150,12 +150,12 @@ SvxHpLinkDlg::~SvxHpLinkDlg () |* |************************************************************************/ -sal_Bool SvxHpLinkDlg::Close() +bool SvxHpLinkDlg::Close() { GetDispatcher()->Execute( SID_HYPERLINK_DIALOG, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); - return sal_True; + return true; } /************************************************************************* diff --git a/cui/source/dialogs/cuitbxform.cxx b/cui/source/dialogs/cuitbxform.cxx index 3c1f7cfd6bf9..3a9f696a1316 100644 --- a/cui/source/dialogs/cuitbxform.cxx +++ b/cui/source/dialogs/cuitbxform.cxx @@ -38,7 +38,7 @@ FmInputRecordNoDialog::FmInputRecordNoDialog(Window * pParent) m_pRecordNo->SetMin(1); m_pRecordNo->SetMax(0x7FFFFFFF); - m_pRecordNo->SetStrictFormat(sal_True); + m_pRecordNo->SetStrictFormat(true); m_pRecordNo->SetDecimalDigits(0); } diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index e8e019b6bf07..ededbf44c363 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -731,7 +731,7 @@ namespace svx { sal_Bool bBoxChecked = pBox->IsChecked(); if (bBoxChecked) - pOtherBox->Check( sal_False ); + pOtherBox->Check( false ); pOtherBox->Enable( !bBoxChecked ); } @@ -830,7 +830,7 @@ namespace svx //------------------------------------------------------------------------- void HangulHanjaConversionDialog::SetByCharacter( bool _bByCharacter ) { - m_aReplaceByChar.Check( static_cast<sal_Bool>(_bByCharacter) ); + m_aReplaceByChar.Check( _bByCharacter ); m_aSuggestions.DisplayListBox( !_bByCharacter ); } @@ -840,16 +840,16 @@ namespace svx HHC::ConversionDirection _ePrimaryConversionDirection ) { // default state: try both direction - m_aHangulOnly.Check( sal_False ); + m_aHangulOnly.Check( false ); m_aHangulOnly.Enable( true ); - m_aHanjaOnly.Check( sal_False ); + m_aHanjaOnly.Check( false ); m_aHanjaOnly.Enable( true ); if (!_bTryBothDirections) { CheckBox *pBox = _ePrimaryConversionDirection == HHC::eHangulToHanja? &m_aHangulOnly : &m_aHanjaOnly; - pBox->Check( sal_True ); + pBox->Check( true ); OnConversionDirectionClicked( pBox ); } } diff --git a/cui/source/dialogs/hldocntp.cxx b/cui/source/dialogs/hldocntp.cxx index c9a377d144c3..10850f2d52fd 100644 --- a/cui/source/dialogs/hldocntp.cxx +++ b/cui/source/dialogs/hldocntp.cxx @@ -111,7 +111,7 @@ SvxHyperlinkNewDocTp::SvxHyperlinkNewDocTp ( Window *pParent, const SfxItemSet& maLbDocTypes ( this, CUI_RES (LB_DOCUMENT_TYPES) ) { // Set HC bitmaps and disable display of bitmap names. - maBtCreate.EnableTextDisplay (sal_False); + maBtCreate.EnableTextDisplay (false); InitStdControls(); FreeResource(); diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 865b0e54239d..c216d25064c3 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -50,8 +50,8 @@ SvxHyperlinkDocTp::SvxHyperlinkDocTp ( Window *pParent, const SfxItemSet& rItemS mbMarkWndOpen ( sal_False ) { // Disable display of bitmap names. - maBtBrowse.EnableTextDisplay (sal_False); - maBtFileopen.EnableTextDisplay (sal_False); + maBtBrowse.EnableTextDisplay (false); + maBtFileopen.EnableTextDisplay (false); InitStdControls(); FreeResource(); diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx index 35cf1ca3b069..379ba03a15db 100644 --- a/cui/source/dialogs/hlinettp.cxx +++ b/cui/source/dialogs/hlinettp.cxx @@ -53,7 +53,7 @@ SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( Window *pParent, mbMarkWndOpen ( sal_False ) { // Disable display of bitmap names. - maBtBrowse.EnableTextDisplay (sal_False); + maBtBrowse.EnableTextDisplay (false); InitStdControls(); FreeResource(); @@ -154,7 +154,7 @@ void SvxHyperlinkInternetTp::setFTPUser(const OUString& rUser, const OUString& r maFtPassword.Enable (); maEdLogin.Enable (); maEdPassword.Enable (); - maCbAnonymous.Check(sal_False); + maCbAnonymous.Check(false); } /************************************************************************* diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx index 10ecdb06ec3d..08b2df329eda 100644 --- a/cui/source/dialogs/hlmailtp.cxx +++ b/cui/source/dialogs/hlmailtp.cxx @@ -52,7 +52,7 @@ SvxHyperlinkMailTp::SvxHyperlinkMailTp ( Window *pParent, const SfxItemSet& rIte maEdSubject ( this, CUI_RES (ED_SUBJECT) ) { // Disable display of bitmap names. - maBtAdrBook.EnableTextDisplay (sal_False); + maBtAdrBook.EnableTextDisplay (false); InitStdControls(); FreeResource(); diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx index 198289f8c91c..12a45caf8f86 100644 --- a/cui/source/dialogs/hltpbase.cxx +++ b/cui/source/dialogs/hltpbase.cxx @@ -190,7 +190,7 @@ void SvxHyperlinkTabPageBase::InitStdControls () mpBtScript = new ImageButton ( this, ResId (BTN_SCRIPT, *m_pResMgr) ); mpBtScript->SetClickHdl ( LINK ( this, SvxHyperlinkTabPageBase, ClickScriptHdl_Impl ) ); - mpBtScript->EnableTextDisplay (sal_False); + mpBtScript->EnableTextDisplay (false); mpBtScript->SetAccessibleRelationMemberOf( mpGrpMore ); mpBtScript->SetAccessibleRelationLabeledBy( mpFtForm ); diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 2e8b4462ef56..9b812960cfbe 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -134,16 +134,16 @@ void IconChoicePage::ImplInitSettings() Window* pParent = GetParent(); if ( pParent->IsChildTransparentModeEnabled() && !IsControlBackground() ) { - EnableChildTransparentMode( sal_True ); + EnableChildTransparentMode( true ); SetParentClipMode( PARENTCLIPMODE_NOCLIP ); - SetPaintTransparent( sal_True ); + SetPaintTransparent( true ); SetBackground(); } else { - EnableChildTransparentMode( sal_False ); + EnableChildTransparentMode( false ); SetParentClipMode( 0 ); - SetPaintTransparent( sal_False ); + SetPaintTransparent( false ); if ( IsControlBackground() ) SetBackground( GetControlBackground() ); diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 458f310ff926..98df52dadfde 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -187,7 +187,7 @@ SvInsertOleDlg::SvInsertOleDlg Link aLink( LINK( this, SvInsertOleDlg, RadioHdl ) ); m_pRbNewObject->SetClickHdl( aLink ); m_pRbObjectFromfile->SetClickHdl( aLink ); - m_pRbNewObject->Check( sal_True ); + m_pRbNewObject->Check( true ); RadioHdl( NULL ); } @@ -204,10 +204,10 @@ short SvInsertOleDlg::Execute() // fill listbox and select default ListBox& rBox = GetObjectTypes(); - rBox.SetUpdateMode( sal_False ); + rBox.SetUpdateMode( false ); for ( sal_uLong i = 0; i < m_pServers->Count(); i++ ) rBox.InsertEntry( (*m_pServers)[i].GetHumanName() ); - rBox.SetUpdateMode( sal_True ); + rBox.SetUpdateMode( true ); SelectDefault(); OUString aName; @@ -546,7 +546,7 @@ short SfxInsertFloatingFrameDialog::Execute() if ( nSize == SIZE_NOT_SET ) { - m_pCBMarginWidthDefault->Check( sal_True ); + m_pCBMarginWidthDefault->Check( true ); m_pNMMarginWidth->SetText( OUString::number(DEFAULT_MARGIN_WIDTH) ); m_pFTMarginWidth->Enable( false ); m_pNMMarginWidth->Enable( false ); @@ -559,7 +559,7 @@ short SfxInsertFloatingFrameDialog::Execute() if ( nSize == SIZE_NOT_SET ) { - m_pCBMarginHeightDefault->Check( sal_True ); + m_pCBMarginHeightDefault->Check( true ); m_pNMMarginHeight->SetText( OUString::number(DEFAULT_MARGIN_HEIGHT) ); m_pFTMarginHeight->Enable( false ); m_pNMMarginHeight->Enable( false ); @@ -599,7 +599,7 @@ short SfxInsertFloatingFrameDialog::Execute() m_pRBFrameBorderOff->Check( !bSet ); } - SetUpdateMode( sal_True ); + SetUpdateMode( true ); bOK = sal_True; } catch ( uno::Exception& ) diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index 0e3886bc0b6e..0530383c38cb 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -107,7 +107,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, sal_uLong nSelFormat = 0; SvGlobalName aEmptyNm; - ObjectLB().SetUpdateMode( sal_False ); + ObjectLB().SetUpdateMode( false ); DataFlavorExVector::iterator aIter( ((DataFlavorExVector&)*pFormats).begin() ), aEnd( ((DataFlavorExVector&)*pFormats).end() ); @@ -183,7 +183,7 @@ sal_uLong SvPasteObjectDialog::GetFormat( const TransferableDataHelper& rHelper, } } - ObjectLB().SetUpdateMode( sal_True ); + ObjectLB().SetUpdateMode( true ); SelectObject(); if( !aSourceName.isEmpty() ) diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 354eec47add1..36833f4a1bb4 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -64,7 +64,7 @@ LookUpComboBox::LookUpComboBox(Window *pParent) m_aModifyTimer.SetTimeoutHdl( LINK( this, LookUpComboBox, ModifyTimer_Hdl ) ); m_aModifyTimer.SetTimeout( 500 ); - EnableAutocomplete( sal_False ); + EnableAutocomplete( false ); } extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeLookUpComboBox(Window *pParent, VclBuilder::stringmap &) diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx index fc3645202f6d..019e43c0b46b 100644 --- a/cui/source/dialogs/zoom.cxx +++ b/cui/source/dialogs/zoom.cxx @@ -362,7 +362,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutSpinHdl, NumericField *, pEdt ) m_pBookModeChk->Enable(); else { - m_pBookModeChk->Check( sal_False ); + m_pBookModeChk->Check( false ); m_pBookModeChk->Disable(); } diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index 2284176717da..fc65d37d9cc7 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -95,7 +95,7 @@ public: const SpellErrorDescription* GetAlternatives(); - void ResetModified() { GetTextEngine()->SetModified(sal_False); m_bIsUndoEditMode = false;} + void ResetModified() { GetTextEngine()->SetModified(false); m_bIsUndoEditMode = false;} virtual bool IsModified() const SAL_OVERRIDE { return GetTextEngine()->IsModified(); } bool IsUndoEditMode() const { return m_bIsUndoEditMode;} @@ -222,7 +222,7 @@ public: ~SpellDialog(); void SetLanguage( sal_uInt16 nLang ); - virtual sal_Bool Close(); + virtual bool Close(); void InvalidateDialog(); }; diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx index a48d325a25f7..59f4d3618506 100644 --- a/cui/source/inc/about.hxx +++ b/cui/source/inc/about.hxx @@ -59,7 +59,7 @@ private: OUString GetCopyrightString(); protected: - virtual sal_Bool Close(); + virtual bool Close(); virtual void Paint( const Rectangle& rRect ); virtual void Resize(); diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx index f2cc52e9db3e..4688403c92db 100644 --- a/cui/source/inc/cuifmsearch.hxx +++ b/cui/source/inc/cuifmsearch.hxx @@ -137,7 +137,7 @@ public: inline void SetActiveField(const OUString& strField); protected: - virtual sal_Bool Close(); + virtual bool Close(); void Init(const OUString& strVisibleFields, const OUString& strInitialText); // only to be used out of the constructors diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx index a116b63ff7d5..ecc351a297b6 100644 --- a/cui/source/inc/cuihyperdlg.hxx +++ b/cui/source/inc/cuihyperdlg.hxx @@ -72,7 +72,7 @@ private: DECL_LINK (ClickCloseHdl_Impl, void * ); protected: - virtual sal_Bool Close(); + virtual bool Close(); virtual void Move(); public: diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx index 4e3769423ea8..db9ac45911ef 100644 --- a/cui/source/options/optasian.cxx +++ b/cui/source/options/optasian.cxx @@ -265,9 +265,9 @@ void SvxAsianLayoutPage::Reset( const SfxItemSet& ) m_pHintFT->Enable(false); } if(bKernWesternText) - m_pCharKerningRB->Check(sal_True); + m_pCharKerningRB->Check(true); else - m_pCharPunctKerningRB->Check(sal_True); + m_pCharPunctKerningRB->Check(true); switch(nCompress) { case 0 : m_pNoCompressionRB->Check(); break; diff --git a/cui/source/options/optctl.cxx b/cui/source/options/optctl.cxx index 2ad83c561f13..7223e3972663 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( sal_True ); - m_pRestrictedCB->Check( sal_True ); + m_pTypeReplaceCB->Check( true ); + m_pRestrictedCB->Check( true ); } return 0; } @@ -92,8 +92,8 @@ sal_Bool SvxCTLOptionsPage::FillItemSet( SfxItemSet& ) bModified = sal_True; } - sal_Bool bLogicalChecked = m_pMovementLogicalRB->IsChecked(); - sal_Bool bVisualChecked = m_pMovementVisualRB->IsChecked(); + bool bLogicalChecked = m_pMovementLogicalRB->IsChecked(); + bool bVisualChecked = m_pMovementVisualRB->IsChecked(); if ( bLogicalChecked != m_pMovementLogicalRB->GetSavedValue() || bVisualChecked != m_pMovementVisualRB->GetSavedValue() ) { diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index e2544a61f11a..d8b456dfb128 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1582,7 +1582,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet& rSet ) { m_pWesternLanguageLB->GrabFocus(); m_pCurrentDocCB->Enable(true); - m_pCurrentDocCB->Check(sal_True); + m_pCurrentDocCB->Check(true); } } @@ -1618,7 +1618,7 @@ namespace void lcl_checkLanguageCheckBox(CheckBox* _rCB,sal_Bool _bNewValue,sal_Bool _bOldValue) { if ( _bNewValue ) - _rCB->Check(sal_True); + _rCB->Check(true); 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 fe2d6b0423bb..31c37eb39783 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -648,7 +648,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) if ( xMasterPasswd->changeMasterPassword( Reference< task::XInteractionHandler >() ) ) { m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordCB->Check( sal_True ); + m_pMasterPasswordCB->Check( true ); m_pMasterPasswordCB->Enable( true ); m_pMasterPasswordFT->Enable( true ); m_pShowConnectionsPB->Enable( true ); @@ -656,7 +656,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) else { xMasterPasswd->allowPersistentStoring( bOldValue ); - m_pSavePasswordsCB->Check( sal_False ); + m_pSavePasswordsCB->Check( false ); } } else @@ -667,7 +667,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) if( RET_YES == nRet ) { xMasterPasswd->allowPersistentStoring( sal_False ); - m_pMasterPasswordCB->Check( sal_True ); + m_pMasterPasswordCB->Check( true ); m_pMasterPasswordPB->Enable( false ); m_pMasterPasswordCB->Enable( false ); m_pMasterPasswordFT->Enable( false ); @@ -675,7 +675,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, SavePasswordHdl) } else { - m_pSavePasswordsCB->Check( sal_True ); + m_pSavePasswordsCB->Check( true ); m_pMasterPasswordPB->Enable( true ); m_pShowConnectionsPB->Enable( true ); } @@ -721,7 +721,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl) } else { - m_pMasterPasswordCB->Check( sal_False ); + m_pMasterPasswordCB->Check( false ); m_pMasterPasswordPB->Enable( true ); m_pMasterPasswordFT->Enable( true ); } @@ -735,7 +735,7 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MasterPasswordCBHdl) } else { - m_pMasterPasswordCB->Check( sal_True ); + m_pMasterPasswordCB->Check( true ); m_pMasterPasswordPB->Enable( true ); m_pShowConnectionsPB->Enable( true ); } @@ -823,7 +823,7 @@ void SvxSecurityTabPage::InitControls() m_pMasterPasswordPB->Enable( false ); m_pMasterPasswordCB->Enable( false ); - m_pMasterPasswordCB->Check( sal_True ); + m_pMasterPasswordCB->Check( true ); m_pMasterPasswordFT->Enable( false ); m_pShowConnectionsPB->Enable( false ); @@ -837,14 +837,14 @@ void SvxSecurityTabPage::InitControls() { m_pMasterPasswordCB->Enable( true ); m_pShowConnectionsPB->Enable( true ); - m_pSavePasswordsCB->Check( sal_True ); + m_pSavePasswordsCB->Check( true ); if ( xMasterPasswd->isDefaultMasterPasswordUsed() ) - m_pMasterPasswordCB->Check( sal_False ); + m_pMasterPasswordCB->Check( false ); else { m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordCB->Check( sal_True ); + m_pMasterPasswordCB->Check( true ); m_pMasterPasswordFT->Enable( true ); } } diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx index a697b9f39cb9..01a14d330f5c 100644 --- a/cui/source/options/optupdt.cxx +++ b/cui/source/options/optupdt.cxx @@ -172,19 +172,19 @@ sal_Bool SvxOnlineUpdateTabPage::FillItemSet( SfxItemSet& ) } nValue = 0; - if( sal_True == m_pEveryDayButton->IsChecked() ) + if( m_pEveryDayButton->IsChecked() ) { - if( sal_False == m_pEveryDayButton->GetSavedValue() ) + if( !m_pEveryDayButton->GetSavedValue() ) nValue = 86400; } - else if( sal_True == m_pEveryWeekButton->IsChecked() ) + else if( m_pEveryWeekButton->IsChecked() ) { - if( sal_False == m_pEveryWeekButton->GetSavedValue() ) + if( !m_pEveryWeekButton->GetSavedValue() ) nValue = 604800; } - else if( sal_True == m_pEveryMonthButton->IsChecked() ) + else if( m_pEveryMonthButton->IsChecked() ) { - if( sal_False == m_pEveryMonthButton->GetSavedValue() ) + if( !m_pEveryMonthButton->GetSavedValue() ) nValue = 2592000; } diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 8016ee4b7258..9e6492aa1215 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -151,12 +151,12 @@ static sal_Bool lcl_FindEntry( ListBox& rLB, const OUString& rEntry, { if( 0 == rCmpClass.compareString(rEntry, rLB.GetEntry(i) )) { - rLB.SelectEntryPos(i, sal_True); + rLB.SelectEntryPos(i, true); return sal_True; } } if(LISTBOX_ENTRY_NOTFOUND != nSelPos) - rLB.SelectEntryPos(nSelPos, sal_False); + rLB.SelectEntryPos(nSelPos, false); return sal_False; } diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index b6d2e426ecef..842ddf042f98 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -707,7 +707,7 @@ void SvxBackgroundTabPage::ResetFromWallpaperItem( const SfxItemSet& rSet ) // We now have always a link to the background bLinkOnly = sal_True; - m_pBtnLink->Check( sal_True ); + m_pBtnLink->Check( true ); m_pBtnLink->Show( false ); delete pTemp; @@ -1536,7 +1536,7 @@ IMPL_LINK_NOARG(SvxBackgroundTabPage, BrowseHdl_Impl) // activate preview, so that the user sees which // graphic he has chosen if ( !m_pBtnLink->IsChecked() && !m_pBtnPreview->IsChecked() ) - m_pBtnPreview->Check( sal_True ); + m_pBtnPreview->Check( true ); // timer-delayed loading of the graphic pPageImpl->pLoadTimer->Start(); } @@ -1844,8 +1844,8 @@ void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr, aBgdGraphicPath = ""; if ( rUserData.isEmpty() ) - m_pBtnPreview->Check( sal_False ); - m_pBtnLink->Check( sal_False ); + m_pBtnPreview->Check( false ); + m_pBtnLink->Check( false ); m_pBtnLink->Disable(); m_pPreviewWin2->NotifyChange( NULL ); SetGraphicPosition_Impl( GPOS_TILED ); // tiles as default @@ -1866,13 +1866,13 @@ void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr, DBG_ASSERT( aObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" ); #endif aBgdGraphicPath = aStrLink; - m_pBtnLink->Check( sal_True ); + m_pBtnLink->Check( true ); m_pBtnLink->Enable(); } else { aBgdGraphicPath = ""; - m_pBtnLink->Check( sal_False ); + m_pBtnLink->Check( false ); m_pBtnLink->Disable(); } @@ -1913,7 +1913,7 @@ void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr, bIsGraphicValid = sal_False; if ( rUserData.isEmpty() ) - m_pBtnPreview->Check( sal_False ); + m_pBtnPreview->Check( false ); } } diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index 1f12000cc884..10462b3f7617 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -290,14 +290,14 @@ SvxBorderTabPage::SvxBorderTabPage(Window* pParent, const SfxItemSet& rCoreAttrs if ( pColorTable.is() ) { // filling the line color box - m_pLbLineColor->SetUpdateMode( sal_False ); + m_pLbLineColor->SetUpdateMode( false ); for ( long i = 0; i < pColorTable->Count(); ++i ) { XColorEntry* pEntry = pColorTable->GetColor(i); m_pLbLineColor->InsertEntry( pEntry->GetColor(), pEntry->GetName() ); } - m_pLbLineColor->SetUpdateMode( sal_True ); + m_pLbLineColor->SetUpdateMode( true ); m_pLbShadowColor->CopyEntries(*m_pLbLineColor); } diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 105324056ed0..011765ef774a 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -1353,9 +1353,9 @@ void SvxCharEffectsPage::Initialize() if ( !pColorTable.is() ) pColorTable = XColorList::CreateStdColorList(); - m_pUnderlineColorLB->SetUpdateMode( sal_False ); - m_pOverlineColorLB->SetUpdateMode( sal_False ); - m_pFontColorLB->SetUpdateMode( sal_False ); + m_pUnderlineColorLB->SetUpdateMode( false ); + m_pOverlineColorLB->SetUpdateMode( false ); + m_pFontColorLB->SetUpdateMode( false ); { SfxPoolItem* pDummy = NULL; @@ -1377,9 +1377,9 @@ void SvxCharEffectsPage::Initialize() m_pFontColorLB->InsertEntry( pEntry->GetColor(), pEntry->GetName() ); } - m_pUnderlineColorLB->SetUpdateMode( sal_True ); - m_pOverlineColorLB->SetUpdateMode( sal_True ); - m_pFontColorLB->SetUpdateMode( sal_True ); + m_pUnderlineColorLB->SetUpdateMode( true ); + m_pOverlineColorLB->SetUpdateMode( true ); + m_pFontColorLB->SetUpdateMode( true ); m_pFontColorLB->SetSelectHdl( LINK( this, SvxCharEffectsPage, ColorBoxSelectHdl_Impl ) ); // handler @@ -2044,7 +2044,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet& rSet ) { const SvxContourItem& rItem = (SvxContourItem&)rSet.Get( nWhich ); m_pOutlineBtn->SetState( (TriState)rItem.GetValue() ); - m_pOutlineBtn->EnableTriState( sal_False ); + m_pOutlineBtn->EnableTriState( false ); break; } } @@ -2073,7 +2073,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet& rSet ) { const SvxShadowedItem& rItem = (SvxShadowedItem&)rSet.Get( nWhich ); m_pShadowBtn->SetState( (TriState)rItem.GetValue() ); - m_pShadowBtn->EnableTriState( sal_False ); + m_pShadowBtn->EnableTriState( false ); break; } } @@ -2102,7 +2102,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet& rSet ) { const SvxBlinkItem& rItem = (SvxBlinkItem&)rSet.Get( nWhich ); m_pBlinkingBtn->SetState( (TriState)rItem.GetValue() ); - m_pBlinkingBtn->EnableTriState( sal_False ); + m_pBlinkingBtn->EnableTriState( false ); break; } } @@ -2130,7 +2130,7 @@ void SvxCharEffectsPage::Reset( const SfxItemSet& rSet ) { const SvxCharHiddenItem& rItem = (SvxCharHiddenItem&)rSet.Get( nWhich ); m_pHiddenBtn->SetState( (TriState)rItem.GetValue() ); - m_pHiddenBtn->EnableTriState( sal_False ); + m_pHiddenBtn->EnableTriState( false ); break; } } @@ -2932,7 +2932,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) if ( nEsc > 0 ) { nFac = 1; - m_pHighPosBtn->Check( sal_True ); + m_pHighPosBtn->Check( true ); if ( nEsc == DFLT_ESC_AUTO_SUPER ) { nEsc = DFLT_ESC_SUPER; @@ -2942,7 +2942,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) else { nFac = -1; - m_pLowPosBtn->Check( sal_True ); + m_pLowPosBtn->Check( true ); if ( nEsc == DFLT_ESC_AUTO_SUB ) { nEsc = DFLT_ESC_SUB; @@ -2964,8 +2964,8 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) } else { - m_pNormalPosBtn->Check( sal_True ); - m_pHighLowRB->Check( sal_True ); + m_pNormalPosBtn->Check( true ); + m_pHighLowRB->Check( true ); PositionHdl_Impl( NULL ); } //the height has to be set after the handler is called to keep the value also if the escapement is zero @@ -2973,9 +2973,9 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) } else { - m_pHighPosBtn->Check( sal_False ); - m_pNormalPosBtn->Check( sal_False ); - m_pLowPosBtn->Check( sal_False ); + m_pHighPosBtn->Check( false ); + m_pNormalPosBtn->Check( false ); + m_pLowPosBtn->Check( false ); } // set BspFont @@ -3033,7 +3033,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) m_pPairKerningBtn->Check( rItem.GetValue() ); } else - m_pPairKerningBtn->Check( sal_False ); + m_pPairKerningBtn->Check( false ); // Scale Width nWhich = GetWhich( SID_ATTR_CHAR_SCALEWIDTH ); @@ -3072,13 +3072,13 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) const SvxCharRotateItem& rItem = (SvxCharRotateItem&) rSet.Get( nWhich ); if (rItem.IsBottomToTop()) - m_p90degRB->Check( sal_True ); + m_p90degRB->Check( true ); else if (rItem.IsTopToBotton()) - m_p270degRB->Check( sal_True ); + m_p270degRB->Check( true ); else { DBG_ASSERT( 0 == rItem.GetValue(), "incorrect value" ); - m_p0degRB->Check( sal_True ); + m_p0degRB->Check( true ); } m_pFitToLineCB->Check( rItem.IsFitToLine() ); } @@ -3086,14 +3086,14 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) { if( eState == SFX_ITEM_DONTCARE ) { - m_p0degRB->Check( sal_False ); - m_p90degRB->Check( sal_False ); - m_p270degRB->Check( sal_False ); + m_p0degRB->Check( false ); + m_p90degRB->Check( false ); + m_p270degRB->Check( false ); } else - m_p0degRB->Check( sal_True ); + m_p0degRB->Check( true ); - m_pFitToLineCB->Check( sal_False ); + m_pFitToLineCB->Check( false ); } m_pFitToLineCB->SetClickHdl( aOldLink ); m_pFitToLineCB->Enable( !m_p0degRB->IsChecked() ); @@ -3304,7 +3304,7 @@ SvxCharTwoLinesPage::~SvxCharTwoLinesPage() void SvxCharTwoLinesPage::Initialize() { - m_pTwoLinesBtn->Check( sal_False ); + m_pTwoLinesBtn->Check( false ); TwoLinesHdl_Impl( NULL ); m_pTwoLinesBtn->SetClickHdl( LINK( this, SvxCharTwoLinesPage, TwoLinesHdl_Impl ) ); @@ -3443,7 +3443,7 @@ sal_uInt16* SvxCharTwoLinesPage::GetRanges() void SvxCharTwoLinesPage::Reset( const SfxItemSet& rSet ) { - m_pTwoLinesBtn->Check( sal_False ); + m_pTwoLinesBtn->Check( false ); sal_uInt16 nWhich = GetWhich( SID_ATTR_CHAR_TWO_LINES ); SfxItemState eState = rSet.GetItemState( nWhich ); diff --git a/cui/source/tabpages/dstribut.cxx b/cui/source/tabpages/dstribut.cxx index b35dcd40575c..44b39213d688 100644 --- a/cui/source/tabpages/dstribut.cxx +++ b/cui/source/tabpages/dstribut.cxx @@ -105,34 +105,34 @@ void SvxDistributePage::PointChanged(Window* /*pWindow*/, RECT_POINT /*eRP*/) void SvxDistributePage::Reset(const SfxItemSet& ) { - m_pBtnHorNone->SetState(sal_False); - m_pBtnHorLeft->SetState(sal_False); - m_pBtnHorCenter->SetState(sal_False); - m_pBtnHorDistance->SetState(sal_False); - m_pBtnHorRight->SetState(sal_False); + m_pBtnHorNone->SetState(false); + m_pBtnHorLeft->SetState(false); + m_pBtnHorCenter->SetState(false); + m_pBtnHorDistance->SetState(false); + m_pBtnHorRight->SetState(false); switch(m_eDistributeHor) { - case SvxDistributeHorizontalNone : m_pBtnHorNone->SetState(sal_True); break; - case SvxDistributeHorizontalLeft : m_pBtnHorLeft->SetState(sal_True); break; - case SvxDistributeHorizontalCenter : m_pBtnHorCenter->SetState(sal_True); break; - case SvxDistributeHorizontalDistance : m_pBtnHorDistance->SetState(sal_True); break; - case SvxDistributeHorizontalRight : m_pBtnHorRight->SetState(sal_True); break; + case SvxDistributeHorizontalNone : m_pBtnHorNone->SetState(true); break; + case SvxDistributeHorizontalLeft : m_pBtnHorLeft->SetState(true); break; + case SvxDistributeHorizontalCenter : m_pBtnHorCenter->SetState(true); break; + case SvxDistributeHorizontalDistance : m_pBtnHorDistance->SetState(true); break; + case SvxDistributeHorizontalRight : m_pBtnHorRight->SetState(true); break; } - m_pBtnVerNone->SetState(sal_False); - m_pBtnVerTop->SetState(sal_False); - m_pBtnVerCenter->SetState(sal_False); - m_pBtnVerDistance->SetState(sal_False); - m_pBtnVerBottom->SetState(sal_False); + m_pBtnVerNone->SetState(false); + m_pBtnVerTop->SetState(false); + m_pBtnVerCenter->SetState(false); + m_pBtnVerDistance->SetState(false); + m_pBtnVerBottom->SetState(false); switch(m_eDistributeVer) { - case SvxDistributeVerticalNone : m_pBtnVerNone->SetState(sal_True); break; - case SvxDistributeVerticalTop : m_pBtnVerTop->SetState(sal_True); break; - case SvxDistributeVerticalCenter : m_pBtnVerCenter->SetState(sal_True); break; - case SvxDistributeVerticalDistance : m_pBtnVerDistance->SetState(sal_True); break; - case SvxDistributeVerticalBottom : m_pBtnVerBottom->SetState(sal_True); break; + case SvxDistributeVerticalNone : m_pBtnVerNone->SetState(true); break; + case SvxDistributeVerticalTop : m_pBtnVerTop->SetState(true); break; + case SvxDistributeVerticalCenter : m_pBtnVerCenter->SetState(true); break; + case SvxDistributeVerticalDistance : m_pBtnVerDistance->SetState(true); break; + case SvxDistributeVerticalBottom : m_pBtnVerBottom->SetState(true); break; } } diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index e1c9d324345a..c2755669e835 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -331,7 +331,7 @@ IMPL_STATIC_LINK( _SfxMacroTabPage, AssignDeleteHdl_Impl, PushButton*, pBtn ) } } - pImpl->pEventLB->SetUpdateMode( sal_False ); + pImpl->pEventLB->SetUpdateMode( false ); pE->ReplaceItem( new SvLBoxString( pE, 0, sScriptURI ), LB_MACROS_ITEMPOS ); rListBox.GetModel()->InvalidateEntry( pE ); rListBox.Select( pE ); diff --git a/cui/source/tabpages/measure.cxx b/cui/source/tabpages/measure.cxx index 4c462c363ed5..96b0d0e580be 100644 --- a/cui/source/tabpages/measure.cxx +++ b/cui/source/tabpages/measure.cxx @@ -251,7 +251,7 @@ void SvxMeasurePage::Reset( const SfxItemSet& rAttrs ) { m_pTsbBelowRefEdge->SetState( ( ( const SdrMeasureBelowRefEdgeItem& )rAttrs.Get( SDRATTR_MEASUREBELOWREFEDGE ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbBelowRefEdge->EnableTriState( sal_False ); + m_pTsbBelowRefEdge->EnableTriState( false ); } else { @@ -280,7 +280,7 @@ void SvxMeasurePage::Reset( const SfxItemSet& rAttrs ) { m_pTsbParallel->SetState( ( ( const SdrMeasureTextRota90Item& )rAttrs.Get( SDRATTR_MEASURETEXTROTA90 ) ). GetValue() ? STATE_NOCHECK : STATE_CHECK ); - m_pTsbParallel->EnableTriState( sal_False ); + m_pTsbParallel->EnableTriState( false ); } else { @@ -293,7 +293,7 @@ void SvxMeasurePage::Reset( const SfxItemSet& rAttrs ) { m_pTsbShowUnit->SetState( ( ( const SdrMeasureShowUnitItem& )rAttrs.Get( SDRATTR_MEASURESHOWUNIT ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbShowUnit->EnableTriState( sal_False ); + m_pTsbShowUnit->EnableTriState( false ); } else { @@ -330,8 +330,8 @@ void SvxMeasurePage::Reset( const SfxItemSet& rAttrs ) { if ( rAttrs.GetItemState( SDRATTR_MEASURETEXTHPOS ) != SFX_ITEM_DONTCARE ) { - m_pTsbAutoPosV->EnableTriState( sal_False ); - m_pTsbAutoPosH->EnableTriState( sal_False ); + m_pTsbAutoPosV->EnableTriState( false ); + m_pTsbAutoPosH->EnableTriState( false ); SdrMeasureTextHPos eHPos = (SdrMeasureTextHPos) ( ( const SdrMeasureTextHPosItem& )rAttrs.Get( SDRATTR_MEASURETEXTHPOS ) ).GetValue(); diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 5fc426dc69e4..09fb9cd22953 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -80,7 +80,7 @@ SvxNumberPreview::SvxNumberPreview(Window* pParent, WinBits nStyle) , mnChar(0x0) { Font aFont( GetFont() ); - aFont.SetTransparent( sal_True ); + aFont.SetTransparent( true ); aFont.SetColor( Application::GetSettings().GetStyleSettings().GetFieldColor() ); SetFont( aFont ); InitSettings( sal_True, sal_True ); @@ -285,7 +285,7 @@ void SvxNumberFormatTabPage::Init_Impl() m_pEdComment->Hide(); - m_pCbSourceFormat->Check( sal_False ); + m_pCbSourceFormat->Check( false ); m_pCbSourceFormat->Disable(); m_pCbSourceFormat->Hide(); @@ -451,7 +451,7 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet& rSet ) if ( pBoolItem ) m_pCbSourceFormat->Check( pBoolItem->GetValue() ); else - m_pCbSourceFormat->Check( sal_False ); + m_pCbSourceFormat->Check( false ); m_pCbSourceFormat->Enable(); m_pCbSourceFormat->Show(); } @@ -614,8 +614,8 @@ void SvxNumberFormatTabPage::Obstructing() m_pFtOptions->Disable(); m_pEdDecimals->SetText( OUString() ); m_pEdLeadZeroes->SetText( OUString() ); - m_pBtnNegRed->Check( sal_False ); - m_pBtnThousand->Check( sal_False ); + m_pBtnNegRed->Check( false ); + m_pBtnThousand->Check( false ); m_pWndPreview->NotifyChange( OUString() ); m_pLbCategory->SelectEntryPos( 0 ); @@ -972,8 +972,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa m_pBtnThousand->Disable(); m_pEdDecimals->SetText( OUString::number( 0 ) ); m_pEdLeadZeroes->SetText( OUString::number( 0 ) ); - m_pBtnNegRed->Check( sal_False ); - m_pBtnThousand->Check( sal_False ); + m_pBtnNegRed->Check( false ); + m_pBtnThousand->Check( false ); } } diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index d93450500c91..fa3917bdf13d 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -166,7 +166,7 @@ static Font& lcl_GetDefaultBulletFont() aDefBulletFont.SetFamily( FAMILY_DONTKNOW ); aDefBulletFont.SetPitch( PITCH_DONTKNOW ); aDefBulletFont.SetWeight( WEIGHT_DONTKNOW ); - aDefBulletFont.SetTransparent( sal_True ); + aDefBulletFont.SetTransparent( true ); bInit = sal_True; } return aDefBulletFont; @@ -723,7 +723,7 @@ IMPL_LINK_NOARG(SvxNumPickTabPage, NumSelectHdl_Impl) aCreateFont.SetFamily( FAMILY_DONTKNOW ); aCreateFont.SetPitch( PITCH_DONTKNOW ); aCreateFont.SetWeight( WEIGHT_DONTKNOW ); - aCreateFont.SetTransparent( sal_True ); + aCreateFont.SetTransparent( true ); aFmt.SetBulletFont( &aCreateFont ); } } @@ -1170,17 +1170,17 @@ void SvxNumOptionsTabPage::ActivatePage(const SfxItemSet& rSet) { nActNumLvl = nTmpNumLvl; sal_uInt16 nMask = 1; - m_pLevelLB->SetUpdateMode(sal_False); + m_pLevelLB->SetUpdateMode(false); m_pLevelLB->SetNoSelection(); m_pLevelLB->SelectEntryPos( pActNum->GetLevelCount(), nActNumLvl == USHRT_MAX); if(nActNumLvl != USHRT_MAX) for(sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++) { if(nActNumLvl & nMask) - m_pLevelLB->SelectEntryPos( i, sal_True); + m_pLevelLB->SelectEntryPos( i, true); nMask <<= 1 ; } - m_pLevelLB->SetUpdateMode(sal_True); + m_pLevelLB->SetUpdateMode(true); *pActNum = *pSaveNum; InitControls(); } @@ -1246,20 +1246,20 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet ) m_pLevelLB->SelectEntryPos(m_pLevelLB->GetEntryCount() - 1); sal_uInt16 nMask = 1; - m_pLevelLB->SetUpdateMode(sal_False); + m_pLevelLB->SetUpdateMode(false); m_pLevelLB->SetNoSelection(); if(nActNumLvl == USHRT_MAX) { - m_pLevelLB->SelectEntryPos( pSaveNum->GetLevelCount(), sal_True); + m_pLevelLB->SelectEntryPos( pSaveNum->GetLevelCount(), true); } else for(sal_uInt16 i = 0; i < pSaveNum->GetLevelCount(); i++) { if(nActNumLvl & nMask) - m_pLevelLB->SelectEntryPos( i, sal_True); + m_pLevelLB->SelectEntryPos( i, true); nMask <<= 1 ; } - m_pLevelLB->SetUpdateMode(sal_True); + m_pLevelLB->SetUpdateMode(true); if(!pActNum) pActNum = new SvxNumRule(*pSaveNum); @@ -1631,10 +1631,10 @@ IMPL_LINK( SvxNumOptionsTabPage, LevelHdl_Impl, ListBox *, pBox ) (pBox->GetSelectEntryCount() == 1 || nSaveNumLvl != 0xffff)) { nActNumLvl = 0xFFFF; - pBox->SetUpdateMode(sal_False); + pBox->SetUpdateMode(false); for( sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++ ) - pBox->SelectEntryPos( i, sal_False ); - pBox->SetUpdateMode(sal_True); + pBox->SelectEntryPos( i, false ); + pBox->SetUpdateMode(true); } else if(pBox->GetSelectEntryCount()) { @@ -1645,7 +1645,7 @@ IMPL_LINK( SvxNumOptionsTabPage, LevelHdl_Impl, ListBox *, pBox ) nActNumLvl |= nMask; nMask <<= 1; } - pBox->SelectEntryPos( pActNum->GetLevelCount(), sal_False ); + pBox->SelectEntryPos( pActNum->GetLevelCount(), false ); } else { @@ -2247,7 +2247,7 @@ static sal_uInt16 lcl_DrawBullet(VirtualDevice* pVDev, if(!aTmpSize.Height()) aTmpSize.Height() = 1; aFont.SetSize(aTmpSize); - aFont.SetTransparent(sal_True); + aFont.SetTransparent(true); Color aBulletColor = rFmt.GetBulletColor(); if(aBulletColor.GetColor() == COL_AUTO) aBulletColor = Color(pVDev->GetFillColor().IsDark() ? COL_WHITE : COL_BLACK); @@ -2934,11 +2934,11 @@ void SvxNumPositionTabPage::ActivatePage(const SfxItemSet& rSet) for(sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++) { if(nActNumLvl & nMask) - m_pLevelLB->SelectEntryPos( i, sal_True); + m_pLevelLB->SelectEntryPos( i, true); nMask <<= 1 ; } m_pRelativeCB->Enable(nActNumLvl != 1); - m_pLevelLB->SetUpdateMode(sal_True); + m_pLevelLB->SetUpdateMode(true); InitPosAndSpaceMode(); ShowControlsDependingOnPosAndSpaceMode(); @@ -3013,22 +3013,22 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet ) else m_pLevelLB->SelectEntryPos(m_pLevelLB->GetEntryCount() - 1); sal_uInt16 nMask = 1; - m_pLevelLB->SetUpdateMode(sal_False); + m_pLevelLB->SetUpdateMode(false); m_pLevelLB->SetNoSelection(); if(nActNumLvl == USHRT_MAX) { - m_pLevelLB->SelectEntryPos( pSaveNum->GetLevelCount(), sal_True); + m_pLevelLB->SelectEntryPos( pSaveNum->GetLevelCount(), true); } else { for(sal_uInt16 i = 0; i < pSaveNum->GetLevelCount(); i++) { if(nActNumLvl & nMask) - m_pLevelLB->SelectEntryPos( i, sal_True); + m_pLevelLB->SelectEntryPos( i, true); nMask <<= 1; } } - m_pLevelLB->SetUpdateMode(sal_True); + m_pLevelLB->SetUpdateMode(true); if(!pActNum) pActNum = new SvxNumRule(*pSaveNum); @@ -3158,10 +3158,10 @@ IMPL_LINK( SvxNumPositionTabPage, LevelHdl_Impl, ListBox *, pBox ) (pBox->GetSelectEntryCount() == 1 || nSaveNumLvl != 0xffff)) { nActNumLvl = 0xFFFF; - pBox->SetUpdateMode(sal_False); + pBox->SetUpdateMode(false); for( sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++ ) - pBox->SelectEntryPos( i, sal_False ); - pBox->SetUpdateMode(sal_True); + pBox->SelectEntryPos( i, false ); + pBox->SetUpdateMode(true); } else if(pBox->GetSelectEntryCount()) { @@ -3172,7 +3172,7 @@ IMPL_LINK( SvxNumPositionTabPage, LevelHdl_Impl, ListBox *, pBox ) nActNumLvl |= nMask; nMask <<= 1; } - pBox->SelectEntryPos( pActNum->GetLevelCount(), sal_False ); + pBox->SelectEntryPos( pActNum->GetLevelCount(), false ); } else { diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx index 4134358200de..df72d04516b8 100644 --- a/cui/source/tabpages/page.cxx +++ b/cui/source/tabpages/page.cxx @@ -226,7 +226,7 @@ SvxPageDescPage::SvxPageDescPage( Window* pParent, const SfxItemSet& rAttr ) : get(m_pPrintRangeQueryText,"labelMsg"); bBorderModified = false; - m_pBspWin->EnableRTL( sal_False ); + m_pBspWin->EnableRTL( false ); // this page needs ExchangeSupport SetExchangeSupport(); @@ -743,7 +743,7 @@ sal_Bool SvxPageDescPage::FillItemSet( SfxItemSet& rSet ) nPos = m_pPaperSizeBox->GetSelectEntryPos(); Paper ePaper = (Paper)(sal_uLong)m_pPaperSizeBox->GetEntryData( nPos ); const sal_uInt16 nOld = m_pPaperSizeBox->GetSavedValue(); - sal_Bool bChecked = m_pLandscapeBtn->IsChecked(); + bool bChecked = m_pLandscapeBtn->IsChecked(); if ( PAPER_USER == ePaper ) { @@ -918,7 +918,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl) return 0; OUString aOldName = m_pPaperTrayBox->GetSelectEntry(); - m_pPaperTrayBox->SetUpdateMode( sal_False ); + m_pPaperTrayBox->SetUpdateMode( false ); m_pPaperTrayBox->Clear(); sal_uInt16 nEntryPos = m_pPaperTrayBox->InsertEntry( EE_RESSTR( RID_SVXSTR_PAPERBIN_SETTINGS ) ); @@ -941,7 +941,7 @@ IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl) m_pPaperTrayBox->SetEntryData( nEntryPos, (void*)(sal_uLong)i ); } m_pPaperTrayBox->SelectEntry( aOldName ); - m_pPaperTrayBox->SetUpdateMode( sal_True ); + m_pPaperTrayBox->SetUpdateMode( true ); return 0; } diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 841d64f76ba8..e813985f278b 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -1182,10 +1182,10 @@ void SvxParaAlignTabPage::Reset( const SfxItemSet& rSet ) } else { - m_pLeft->Check( sal_False ); - m_pRight->Check( sal_False ); - m_pCenter->Check( sal_False ); - m_pJustify->Check( sal_False ); + m_pLeft->Check( false ); + m_pRight->Check( false ); + m_pCenter->Check( false ); + m_pJustify->Check( false ); } m_pLastLineLB->SelectEntryPos(nLBSelect); @@ -1262,8 +1262,8 @@ IMPL_LINK_NOARG(SvxParaAlignTabPage, TextDirectionHdl_Impl) switch ( eDir ) { // check the default alignment for this text direction - case FRMDIR_HORI_LEFT_TOP : m_pLeft->Check( sal_True ); break; - case FRMDIR_HORI_RIGHT_TOP : m_pRight->Check( sal_True ); break; + case FRMDIR_HORI_LEFT_TOP : m_pLeft->Check( true ); break; + case FRMDIR_HORI_RIGHT_TOP : m_pRight->Check( true ); break; case FRMDIR_ENVIRONMENT : /* do nothing */ break; default: { @@ -1537,7 +1537,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) { const SvxHyphenZoneItem& rHyphen = (const SvxHyphenZoneItem&)rSet.Get( _nWhich ); - m_pHyphenBox->EnableTriState( sal_False ); + m_pHyphenBox->EnableTriState( false ); bIsHyphen = rHyphen.IsHyphen(); m_pHyphenBox->SetState( bIsHyphen ? STATE_CHECK : STATE_NOCHECK ); @@ -1576,7 +1576,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) if ( eItemState >= SFX_ITEM_SET ) { - m_pApplyCollBtn->EnableTriState( sal_False ); + m_pApplyCollBtn->EnableTriState( false ); const SvxPageModelItem& rModel = (const SvxPageModelItem&)rSet.Get( _nWhich ); @@ -1590,7 +1590,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) bIsPageModel = sal_True; m_pPageBreakBox->Enable(); - m_pPageBreakBox->EnableTriState( sal_False ); + m_pPageBreakBox->EnableTriState( false ); m_pBreakTypeFT->Enable(); m_pBreakTypeLB->Enable(); m_pBreakPositionFT->Enable(); @@ -1611,7 +1611,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) } else if ( SFX_ITEM_DONTCARE == eItemState ) { - m_pApplyCollBtn->EnableTriState( sal_True ); + m_pApplyCollBtn->EnableTriState( true ); m_pApplyCollBtn->SetState( STATE_DONTKNOW ); m_pApplyCollBox->SetNoSelection(); } @@ -1638,7 +1638,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) // PageBreak not via CTRL-RETURN, // then CheckBox can be freed m_pPageBreakBox->Enable(); - m_pPageBreakBox->EnableTriState( sal_False ); + m_pPageBreakBox->EnableTriState( false ); m_pBreakTypeFT->Enable(); m_pBreakTypeLB->Enable(); m_pBreakPositionFT->Enable(); @@ -1701,7 +1701,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) if ( eItemState >= SFX_ITEM_AVAILABLE ) { - m_pKeepParaBox->EnableTriState( sal_False ); + m_pKeepParaBox->EnableTriState( false ); const SvxFmtKeepItem& rKeep = (const SvxFmtKeepItem&)rSet.Get( _nWhich ); @@ -1722,7 +1722,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) { const SvxFmtSplitItem& rSplit = (const SvxFmtSplitItem&)rSet.Get( _nWhich ); - m_pKeepTogetherBox->EnableTriState( sal_False ); + m_pKeepTogetherBox->EnableTriState( false ); if ( !rSplit.GetValue() ) m_pKeepTogetherBox->SetState( STATE_CHECK ); @@ -1739,7 +1739,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) { const SvxWidowsItem& rWidow = (const SvxWidowsItem&)rSet.Get( _nWhich ); - m_pWidowBox->EnableTriState( sal_False ); + m_pWidowBox->EnableTriState( false ); const sal_uInt16 nLines = rWidow.GetValue(); sal_Bool _bEnable = nLines > 0; @@ -1763,7 +1763,7 @@ void SvxExtParagraphTabPage::Reset( const SfxItemSet& rSet ) const SvxOrphansItem& rOrphan = (const SvxOrphansItem&)rSet.Get( _nWhich ); const sal_uInt16 nLines = rOrphan.GetValue(); - m_pOrphanBox->EnableTriState( sal_False ); + m_pOrphanBox->EnableTriState( false ); sal_Bool _bEnable = nLines > 0; m_pOrphanBox->SetState( _bEnable ? STATE_CHECK : STATE_NOCHECK); @@ -2189,7 +2189,7 @@ static void lcl_SetBox(const SfxItemSet& rSet, sal_uInt16 nSlotId, CheckBox& rBo rBox.Enable(false); else if(eState >= SFX_ITEM_AVAILABLE) { - rBox.EnableTriState( sal_False ); + rBox.EnableTriState( false ); rBox.Check(((const SfxBoolItem&)rSet.Get(_nWhich)).GetValue()); } else @@ -2208,7 +2208,7 @@ void SvxAsianTabPage::Reset( const SfxItemSet& rSet ) IMPL_LINK( SvxAsianTabPage, ClickHdl_Impl, CheckBox*, pBox ) { - pBox->EnableTriState( sal_False ); + pBox->EnableTriState( false ); return 0; } diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index 464ed484a210..263700c98d9f 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -919,7 +919,7 @@ void SvxSwPosSizeTabPage::Reset( const SfxItemSet& rSet) { sal_Bool bProtected = ( ( const SfxBoolItem* )pItem )->GetValue(); m_pPositionCB->SetState( bProtected ? STATE_CHECK : STATE_NOCHECK ); - m_pPositionCB->EnableTriState( sal_False ); + m_pPositionCB->EnableTriState( false ); m_pSizeCB->Enable( !bProtected ); } else @@ -935,7 +935,7 @@ void SvxSwPosSizeTabPage::Reset( const SfxItemSet& rSet) { m_pSizeCB->SetState( ( (const SfxBoolItem*)pItem )->GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pSizeCB->EnableTriState( sal_False ); + m_pSizeCB->EnableTriState( false ); } else m_pSizeCB->SetState( STATE_DONTKNOW ); diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx index 8e10a774e103..0b487060437b 100644 --- a/cui/source/tabpages/tabstpge.cxx +++ b/cui/source/tabpages/tabstpge.cxx @@ -403,8 +403,8 @@ void SvxTabulatorTabPage::InitTabPos_Impl( sal_uInt16 nTabPos ) nTabPos = 0; // Switch off all RadioButtons for a start - m_pLeftTab->Check( sal_True ); - m_pNoFillChar->Check( sal_True ); + m_pLeftTab->Check( true ); + m_pNoFillChar->Check( true ); if( m_pTabBox->GetEntryCount() > 0 ) { diff --git a/cui/source/tabpages/textanim.cxx b/cui/source/tabpages/textanim.cxx index b09edd773916..fe5c827c7438 100644 --- a/cui/source/tabpages/textanim.cxx +++ b/cui/source/tabpages/textanim.cxx @@ -168,10 +168,10 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) } else { - m_pBtnUp->Check( sal_False ); - m_pBtnLeft->Check( sal_False ); - m_pBtnRight->Check( sal_False ); - m_pBtnDown->Check( sal_False ); + m_pBtnUp->Check( false ); + m_pBtnLeft->Check( false ); + m_pBtnRight->Check( false ); + m_pBtnDown->Check( false ); } m_pBtnUp->SaveValue(); m_pBtnLeft->SaveValue(); @@ -184,7 +184,7 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_ANISTARTINSIDE ); if( pItem ) { - m_pTsbStartInside->EnableTriState( sal_False ); + m_pTsbStartInside->EnableTriState( false ); sal_Bool bValue = ( ( const SdrTextAniStartInsideItem* )pItem )->GetValue(); if( bValue ) m_pTsbStartInside->SetState( STATE_CHECK ); @@ -201,7 +201,7 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_ANISTOPINSIDE ); if( pItem ) { - m_pTsbStopInside->EnableTriState( sal_False ); + m_pTsbStopInside->EnableTriState( false ); sal_Bool bValue = ( ( const SdrTextAniStopInsideItem* )pItem )->GetValue(); if( bValue ) m_pTsbStopInside->SetState( STATE_CHECK ); @@ -218,7 +218,7 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_ANICOUNT ); if( pItem ) { - m_pTsbEndless->EnableTriState( sal_False ); + m_pTsbEndless->EnableTriState( false ); long nValue = (long) ( ( const SdrTextAniCountItem* )pItem )->GetValue(); m_pNumFldCount->SetValue( nValue ); if( nValue == 0 ) @@ -251,7 +251,7 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_ANIDELAY ); if( pItem ) { - m_pTsbAuto->EnableTriState( sal_False ); + m_pTsbAuto->EnableTriState( false ); long nValue = (long) ( ( const SdrTextAniDelayItem* )pItem )->GetValue(); m_pMtrFldDelay->SetValue( nValue ); if( nValue == 0 ) @@ -276,7 +276,7 @@ void SvxTextAnimationPage::Reset( const SfxItemSet& rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_ANIAMOUNT ); if( pItem ) { - m_pTsbPixel->EnableTriState( sal_False ); + m_pTsbPixel->EnableTriState( false ); long nValue = (long) ( ( const SdrTextAniAmountItem* )pItem )->GetValue(); if( nValue <= 0 ) { @@ -348,10 +348,10 @@ sal_Bool SvxTextAnimationPage::FillItemSet( SfxItemSet& rAttrs) } // animation direction - if( m_pBtnUp->GetSavedValue() != m_pBtnUp->IsChecked() || - m_pBtnLeft->GetSavedValue() != m_pBtnLeft->IsChecked() || - m_pBtnRight->GetSavedValue() != m_pBtnRight->IsChecked() || - m_pBtnDown->GetSavedValue() != m_pBtnDown->IsChecked() ) + if( m_pBtnUp->GetSavedValue() != TriState(m_pBtnUp->IsChecked()) || + m_pBtnLeft->GetSavedValue() != TriState(m_pBtnLeft->IsChecked()) || + m_pBtnRight->GetSavedValue() != TriState(m_pBtnRight->IsChecked()) || + m_pBtnDown->GetSavedValue() != TriState(m_pBtnDown->IsChecked()) ) { SdrTextAniDirection eValue = (SdrTextAniDirection) GetSelectedDirection(); rAttrs.Put( SdrTextAniDirectionItem( eValue ) ); diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index 9c4da32f62fc..5384fb4ef6f4 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -170,7 +170,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) { m_pTsbAutoGrowHeight->SetState( ( ( const SdrTextAutoGrowHeightItem& )rAttrs.Get( SDRATTR_TEXT_AUTOGROWHEIGHT ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbAutoGrowHeight->EnableTriState( sal_False ); + m_pTsbAutoGrowHeight->EnableTriState( false ); } else m_pTsbAutoGrowHeight->SetState( STATE_DONTKNOW ); @@ -181,7 +181,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) { m_pTsbAutoGrowWidth->SetState( ( ( const SdrTextAutoGrowWidthItem& )rAttrs.Get( SDRATTR_TEXT_AUTOGROWWIDTH ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbAutoGrowWidth->EnableTriState( sal_False ); + m_pTsbAutoGrowWidth->EnableTriState( false ); } else m_pTsbAutoGrowWidth->SetState( STATE_DONTKNOW ); @@ -192,7 +192,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) { m_pTsbAutoGrowSize->SetState( ( ( const SdrTextAutoGrowHeightItem& )rAttrs.Get( SDRATTR_TEXT_AUTOGROWHEIGHT ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbAutoGrowSize->EnableTriState( sal_False ); + m_pTsbAutoGrowSize->EnableTriState( false ); } else m_pTsbAutoGrowSize->SetState( STATE_DONTKNOW ); @@ -203,7 +203,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) { m_pTsbWordWrapText->SetState( ( ( const SdrTextWordWrapItem& )rAttrs.Get( SDRATTR_TEXT_WORDWRAP ) ). GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbWordWrapText->EnableTriState( sal_False ); + m_pTsbWordWrapText->EnableTriState( false ); } else m_pTsbWordWrapText->SetState( STATE_DONTKNOW ); @@ -222,7 +222,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) SdrTextHorzAdjust eTHA = (SdrTextHorzAdjust)((const SdrTextHorzAdjustItem&)rAttrs.Get(SDRATTR_TEXT_HORZADJUST)).GetValue(); RECT_POINT eRP = RP_LB; - m_pTsbFullWidth->EnableTriState( sal_False ); + m_pTsbFullWidth->EnableTriState( false ); // Translate item values into local anchor position. switch (eTVA) @@ -295,7 +295,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) SdrFitToSizeType eFTS = (SdrFitToSizeType) ( ( const SdrTextFitToSizeTypeItem& )rAttrs.Get( SDRATTR_TEXT_FITTOSIZE ) ).GetValue(); m_pTsbFitToSize->SetState( eFTS == SDRTEXTFIT_NONE ? STATE_NOCHECK : STATE_CHECK ); - m_pTsbFitToSize->EnableTriState( sal_False ); + m_pTsbFitToSize->EnableTriState( false ); } else m_pTsbFitToSize->SetState( STATE_DONTKNOW ); @@ -305,7 +305,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet& rAttrs ) { sal_Bool bContour = ( ( const SdrTextContourFrameItem& )rAttrs.Get( SDRATTR_TEXT_CONTOURFRAME ) ).GetValue(); m_pTsbContour->SetState( bContour ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbContour->EnableTriState( sal_False ); + m_pTsbContour->EnableTriState( false ); } else m_pTsbContour->SetState( STATE_DONTKNOW ); diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx index 7560d1f7fb01..8f6f3ad8335f 100644 --- a/cui/source/tabpages/tparea.cxx +++ b/cui/source/tabpages/tparea.cxx @@ -671,7 +671,7 @@ SvxAreaTabPage::SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs ) : // Controls for Hatch-Background m_pFlHatchBckgrd->Hide(); - m_pTsbOriginal->EnableTriState( sal_False ); + m_pTsbOriginal->EnableTriState( false ); // this page needs ExchangeSupport SetExchangeSupport(); @@ -728,7 +728,7 @@ SvxAreaTabPage::SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs ) : m_pTypeLB->SetSelectHdl( LINK( this, SvxAreaTabPage, SelectDialogTypeHdl_Impl ) ); // #i76307# always paint the preview in LTR, because this is what the document does - m_pCtlXRectPreview->EnableRTL(sal_False); + m_pCtlXRectPreview->EnableRTL(false); // Calcualte size of dropdown listboxes Size aSize = LogicToPixel(Size(108, 103), MAP_APPFONT); @@ -1515,7 +1515,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs ) if( ( rAttrs.GetItemState( XATTR_GRADIENTSTEPCOUNT ) != SFX_ITEM_DONTCARE ) || ( rAttrs.GetItemState( XATTR_FILLSTYLE ) != SFX_ITEM_DONTCARE ) ) { - m_pTsbStepCount->EnableTriState( sal_False ); + m_pTsbStepCount->EnableTriState( false ); sal_uInt16 nValue = ( ( const XGradientStepCountItem& ) rAttrs.Get( XATTR_GRADIENTSTEPCOUNT ) ).GetValue(); if( nValue == 0 ) { @@ -1539,7 +1539,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs ) if( rAttrs.GetItemState( XATTR_FILLBMP_TILE ) != SFX_ITEM_DONTCARE ) { - m_pTsbTile->EnableTriState( sal_False ); + m_pTsbTile->EnableTriState( false ); if( ( ( const XFillBmpTileItem& ) rAttrs.Get( XATTR_FILLBMP_TILE ) ).GetValue() ) m_pTsbTile->SetState( STATE_CHECK ); @@ -1551,7 +1551,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs ) if( rAttrs.GetItemState( XATTR_FILLBMP_STRETCH ) != SFX_ITEM_DONTCARE ) { - m_pTsbStretch->EnableTriState( sal_False ); + m_pTsbStretch->EnableTriState( false ); if( ( ( const XFillBmpStretchItem& ) rAttrs.Get( XATTR_FILLBMP_STRETCH ) ).GetValue() ) m_pTsbStretch->SetState( STATE_CHECK ); @@ -1565,7 +1565,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet& rAttrs ) //aTsbScale if( rAttrs.GetItemState( XATTR_FILLBMP_SIZELOG ) != SFX_ITEM_DONTCARE ) { - m_pTsbScale->EnableTriState( sal_False ); + m_pTsbScale->EnableTriState( false ); if( ( ( const XFillBmpSizeLogItem& ) rAttrs.Get( XATTR_FILLBMP_SIZELOG ) ).GetValue() ) m_pTsbScale->SetState( STATE_NOCHECK ); diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx index a2bc8d7f787a..8eaf6b698234 100644 --- a/cui/source/tabpages/tpgradnt.cxx +++ b/cui/source/tabpages/tpgradnt.cxx @@ -132,7 +132,7 @@ SvxGradientTabPage::SvxGradientTabPage LINK( this, SvxGradientTabPage, ClickSaveHdl_Impl ) ); // #i76307# always paint the preview in LTR, because this is what the document does - m_pCtlPreview->EnableRTL( sal_False ); + m_pCtlPreview->EnableRTL( false ); setPreviewsToSamePlace(pParent, this); } diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index de6311b01b8d..a17a774884fb 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -205,7 +205,7 @@ SvxLineTabPage::SvxLineTabPage m_pSymbolHeightMF->SetModifyHdl(LINK(this, SvxLineTabPage, SizeHdl_Impl)); m_pSymbolRatioCB->SetClickHdl(LINK(this, SvxLineTabPage, RatioHdl_Impl)); - m_pSymbolRatioCB->Check(sal_True); + m_pSymbolRatioCB->Check(true); ShowSymbolControls(sal_False); nActLineWidth = -1; @@ -307,7 +307,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton) m_pSymbolMB->GetPopupMenu()->SetPopupMenu( MN_GALLERY, pPopup ); if(aGrfNames.empty()) - m_pSymbolMB->GetPopupMenu()->EnableItem(MN_GALLERY, sal_False); + m_pSymbolMB->GetPopupMenu()->EnableItem(MN_GALLERY, false); } if(!pButton->GetPopupMenu()->GetPopupMenu( MN_SYMBOLS ) && pSymbolList) @@ -389,7 +389,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton) m_pSymbolMB->GetPopupMenu()->SetPopupMenu( MN_SYMBOLS, pPopup ); if(aGrfNames.empty()) - m_pSymbolMB->GetPopupMenu()->EnableItem(MN_SYMBOLS, sal_False); + m_pSymbolMB->GetPopupMenu()->EnableItem(MN_SYMBOLS, false); delete pView; delete pModel; @@ -1359,7 +1359,7 @@ void SvxLineTabPage::Reset( const SfxItemSet& rAttrs ) } else if( rAttrs.GetItemState( XATTR_LINESTARTCENTER ) != SFX_ITEM_DONTCARE ) { - m_pTsbCenterStart->EnableTriState( sal_False ); + m_pTsbCenterStart->EnableTriState( false ); if( ( ( const XLineStartCenterItem& ) rAttrs.Get( XATTR_LINESTARTCENTER ) ).GetValue() ) m_pTsbCenterStart->SetState( STATE_CHECK ); @@ -1378,7 +1378,7 @@ void SvxLineTabPage::Reset( const SfxItemSet& rAttrs ) } else if( rAttrs.GetItemState( XATTR_LINEENDCENTER ) != SFX_ITEM_DONTCARE ) { - m_pTsbCenterEnd->EnableTriState( sal_False ); + m_pTsbCenterEnd->EnableTriState( false ); if( ( ( const XLineEndCenterItem& ) rAttrs.Get( XATTR_LINEENDCENTER ) ).GetValue() ) m_pTsbCenterEnd->SetState( STATE_CHECK ); diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx index 01893344ff19..e3b3de8f0b0f 100644 --- a/cui/source/tabpages/tplnedef.cxx +++ b/cui/source/tabpages/tplnedef.cxx @@ -869,7 +869,7 @@ void SvxLineDefTabPage::FillDialog_Impl() if( eXDS == XDASH_RECTRELATIVE ) m_pCbxSynchronize->Check(); else - m_pCbxSynchronize->Check( sal_False ); + m_pCbxSynchronize->Check( false ); m_pNumFldNumber1->SetValue( aDash.GetDots() ); SetMetricValue( *m_pMtrLength1, aDash.GetDotLen(), ePoolUnit ); diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx index cfc24eed8d84..22c2d4fda335 100644 --- a/cui/source/tabpages/tpshadow.cxx +++ b/cui/source/tabpages/tpshadow.cxx @@ -363,7 +363,7 @@ void SvxShadowTabPage::Reset( const SfxItemSet& rAttrs ) // has a shadow been set? if( rAttrs.GetItemState( SDRATTR_SHADOW ) != SFX_ITEM_DONTCARE ) { - m_pTsbShowShadow->EnableTriState( sal_False ); + m_pTsbShowShadow->EnableTriState( false ); if( ( ( const SdrShadowItem& ) rAttrs.Get( SDRATTR_SHADOW ) ).GetValue() ) m_pTsbShowShadow->SetState( STATE_CHECK ); diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index 88334ca8de50..3a0b0ec7c73e 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -762,8 +762,8 @@ void SvxPositionSizeTabPage::Construct() m_pTsbAutoGrowHeight->SetClickHdl( LINK( this, SvxPositionSizeTabPage, ClickSizeProtectHdl ) ); // is used as flag to evaluate if its selectable - m_pTsbAutoGrowWidth->EnableTriState( sal_False ); - m_pTsbAutoGrowHeight->EnableTriState( sal_False ); + m_pTsbAutoGrowWidth->EnableTriState( false ); + m_pTsbAutoGrowHeight->EnableTriState( false ); } } @@ -932,7 +932,7 @@ void SvxPositionSizeTabPage::Reset( const SfxItemSet& ) { sal_Bool bProtected = ( ( const SfxBoolItem* )pItem )->GetValue(); m_pTsbPosProtect->SetState( bProtected ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbPosProtect->EnableTriState( sal_False ); + m_pTsbPosProtect->EnableTriState( false ); } else { @@ -975,7 +975,7 @@ void SvxPositionSizeTabPage::Reset( const SfxItemSet& ) { m_pTsbSizeProtect->SetState( ( (const SfxBoolItem*)pItem )->GetValue() ? STATE_CHECK : STATE_NOCHECK ); - m_pTsbSizeProtect->EnableTriState( sal_False ); + m_pTsbSizeProtect->EnableTriState( false ); } else m_pTsbSizeProtect->SetState( STATE_DONTKNOW ); |