diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-27 21:06:48 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-08-28 22:47:56 +0200 |
commit | 49a96397da5e20c695e2972b5964da957724ef5e (patch) | |
tree | 8da29eb361460e3af4ab4eeb52bf5d8719a0bd13 /sc | |
parent | 6222d47081ff28ad253265dfd138095c991c867a (diff) |
sal_Bool->bool in xmlcelli.[ch]xx
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 56 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlcelli.hxx | 24 |
2 files changed, 40 insertions, 40 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index c7ab4391b577..507f3ec8d1ec 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -106,7 +106,7 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, const ::rtl::OUString& rLName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList>& xAttrList, - const sal_Bool bTempIsCovered, + const bool bTempIsCovered, const sal_Int32 nTempRepeatedRows ) : SvXMLImportContext( rImport, nPrfx, rLName ), pContentValidationName(NULL), @@ -124,7 +124,7 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, bIsMatrix(false), bHasSubTable(false), bIsCovered(bTempIsCovered), - bIsEmpty(sal_True), + bIsEmpty(true), bHasTextImport(false), bIsFirstTextImport(false), bSolarMutexLocked(false), @@ -154,19 +154,19 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, pContentValidationName = new rtl::OUString(sValue); break; case XML_TOK_TABLE_ROW_CELL_ATTR_SPANNED_ROWS: - bIsMerged = sal_True; + bIsMerged = true; nMergedRows = sValue.toInt32(); break; case XML_TOK_TABLE_ROW_CELL_ATTR_SPANNED_COLS: - bIsMerged = sal_True; + bIsMerged = true; nMergedCols = sValue.toInt32(); break; case XML_TOK_TABLE_ROW_CELL_ATTR_SPANNED_MATRIX_COLS: - bIsMatrix = sal_True; + bIsMatrix = true; nMatrixCols = sValue.toInt32(); break; case XML_TOK_TABLE_ROW_CELL_ATTR_SPANNED_MATRIX_ROWS: - bIsMatrix = sal_True; + bIsMatrix = true; nMatrixRows = sValue.toInt32(); break; case XML_TOK_TABLE_ROW_CELL_ATTR_REPEATED: @@ -248,7 +248,7 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, if (pOUFormula) { if (nCellType == util::NumberFormat::TEXT) - bFormulaTextResult = sal_True; + bFormulaTextResult = true; nCellType = util::NumberFormat::UNDEFINED; } rXMLImport.GetStylesImportHelper()->SetAttributes(pStyleName, pCurrencySymbol, nCellType); @@ -269,7 +269,7 @@ void ScXMLTableRowCellContext::LockSolarMutex() if (!bSolarMutexLocked) { GetScImport().LockSolarMutex(); - bSolarMutexLocked = sal_True; + bSolarMutexLocked = true; } } @@ -324,21 +324,21 @@ SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPr SvXMLImportContext *pContext = 0; const SvXMLTokenMap& rTokenMap = rXMLImport.GetTableRowCellElemTokenMap(); - sal_Bool bTextP(false); + bool bTextP(false); switch( rTokenMap.Get( nPrefix, rLName ) ) { case XML_TOK_TABLE_ROW_CELL_P: { bIsEmpty = false; - bTextP = sal_True; + bTextP = true; com::sun::star::table::CellAddress aCellPos = rXMLImport.GetTables().GetRealCellPos(); if (((nCellType == util::NumberFormat::TEXT) || bFormulaTextResult) && !rXMLImport.GetTables().IsPartOfMatrix(aCellPos.Column, aCellPos.Row)) { if (!bHasTextImport) { - bIsFirstTextImport = sal_True; - bHasTextImport = sal_True; + bIsFirstTextImport = true; + bHasTextImport = true; pContext = new ScXMLTextPContext(rXMLImport, nPrefix, rLName, xAttrList, this); } else @@ -355,7 +355,7 @@ SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPr } else SetCursorOnTextImport(rtl::OUString()); - rXMLImport.SetRemoveLastChar(sal_True); + rXMLImport.SetRemoveLastChar(true); uno::Reference < text::XTextCursor > xTextCursor(rXMLImport.GetTextImport()->GetCursor()); if (xTextCursor.is()) { @@ -390,7 +390,7 @@ SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPr OSL_ENSURE(bHasSubTable, "it should be a subtable"); pContext = new ScXMLTableContext( rXMLImport , nPrefix, rLName, xAttrList, - sal_True, nMergedCols); + true, nMergedCols); nMergedCols = 1; bIsMerged = false; } @@ -453,7 +453,7 @@ SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPr return pContext; } -sal_Bool ScXMLTableRowCellContext::IsMerged (const uno::Reference <table::XCellRange>& xCellRange, const sal_Int32 nCol, const sal_Int32 nRow, +bool ScXMLTableRowCellContext::IsMerged (const uno::Reference <table::XCellRange>& xCellRange, const sal_Int32 nCol, const sal_Int32 nRow, table::CellRangeAddress& aCellAddress) const { table::CellAddress aCell; // don't need to set the sheet, because every sheet can contain the same count of cells. @@ -475,7 +475,7 @@ sal_Bool ScXMLTableRowCellContext::IsMerged (const uno::Reference <table::XCellR aCellAddress.StartRow == nRow && aCellAddress.EndRow == nRow) return false; else - return sal_True; + return true; } } } @@ -509,7 +509,7 @@ void ScXMLTableRowCellContext::DoMerge(const com::sun::star::table::CellAddress& uno::Reference <util::XMergeable> xMergeable (xCellRange->getCellRangeByPosition(aCellAddress.StartColumn, aCellAddress.StartRow, aCellAddress.EndColumn + nCols, aCellAddress.EndRow + nRows), uno::UNO_QUERY); if (xMergeable.is()) - xMergeable->merge(sal_True); + xMergeable->merge(true); } catch ( lang::IndexOutOfBoundsException & ) { @@ -772,12 +772,12 @@ void ScXMLTableRowCellContext::EndElement() UniReference< XMLTextImportHelper > aTextImport = rXMLImport.GetTextImport(); if (aTextImport->GetCursor().is()) { - //aTextImport->GetCursor()->gotoEnd(sal_False); - if( aTextImport->GetCursor()->goLeft( 1, sal_True ) ) + //aTextImport->GetCursor()->gotoEnd(false); + if( aTextImport->GetCursor()->goLeft( 1, true ) ) { aTextImport->GetText()->insertString( aTextImport->GetCursorAsRange(), rtl::OUString(), - sal_True ); + true ); } aTextImport->ResetCursor(); } @@ -823,7 +823,7 @@ void ScXMLTableRowCellContext::EndElement() } } if (!pOUTextContent && !pOUText && !pOUTextValue) - bIsEmpty = sal_True; + bIsEmpty = true; } bool bWasEmpty = bIsEmpty; // uno::Reference <table::XCell> xCell; @@ -872,7 +872,7 @@ void ScXMLTableRowCellContext::EndElement() { case util::NumberFormat::TEXT: { - sal_Bool bDoIncrement = sal_True; + bool bDoIncrement = true; if (rTables.IsPartOfMatrix(aCurrentPos.Column, aCurrentPos.Row)) { LockSolarMutex(); @@ -889,10 +889,10 @@ void ScXMLTableRowCellContext::EndElement() // pCellObj->SetFormulaResultString(*pOUText); // } // else - // bDoIncrement = sal_False; + // bDoIncrement = false; // } // else - // bDoIncrement = sal_False; + // bDoIncrement = false; ScAddress aScAddress; ScUnoConversion::FillScAddress( aScAddress, aCurrentPos ); ScBaseCell* pCell = rXMLImport.GetDocument()->GetCell( aScAddress ); @@ -925,7 +925,7 @@ void ScXMLTableRowCellContext::EndElement() // xText->setString(*pOUText); // } // else - // bDoIncrement = sal_False; + // bDoIncrement = false; // } LockSolarMutex(); ScBaseCell* pNewCell = NULL; @@ -948,7 +948,7 @@ void ScXMLTableRowCellContext::EndElement() // #i56027# This is about setting simple text, not edit cells, // so ProgressBarIncrement must be called with bEditCell = FALSE. // Formatted text that is put into the cell by the child context - // is handled below (bIsEmpty is sal_True then). + // is handled below (bIsEmpty is true then). if (bDoIncrement || bHasTextImport) rXMLImport.ProgressBarIncrement(false); } @@ -1023,10 +1023,10 @@ void ScXMLTableRowCellContext::EndElement() else { // #i56027# If the child context put formatted text into the cell, - // bIsEmpty is sal_True and ProgressBarIncrement has to be called + // bIsEmpty is true and ProgressBarIncrement has to be called // with bEditCell = TRUE. if (bHasTextImport) - rXMLImport.ProgressBarIncrement(sal_True); + rXMLImport.ProgressBarIncrement(true); if ((i == 0) && (aCellPos.Column == 0)) for (sal_Int32 j = 1; j < nRepeatedRows; ++j) { diff --git a/sc/source/filter/xml/xmlcelli.hxx b/sc/source/filter/xml/xmlcelli.hxx index 53387ebc5c14..b826fe0778f6 100644 --- a/sc/source/filter/xml/xmlcelli.hxx +++ b/sc/source/filter/xml/xmlcelli.hxx @@ -68,22 +68,22 @@ class ScXMLTableRowCellContext : public SvXMLImportContext ScXMLImport& rXMLImport; formula::FormulaGrammar::Grammar eGrammar; sal_Int16 nCellType; - sal_Bool bIsMerged; - sal_Bool bIsMatrix; - sal_Bool bHasSubTable; - sal_Bool bIsCovered; - sal_Bool bIsEmpty; - sal_Bool bHasTextImport; - sal_Bool bIsFirstTextImport; - sal_Bool bSolarMutexLocked; - sal_Bool bFormulaTextResult; + bool bIsMerged; + bool bIsMatrix; + bool bHasSubTable; + bool bIsCovered; + bool bIsEmpty; + bool bHasTextImport; + bool bIsFirstTextImport; + bool bSolarMutexLocked; + bool bFormulaTextResult; const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); } ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); } sal_Int16 GetCellType(const rtl::OUString& sOUValue) const; - sal_Bool IsMerged (const com::sun::star::uno::Reference <com::sun::star::table::XCellRange>& xCellRange, + bool IsMerged (const com::sun::star::uno::Reference <com::sun::star::table::XCellRange>& xCellRange, const sal_Int32 nCol, const sal_Int32 nRow, com::sun::star::table::CellRangeAddress& aCellAddress) const; void DoMerge(const com::sun::star::table::CellAddress& aCellPos, @@ -97,7 +97,7 @@ class ScXMLTableRowCellContext : public SvXMLImportContext void LockSolarMutex(); void UnlockSolarMutex(); - sal_Bool CellExists(const com::sun::star::table::CellAddress& aCellPos) const + bool CellExists(const com::sun::star::table::CellAddress& aCellPos) const { return (aCellPos.Column <= MAXCOL && aCellPos.Row <= MAXROW); } @@ -108,7 +108,7 @@ public: const ::rtl::OUString& rLName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList>& xAttrList, - const sal_Bool bIsCovered, const sal_Int32 nRepeatedRows ); + const bool bIsCovered, const sal_Int32 nRepeatedRows ); virtual ~ScXMLTableRowCellContext(); |