diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-12-11 07:05:03 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-12-11 07:05:03 +0000 |
commit | 37d9508882a6783c66adebf9fde0645a3d055b02 (patch) | |
tree | 180534b0df9f6aa8d777d4ec35bc486beb4000d3 | |
parent | 49150b42adff9ffa45e1a04038df5c16c8a9e815 (diff) |
CWS-TOOLING: integrate CWS cmcfixes51
2008-12-08 10:12:55 +0100 cmc r264975 : #i96203# protect with ifdefs to avoid unused symbol on mac
2008-12-05 12:23:47 +0100 cmc r264898 : CWS-TOOLING: rebase CWS cmcfixes51 to trunk@264807 (milestone: DEV300:m37)
2008-12-01 14:45:17 +0100 cmc r264606 : #i76655# ehlos apparently required
2008-11-28 17:49:30 +0100 cmc r264567 : #i96655# remove newly unused method
2008-11-28 10:41:28 +0100 cmc r264531 : #i96647# better ppc-bridges flushCode impl
2008-11-27 12:58:40 +0100 cmc r264478 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 12:32:49 +0100 cmc r264476 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 12:26:02 +0100 cmc r264475 : #i96655# redundant old table export helpers
2008-11-27 11:49:06 +0100 cmc r264473 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:38:35 +0100 cmc r264471 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:14:21 +0100 cmc r264467 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 11:06:22 +0100 cmc r264464 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:58:18 +0100 cmc r264462 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:41:44 +0100 cmc r264461 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:19:24 +0100 cmc r264460 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:13:39 +0100 cmc r264459 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 10:06:14 +0100 cmc r264458 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:59:54 +0100 cmc r264457 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:52:51 +0100 cmc r264456 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:48:26 +0100 cmc r264454 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:40:20 +0100 cmc r264452 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:35:26 +0100 cmc r264451 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:31:00 +0100 cmc r264450 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 09:24:08 +0100 cmc r264449 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:26:15 +0100 cmc r264443 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:21:01 +0100 cmc r264442 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-27 00:09:40 +0100 cmc r264441 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 23:51:56 +0100 cmc r264440 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 23:49:09 +0100 cmc r264439 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 18:09:54 +0100 cmc r264432 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 18:07:40 +0100 cmc r264431 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:28:02 +0100 cmc r264429 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:27:39 +0100 cmc r264428 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 17:18:36 +0100 cmc r264426 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 16:22:16 +0100 cmc r264415 : #i96624# make implicit braces and brackets explicit to avoid warnings
2008-11-26 16:00:23 +0100 cmc r264409 : #i90426# remove warnings from svtools
2008-11-26 15:59:17 +0100 cmc r264408 : #i90426# remove warnings
2008-11-26 15:47:32 +0100 cmc r264404 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:46:57 +0100 cmc r264394 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:19:50 +0100 cmc r264387 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:15:26 +0100 cmc r264386 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 14:11:26 +0100 cmc r264384 : #i96084# confirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 13:44:23 +0100 cmc r264380 : #i96084# comfirm existing logic with explicit brackets to remove new gcc warnings
2008-11-26 13:12:24 +0100 cmc r264372 : #i96604# silence new warnings
2008-11-26 12:35:02 +0100 cmc r264369 : #i96203# make qstarter work in 3-layer land
2008-11-26 12:33:04 +0100 cmc r264368 : #i96170# ensure gtypes are up and running
-rw-r--r-- | sc/source/filter/xml/XMLDDELinksContext.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLExportDDELinks.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlstyli.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/tabcont.cxx | 18 | ||||
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 2 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.cxx | 2 |
8 files changed, 28 insertions, 6 deletions
diff --git a/sc/source/filter/xml/XMLDDELinksContext.cxx b/sc/source/filter/xml/XMLDDELinksContext.cxx index 064a8a8ab722..2769b6cbaee0 100644 --- a/sc/source/filter/xml/XMLDDELinksContext.cxx +++ b/sc/source/filter/xml/XMLDDELinksContext.cxx @@ -227,12 +227,14 @@ ScXMLDDESourceContext::ScXMLDDESourceContext( ScXMLImport& rImport, pDDELink->SetItem(sValue); } else if ((nPrefix == XML_NAMESPACE_TABLE) && IsXMLToken(aLocalName, XML_CONVERSION_MODE)) + { if (IsXMLToken(sValue, XML_INTO_ENGLISH_NUMBER)) pDDELink->SetMode(SC_DDE_ENGLISH); else if (IsXMLToken(sValue, XML_KEEP_TEXT)) pDDELink->SetMode(SC_DDE_TEXT); else pDDELink->SetMode(SC_DDE_DEFAULT); + } } } @@ -279,10 +281,12 @@ SvXMLImportContext *ScXMLDDETableContext::CreateChildContext( USHORT nPrefix, SvXMLImportContext *pContext = NULL; if (nPrefix == XML_NAMESPACE_TABLE) + { if (IsXMLToken(rLName, XML_TABLE_COLUMN)) pContext = new ScXMLDDEColumnContext(GetScImport(), nPrefix, rLName, xAttrList, pDDELink); else if (IsXMLToken(rLName, XML_TABLE_ROW)) pContext = new ScXMLDDERowContext(GetScImport(), nPrefix, rLName, xAttrList, pDDELink); + } if (!pContext) pContext = new SvXMLImportContext( GetImport(), nPrefix, rLName ); diff --git a/sc/source/filter/xml/XMLExportDDELinks.cxx b/sc/source/filter/xml/XMLExportDDELinks.cxx index 9cfba665c689..7a719319efb4 100644 --- a/sc/source/filter/xml/XMLExportDDELinks.cxx +++ b/sc/source/filter/xml/XMLExportDDELinks.cxx @@ -80,6 +80,7 @@ void ScXMLExportDDELinks::WriteCell(const sal_Bool bEmpty, const sal_Bool bStrin { rtl::OUStringBuffer sBuffer; if (!bEmpty) + { if (bString) { rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE_TYPE, XML_STRING); @@ -91,6 +92,7 @@ void ScXMLExportDDELinks::WriteCell(const sal_Bool bEmpty, const sal_Bool bStrin rExport.GetMM100UnitConverter().convertDouble(sBuffer, fValue); rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_VALUE, sBuffer.makeStringAndClear()); } + } if (nRepeat > 1) { rExport.GetMM100UnitConverter().convertNumber(sBuffer, nRepeat); diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index ae0024352f77..dfcac81e6228 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -1036,10 +1036,12 @@ SvXMLImportContext *ScMasterPageContext::CreateHeaderFooterContext( const sal_Bool bLeft ) { if (!bLeft) + { if (bFooter) bContainsRightFooter = sal_True; else bContainsRightHeader = sal_True; + } if (!xPropSet.is()) xPropSet.set(GetStyle(), UNO_QUERY ); return new XMLTableHeaderFooterContext( GetImport(), diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index 780b9c9f5247..5b4b0fc1bfbf 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -802,6 +802,7 @@ void ScUndoMerge::DoChange( const BOOL bUndo ) const aRange.aEnd.Col(), aRange.aEnd.Row() ); if (pUndoDoc) + { if (bUndo) { pDoc->DeleteAreaTab( aRange, IDF_CONTENTS ); @@ -811,6 +812,7 @@ void ScUndoMerge::DoChange( const BOOL bUndo ) const /*!*/ pDoc->DoMergeContents( aRange.aStart.Tab(), aRange.aStart.Col(), aRange.aStart.Row(), aRange.aEnd.Col(), aRange.aEnd.Row() ); + } BOOL bDidPaint = FALSE; ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx index 948677b3c6ad..85f60d312fa8 100644 --- a/sc/source/ui/view/tabcont.cxx +++ b/sc/source/ui/view/tabcont.cxx @@ -72,11 +72,15 @@ ScTabControl::ScTabControl( Window* pParent, ScViewData* pData ) : for (SCTAB i=0; i<nCount; i++) { if (pDoc->IsVisible(i)) + { if (pDoc->GetName(i,aString)) + { if ( pDoc->IsScenario(i) ) InsertPage( static_cast<sal_uInt16>(i)+1, aString, TPB_SPECIAL ); else InsertPage( static_cast<sal_uInt16>(i)+1, aString ); + } + } } SetCurPageId( static_cast<sal_uInt16>(pViewData->GetTabNo()) + 1 ); @@ -293,12 +297,18 @@ void ScTabControl::UpdateStatus() { Clear(); for (i=0; i<nCount; i++) + { if (pDoc->IsVisible(i)) + { if (pDoc->GetName(i,aString)) - if ( pDoc->IsScenario(i) ) - InsertPage( static_cast<sal_uInt16>(i)+1, aString, TPB_SPECIAL ); - else - InsertPage( static_cast<sal_uInt16>(i)+1, aString ); + { + if ( pDoc->IsScenario(i) ) + InsertPage( static_cast<sal_uInt16>(i)+1, aString, TPB_SPECIAL ); + else + InsertPage( static_cast<sal_uInt16>(i)+1, aString ); + } + } + } } SetCurPageId( static_cast<sal_uInt16>(pViewData->GetTabNo()) + 1 ); diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 66d9188ef910..dc6ddd86668e 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -1762,11 +1762,13 @@ void ScViewFunc::DeleteMulti( BOOL bRows, BOOL bRecord ) } if (!AdjustRowHeight(0, MAXROW)) + { if (bRows) pDocSh->PostPaint( 0,pRanges[0],nTab, MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_LEFT ); else pDocSh->PostPaint( static_cast<SCCOL>(pRanges[0]),0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_TOP ); + } aModificator.SetDocumentModified(); CellContentChanged(); diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 929d5f51ecb0..bdc3e6d7e977 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -603,7 +603,7 @@ public: inline sal_Bool IsLeapYear( sal_uInt16 n ) { - return ( ( ( n % 4 ) == 0 ) && ( ( n % 100 ) != 0) || ( ( n % 400 ) == 0 ) ); + return ( (( ( n % 4 ) == 0 ) && ( ( n % 100 ) != 0)) || ( ( n % 400 ) == 0 ) ); } diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index 500196cb6129..c2ef7343788e 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -603,7 +603,7 @@ uno::Sequence< sheet::LocalizedName > SAL_CALL ScaDateAddIn::getCompatibilityNam sal_Bool IsLeapYear( sal_uInt16 nYear ) { - return (((nYear % 4) == 0) && ((nYear % 100) != 0) || ((nYear % 400) == 0)); + return ((((nYear % 4) == 0) && ((nYear % 100) != 0)) || ((nYear % 400) == 0)); } sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) |