diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-23 11:08:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-23 11:11:51 +0200 |
commit | 6dda3d45c902d64323a085ea1604a993521f313d (patch) | |
tree | 9b964839510ac36762733bd99951539040f8ffc0 /sc/source/ui/dbgui | |
parent | e32da7783686f088fa83cdae209bcf1c81d82f1e (diff) |
sc: sal_Bool->bool
Change-Id: I70aad0b38979f45a313b8ac36890fb6c64d11bb0
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/consdlg.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/dbgui/foptmgr.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/dbgui/pfiltdlg.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/dbgui/scuiimoptdlg.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/dbgui/sfiltdlg.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/dbgui/validate.cxx | 4 |
9 files changed, 24 insertions, 24 deletions
diff --git a/sc/source/ui/dbgui/consdlg.cxx b/sc/source/ui/dbgui/consdlg.cxx index 56169a25af03..8b9e99b0caf0 100644 --- a/sc/source/ui/dbgui/consdlg.cxx +++ b/sc/source/ui/dbgui/consdlg.cxx @@ -49,7 +49,7 @@ public: ~ScAreaData() {} - void Set( const OUString& rName, const OUString& rArea, sal_Bool bDb ) + void Set( const OUString& rName, const OUString& rArea, bool bDb ) { aStrName = rName; aStrArea = rArea; @@ -58,7 +58,7 @@ public: OUString aStrName; OUString aStrArea; - sal_Bool bIsDbArea; + bool bIsDbArea; }; diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index c8b43853da29..f4c0eb05c2ba 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -78,11 +78,11 @@ private: ScRange& rCurArea; OUString aStr; ScRange aArea; - sal_Bool bHeader:1; - sal_Bool bSize:1; - sal_Bool bFormat:1; - sal_Bool bStrip:1; - sal_Bool bDirty:1; + bool bHeader:1; + bool bSize:1; + bool bFormat:1; + bool bStrip:1; + bool bDirty:1; }; @@ -95,7 +95,7 @@ void DBSaveData::Save() bSize = rBtnSize.IsChecked(); bFormat = rBtnFormat.IsChecked(); bStrip = rBtnStrip.IsChecked(); - bDirty = sal_True; + bDirty = true; } @@ -551,7 +551,7 @@ IMPL_LINK_NOARG(ScDbNameDlg, RemoveBtnHdl) IMPL_LINK_NOARG(ScDbNameDlg, NameModifyHdl) { OUString theName = m_pEdName->GetText(); - sal_Bool bNameFound = (COMBOBOX_ENTRY_NOTFOUND + bool bNameFound = (COMBOBOX_ENTRY_NOTFOUND != m_pEdName->GetEntryPos( theName )); if ( theName.isEmpty() ) diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx index e17538145153..3035cd8632c8 100644 --- a/sc/source/ui/dbgui/foptmgr.cxx +++ b/sc/source/ui/dbgui/foptmgr.cxx @@ -243,7 +243,7 @@ IMPL_LINK( ScFilterOptionsMgr, EdAreaModifyHdl, Edit*, pEd ) if ( SCA_VALID == (nResult & SCA_VALID) ) { OUString* pStr = NULL; - sal_Bool bFound = false; + bool bFound = false; sal_uInt16 i = 0; sal_uInt16 nCount = pLbCopyArea->GetEntryCount(); diff --git a/sc/source/ui/dbgui/pfiltdlg.cxx b/sc/source/ui/dbgui/pfiltdlg.cxx index 04680f162804..8a097f202500 100644 --- a/sc/source/ui/dbgui/pfiltdlg.cxx +++ b/sc/source/ui/dbgui/pfiltdlg.cxx @@ -350,7 +350,7 @@ const ScQueryItem& ScPivotFilterDlg::GetOutputItem() sal_uInt16 nField = aFieldLbArr[i]->GetSelectEntryPos(); ScQueryOp eOp = (ScQueryOp)aCondLbArr[i]->GetSelectEntryPos(); - sal_Bool bDoThis = (aFieldLbArr[i]->GetSelectEntryPos() != 0); + bool bDoThis = (aFieldLbArr[i]->GetSelectEntryPos() != 0); theParam.GetEntry(i).bDoQuery = bDoThis; if ( bDoThis ) diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index 95355a15c5b2..9d6cb86a753e 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -223,8 +223,8 @@ static void save_Separators( { pProperties[4] <<= nFromRow; pProperties[5] <<= nCharSet; - pProperties[6] <<= static_cast<sal_Bool>(bQuotedAsText); - pProperties[7] <<= static_cast<sal_Bool>(bDetectSpecialNum); + pProperties[6] <<= bQuotedAsText; + pProperties[7] <<= bDetectSpecialNum; pProperties[8] <<= nLanguage; } @@ -604,7 +604,7 @@ OUString ScImportAsciiDlg::GetSeparators() const void ScImportAsciiDlg::SetupSeparatorCtrls() { - sal_Bool bEnable = pRbSeparated->IsChecked(); + bool bEnable = pRbSeparated->IsChecked(); pCkbTab->Enable( bEnable ); pCkbSemicolon->Enable( bEnable ); pCkbComma->Enable( bEnable ); diff --git a/sc/source/ui/dbgui/scuiimoptdlg.cxx b/sc/source/ui/dbgui/scuiimoptdlg.cxx index 6b0d32278741..3eda96fc61f7 100644 --- a/sc/source/ui/dbgui/scuiimoptdlg.cxx +++ b/sc/source/ui/dbgui/scuiimoptdlg.cxx @@ -294,7 +294,7 @@ IMPL_LINK( ScImportOptionsDlg, FixedWidthHdl, CheckBox*, pCheckBox ) { if (pCheckBox == m_pCbFixed) { - sal_Bool bEnable = !m_pCbFixed->IsChecked(); + bool bEnable = !m_pCbFixed->IsChecked(); m_pFtFieldSep->Enable( bEnable ); m_pEdFieldSep->Enable( bEnable ); m_pFtTextSep->Enable( bEnable ); diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx index e217a4cebfb7..98aa0b8f6733 100644 --- a/sc/source/ui/dbgui/sfiltdlg.cxx +++ b/sc/source/ui/dbgui/sfiltdlg.cxx @@ -279,8 +279,8 @@ IMPL_LINK( ScSpecialFilterDlg, EndDlgHdl, Button*, pBtn ) OUString theAreaStr( pEdFilterArea->GetText() ); ScQueryParam theOutParam( theQueryData ); ScAddress theAdrCopy; - sal_Bool bEditInputOk = true; - sal_Bool bQueryOk = false; + bool bEditInputOk = true; + bool bQueryOk = false; ScRange theFilterArea; const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention(); @@ -444,7 +444,7 @@ IMPL_LINK( ScSpecialFilterDlg, FilterAreaModHdl, formula::RefEdit*, pEd ) if ( SCA_VALID == (nResult & SCA_VALID) ) { OUString* pStr = NULL; - sal_Bool bFound = false; + bool bFound = false; sal_uInt16 i = 0; sal_uInt16 nCount = pLbFilterArea->GetEntryCount(); diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 63eff99e4da3..a9a793c2e238 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -400,14 +400,14 @@ void ScTabPageSortFields::FillFieldLists( sal_uInt16 nStartField ) sal_uInt16 ScTabPageSortFields::GetFieldSelPos( SCCOLROW nField ) { sal_uInt16 nFieldPos = 0; - sal_Bool bFound = false; + bool bFound = false; for ( sal_uInt16 n=1; n<nFieldCount && !bFound; n++ ) { if ( nFieldArr[n] == nField ) { nFieldPos = n; - bFound = sal_True; + bFound = true; } } @@ -761,7 +761,7 @@ void ScTabPageSortOptions::ActivatePage( const SfxItemSet& rSet ) int ScTabPageSortOptions::DeactivatePage( SfxItemSet* pSetP ) { - sal_Bool bPosInputOk = sal_True; + bool bPosInputOk = true; if ( m_pBtnCopyResult->IsChecked() ) { @@ -895,7 +895,7 @@ void ScTabPageSortOptions::EdOutPosModHdl( Edit* pEd ) if ( SCA_VALID == (nResult & SCA_VALID) ) { OUString* pStr = NULL; - sal_Bool bFound = false; + bool bFound = false; sal_uInt16 i = 0; sal_uInt16 nCount = m_pLbOutPos->GetEntryCount(); diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx index 344e183ea599..6efd5a53c095 100644 --- a/sc/source/ui/dbgui/validate.cxx +++ b/sc/source/ui/dbgui/validate.cxx @@ -401,7 +401,7 @@ void ScTPValidationValue::Reset( const SfxItemSet& rArgSet ) m_pLbValue->SelectEntryPos( nLbPos ); // *** check boxes *** - sal_Bool bCheck = sal_True; + bool bCheck = true; if( rArgSet.GetItemState( FID_VALID_BLANK, true, &pItem ) == SFX_ITEM_SET ) bCheck = static_cast< const SfxBoolItem* >( pItem )->GetValue(); m_pCbAllow->Check( bCheck ); @@ -786,7 +786,7 @@ bool ScTPValidationError::FillItemSet( SfxItemSet& rArgSet ) IMPL_LINK_NOARG(ScTPValidationError, SelectActionHdl) { ScValidErrorStyle eStyle = (ScValidErrorStyle) m_pLbAction->GetSelectEntryPos(); - sal_Bool bMacro = ( eStyle == SC_VALERR_MACRO ); + bool bMacro = ( eStyle == SC_VALERR_MACRO ); m_pBtnSearch->Enable( bMacro ); m_pFtError->Enable( !bMacro ); |