From 12854c322f799a8795b0054293ea987f11170d64 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 28 Nov 2011 19:25:43 -0500 Subject: [PATCH] sal_Bool to bool. --- sc/inc/docuno.hxx | 2 +- sc/source/ui/unoobj/docuno.cxx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 35296da3400b..261a21d6284b 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -111,7 +111,7 @@ private: ::cppu::OInterfaceContainerHelper maChangesListeners; - sal_Bool FillRenderMarkData( const com::sun::star::uno::Any& aSelection, + bool FillRenderMarkData( const com::sun::star::uno::Any& aSelection, const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rOptions, ScMarkData& rMark, ScPrintSelectionStatus& rStatus, String& rPagesStr ) const; com::sun::star::uno::Reference GetFormatter(); diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index affcb56e228f..cb6b3f750b2f 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -752,7 +752,7 @@ bool lcl_ParseTarget( const String& rTarget, ScRange& rTargetRange, Rectangle& r return bRangeValid; } -sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, +bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, const uno::Sequence< beans::PropertyValue >& rOptions, ScMarkData& rMark, ScPrintSelectionStatus& rStatus, String& rPagesStr ) const @@ -760,13 +760,13 @@ sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, OSL_ENSURE( !rMark.IsMarked() && !rMark.IsMultiMarked(), "FillRenderMarkData: MarkData must be empty" ); OSL_ENSURE( pDocShell, "FillRenderMarkData: DocShell must be set" ); - sal_Bool bDone = false; + bool bDone = false; uno::Reference xView; // defaults when no options are passed: all sheets, include empty pages sal_Bool bSelectedSheetsOnly = false; - sal_Bool bIncludeEmptyPages = sal_True; + sal_Bool bIncludeEmptyPages = true; bool bHasPrintContent = false; sal_Int32 nPrintContent = 0; // all sheets / selected sheets / selected cells @@ -813,8 +813,8 @@ sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, uno::Reference< drawing::XShapes > xShapes( xInterface, uno::UNO_QUERY ); if ( pSelObj && pSelObj->GetDocShell() == pDocShell ) { - sal_Bool bSheet = ( ScTableSheetObj::getImplementation( xInterface ) != NULL ); - sal_Bool bCursor = pSelObj->IsCursorOnly(); + bool bSheet = ( ScTableSheetObj::getImplementation( xInterface ) != NULL ); + bool bCursor = pSelObj->IsCursorOnly(); const ScRangeList& rRanges = pSelObj->GetRangeList(); rMark.MarkFromRangeList( rRanges, false ); @@ -843,7 +843,7 @@ sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, rStatus.SetMode( SC_PRINTSEL_RANGE ); rStatus.SetRanges( rRanges ); - bDone = sal_True; + bDone = true; } // multi selection isn't supported } @@ -872,7 +872,7 @@ sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, if( rMark.IsMarked() && !rMark.IsMultiMarked() ) { rStatus.SetMode( SC_PRINTSEL_RANGE_EXCLUSIVELY_OLE_AND_DRAW_OBJECTS ); - bDone = sal_True; + bDone = true; } } } @@ -888,7 +888,7 @@ sal_Bool ScModelObj::FillRenderMarkData( const uno::Any& aSelection, for (SCTAB nTab = 0; nTab < nTabCount; nTab++) rMark.SelectTable( nTab, sal_True ); rStatus.SetMode( SC_PRINTSEL_DOCUMENT ); - bDone = sal_True; + bDone = true; } // other selection types aren't supported }