diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-01-10 00:02:56 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-01-10 00:12:21 +0900 |
commit | 3fa2c6da4a912856f4a0572fafe7b32fc7d57e88 (patch) | |
tree | c7bfb1f7a8946b8280282b8ca3b314e7f4e32e33 /sw/source/ui/dbui | |
parent | 68d40d2cae3700f4134375fcaf9649ac626ada7d (diff) |
sal_Bool to bool
Change-Id: Ib83c02d53fbae6a70781d9d9d7ab015b016c72a8
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 26 | ||||
-rw-r--r-- | sw/source/ui/dbui/dbmgr.cxx | 16 |
2 files changed, 21 insertions, 21 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index c53173f6bd5f..99c0f31e33e0 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -646,10 +646,10 @@ IMPL_LINK( SwInsertDBColAutoPilot, DblClickHdl, ListBox*, pBox ) IMPL_LINK( SwInsertDBColAutoPilot, TblFmtHdl, PushButton*, pButton ) { SwWrtShell& rSh = pView->GetWrtShell(); - sal_Bool bNewSet = sal_False; + bool bNewSet = false; if( !pTblSet ) { - bNewSet = sal_True; + bNewSet = true; pTblSet = new SfxItemSet( rSh.GetAttrPool(), SwuiGetUITableAttrRange() ); // At first acquire the simple attributes @@ -1054,7 +1054,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, for( sal_Int32 i = 0 ; ; ++i ) { - sal_Bool bBreak = sal_False; + bool bBreak = false; try { if(pSelection) @@ -1068,7 +1068,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, } catch (const Exception&) { - bBreak = sal_True; + bBreak = true; } if(bBreak) break; @@ -1243,12 +1243,12 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, rtl::OUString("1"), aEmptyStr, aDBData ); - sal_Bool bSetCrsr = sal_True; + bool bSetCrsr = true; sal_uInt16 n = 0, nCols = aColArr.size(); ::sw::mark::IMark* pMark = NULL; for( sal_Int32 i = 0 ; ; ++i ) { - sal_Bool bBreak = sal_False; + bool bBreak = false; try { if(pSelection) @@ -1262,7 +1262,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, } catch (const Exception&) { - bBreak = sal_True; + bBreak = true; } if(bBreak) @@ -1369,7 +1369,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, ::rtl::OUString(), IDocumentMarkAccess::UNO_BOOKMARK ); rSh.SwCrsrShell::MovePara( GetfnParaCurr(), GetfnParaEnd() ); - bSetCrsr = sal_False; + bSetCrsr = false; } } @@ -1526,15 +1526,15 @@ static rtl::OUString lcl_CreateUniqueName(const Sequence<rtl::OUString>& aNames) const rtl::OUString* pNames = aNames.getConstArray(); rtl::OUString sTest("_"); rtl::OUString sRet; - while(sal_True) + while(true) { sRet = sTest; sRet += rtl::OUString::valueOf(nIdx++); - sal_Bool bFound = sal_False; + bool bFound = false; for(sal_Int32 i = 0; i < aNames.getLength(); i++) { if(pNames[i] == sRet) { - bFound = sal_True; + bFound = true; break; } } @@ -1733,12 +1733,12 @@ void SwInsertDBColAutoPilot::Load() rtl::OUString sColumn; pSubProps[0] >>= sColumn; //check for existance of the loaded column name - sal_Bool bFound = sal_False; + bool bFound = false; for(sal_uInt16 nRealColumn = 0; nRealColumn < aDBColumns.size(); nRealColumn++) { if(aDBColumns[nRealColumn]->sColumn == sColumn) { - bFound = sal_True; + bFound = true; break; } } diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx index 65c5052b9802..855f4dfa7149 100644 --- a/sw/source/ui/dbui/dbmgr.cxx +++ b/sw/source/ui/dbui/dbmgr.cxx @@ -826,9 +826,9 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell, const SwMergeDescriptor& rMergeDescriptor) { //check if the doc is synchronized and contains at least one linked section - sal_Bool bSynchronizedDoc = pSourceShell->IsLabelDoc() && pSourceShell->GetSectionFmtCount() > 1; + bool bSynchronizedDoc = pSourceShell->IsLabelDoc() && pSourceShell->GetSectionFmtCount() > 1; sal_Bool bLoop = sal_True; - sal_Bool bEMail = rMergeDescriptor.nMergeType == DBMGR_MERGE_MAILING; + bool bEMail = rMergeDescriptor.nMergeType == DBMGR_MERGE_MAILING; const bool bAsSingleFile = rMergeDescriptor.nMergeType == DBMGR_MERGE_SINGLE_FILE; ::rtl::Reference< MailDispatcher > xMailDispatcher; @@ -853,7 +853,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell, uno::Reference< XPropertySet > xColumnProp; { - sal_Bool bColumnName = sEMailAddrFld.Len() > 0; + bool bColumnName = sEMailAddrFld.Len() > 0; if (bColumnName) { @@ -1364,7 +1364,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName, { uno::Reference< XDataSource> xSource; uno::Reference< XConnection> xConnection; - sal_Bool bUseMergeData = sal_False; + bool bUseMergeData = false; uno::Reference< XColumnsSupplier> xColsSupp; bool bDisposeConnection = false; if(pImpl->pMergeData && @@ -1372,7 +1372,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName, { xConnection = pImpl->pMergeData->xConnection; xSource = SwNewDBMgr::getDataSourceAsParent(xConnection,rDBName); - bUseMergeData = sal_True; + bUseMergeData = true; xColsSupp = xColsSupp.query( pImpl->pMergeData->xResultSet ); } if(!xConnection.is()) @@ -1765,13 +1765,13 @@ sal_Bool SwNewDBMgr::GetColumnCnt(const String& rSourceName, const String& rTabl { //the destination has to be an element of the selection const Any* pSelection = pFound->aSelection.getConstArray(); - sal_Bool bFound = sal_False; + bool bFound = false; for(sal_Int32 nPos = 0; !bFound && nPos < pFound->aSelection.getLength(); nPos++) { sal_Int32 nSelection = 0; pSelection[nPos] >>= nSelection; if(nSelection == static_cast<sal_Int32>(nAbsRecordId)) - bFound = sal_True; + bFound = true; } if(!bFound) return sal_False; @@ -2715,7 +2715,7 @@ sal_Int32 SwNewDBMgr::MergeDocuments( SwMailMergeConfigItem& rMMConfig, } SwWrtShell& rSourceShell = rSourceView.GetWrtShell(); - sal_Bool bSynchronizedDoc = rSourceShell.IsLabelDoc() && rSourceShell.GetSectionFmtCount() > 1; + bool bSynchronizedDoc = rSourceShell.IsLabelDoc() && rSourceShell.GetSectionFmtCount() > 1; //save the settings of the first rSourceShell.SttEndDoc(sal_True); sal_uInt16 nStartingPageNo = rSourceShell.GetVirtPageNum(); |