diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-01 14:13:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-03 09:17:51 +0200 |
commit | f3802139ac6d21edbd1b30df9675eac1aae50360 (patch) | |
tree | 11fc28b6ead8a634989f3ecaa0769829083f8d5d /oox | |
parent | e8f4a2541bf5e38b953f04cee0e447a40d25950f (diff) |
oox: sal_Bool->bool
Change-Id: Ia05b3210314c39db5110eded731f2be4b7405e87
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/pptgraphicshapecontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/pptshape.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/pptshapecontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/presentationfragmenthandler.cxx | 14 | ||||
-rw-r--r-- | oox/source/ppt/slidefragmenthandler.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/slidepersist.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/slidetransition.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/slidetransitioncontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 4 | ||||
-rw-r--r-- | oox/source/vml/vmlshapecontext.cxx | 2 |
10 files changed, 18 insertions, 18 deletions
diff --git a/oox/source/ppt/pptgraphicshapecontext.cxx b/oox/source/ppt/pptgraphicshapecontext.cxx index 730ce23967bf..7a411bf2f73b 100644 --- a/oox/source/ppt/pptgraphicshapecontext.cxx +++ b/oox/source/ppt/pptgraphicshapecontext.cxx @@ -170,7 +170,7 @@ ContextHandlerRef PPTGraphicShapeContext::onCreateContext( sal_Int32 aElementTok mpShapePtr->applyShapeReference( *pPlaceholder.get(), bUseText ); PPTShape* pPPTShape = dynamic_cast< PPTShape* >( pPlaceholder.get() ); if ( pPPTShape ) - pPPTShape->setReferenced( sal_True ); + pPPTShape->setReferenced( true ); pPPTShapePtr->setPlaceholder( pPlaceholder ); } } diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx index 6013c3968a3f..11b25eef32b9 100644 --- a/oox/source/ppt/pptshape.cxx +++ b/oox/source/ppt/pptshape.cxx @@ -44,7 +44,7 @@ namespace oox { namespace ppt { PPTShape::PPTShape( const oox::ppt::ShapeLocation eShapeLocation, const sal_Char* pServiceName ) : Shape( pServiceName ) , meShapeLocation( eShapeLocation ) -, mbReferenced( sal_False ) +, mbReferenced( false ) { } diff --git a/oox/source/ppt/pptshapecontext.cxx b/oox/source/ppt/pptshapecontext.cxx index 2741e748679e..617373380640 100644 --- a/oox/source/ppt/pptshapecontext.cxx +++ b/oox/source/ppt/pptshapecontext.cxx @@ -192,7 +192,7 @@ ContextHandlerRef PPTShapeContext::onCreateContext( sal_Int32 aElementToken, con mpShapePtr->applyShapeReference( *pPlaceholder.get() ); PPTShape* pPPTShape = dynamic_cast< PPTShape* >( pPlaceholder.get() ); if ( pPPTShape ) - pPPTShape->setReferenced( sal_True ); + pPPTShape->setReferenced( true ); pPPTShapePtr->setPlaceholder( pPlaceholder ); } } diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx index 5fdf3f7fa365..8bd8a4c477d9 100644 --- a/oox/source/ppt/presentationfragmenthandler.cxx +++ b/oox/source/ppt/presentationfragmenthandler.cxx @@ -135,7 +135,7 @@ void ResolveTextFields( XmlFilterBase& rFilter ) } } -void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirstPage, sal_Bool bImportNotesPage) +void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, bool bFirstPage, bool bImportNotesPage) { PowerPointImport& rFilter = dynamic_cast< PowerPointImport& >( getFilter() ); @@ -157,7 +157,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirst if( !aSlideFragmentPath.isEmpty() ) { SlidePersistPtr pMasterPersistPtr; - SlidePersistPtr pSlidePersistPtr( new SlidePersist( rFilter, sal_False, sal_False, xSlide, + SlidePersistPtr pSlidePersistPtr( new SlidePersist( rFilter, false, false, xSlide, ShapePtr( new PPTShape( Slide, "com.sun.star.drawing.GroupShape" ) ), mpTextListStyle ) ); FragmentHandlerRef xSlideFragmentHandler( new SlideFragmentHandler( rFilter, aSlideFragmentPath, pSlidePersistPtr, Slide ) ); @@ -196,7 +196,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirst else xMasterPage = xMasterPages->insertNewByIndex( xMasterPages->getCount() ); - pMasterPersistPtr = SlidePersistPtr( new SlidePersist( rFilter, sal_True, sal_False, xMasterPage, + pMasterPersistPtr = SlidePersistPtr( new SlidePersist( rFilter, true, false, xMasterPage, ShapePtr( new PPTShape( Master, "com.sun.star.drawing.GroupShape" ) ), mpTextListStyle ) ); pMasterPersistPtr->setLayoutPath( aLayoutFragmentPath ); rFilter.getMasterPages().push_back( pMasterPersistPtr ); @@ -264,7 +264,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirst Reference< XDrawPage > xNotesPage( xPresentationPage->getNotesPage() ); if ( xNotesPage.is() ) { - SlidePersistPtr pNotesPersistPtr( new SlidePersist( rFilter, sal_False, sal_True, xNotesPage, + SlidePersistPtr pNotesPersistPtr( new SlidePersist( rFilter, false, true, xNotesPage, ShapePtr( new PPTShape( Slide, "com.sun.star.drawing.GroupShape" ) ), mpTextListStyle ) ); FragmentHandlerRef xNotesFragmentHandler( new SlideFragmentHandler( getFilter(), aNotesFragmentPath, pNotesPersistPtr, Slide ) ); rFilter.getNotesPages().push_back( pNotesPersistPtr ); @@ -285,7 +285,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirst Reference< XPresentationPage > xPresentationPage( xSlide, UNO_QUERY ); Reference< XDrawPage > xCommentAuthorsPage( xPresentationPage->getNotesPage() ); SlidePersistPtr pCommentAuthorsPersistPtr( - new SlidePersist( rFilter, sal_False, sal_True, xCommentAuthorsPage, + new SlidePersist( rFilter, false, true, xCommentAuthorsPage, ShapePtr( new PPTShape( Slide, "com.sun.star.drawing.GroupShape" ) ), @@ -305,7 +305,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, sal_Bool bFirst Reference< XDrawPage > xCommentsPage( xPresentationPage->getNotesPage() ); SlidePersistPtr pCommentsPersistPtr( new SlidePersist( - rFilter, sal_False, sal_True, xCommentsPage, + rFilter, false, true, xCommentsPage, ShapePtr( new PPTShape( Slide, "com.sun.star.drawing.GroupShape" ) ), @@ -485,7 +485,7 @@ bool PresentationFragmentHandler::importSlide( const FragmentHandlerRef& rxSlide oox::ppt::HeaderFooter aHeaderFooter( pSlidePersistPtr->getHeaderFooter() ); if ( !pSlidePersistPtr->isMasterPage() ) - aHeaderFooter.mbSlideNumber = aHeaderFooter.mbHeader = aHeaderFooter.mbFooter = aHeaderFooter.mbDateTime = sal_False; + aHeaderFooter.mbSlideNumber = aHeaderFooter.mbHeader = aHeaderFooter.mbFooter = aHeaderFooter.mbDateTime = false; try { if ( pSlidePersistPtr->isNotesPage() ) diff --git a/oox/source/ppt/slidefragmenthandler.cxx b/oox/source/ppt/slidefragmenthandler.cxx index d001422f2143..a44f63c9c787 100644 --- a/oox/source/ppt/slidefragmenthandler.cxx +++ b/oox/source/ppt/slidefragmenthandler.cxx @@ -104,7 +104,7 @@ SlideFragmentHandler::~SlideFragmentHandler() throw() if( aIter == rMasterPages.end() && !mpSlidePersistPtr->getMasterPersist() ) { TextListStylePtr pTextListStyle(new TextListStyle); - SlidePersistPtr pMasterPersistPtr = SlidePersistPtr( new SlidePersist( rFilter, sal_True, sal_True, mpSlidePersistPtr->getPage(), + SlidePersistPtr pMasterPersistPtr = SlidePersistPtr( new SlidePersist( rFilter, true, true, mpSlidePersistPtr->getPage(), ShapePtr( new PPTShape( Master, "com.sun.star.drawing.GroupShape" ) ), mpSlidePersistPtr->getNotesTextStyle() ) ); pMasterPersistPtr->setPath( aNotesFragmentPath ); rFilter.getMasterPages().push_back( pMasterPersistPtr ); diff --git a/oox/source/ppt/slidepersist.cxx b/oox/source/ppt/slidepersist.cxx index b53fcb258fff..6ac8e0dd09ea 100644 --- a/oox/source/ppt/slidepersist.cxx +++ b/oox/source/ppt/slidepersist.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star::animations; namespace oox { namespace ppt { -SlidePersist::SlidePersist( XmlFilterBase& rFilter, sal_Bool bMaster, sal_Bool bNotes, +SlidePersist::SlidePersist( XmlFilterBase& rFilter, bool bMaster, bool bNotes, const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& rxPage, oox::drawingml::ShapePtr pShapesPtr, const drawingml::TextListStylePtr & pDefaultTextStyle ) : mpDrawingPtr( new oox::vml::Drawing( rFilter, rxPage, oox::vml::VMLDRAWING_POWERPOINT ) ) diff --git a/oox/source/ppt/slidetransition.cxx b/oox/source/ppt/slidetransition.cxx index 6033c6118f34..cc564774ea3f 100644 --- a/oox/source/ppt/slidetransition.cxx +++ b/oox/source/ppt/slidetransition.cxx @@ -190,9 +190,9 @@ namespace oox { namespace ppt { return nOdpDirection; } - sal_Bool SlideTransition::ooxToOdpSideDirectionsDirectionNormal( ::sal_Int32 nOoxType ) + bool SlideTransition::ooxToOdpSideDirectionsDirectionNormal( ::sal_Int32 nOoxType ) { - sal_Bool nOdpDirection = true; + bool nOdpDirection = true; switch( nOoxType ) { case XML_u: diff --git a/oox/source/ppt/slidetransitioncontext.cxx b/oox/source/ppt/slidetransitioncontext.cxx index b7f97f633ad4..0e7caeb23087 100644 --- a/oox/source/ppt/slidetransitioncontext.cxx +++ b/oox/source/ppt/slidetransitioncontext.cxx @@ -44,7 +44,7 @@ namespace oox { namespace ppt { SlideTransitionContext::SlideTransitionContext( FragmentHandler2& rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) throw() : FragmentHandler2( rParent ) , maSlideProperties( aProperties ) -, mbHasTransition( sal_False ) +, mbHasTransition( false ) { // ST_TransitionSpeed maTransition.setOoxTransitionSpeed( rAttribs.getToken( XML_spd, XML_fast ) ); diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 624815eeb2dd..e79c9b803c76 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -112,8 +112,8 @@ awt::Rectangle lclGetAbsRect( const awt::Rectangle& rRelRect, const awt::Rectang ShapeTypeModel::ShapeTypeModel(): - mbAutoHeight( sal_False ), - mbVisible( sal_True ) + mbAutoHeight( false ), + mbVisible( true ) { } diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx index fe7e8ec7e3fe..fdeca3276169 100644 --- a/oox/source/vml/vmlshapecontext.cxx +++ b/oox/source/vml/vmlshapecontext.cxx @@ -413,7 +413,7 @@ void ShapeTypeContext::setStyle( const OUString& rStyle ) else if( aName == "mso-width-relative" ) mrTypeModel.maWidthRelative = aValue; else if( aName == "mso-height-percent" ) mrTypeModel.maHeightPercent = aValue; else if( aName == "mso-height-relative" ) mrTypeModel.maHeightRelative = aValue; - else if( aName == "mso-fit-shape-to-text" ) mrTypeModel.mbAutoHeight = sal_True; + else if( aName == "mso-fit-shape-to-text" ) mrTypeModel.mbAutoHeight = true; else if( aName == "rotation" ) mrTypeModel.maRotation = aValue; else if( aName == "flip" ) mrTypeModel.maFlip = aValue; else if( aName.equalsAscii( "visibility" ) ) |