diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-24 10:52:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-24 10:53:17 +0200 |
commit | b45a12c37d2b671e54404afda5dee1b0947bd3ed (patch) | |
tree | 484fa50da87e5434970c774527a77e0dd079e1b9 /sd/source/ui | |
parent | e4e654e40575300eaab429a6b94348bf43b9d7ce (diff) |
sd: sal_Bool->bool
Change-Id: I3172a42f6b6abe434ffe0475d1201ff50b6c06ea
Diffstat (limited to 'sd/source/ui')
236 files changed, 2499 insertions, 2505 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx index 0088f5aa6db7..0819cede035c 100644 --- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx +++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx @@ -699,7 +699,7 @@ bool { const SolarMutexGuard aSolarGuard; uno::Reference< view::XSelectionSupplier > xSel( mxController, uno::UNO_QUERY ); - sal_Bool bRet = sal_False; + bool bRet = false; OSL_ENSURE( 0 <= nAccessibleChildIndex, "AccessibleDrawDocumentView::implIsSelected: invalid index!" ); @@ -722,7 +722,7 @@ bool { for( sal_Int32 i = 0, nCount = xShapes->getCount(); ( i < nCount ) && !bRet; ++i ) if( xShapes->getByIndex( i ) == xShape ) - bRet = sal_True; + bRet = true; } } } @@ -792,7 +792,7 @@ void if( xShape.is() ) { uno::Reference< drawing::XShapes > xShapes; - sal_Bool bFound = sal_False; + bool bFound = false; aAny = xSel->getSelection(); aAny >>= xShapes; @@ -803,7 +803,7 @@ void sal_Int32 nCount = xShapes->getCount(); for (sal_Int32 i=0; ( i < nCount ) && !bFound; ++i ) if( xShapes->getByIndex( i ) == xShape ) - bFound = sal_True; + bFound = true; } else // Create an empty selection to add the shape to. @@ -831,13 +831,13 @@ void AccessibleDrawDocumentView::Activated (void) { if (mpChildrenManager != NULL) { - sal_Bool bChange = sal_False; + bool bChange = false; // When none of the children has the focus then claim it for the // view. if ( ! mpChildrenManager->HasFocus()) { SetState (AccessibleStateType::FOCUSED); - bChange = sal_True; + bChange = true; } else ResetState (AccessibleStateType::FOCUSED); diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx index 992ba05128b4..e62bf65ffa6d 100644 --- a/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx +++ b/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx @@ -527,7 +527,7 @@ void AccessibleSlideSorterObject::ThrowIfDisposed (void) -sal_Bool AccessibleSlideSorterObject::IsDisposed (void) +bool AccessibleSlideSorterObject::IsDisposed (void) { return (rBHelper.bDisposed || rBHelper.bInDispose); } diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx index f36129680a17..2a51ef286616 100644 --- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx +++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx @@ -616,7 +616,7 @@ sal_Bool SAL_CALL AccessibleSlideSorterView::isAccessibleChildSelected (sal_Int3 RuntimeException, std::exception) { ThrowIfDisposed(); - sal_Bool bIsSelected = sal_False; + bool bIsSelected = false; const SolarMutexGuard aSolarGuard; AccessibleSlideSorterObject* pChild = mpImpl->GetAccessibleChild(nChildIndex); @@ -755,7 +755,7 @@ void AccessibleSlideSorterView::ThrowIfDisposed (void) -sal_Bool AccessibleSlideSorterView::IsDisposed (void) +bool AccessibleSlideSorterView::IsDisposed (void) { return (rBHelper.bDisposed || rBHelper.bInDispose); } @@ -1086,12 +1086,12 @@ IMPL_LINK_NOARG(AccessibleSlideSorterView::Implementation, FocusChangeListener) sal_Int32 nNewFocusedIndex ( mrSlideSorter.GetController().GetFocusManager().GetFocusedPageIndex()); - sal_Bool bHasFocus = mrSlideSorter.GetController().GetFocusManager().IsFocusShowing(); + bool bHasFocus = mrSlideSorter.GetController().GetFocusManager().IsFocusShowing(); if (!bHasFocus) nNewFocusedIndex = -1; // add a checker whether the focus event is sent out. Only after sent, the mnFocusedIndex should be updated. - sal_Bool bSentFocus = sal_False; + bool bSentFocus = false; if (nNewFocusedIndex != mnFocusedIndex) { if (mnFocusedIndex >= 0) @@ -1103,7 +1103,7 @@ IMPL_LINK_NOARG(AccessibleSlideSorterView::Implementation, FocusChangeListener) AccessibleEventId::STATE_CHANGED, Any(AccessibleStateType::FOCUSED), Any()); - bSentFocus = sal_True; + bSentFocus = true; } } if (nNewFocusedIndex >= 0) @@ -1115,10 +1115,10 @@ IMPL_LINK_NOARG(AccessibleSlideSorterView::Implementation, FocusChangeListener) AccessibleEventId::STATE_CHANGED, Any(), Any(AccessibleStateType::FOCUSED)); - bSentFocus = sal_True; + bSentFocus = true; } } - if (bSentFocus == sal_True) + if (bSentFocus) mnFocusedIndex = nNewFocusedIndex; } return 1; diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index f859038f76da..420fb4bf17b9 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -1130,7 +1130,7 @@ private: private: ::std::vector< OUString > maSoundList; - sal_Bool mbHasText; + bool mbHasText; const STLPropertySet* mpSet; VclFrame* mpSettings; @@ -1156,7 +1156,7 @@ private: }; CustomAnimationEffectTabPage::CustomAnimationEffectTabPage( Window* pParent, const STLPropertySet* pSet ) -: TabPage( pParent, "EffectTab", "modules/simpress/ui/customanimationeffecttab.ui" ), mbHasText( sal_False ), mpSet(pSet ) +: TabPage( pParent, "EffectTab", "modules/simpress/ui/customanimationeffecttab.ui" ), mbHasText( false ), mpSet(pSet ) { get(mpSettings, "settings" ); get(mpFTProperty1, "prop_label1" ); @@ -1271,7 +1271,7 @@ CustomAnimationEffectTabPage::CustomAnimationEffectTabPage( Window* pParent, con (pSet->getPropertyState( nHandleAfterEffectOnNextEffect ) != STLPropertyState_AMBIGUOUS) && (pSet->getPropertyState( nHandleDimColor ) != STLPropertyState_AMBIGUOUS)) { - sal_Bool bHasAfterEffect = sal_False; + bool bHasAfterEffect = false; pSet->getPropertyValue( nHandleHasAfterEffect ) >>= bHasAfterEffect; sal_Int32 nPos = 0; @@ -1279,7 +1279,7 @@ CustomAnimationEffectTabPage::CustomAnimationEffectTabPage( Window* pParent, con { nPos++; - sal_Bool bAfterEffectOnNextClick = sal_False; + bool bAfterEffectOnNextClick = false; pSet->getPropertyValue( nHandleAfterEffectOnNextEffect ) >>= bAfterEffectOnNextClick; Any aDimColor( pSet->getPropertyValue( nHandleDimColor ) ); @@ -1487,9 +1487,9 @@ void CustomAnimationEffectTabPage::update( STLPropertySet* pSet ) sal_Int32 nPos = mpLBAfterEffect->GetSelectEntryPos(); if( nPos != LISTBOX_ENTRY_NOTFOUND ) { - sal_Bool bAfterEffect = nPos != 0; + bool bAfterEffect = nPos != 0; - sal_Bool bOldAfterEffect = sal_False; + bool bOldAfterEffect = false; if(mpSet->getPropertyState( nHandleHasAfterEffect ) != STLPropertyState_AMBIGUOUS) mpSet->getPropertyValue( nHandleHasAfterEffect ) >>= bOldAfterEffect; @@ -1513,8 +1513,8 @@ void CustomAnimationEffectTabPage::update( STLPropertySet* pSet ) (mpSet->getPropertyValue( nHandleDimColor ) != aDimColor) ) pSet->setPropertyValue( nHandleDimColor, makeAny( aDimColor ) ); - sal_Bool bAfterEffectOnNextEffect = nPos != 2 ? sal_True : sal_False; - sal_Bool bOldAfterEffectOnNextEffect = !bAfterEffectOnNextEffect; + bool bAfterEffectOnNextEffect = nPos != 2 ? sal_True : sal_False; + bool bOldAfterEffectOnNextEffect = !bAfterEffectOnNextEffect; if( mpSet->getPropertyState( nHandleAfterEffectOnNextEffect ) != STLPropertyState_AMBIGUOUS) mpSet->getPropertyValue( nHandleAfterEffectOnNextEffect ) >>= bOldAfterEffectOnNextEffect; @@ -1572,7 +1572,7 @@ void CustomAnimationEffectTabPage::update( STLPropertySet* pSet ) else if( nPos == 1 ) { // this means stop sound - aNewSoundURL = makeAny( (sal_Bool)sal_True ); + aNewSoundURL = makeAny( true ); } else { @@ -1876,7 +1876,7 @@ CustomAnimationDurationTabPage::CustomAnimationDurationTabPage(Window* pParent, Reference< XPropertySet > xSet( xShape, UNO_QUERY ); if( xSet.is() && xSet->getPropertySetInfo()->hasPropertyByName( aStrIsEmptyPresObj ) ) { - sal_Bool bIsEmpty = sal_False; + bool bIsEmpty = false; xSet->getPropertyValue( aStrIsEmptyPresObj ) >>= bIsEmpty; if( bIsEmpty ) continue; @@ -2132,7 +2132,7 @@ CustomAnimationTextAnimTabPage::CustomAnimationTextAnimTabPage(Window* pParent, maCBXAnimateForm->SetState( TRISTATE_INDET ); if( pSet->getPropertyState( nHandleAnimateForm ) != STLPropertyState_AMBIGUOUS ) { - sal_Bool bAnimateForm = sal_False; + bool bAnimateForm = false; if( pSet->getPropertyValue( nHandleAnimateForm ) >>= bAnimateForm ) { maCBXAnimateForm->Check( bAnimateForm ); @@ -2146,7 +2146,7 @@ CustomAnimationTextAnimTabPage::CustomAnimationTextAnimTabPage(Window* pParent, maCBXReverse->SetState( TRISTATE_INDET ); if( pSet->getPropertyState( nHandleTextReverse ) != STLPropertyState_AMBIGUOUS ) { - sal_Bool bTextReverse = sal_False; + bool bTextReverse = false; if( pSet->getPropertyValue( nHandleTextReverse ) >>= bTextReverse ) { maCBXReverse->Check( bTextReverse ); @@ -2187,8 +2187,8 @@ void CustomAnimationTextAnimTabPage::update( STLPropertySet* pSet ) if( nPos > 0 ) { - sal_Bool bTextReverse = maCBXReverse->IsChecked(); - sal_Bool bOldTextReverse = !bTextReverse; + bool bTextReverse = maCBXReverse->IsChecked(); + bool bOldTextReverse = !bTextReverse; if(mpSet->getPropertyState( nHandleTextReverse ) != STLPropertyState_AMBIGUOUS) mpSet->getPropertyValue( nHandleTextReverse ) >>= bOldTextReverse; @@ -2213,8 +2213,8 @@ void CustomAnimationTextAnimTabPage::update( STLPropertySet* pSet ) //If this control is disabled, we should ignore its value if (maCBXAnimateForm->IsEnabled()) { - sal_Bool bAnimateForm = maCBXAnimateForm->IsChecked(); - sal_Bool bOldAnimateForm = !bAnimateForm; + bool bAnimateForm = maCBXAnimateForm->IsChecked(); + bool bOldAnimateForm = !bAnimateForm; if(mpSet->getPropertyState( nHandleAnimateForm ) != STLPropertyState_AMBIGUOUS) mpSet->getPropertyValue( nHandleAnimateForm ) >>= bOldAnimateForm; @@ -2267,7 +2267,7 @@ CustomAnimationDialog::CustomAnimationDialog(Window* pParent, STLPropertySet* pS mpDurationTabPage = new CustomAnimationDurationTabPage( mpTabControl, mpSet ); mpTabControl->SetTabPage( mnTimingId, mpDurationTabPage ); - sal_Bool bHasText = sal_False; + bool bHasText = false; if( pSet->getPropertyState( nHandleHasText ) != STLPropertyState_AMBIGUOUS ) pSet->getPropertyValue( nHandleHasText ) >>= bHasText; @@ -2318,8 +2318,8 @@ STLPropertySet* CustomAnimationDialog::createDefaultSet() STLPropertySet* pSet = new STLPropertySet(); pSet->setPropertyDefaultValue( nHandleMaxParaDepth, makeAny( (sal_Int32)-1 ) ); - pSet->setPropertyDefaultValue( nHandleHasAfterEffect, makeAny( (sal_Bool)sal_False ) ); - pSet->setPropertyDefaultValue( nHandleAfterEffectOnNextEffect, makeAny( (sal_Bool)sal_False ) ); + pSet->setPropertyDefaultValue( nHandleHasAfterEffect, makeAny( false ) ); + pSet->setPropertyDefaultValue( nHandleAfterEffectOnNextEffect, makeAny( false ) ); pSet->setPropertyDefaultValue( nHandleDimColor, aEmpty ); pSet->setPropertyDefaultValue( nHandleIterateType, makeAny( (sal_Int16)0 ) ); pSet->setPropertyDefaultValue( nHandleIterateInterval, makeAny( (double)0.0 ) ); diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index 38ad91a3d148..5a6967c5a439 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -670,7 +670,7 @@ void CustomAnimationPane::updateControls() mpPBMoveDown->Enable(bEnableDown); SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS); - mpCBAutoPreview->Check( pOptions->IsPreviewChangedEffects() == sal_True ); + mpCBAutoPreview->Check( pOptions->IsPreviewChangedEffects() ); updateMotionPathTags(); } @@ -1012,7 +1012,7 @@ bool CustomAnimationPane::setProperty1Value( sal_Int32 nType, CustomAnimationEff return bEffectChanged; } -static sal_Bool hasVisibleShape( const Reference< XShape >& xShape ) +static bool hasVisibleShape( const Reference< XShape >& xShape ) { try { @@ -1037,7 +1037,7 @@ static sal_Bool hasVisibleShape( const Reference< XShape >& xShape ) catch( Exception& ) { } - return sal_True; + return true; } STLPropertySet* CustomAnimationPane::createSelectionSet() @@ -1089,7 +1089,7 @@ STLPropertySet* CustomAnimationPane::createSelectionSet() addValue( pSet, nHandlePresetId, makeAny( pEffect->getPresetId() ) ); - addValue( pSet, nHandleHasText, makeAny( (sal_Bool)pEffect->hasText() ) ); + addValue( pSet, nHandleHasText, makeAny( pEffect->hasText() ) ); addValue( pSet, nHandleHasVisibleShape, Any( hasVisibleShape( pEffect->getTargetShape() ) ) ); @@ -1103,7 +1103,7 @@ STLPropertySet* CustomAnimationPane::createSelectionSet() } else if( pEffect->getCommand() == EffectCommands::STOPAUDIO ) { - aSoundSource = makeAny( (sal_Bool)sal_True ); + aSoundSource = makeAny( true ); } addValue( pSet, nHandleSoundURL, aSoundSource ); @@ -1113,9 +1113,9 @@ STLPropertySet* CustomAnimationPane::createSelectionSet() pTextGroup = pEffectSequence->findGroup( nGroupId ); addValue( pSet, nHandleTextGrouping, makeAny( pTextGroup.get() ? pTextGroup->getTextGrouping() : (sal_Int32)-1 ) ); - addValue( pSet, nHandleAnimateForm, makeAny( pTextGroup.get() ? (sal_Bool)pTextGroup->getAnimateForm() : sal_True ) ); + addValue( pSet, nHandleAnimateForm, makeAny( pTextGroup.get() ? pTextGroup->getAnimateForm() : true ) ); addValue( pSet, nHandleTextGroupingAuto, makeAny( pTextGroup.get() ? pTextGroup->getTextGroupingAuto() : (double)-1.0 ) ); - addValue( pSet, nHandleTextReverse, makeAny( pTextGroup.get() ? (sal_Bool)pTextGroup->getTextReverse() : sal_False ) ); + addValue( pSet, nHandleTextReverse, makeAny( pTextGroup.get() && pTextGroup->getTextReverse() ) ); if( pEffectSequence->getSequenceType() == EffectNodeType::INTERACTIVE_SEQUENCE ) { @@ -1277,7 +1277,7 @@ void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLProper if( pResultSet->getPropertyState( nHandleHasAfterEffect ) == STLPropertyState_DIRECT ) { - sal_Bool bHasAfterEffect = sal_False; + bool bHasAfterEffect = false; if( pResultSet->getPropertyValue( nHandleHasAfterEffect ) >>= bHasAfterEffect ) { if( pEffect->hasAfterEffect() != bHasAfterEffect ) @@ -1290,8 +1290,9 @@ void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLProper if( pResultSet->getPropertyState( nHandleAfterEffectOnNextEffect ) == STLPropertyState_DIRECT ) { - sal_Bool bAfterEffectOnNextEffect = sal_False; - if( (pResultSet->getPropertyValue( nHandleAfterEffectOnNextEffect ) >>= bAfterEffectOnNextEffect) && ((pEffect->IsAfterEffectOnNext() ? sal_True : sal_False) != bAfterEffectOnNextEffect) ) + bool bAfterEffectOnNextEffect = false; + if( (pResultSet->getPropertyValue( nHandleAfterEffectOnNextEffect ) >>= bAfterEffectOnNextEffect) + && (pEffect->IsAfterEffectOnNext() != bAfterEffectOnNextEffect) ) { pEffect->setAfterEffectOnNext( bAfterEffectOnNextEffect ); bChanged = true; @@ -1332,7 +1333,7 @@ void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLProper if( pResultSet->getPropertyState( nHandleAutoReverse ) == STLPropertyState_DIRECT ) { - sal_Bool bAutoReverse = sal_False; + bool bAutoReverse = false; pResultSet->getPropertyValue( nHandleAutoReverse ) >>= bAutoReverse; if( pEffect->getAutoReverse() != bAutoReverse ) { @@ -1411,7 +1412,7 @@ void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLProper // above sal_Int32 nTextGrouping = 0; - sal_Bool bAnimateForm = sal_True, bTextReverse = sal_False; + bool bAnimateForm = true, bTextReverse = false; double fTextGroupingAuto = -1.0; if( bHasTextGrouping ) @@ -1768,7 +1769,7 @@ void CustomAnimationPane::onChange( bool bCreate ) Reference< XShape > xShape( (*aIter), UNO_QUERY ); if( xShape.is() && !hasVisibleShape( xShape ) ) { - mpMainSequence->createTextGroup( pCreated, 1, -1.0, sal_False, sal_False ); + mpMainSequence->createTextGroup( pCreated, 1, -1.0, false, false ); } } diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index a3f18bf1c678..2e7f4db1f3e4 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -73,7 +73,7 @@ struct TransitionEffect TransitionEffect() : mnType( 0 ), mnSubType( 0 ), - mbDirection( sal_True ), + mbDirection( true ), mnFadeColor( 0 ) { init(); @@ -108,7 +108,7 @@ struct TransitionEffect mfDuration = 2.0; mfTime = 0.0; mePresChange = PRESCHANGE_MANUAL; - mbSoundOn = sal_False; + mbSoundOn = false; mbLoopSound = false; mbStopSound = false; @@ -160,7 +160,7 @@ struct TransitionEffect if( mbStopSound ) { rOutPage.SetStopSound( true ); - rOutPage.SetSound( sal_False ); + rOutPage.SetSound( false ); } else { @@ -199,14 +199,14 @@ struct TransitionEffect // effect sal_Int16 mnType; sal_Int16 mnSubType; - sal_Bool mbDirection; + bool mbDirection; sal_Int32 mnFadeColor; // other settings double mfDuration; double mfTime; PresChange mePresChange; - sal_Bool mbSoundOn; + bool mbSoundOn; OUString maSound; bool mbLoopSound; bool mbStopSound; @@ -661,7 +661,7 @@ void SlideTransitionPane::updateControls() } SdOptions* pOptions = SD_MOD()->GetSdOptions(DOCUMENT_TYPE_IMPRESS); - mpCB_AUTO_PREVIEW->Check( pOptions->IsPreviewTransitions() == sal_True ); + mpCB_AUTO_PREVIEW->Check( pOptions->IsPreviewTransitions() ); mbUpdatingControls = false; diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index d35bf1063043..c2d5c14f5684 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -656,7 +656,7 @@ bool MotionPathTag::OnTabHandles( const KeyEvent& rKEvt ) if(rKEvt.GetKeyCode().IsMod1() || rKEvt.GetKeyCode().IsMod2()) { const SdrHdlList& rHdlList = mrView.GetHdlList(); - sal_Bool bForward(!rKEvt.GetKeyCode().IsShift()); + bool bForward(!rKEvt.GetKeyCode().IsShift()); ((SdrHdlList&)rHdlList).TravelFocusHdl(bForward); @@ -788,7 +788,7 @@ bool MotionPathTag::OnMove( const KeyEvent& rKEvt ) if(mrView.IsDragObj()) { bool bWasNoSnap = mrView.GetDragStat().IsNoSnap(); - sal_Bool bWasSnapEnabled = mrView.IsSnapEnabled(); + bool bWasSnapEnabled = mrView.IsSnapEnabled(); // switch snapping off if(!bWasNoSnap) @@ -847,9 +847,9 @@ sal_uLong MotionPathTag::GetMarkedPointCount() const -sal_Bool MotionPathTag::MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark ) +bool MotionPathTag::MarkPoint(SdrHdl& rHdl, bool bUnmark ) { - sal_Bool bRet=sal_False; + bool bRet=false; if( mpPathObj && mrView.IsPointMarkable( rHdl ) && (rHdl.GetKind() != HDL_SMARTTAG) ) { SmartHdl* pSmartHdl = dynamic_cast< SmartHdl* >( &rHdl ); @@ -859,7 +859,7 @@ sal_Bool MotionPathTag::MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark ) if (mrView.MarkPointHelper(&rHdl,mpMark,bUnmark)) { mrView.MarkListHasChanged(); - bRet=sal_True; + bRet=true; } } } @@ -868,9 +868,9 @@ sal_Bool MotionPathTag::MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark ) -sal_Bool MotionPathTag::MarkPoints(const Rectangle* pRect, sal_Bool bUnmark ) +bool MotionPathTag::MarkPoints(const Rectangle* pRect, bool bUnmark ) { - sal_Bool bChgd=sal_False; + bool bChgd=false; if( mpPathObj && isSelected() ) { @@ -879,13 +879,13 @@ sal_Bool MotionPathTag::MarkPoints(const Rectangle* pRect, sal_Bool bUnmark ) { SmartHdl* pHdl = dynamic_cast< SmartHdl* >( mrView.GetHdl( sal::static_int_cast< sal_uLong >( nHdlNum-- ) ) ); - if( pHdl && (pHdl->getTag().get() == this) && mrView.IsPointMarkable(*pHdl) && (pHdl->IsSelected() ? 1 : 0)==bUnmark) + if( pHdl && (pHdl->getTag().get() == this) && mrView.IsPointMarkable(*pHdl) && pHdl->IsSelected() == bUnmark) { Point aPos(pHdl->GetPos()); if( pRect==NULL || pRect->IsInside(aPos)) { if( mrView.MarkPointHelper(pHdl,mpMark,bUnmark) ) - bChgd=sal_True; + bChgd=true; } } } @@ -1021,8 +1021,8 @@ void MotionPathTag::addCustomHandles( SdrHdlList& rHandlerList ) { sal_uLong nCount = rHandlerList.GetHdlCount(); - sal_Bool bWdt0=aRect.Left()==aRect.Right(); - sal_Bool bHgt0=aRect.Top()==aRect.Bottom(); + bool bWdt0=aRect.Left()==aRect.Right(); + bool bHgt0=aRect.Top()==aRect.Bottom(); if (bWdt0 && bHgt0) { rHandlerList.AddHdl(new SmartHdl( xThis, mpPathObj, aRect.TopLeft(),HDL_UPLFT)); diff --git a/sd/source/ui/animations/motionpathtag.hxx b/sd/source/ui/animations/motionpathtag.hxx index faa883bef6c1..b8356069b1a1 100644 --- a/sd/source/ui/animations/motionpathtag.hxx +++ b/sd/source/ui/animations/motionpathtag.hxx @@ -52,9 +52,9 @@ public: // callbacks from sdr view virtual sal_uLong GetMarkablePointCount() const SAL_OVERRIDE; virtual sal_uLong GetMarkedPointCount() const SAL_OVERRIDE; - virtual sal_Bool MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark=sal_False) SAL_OVERRIDE; + virtual bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false) SAL_OVERRIDE; virtual void CheckPossibilities() SAL_OVERRIDE; - virtual sal_Bool MarkPoints(const Rectangle* pRect, sal_Bool bUnmark) SAL_OVERRIDE; + virtual bool MarkPoints(const Rectangle* pRect, bool bUnmark) SAL_OVERRIDE; const CustomAnimationEffectPtr& getEffect() const { return mpEffect; } diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index aa94bdda6c88..18e7c9e31d62 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -189,7 +189,7 @@ AnnotationManagerImpl::AnnotationManagerImpl( ViewShellBase& rViewShellBase ) { SdOptions* pOptions = SD_MOD()->GetSdOptions(mpDoc->GetDocumentType()); if( pOptions ) - mbShowAnnotations = pOptions->IsShowComments() == sal_True; + mbShowAnnotations = pOptions->IsShowComments(); } diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx index c0cbf57c5c1e..e460d80efd12 100644 --- a/sd/source/ui/annotations/annotationtag.cxx +++ b/sd/source/ui/annotations/annotationtag.cxx @@ -491,17 +491,17 @@ sal_uLong AnnotationTag::GetMarkedPointCount() const -sal_Bool AnnotationTag::MarkPoint(SdrHdl& /*rHdl*/, sal_Bool /*bUnmark*/ ) +bool AnnotationTag::MarkPoint(SdrHdl& /*rHdl*/, bool /*bUnmark*/ ) { - sal_Bool bRet=sal_False; + bool bRet=false; return bRet; } -sal_Bool AnnotationTag::MarkPoints(const Rectangle* /*pRect*/, sal_Bool /*bUnmark*/ ) +bool AnnotationTag::MarkPoints(const Rectangle* /*pRect*/, bool /*bUnmark*/ ) { - sal_Bool bChgd=sal_False; + bool bChgd=false; return bChgd; } diff --git a/sd/source/ui/annotations/annotationtag.hxx b/sd/source/ui/annotations/annotationtag.hxx index aed68740d33a..8006922db4c8 100644 --- a/sd/source/ui/annotations/annotationtag.hxx +++ b/sd/source/ui/annotations/annotationtag.hxx @@ -52,9 +52,9 @@ public: // callbacks from sdr view virtual sal_uLong GetMarkablePointCount() const SAL_OVERRIDE; virtual sal_uLong GetMarkedPointCount() const SAL_OVERRIDE; - virtual sal_Bool MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark=sal_False) SAL_OVERRIDE; + virtual bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false) SAL_OVERRIDE; virtual void CheckPossibilities() SAL_OVERRIDE; - virtual sal_Bool MarkPoints(const Rectangle* pRect, sal_Bool bUnmark) SAL_OVERRIDE; + virtual bool MarkPoints(const Rectangle* pRect, bool bUnmark) SAL_OVERRIDE; void Move( int nDX, int nDY ); bool OnMove( const KeyEvent& rKEvt ); diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index f6277e0fc818..a6e3dd80bb7a 100644 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -82,7 +82,7 @@ Sequence< Any > SdOptionsItem::GetProperties( const Sequence< OUString >& rNames -sal_Bool SdOptionsItem::PutProperties( const Sequence< OUString >& rNames, const Sequence< Any>& rValues ) +bool SdOptionsItem::PutProperties( const Sequence< OUString >& rNames, const Sequence< Any>& rValues ) { return ConfigItem::PutProperties( rNames, rValues ); } @@ -121,12 +121,12 @@ void SdOptionsGeneric::Init() const { const Any* pValues = aValues.getConstArray(); - pThis->EnableModify( sal_False ); + pThis->EnableModify( false ); pThis->mbInit = pThis->ReadData( pValues ); - pThis->EnableModify( sal_True ); + pThis->EnableModify( true ); } else - pThis->mbInit = sal_True; + pThis->mbInit = true; } } @@ -198,26 +198,26 @@ bool SdOptionsGeneric::isMetricSystem() |* \************************************************************************/ -SdOptionsLayout::SdOptionsLayout( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsLayout::SdOptionsLayout( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Layout" ) : B2U( "Office.Impress/Layout" ) ) : OUString() ), - bRuler( sal_True ), - bMoveOutline( sal_True ), - bDragStripes( sal_False ), - bHandlesBezier( sal_False ), - bHelplines( sal_True ), + bRuler( true ), + bMoveOutline( true ), + bDragStripes( false ), + bHandlesBezier( false ), + bHelplines( true ), nMetric((sal_uInt16)(isMetricSystem() ? FUNIT_CM : FUNIT_INCH)), nDefTab( 1250 ) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsLayout::operator==( const SdOptionsLayout& rOpt ) const +bool SdOptionsLayout::operator==( const SdOptionsLayout& rOpt ) const { return( IsRulerVisible() == rOpt.IsRulerVisible() && IsMoveOutline() == rOpt.IsMoveOutline() && @@ -266,7 +266,7 @@ void SdOptionsLayout::GetPropNameArray( const char**& ppNames, sal_uLong& rCount -sal_Bool SdOptionsLayout::ReadData( const Any* pValues ) +bool SdOptionsLayout::ReadData( const Any* pValues ) { if( pValues[0].hasValue() ) SetRulerVisible( *(sal_Bool*) pValues[ 0 ].getValue() ); if( pValues[1].hasValue() ) SetHandlesBezier( *(sal_Bool*) pValues[ 1 ].getValue() ); @@ -276,12 +276,12 @@ sal_Bool SdOptionsLayout::ReadData( const Any* pValues ) if( pValues[5].hasValue() ) SetMetric( (sal_uInt16) *(sal_Int32*) pValues[ 5 ].getValue() ); if( pValues[6].hasValue() ) SetDefTab( (sal_uInt16) *(sal_Int32*) pValues[ 6 ].getValue() ); - return sal_True; + return true; } -sal_Bool SdOptionsLayout::WriteData( Any* pValues ) const +bool SdOptionsLayout::WriteData( Any* pValues ) const { pValues[ 0 ] <<= IsRulerVisible(); pValues[ 1 ] <<= IsHandlesBezier(); @@ -291,7 +291,7 @@ sal_Bool SdOptionsLayout::WriteData( Any* pValues ) const pValues[ 5 ] <<= (sal_Int32) GetMetric(); pValues[ 6 ] <<= (sal_Int32) GetDefTab(); - return sal_True; + return true; } /************************************************************************* @@ -302,7 +302,7 @@ sal_Bool SdOptionsLayout::WriteData( Any* pValues ) const SdOptionsLayoutItem::SdOptionsLayoutItem( sal_uInt16 _nWhich ) : SfxPoolItem ( _nWhich ) -, maOptionsLayout ( 0, sal_False ) +, maOptionsLayout ( 0, false ) { } @@ -310,7 +310,7 @@ SdOptionsLayoutItem::SdOptionsLayoutItem( sal_uInt16 _nWhich ) SdOptionsLayoutItem::SdOptionsLayoutItem( sal_uInt16 _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) : SfxPoolItem ( _nWhich ) -, maOptionsLayout ( 0, sal_False ) +, maOptionsLayout ( 0, false ) { if( pOpts ) { @@ -375,19 +375,19 @@ void SdOptionsLayoutItem::SetOptions( SdOptions* pOpts ) const |* \************************************************************************/ -SdOptionsContents::SdOptionsContents( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsContents::SdOptionsContents( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Content" ) : B2U( "Office.Impress/Content" ) ) : OUString() ) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsContents::operator==(const SdOptionsContents&) const +bool SdOptionsContents::operator==(const SdOptionsContents&) const { return true; } @@ -410,22 +410,22 @@ void SdOptionsContents::GetPropNameArray( const char**& ppNames, sal_uLong& rCou -sal_Bool SdOptionsContents::ReadData(const Any*) +bool SdOptionsContents::ReadData(const Any*) { - return sal_True; + return true; } -sal_Bool SdOptionsContents::WriteData( Any* pValues ) const +bool SdOptionsContents::WriteData( Any* pValues ) const { //#i80528# no draft anymore - pValues[ 0 ] <<= (sal_Bool)false; - pValues[ 1 ] <<= (sal_Bool)false; - pValues[ 2 ] <<= (sal_Bool)false; - pValues[ 3 ] <<= (sal_Bool)false; + pValues[ 0 ] <<= false; + pValues[ 1 ] <<= false; + pValues[ 2 ] <<= false; + pValues[ 3 ] <<= false; - return sal_True; + return true; } /************************************************************************* @@ -436,7 +436,7 @@ sal_Bool SdOptionsContents::WriteData( Any* pValues ) const SdOptionsContentsItem::SdOptionsContentsItem(sal_uInt16 _nWhich, SdOptions*, ::sd::FrameView*) : SfxPoolItem ( _nWhich ) -, maOptionsContents ( 0, sal_False ) +, maOptionsContents ( 0, false ) { } @@ -468,7 +468,7 @@ void SdOptionsContentsItem::SetOptions(SdOptions*) const |* \************************************************************************/ -SdOptionsMisc::SdOptionsMisc( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsMisc::SdOptionsMisc( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Misc" ) : @@ -476,26 +476,26 @@ SdOptionsMisc::SdOptionsMisc( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : OUString() ), nDefaultObjectSizeWidth(8000), nDefaultObjectSizeHeight(5000), - bStartWithTemplate( sal_False ), - bMarkedHitMovesAlways( sal_True ), - bMoveOnlyDragging( sal_False ), - bCrookNoContortion( sal_False ), + bStartWithTemplate( false ), + bMarkedHitMovesAlways( true ), + bMoveOnlyDragging( false ), + bCrookNoContortion( false ), bQuickEdit( GetConfigId() != SDCFG_DRAW ), - bMasterPageCache( sal_True ), - bDragWithCopy( sal_False ), - bPickThrough( sal_True ), - bDoubleClickTextEdit( sal_True ), - bClickChangeRotation( sal_False ), - bEnableSdremote( sal_False ), - bEnablePresenterScreen( sal_True), - bSolidDragging( sal_True ), - bSummationOfParagraphs( sal_False ), - bShowUndoDeleteWarning( sal_True ), - bSlideshowRespectZOrder( sal_True ), - bShowComments( sal_True ), - bPreviewNewEffects( sal_True ), - bPreviewChangedEffects( sal_False ), - bPreviewTransitions( sal_True ), + bMasterPageCache( true ), + bDragWithCopy( false ), + bPickThrough( true ), + bDoubleClickTextEdit( true ), + bClickChangeRotation( false ), + bEnableSdremote( false ), + bEnablePresenterScreen( true), + bSolidDragging( true ), + bSummationOfParagraphs( false ), + bShowUndoDeleteWarning( true ), + bSlideshowRespectZOrder( true ), + bShowComments( true ), + bPreviewNewEffects( true ), + bPreviewChangedEffects( false ), + bPreviewTransitions( true ), mnDisplay( 0 ), mnPenColor( 0xff0000 ), mnPenWidth( 150.0 ), @@ -504,12 +504,12 @@ SdOptionsMisc::SdOptionsMisc( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : // formatting. mnPrinterIndependentLayout (1) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsMisc::operator==( const SdOptionsMisc& rOpt ) const +bool SdOptionsMisc::operator==( const SdOptionsMisc& rOpt ) const { return( IsStartWithTemplate() == rOpt.IsStartWithTemplate() && IsMarkedHitMovesAlways() == rOpt.IsMarkedHitMovesAlways() && @@ -588,7 +588,7 @@ void SdOptionsMisc::GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) -sal_Bool SdOptionsMisc::ReadData( const Any* pValues ) +bool SdOptionsMisc::ReadData( const Any* pValues ) { if( pValues[0].hasValue() ) SetMarkedHitMovesAlways( *(sal_Bool*) pValues[ 0 ].getValue() ); if( pValues[1].hasValue() ) SetCrookNoContortion( *(sal_Bool*) pValues[ 1 ].getValue() ); @@ -644,12 +644,12 @@ sal_Bool SdOptionsMisc::ReadData( const Any* pValues ) SetEnablePresenterScreen( *(sal_Bool*) pValues[ 25 ].getValue() ); } - return sal_True; + return true; } -sal_Bool SdOptionsMisc::WriteData( Any* pValues ) const +bool SdOptionsMisc::WriteData( Any* pValues ) const { pValues[ 0 ] <<= IsMarkedHitMovesAlways(); pValues[ 1 ] <<= IsCrookNoContortion(); @@ -665,7 +665,7 @@ sal_Bool SdOptionsMisc::WriteData( Any* pValues ) const pValues[ 10 ] <<= GetDefaultObjectSizeWidth(); pValues[ 11 ] <<= GetDefaultObjectSizeHeight(); pValues[ 12 ] <<= GetPrinterIndependentLayout(); - pValues[ 13 ] <<= (sal_Bool)IsShowComments(); + pValues[ 13 ] <<= IsShowComments(); // just for Impress if( GetConfigId() == SDCFG_IMPRESS ) @@ -687,7 +687,7 @@ sal_Bool SdOptionsMisc::WriteData( Any* pValues ) const pValues[ 25 ] <<= IsEnablePresenterScreen(); } - return sal_True; + return true; } /************************************************************************* @@ -698,7 +698,7 @@ sal_Bool SdOptionsMisc::WriteData( Any* pValues ) const SdOptionsMiscItem::SdOptionsMiscItem( sal_uInt16 _nWhich ) : SfxPoolItem ( _nWhich ) -, maOptionsMisc ( 0, sal_False ) +, maOptionsMisc ( 0, false ) { } @@ -706,7 +706,7 @@ SdOptionsMiscItem::SdOptionsMiscItem( sal_uInt16 _nWhich ) SdOptionsMiscItem::SdOptionsMiscItem( sal_uInt16 _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) : SfxPoolItem ( _nWhich ) -, maOptionsMisc ( 0, sal_False ) +, maOptionsMisc ( 0, false ) { if( pOpts ) { @@ -741,7 +741,7 @@ SdOptionsMiscItem::SdOptionsMiscItem( sal_uInt16 _nWhich, SdOptions* pOpts, ::sd maOptionsMisc.SetMasterPagePaintCaching( pView->IsMasterPagePaintCaching() ); maOptionsMisc.SetDragWithCopy( pView->IsDragWithCopy() ); - maOptionsMisc.SetPickThrough( (sal_Bool)pView->GetModel()->IsPickThroughTransparentTextFrames() ); + maOptionsMisc.SetPickThrough( pView->GetModel()->IsPickThroughTransparentTextFrames() ); maOptionsMisc.SetDoubleClickTextEdit( pView->IsDoubleClickTextEdit() ); maOptionsMisc.SetClickChangeRotation( pView->IsClickChangeRotation() ); maOptionsMisc.SetSolidDragging( pView->IsSolidDragging() ); @@ -821,30 +821,30 @@ void SdOptionsMiscItem::SetOptions( SdOptions* pOpts ) const |* \************************************************************************/ -SdOptionsSnap::SdOptionsSnap( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsSnap::SdOptionsSnap( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Snap" ) : B2U( "Office.Impress/Snap" ) ) : OUString() ), - bSnapHelplines( sal_True ), - bSnapBorder( sal_True ), - bSnapFrame( sal_False ), - bSnapPoints( sal_False ), - bOrtho( sal_False ), - bBigOrtho( sal_True ), - bRotate( sal_False ), + bSnapHelplines( true ), + bSnapBorder( true ), + bSnapFrame( false ), + bSnapPoints( false ), + bOrtho( false ), + bBigOrtho( true ), + bRotate( false ), nSnapArea( 5 ), nAngle( 1500 ), nBezAngle( 1500 ) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsSnap::operator==( const SdOptionsSnap& rOpt ) const +bool SdOptionsSnap::operator==( const SdOptionsSnap& rOpt ) const { return( IsSnapHelplines() == rOpt.IsSnapHelplines() && IsSnapBorder() == rOpt.IsSnapBorder() && @@ -882,7 +882,7 @@ void SdOptionsSnap::GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) -sal_Bool SdOptionsSnap::ReadData( const Any* pValues ) +bool SdOptionsSnap::ReadData( const Any* pValues ) { if( pValues[0].hasValue() ) SetSnapHelplines( *(sal_Bool*) pValues[ 0 ].getValue() ); if( pValues[1].hasValue() ) SetSnapBorder( *(sal_Bool*)pValues[ 1 ].getValue() ); @@ -895,12 +895,12 @@ sal_Bool SdOptionsSnap::ReadData( const Any* pValues ) if( pValues[8].hasValue() ) SetAngle( (sal_Int16) *(sal_Int32*) pValues[ 8 ].getValue() ); if( pValues[9].hasValue() ) SetEliminatePolyPointLimitAngle( (sal_Int16) *(sal_Int32*) pValues[ 9 ].getValue() ); - return sal_True; + return true; } -sal_Bool SdOptionsSnap::WriteData( Any* pValues ) const +bool SdOptionsSnap::WriteData( Any* pValues ) const { pValues[ 0 ] <<= IsSnapHelplines(); pValues[ 1 ] <<= IsSnapBorder(); @@ -913,7 +913,7 @@ sal_Bool SdOptionsSnap::WriteData( Any* pValues ) const pValues[ 8 ] <<= (sal_Int32) GetAngle(); pValues[ 9 ] <<= (sal_Int32) GetEliminatePolyPointLimitAngle(); - return sal_True; + return true; } /************************************************************************* @@ -924,7 +924,7 @@ sal_Bool SdOptionsSnap::WriteData( Any* pValues ) const SdOptionsSnapItem::SdOptionsSnapItem( sal_uInt16 _nWhich ) : SfxPoolItem ( _nWhich ) -, maOptionsSnap ( 0, sal_False ) +, maOptionsSnap ( 0, false ) { } @@ -932,7 +932,7 @@ SdOptionsSnapItem::SdOptionsSnapItem( sal_uInt16 _nWhich ) SdOptionsSnapItem::SdOptionsSnapItem( sal_uInt16 _nWhich, SdOptions* pOpts, ::sd::FrameView* pView ) : SfxPoolItem ( _nWhich ) -, maOptionsSnap ( 0, sal_False ) +, maOptionsSnap ( 0, false ) { if( pView ) { @@ -1004,7 +1004,7 @@ void SdOptionsSnapItem::SetOptions( SdOptions* pOpts ) const |* \************************************************************************/ -SdOptionsZoom::SdOptionsZoom( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsZoom::SdOptionsZoom( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, ( bUseConfig && ( SDCFG_DRAW == nConfigId ) ) ? B2U( "Office.Draw/Zoom" ) : OUString() ), @@ -1012,12 +1012,12 @@ SdOptionsZoom::SdOptionsZoom( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : nY( 1 ) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsZoom::operator==( const SdOptionsZoom& rOpt ) const +bool SdOptionsZoom::operator==( const SdOptionsZoom& rOpt ) const { sal_Int32 nX1, nX2, nY1, nY2; @@ -1044,7 +1044,7 @@ void SdOptionsZoom::GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) -sal_Bool SdOptionsZoom::ReadData( const Any* pValues ) +bool SdOptionsZoom::ReadData( const Any* pValues ) { sal_Int32 x = 1, y = 1; @@ -1053,12 +1053,12 @@ sal_Bool SdOptionsZoom::ReadData( const Any* pValues ) SetScale( x, y ); - return sal_True; + return true; } -sal_Bool SdOptionsZoom::WriteData( Any* pValues ) const +bool SdOptionsZoom::WriteData( Any* pValues ) const { sal_Int32 x, y; @@ -1067,7 +1067,7 @@ sal_Bool SdOptionsZoom::WriteData( Any* pValues ) const pValues[ 0 ] <<= (sal_Int32) x; pValues[ 1 ] <<= (sal_Int32) y; - return sal_True; + return true; } /************************************************************************* @@ -1076,16 +1076,16 @@ sal_Bool SdOptionsZoom::WriteData( Any* pValues ) const |* \************************************************************************/ -SdOptionsGrid::SdOptionsGrid( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsGrid::SdOptionsGrid( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Grid" ) : B2U( "Office.Impress/Grid" ) ) : OUString() ) { - EnableModify( sal_False ); + EnableModify( false ); SetDefaults(); - EnableModify( sal_True ); + EnableModify( true ); } @@ -1114,7 +1114,7 @@ void SdOptionsGrid::SetDefaults() -sal_Bool SdOptionsGrid::operator==( const SdOptionsGrid& rOpt ) const +bool SdOptionsGrid::operator==( const SdOptionsGrid& rOpt ) const { return( GetFldDrawX() == rOpt.GetFldDrawX() && GetFldDivisionX() == rOpt.GetFldDivisionX() && @@ -1172,7 +1172,7 @@ void SdOptionsGrid::GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) -sal_Bool SdOptionsGrid::ReadData( const Any* pValues ) +bool SdOptionsGrid::ReadData( const Any* pValues ) { if( pValues[0].hasValue() ) SetFldDrawX( *(sal_Int32*) pValues[ 0 ].getValue() ); if( pValues[1].hasValue() ) SetFldDrawY( *(sal_Int32*) pValues[ 1 ].getValue() ); @@ -1196,12 +1196,12 @@ sal_Bool SdOptionsGrid::ReadData( const Any* pValues ) if( pValues[8].hasValue() ) SetGridVisible( *(sal_Bool*) pValues[ 8 ].getValue() ); if( pValues[9].hasValue() ) SetEqualGrid( *(sal_Bool*) pValues[ 9 ].getValue() ); - return sal_True; + return true; } -sal_Bool SdOptionsGrid::WriteData( Any* pValues ) const +bool SdOptionsGrid::WriteData( Any* pValues ) const { pValues[ 0 ] <<= (sal_Int32) GetFldDrawX(); pValues[ 1 ] <<= (sal_Int32) GetFldDrawY(); @@ -1214,7 +1214,7 @@ sal_Bool SdOptionsGrid::WriteData( Any* pValues ) const pValues[ 8 ] <<= IsGridVisible(); pValues[ 9 ] <<= IsEqualGrid(); - return sal_True; + return true; } /************************************************************************* @@ -1275,40 +1275,40 @@ void SdOptionsGridItem::SetOptions( SdOptions* pOpts ) const |* \************************************************************************/ -SdOptionsPrint::SdOptionsPrint( sal_uInt16 nConfigId, sal_Bool bUseConfig ) : +SdOptionsPrint::SdOptionsPrint( sal_uInt16 nConfigId, bool bUseConfig ) : SdOptionsGeneric( nConfigId, bUseConfig ? ( ( SDCFG_DRAW == nConfigId ) ? B2U( "Office.Draw/Print" ) : B2U( "Office.Impress/Print" ) ) : OUString() ), - bDraw( sal_True ), - bNotes( sal_False ), - bHandout( sal_False ), - bOutline( sal_False ), - bDate( sal_False ), - bTime( sal_False ), - bPagename( sal_False ), - bHiddenPages( sal_True ), - bPagesize( sal_False ), - bPagetile( sal_False ), - bWarningPrinter( sal_True ), - bWarningSize( sal_False ), - bWarningOrientation( sal_False ), - bBooklet( sal_False ), - bFront( sal_True ), - bBack( sal_True ), - bCutPage( sal_False ), - bPaperbin( sal_False ), - mbHandoutHorizontal( sal_True ), + bDraw( true ), + bNotes( false ), + bHandout( false ), + bOutline( false ), + bDate( false ), + bTime( false ), + bPagename( false ), + bHiddenPages( true ), + bPagesize( false ), + bPagetile( false ), + bWarningPrinter( true ), + bWarningSize( false ), + bWarningOrientation( false ), + bBooklet( false ), + bFront( true ), + bBack( true ), + bCutPage( false ), + bPaperbin( false ), + mbHandoutHorizontal( true ), mnHandoutPages( 6 ), nQuality( 0 ) { - EnableModify( sal_True ); + EnableModify( true ); } -sal_Bool SdOptionsPrint::operator==( const SdOptionsPrint& rOpt ) const +bool SdOptionsPrint::operator==( const SdOptionsPrint& rOpt ) const { return( IsDraw() == rOpt.IsDraw() && IsNotes() == rOpt.IsNotes() && @@ -1394,7 +1394,7 @@ void SdOptionsPrint::GetPropNameArray( const char**& ppNames, sal_uLong& rCount -sal_Bool SdOptionsPrint::ReadData( const Any* pValues ) +bool SdOptionsPrint::ReadData( const Any* pValues ) { if( pValues[0].hasValue() ) SetDate( *(sal_Bool*) pValues[ 0 ].getValue() ); if( pValues[1].hasValue() ) SetTime( *(sal_Bool*) pValues[ 1 ].getValue() ); @@ -1419,12 +1419,12 @@ sal_Bool SdOptionsPrint::ReadData( const Any* pValues ) if( pValues[16].hasValue() ) SetHandoutPages( (sal_uInt16)*(sal_Int32*) pValues[16].getValue() ); } - return sal_True; + return true; } -sal_Bool SdOptionsPrint::WriteData( Any* pValues ) const +bool SdOptionsPrint::WriteData( Any* pValues ) const { pValues[ 0 ] <<= IsDate(); pValues[ 1 ] <<= IsTime(); @@ -1449,7 +1449,7 @@ sal_Bool SdOptionsPrint::WriteData( Any* pValues ) const pValues[ 16 ] <<= GetHandoutPages(); } - return sal_True; + return true; } /************************************************************************* @@ -1460,7 +1460,7 @@ sal_Bool SdOptionsPrint::WriteData( Any* pValues ) const SdOptionsPrintItem::SdOptionsPrintItem( sal_uInt16 _nWhich ) : SfxPoolItem ( _nWhich ) -, maOptionsPrint ( 0, sal_False ) +, maOptionsPrint ( 0, false ) { } @@ -1468,7 +1468,7 @@ SdOptionsPrintItem::SdOptionsPrintItem( sal_uInt16 _nWhich ) SdOptionsPrintItem::SdOptionsPrintItem( sal_uInt16 _nWhich, SdOptions* pOpts, ::sd::FrameView* ) : SfxPoolItem ( _nWhich ) -, maOptionsPrint ( 0, sal_False ) +, maOptionsPrint ( 0, false ) { if( pOpts ) { @@ -1545,13 +1545,13 @@ void SdOptionsPrintItem::SetOptions( SdOptions* pOpts ) const \************************************************************************/ SdOptions::SdOptions( sal_uInt16 nConfigId ) : - SdOptionsLayout( nConfigId, sal_True ), - SdOptionsContents( nConfigId, sal_True ), - SdOptionsMisc( nConfigId, sal_True ), - SdOptionsSnap( nConfigId, sal_True ), - SdOptionsZoom( nConfigId, sal_True ), - SdOptionsGrid( nConfigId, sal_True ), - SdOptionsPrint( nConfigId, sal_True ) + SdOptionsLayout( nConfigId, true ), + SdOptionsContents( nConfigId, true ), + SdOptionsMisc( nConfigId, true ), + SdOptionsSnap( nConfigId, true ), + SdOptionsZoom( nConfigId, true ), + SdOptionsGrid( nConfigId, true ), + SdOptionsPrint( nConfigId, true ) { } diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx index 2466c84279c6..15b157801e11 100644 --- a/sd/source/ui/app/sdmod.cxx +++ b/sd/source/ui/app/sdmod.cxx @@ -77,7 +77,7 @@ SdModule::SdModule(SfxObjectFactory* pFact1, SfxObjectFactory* pFact2 ) pDrawOptions(NULL), pSearchItem(NULL), pNumberFormatter( NULL ), - bWaterCan(sal_False), + bWaterCan(false), mpResourceContainer(new ::sd::SdGlobalResourceContainer()) { SetName( OUString( "StarDraw" ) ); // Do not translate! diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 143c41dd3e99..21fec2bd80e2 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -114,7 +114,7 @@ void SdModule::Execute(SfxRequest& rReq) if( pSet && SFX_ITEM_SET == pSet->GetItemState( SID_AUTOSPELL_CHECK, false, &pItem ) ) { - sal_Bool bOnlineSpelling = ( (const SfxBoolItem*) pItem )->GetValue(); + bool bOnlineSpelling = ( (const SfxBoolItem*) pItem )->GetValue(); // save at document: ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current()); if( pDocSh ) @@ -212,7 +212,7 @@ void SdModule::Execute(SfxRequest& rReq) case SID_OPENHYPERLINK: case SID_OPENDOC: { - sal_Bool bIntercept = sal_False; + bool bIntercept = false; ::sd::DrawDocShell* pDocShell = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current()); if (pDocShell) { @@ -226,7 +226,7 @@ void SdModule::Execute(SfxRequest& rReq) // from a shape interaction. if (rReq.GetArgs() == NULL) { - bIntercept = sal_True; + bIntercept = true; } } } @@ -270,7 +270,7 @@ void SdModule::OutlineToImpress (SfxRequest& rRequest) SfxObjectShellLock xDocShell; ::sd::DrawDocShell* pDocSh; xDocShell = pDocSh = new ::sd::DrawDocShell( - SFX_CREATE_MODE_STANDARD, sal_False); + SFX_CREATE_MODE_STANDARD, false); if(pDocSh) { pDocSh->DoInitNew(NULL); @@ -571,10 +571,10 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) if( pPilotDlg.get() && pPilotDlg->Execute()==RET_OK ) { const OUString aDocPath( pPilotDlg->GetDocPath()); - const sal_Bool bIsDocEmpty = pPilotDlg->IsDocEmpty(); + const bool bIsDocEmpty = pPilotDlg->IsDocEmpty(); // So that you can open the document without AutoLayout-Dialog - pOpt->SetStartWithTemplate(sal_False); + pOpt->SetStartWithTemplate(false); if(bNewDocDirect && !pPilotDlg->GetStartWithFlag()) bStartWithTemplate = false; @@ -728,7 +728,7 @@ SfxFrame* SdModule::CreateEmptyDocument( DocumentType eDocType, const Reference< SfxObjectShellLock xDocShell; ::sd::DrawDocShell* pNewDocSh; - xDocShell = pNewDocSh = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD,sal_False,eDocType); + xDocShell = pNewDocSh = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD,false,eDocType); if(pNewDocSh) { pNewDocSh->DoInitNew(NULL); @@ -767,7 +767,7 @@ void SdModule::ChangeMedium( ::sd::DrawDocShell* pDocShell, SfxViewFrame* pViewF case OUTPUT_PAGE: case OUTPUT_OVERHEAD: { - SfxPrinter* pPrinter = pDocShell->GetPrinter(sal_True); + SfxPrinter* pPrinter = pDocShell->GetPrinter(true); if( pPrinter && pPrinter->IsValid()) { @@ -846,7 +846,7 @@ void SdModule::ChangeMedium( ::sd::DrawDocShell* pDocShell, SfxViewFrame* pViewF break; } - sal_Bool bScaleAll = sal_True; + bool bScaleAll = true; sal_uInt16 nPageCnt = pDoc->GetMasterSdPageCount(PK_STANDARD); sal_uInt16 i; SdPage* pPage; @@ -896,7 +896,7 @@ void SdModule::ChangeMedium( ::sd::DrawDocShell* pDocShell, SfxViewFrame* pViewF } SdPage* pHandoutPage = pDoc->GetSdPage(0, PK_HANDOUT); - pHandoutPage->CreateTitleAndLayout(sal_True); + pHandoutPage->CreateTitleAndLayout(true); if( (eMedium != OUTPUT_ORIGINAL) && pViewFrame && pViewFrame->GetDispatcher()) { diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index 750b27beef06..928b05577cb0 100644 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -507,9 +507,9 @@ SfxItemSet* SdModule::CreateItemSet( sal_uInt16 nSlot ) void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) { const SfxPoolItem* pItem = NULL; - sal_Bool bNewDefTab = sal_False; - sal_Bool bNewPrintOptions = sal_False; - sal_Bool bMiscOptions = sal_False; + bool bNewDefTab = false; + bool bNewPrintOptions = false; + bool bMiscOptions = false; ::sd::DrawDocShell* pDocSh = PTR_CAST(::sd::DrawDocShell, SfxObjectShell::Current() ); SdDrawDocument* pDoc = NULL; @@ -559,7 +559,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) nDefTab = ( (SfxUInt16Item*) pItem )->GetValue(); pOptions->SetDefTab( nDefTab ); - bNewDefTab = sal_True; + bNewDefTab = true; } // Scale @@ -595,7 +595,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) false, (const SfxPoolItem**) &pMiscItem )) { pMiscItem->SetOptions( pOptions ); - bMiscOptions = sal_True; + bMiscOptions = true; } // Snap @@ -632,7 +632,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) aPrintSet.Put( SfxBoolItem( SID_PRINTER_NOTFOUND_WARN, aPrintItem.GetOptionsPrint().IsWarningPrinter() ) ); aPrintSet.Put( aFlagItem ); - bNewPrintOptions = sal_True; + bNewPrintOptions = true; } // Only if also the document type matches... @@ -640,7 +640,7 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) { if( bNewPrintOptions ) { - pDocSh->GetPrinter(sal_True)->SetOptions( aPrintSet ); + pDocSh->GetPrinter(true)->SetOptions( aPrintSet ); } // set DefTab at Model @@ -649,11 +649,11 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) SdDrawDocument* pDocument = pDocSh->GetDoc(); pDocument->SetDefaultTabulator( nDefTab ); - ::sd::Outliner* pOutl = pDocument->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) pOutl->SetDefTab( nDefTab ); - ::sd::Outliner* pInternalOutl = pDocument->GetInternalOutliner( sal_False ); + ::sd::Outliner* pInternalOutl = pDocument->GetInternalOutliner( false ); if( pInternalOutl ) pInternalOutl->SetDefTab( nDefTab ); } @@ -667,13 +667,13 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) SdrOutliner& rOutl = pDocument->GetDrawOutliner(); nCntrl = rOutl.GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; rOutl.SetControlWord( nCntrl | nSum ); - ::sd::Outliner* pOutl = pDocument->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) { nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; pOutl->SetControlWord( nCntrl | nSum ); } - pOutl = pDocument->GetInternalOutliner( sal_False ); + pOutl = pDocument->GetInternalOutliner( false ); if( pOutl ) { nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index d155f5c7e84f..77997dc97467 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -76,7 +76,7 @@ using namespace ::com::sun::star::datatransfer::clipboard; #define SDTRANSFER_OBJECTTYPE_DRAWMODEL 0x00000001 #define SDTRANSFER_OBJECTTYPE_DRAWOLE 0x00000002 -SdTransferable::SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, sal_Bool bInitOnGetData ) +SdTransferable::SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, bool bInitOnGetData ) : mpPageDocShell( NULL ) , mpOLEDataHelper( NULL ) , mpObjDesc( NULL ) @@ -89,12 +89,12 @@ SdTransferable::SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, , mpBookmark( NULL ) , mpGraphic( NULL ) , mpImageMap( NULL ) -, mbInternalMove( sal_False ) -, mbOwnDocument( sal_False ) -, mbOwnView( sal_False ) +, mbInternalMove( false ) +, mbOwnDocument( false ) +, mbOwnView( false ) , mbLateInit( bInitOnGetData ) -, mbPageTransferable( sal_False ) -, mbPageTransferablePersistent( sal_False ) +, mbPageTransferable( false ) +, mbPageTransferablePersistent( false ) , mbIsUnoObj( false ) , maUserData() { @@ -253,7 +253,7 @@ void SdTransferable::CreateData() { if( mpSdDrawDocument && !mpSdViewIntern ) { - mbOwnView = sal_True; + mbOwnView = true; SdPage* pPage = mpSdDrawDocument->GetSdPage(0, PK_STANDARD); @@ -287,7 +287,7 @@ void SdTransferable::CreateData() if( !maDocShellRef.Is() ) { OSL_FAIL( "SdTransferable::CreateData(), failed to create a model with persist, clipboard operation will fail for OLE objects!" ); - mbOwnDocument = sal_True; + mbOwnDocument = true; } // Use dimension of source page @@ -339,9 +339,9 @@ void SdTransferable::CreateData() } } -static sal_Bool lcl_HasOnlyControls( SdrModel* pModel ) +static bool lcl_HasOnlyControls( SdrModel* pModel ) { - sal_Bool bOnlyControls = sal_False; // default if there are no objects + bool bOnlyControls = false; // default if there are no objects if ( pModel ) { @@ -352,12 +352,12 @@ static sal_Bool lcl_HasOnlyControls( SdrModel* pModel ) SdrObject* pObj = aIter.Next(); if ( pObj ) { - bOnlyControls = sal_True; // only set if there are any objects at all + bOnlyControls = true; // only set if there are any objects at all while ( pObj ) { if (!pObj->ISA(SdrUnoObj)) { - bOnlyControls = sal_False; + bOnlyControls = false; break; } pObj = aIter.Next(); @@ -554,9 +554,9 @@ bool SdTransferable::GetData( const DataFlavor& rFlavor ) maDocShellRef = new ::sd::DrawDocShell( mpSdDrawDocumentIntern, SFX_CREATE_MODE_EMBEDDED, - sal_True, + true, mpSdDrawDocumentIntern->GetDocumentType()); - mbOwnDocument = sal_False; + mbOwnDocument = false; maDocShellRef->DoInitNew( NULL ); } @@ -581,7 +581,7 @@ bool SdTransferable::WriteObject( SotStorageStreamRef& rxOStm, void* pObject, sa { try { - static const sal_Bool bDontBurnInStyleSheet = ( getenv( "AVOID_BURN_IN_FOR_GALLERY_THEME" ) != NULL ); + static const bool bDontBurnInStyleSheet = ( getenv( "AVOID_BURN_IN_FOR_GALLERY_THEME" ) != NULL ); SdDrawDocument* pDoc = (SdDrawDocument*) pObject; if ( !bDontBurnInStyleSheet ) pDoc->BurnInStyleSheetAttributes(); @@ -678,7 +678,7 @@ void SdTransferable::SetObjectDescriptor( const TransferableObjectDescriptor& rO PrepareOLE( rObjDesc ); } -void SdTransferable::SetPageBookmarks( const std::vector<OUString> &rPageBookmarks, sal_Bool bPersistent ) +void SdTransferable::SetPageBookmarks( const std::vector<OUString> &rPageBookmarks, bool bPersistent ) { if( mpSourceDoc ) { @@ -694,8 +694,8 @@ void SdTransferable::SetPageBookmarks( const std::vector<OUString> &rPageBookmar if( bPersistent ) { mpSdDrawDocument->CreateFirstPages(mpSourceDoc); - mpSdDrawDocument->InsertBookmarkAsPage( rPageBookmarks, NULL, sal_False, sal_True, 1, sal_True, - mpSourceDoc->GetDocSh(), sal_True, sal_True, sal_False ); + mpSdDrawDocument->InsertBookmarkAsPage( rPageBookmarks, NULL, false, true, 1, true, + mpSourceDoc->GetDocSh(), true, true, false ); } else { @@ -715,7 +715,7 @@ void SdTransferable::SetPageBookmarks( const std::vector<OUString> &rPageBookmar // set flags for page transferable; if ( mbPageTransferablePersistent == sal_False ), // don't offer any formats => it's just for internal purposes - mbPageTransferable = sal_True; + mbPageTransferable = true; mbPageTransferablePersistent = bPersistent; } } @@ -810,7 +810,7 @@ void SdTransferable::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) } } -sal_Bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFlavor) +bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFlavor) { if ( pModel ) { @@ -827,7 +827,7 @@ sal_Bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& } } - return sal_False; + return false; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/app/tbxww.cxx b/sd/source/ui/app/tbxww.cxx index 5669e44a9c16..a736f881ed94 100644 --- a/sd/source/ui/app/tbxww.cxx +++ b/sd/source/ui/app/tbxww.cxx @@ -199,7 +199,7 @@ void SdTbxControl::StateChanged( sal_uInt16 nSId, /*-------------------------------------------------------------------------*/ -sal_Bool SdTbxControl::IsCheckable( sal_uInt16 nSId ) +bool SdTbxControl::IsCheckable( sal_uInt16 nSId ) { switch( nSId ) { @@ -305,9 +305,9 @@ sal_Bool SdTbxControl::IsCheckable( sal_uInt16 nSId ) case SID_CONNECTOR_LINES_CIRCLE_END: case SID_CONNECTOR_LINES_CIRCLES: - return( sal_True ); + return true; } - return( sal_False ); + return false; } diff --git a/sd/source/ui/dlg/LayerTabBar.cxx b/sd/source/ui/dlg/LayerTabBar.cxx index 5877251bbfbc..c6c9b0b0dde2 100644 --- a/sd/source/ui/dlg/LayerTabBar.cxx +++ b/sd/source/ui/dlg/LayerTabBar.cxx @@ -82,7 +82,7 @@ void LayerTabBar::Select() void LayerTabBar::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bSetPageID=sal_False; + bool bSetPageID=false; if (rMEvt.IsLeft() && !rMEvt.IsMod1() && !rMEvt.IsMod2()) { @@ -94,14 +94,14 @@ void LayerTabBar::MouseButtonDown(const MouseEvent& rMEvt) SfxDispatcher* pDispatcher = pDrViewSh->GetViewFrame()->GetDispatcher(); pDispatcher->Execute(SID_INSERTLAYER, SFX_CALLMODE_SYNCHRON); - bSetPageID=sal_True; + bSetPageID=true; } else if (rMEvt.IsShift()) { // Toggle between layer visible / hidden OUString aName(GetPageText(aLayerId)); SdrPageView* pPV = pDrViewSh->GetView()->GetSdrPageView(); - sal_Bool bVisible = pPV->IsLayerVisible(aName); + bool bVisible = pPV->IsLayerVisible(aName); pPV->SetLayerVisible(aName, !bVisible); pDrViewSh->ResetActualLayer(); } @@ -176,7 +176,7 @@ void LayerTabBar::Command(const CommandEvent& rCEvt) long LayerTabBar::StartRenaming() { - sal_Bool bOK = sal_True; + bool bOK = true; OUString aLayerName = GetPageText( GetEditPageId() ); OUString aLayoutLayer = SD_RESSTR(STR_LAYER_LAYOUT); OUString aControlsLayer = SD_RESSTR(STR_LAYER_CONTROLS); @@ -189,7 +189,7 @@ long LayerTabBar::StartRenaming() aLayerName == aBackgroundLayer || aLayerName == aBackgroundObjLayer ) { // It is not allowed to change this names - bOK = sal_False; + bOK = false; } else { @@ -201,12 +201,12 @@ long LayerTabBar::StartRenaming() } } - return(bOK); + return bOK ? 1 : 0; } long LayerTabBar::AllowRenaming() { - sal_Bool bOK = sal_True; + bool bOK = true; // Check if names already exists ::sd::View* pView = pDrViewSh->GetView(); @@ -222,7 +222,7 @@ long LayerTabBar::AllowRenaming() WarningBox aWarningBox( &pDrViewSh->GetViewFrame()->GetWindow(), WinBits( WB_OK ), SD_RESSTR( STR_WARN_NAME_DUPLICATE ) ); aWarningBox.Execute(); - bOK = sal_False; + bOK = false; } if (bOK) @@ -238,11 +238,11 @@ long LayerTabBar::AllowRenaming() aNewName == aBackgroundLayer || aNewName == aBackgroundObjLayer ) { // It is not allowed to use his names - bOK = sal_False; + bOK = false; } } - return(bOK); + return bOK ? 1 : 0; } void LayerTabBar::EndRenaming() diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx index 25c7554a5132..3e9c5e7d7669 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx @@ -627,7 +627,7 @@ Reference< drawing::XDrawPage > SdPhotoAlbumDialog::appendNewSlide(AutoLayout aL Reference< container::XIndexAccess > xIndexAccess( xDrawPages, uno::UNO_QUERY ); xSlide = xDrawPages->insertNewByIndex( xIndexAccess->getCount() ); SdPage* pSlide = pDoc->GetSdPage( pDoc->GetSdPageCount(PK_STANDARD)-1, PK_STANDARD); - pSlide->SetAutoLayout(aLayout, sal_True); // Set the layout here + pSlide->SetAutoLayout(aLayout, true); // Set the layout here return xSlide; } diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index 203b53b5c77e..7313b9ce4e06 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -161,8 +161,8 @@ AnimationWindow::AnimationWindow( SfxBindings* pInBindings, pWin ( pParent ), m_nCurrentFrame ( EMPTY_FRAMELIST ), - bMovie ( sal_False ), - bAllObjects ( sal_False ), + bMovie ( false ), + bAllObjects ( false ), pBindings ( pInBindings ) { @@ -248,7 +248,7 @@ IMPL_LINK_NOARG(AnimationWindow, ClickFirstHdl) IMPL_LINK_NOARG(AnimationWindow, ClickStopHdl) { - bMovie = sal_False; + bMovie = false; return( 0L ); } @@ -258,15 +258,15 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p ) { ScopeLockGuard aGuard( maPlayLock ); - bMovie = sal_True; - sal_Bool bDisableCtrls = sal_False; + bMovie = true; + bool bDisableCtrls = false; size_t const nCount = m_FrameList.size(); - sal_Bool bReverse = p == &aBtnReverse; + bool bReverse = p == &aBtnReverse; // it is difficult to find it later on - sal_Bool bRbtGroupEnabled = aRbtGroup.IsEnabled(); - sal_Bool bBtnGetAllObjectsEnabled = aBtnGetAllObjects.IsEnabled(); - sal_Bool bBtnGetOneObjectEnabled = aBtnGetOneObject.IsEnabled(); + bool bRbtGroupEnabled = aRbtGroup.IsEnabled(); + bool bBtnGetAllObjectsEnabled = aBtnGetAllObjects.IsEnabled(); + bool bBtnGetOneObjectEnabled = aBtnGetOneObject.IsEnabled(); // calculate overall time Time aTime( 0 ); @@ -289,7 +289,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p ) SfxProgress* pProgress = NULL; if( nFullTime >= 1000 ) { - bDisableCtrls = sal_True; + bDisableCtrls = true; aBtnStop.Enable(); aBtnStop.Update(); OUString aStr("Animator:"); // here we should think about something smart @@ -298,7 +298,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p ) sal_uLong nTmpTime = 0; size_t i = 0; - sal_Bool bCount = i < nCount; + bool bCount = i < nCount; if( bReverse ) { i = nCount - 1; @@ -353,7 +353,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p ) } // to re-enable the controls - bMovie = sal_False; + bMovie = false; if (nCount > 0) { assert(i == m_nCurrentFrame); @@ -854,7 +854,7 @@ void AnimationWindow::AddObj (::sd::View& rView ) { // If it is ONE animation object or one group object, which was // 'individually taken', we insert the objects separately - sal_Bool bAnimObj = sal_False; + bool bAnimObj = false; if( nMarkCount == 1 ) { SdrMark* pMark = rMarkList.GetMark(0); @@ -907,7 +907,7 @@ void AnimationWindow::AddObj (::sd::View& rView ) // if a animated GIF is taken, only such one can be created aRbtBitmap.Check(); aRbtGroup.Enable( false ); - bAnimObj = sal_True; + bAnimObj = true; } } else if( bAllObjects || ( pAnimInfo && pAnimInfo->mbIsMovie ) ) @@ -935,7 +935,7 @@ void AnimationWindow::AddObj (::sd::View& rView ) // Clone pPage->InsertObject(pSnapShot->Clone(), m_nCurrentFrame); } - bAnimObj = sal_True; + bAnimObj = true; } } // also one single animated object @@ -985,7 +985,7 @@ void AnimationWindow::AddObj (::sd::View& rView ) pPage->InsertObject(pObject->Clone(), m_nCurrentFrame); } - bAnimObj = sal_True; // that we don't change again + bAnimObj = true; // that we don't change again } else { diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index 8ec335b679ed..abd5886a6b6f 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -62,7 +62,7 @@ BreakDlg::BreakDlg( pProgrInfo->Init( nSumActionCount*3, nObjCount ); pDrView = _pDrView; - bCancel = sal_False; + bCancel = false; } BreakDlg::~BreakDlg() @@ -74,7 +74,7 @@ BreakDlg::~BreakDlg() // Control-Handler for cancel button IMPL_LINK_NOARG(BreakDlg, CancelButtonHdl) { - bCancel = sal_True; + bCancel = true; m_pBtnCancel->Disable(); return( 0L ); } diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx index 7c83709e77da..cf6ee4af57e2 100644 --- a/sd/source/ui/dlg/custsdlg.cxx +++ b/sd/source/ui/dlg/custsdlg.cxx @@ -37,7 +37,7 @@ SdCustomShowDlg::SdCustomShowDlg( Window* pWindow, rDoc ( rDrawDoc ), pCustomShowList ( NULL ), pCustomShow ( NULL ), - bModified ( sal_False ) + bModified ( false ) { get( m_pBtnNew, "new" ); get( m_pBtnEdit, "edit" ); @@ -91,7 +91,7 @@ void SdCustomShowDlg::CheckState() { sal_Int32 nPos = m_pLbCustomShows->GetSelectEntryPos(); - sal_Bool bEnable = nPos != LISTBOX_ENTRY_NOTFOUND; + bool bEnable = nPos != LISTBOX_ENTRY_NOTFOUND; m_pBtnEdit->Enable( bEnable ); m_pBtnRemove->Enable( bEnable ); m_pBtnCopy->Enable( bEnable ); @@ -117,7 +117,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) if( pCustomShow ) { if( !pCustomShowList ) - pCustomShowList = rDoc.GetCustomShowList( sal_True ); + pCustomShowList = rDoc.GetCustomShowList( true ); pCustomShowList->push_back( pCustomShow ); pCustomShowList->Last(); @@ -126,7 +126,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) } if( aDlg.IsModified() ) - bModified = sal_True; + bModified = true; } else if( pCustomShow ) DELETEZ( pCustomShow ); @@ -152,7 +152,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) m_pLbCustomShows->SelectEntryPos( nPos ); } if( aDlg.IsModified() ) - bModified = sal_True; + bModified = true; } } } @@ -166,7 +166,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) pCustomShowList->erase( pCustomShowList->begin() + nPos ); m_pLbCustomShows->RemoveEntry( nPos ); m_pLbCustomShows->SelectEntryPos( nPos == 0 ? nPos : nPos - 1 ); - bModified = sal_True; + bModified = true; } } // copy CustomShow @@ -194,17 +194,17 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) } // check name... - sal_Bool bDifferent = sal_False; + bool bDifferent = false; //long nPosToSelect = pCustomShowList->GetCurPos(); while( !bDifferent ) { - bDifferent = sal_True; + bDifferent = true; for( pCustomShow = (SdCustomShow*) pCustomShowList->First(); pCustomShow != NULL && bDifferent; pCustomShow = (SdCustomShow*) pCustomShowList->Next() ) { if( aStr == pCustomShow->GetName() ) - bDifferent = sal_False; + bDifferent = false; } if( !bDifferent ) { @@ -226,7 +226,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) m_pLbCustomShows->SelectEntry( pShow->GetName() ); - bModified = sal_True; + bModified = true; } } else if( p == m_pLbCustomShows ) @@ -235,11 +235,11 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) if( nPos != LISTBOX_ENTRY_NOTFOUND ) pCustomShowList->Seek( nPos ); - bModified = sal_True; + bModified = true; } else if( p == m_pCbxUseCustomShow ) { - bModified = sal_True; + bModified = true; } CheckState(); @@ -256,7 +256,7 @@ IMPL_LINK_NOARG(SdCustomShowDlg, StartShowHdl) } // CheckState -sal_Bool SdCustomShowDlg::IsCustomShow() const +bool SdCustomShowDlg::IsCustomShow() const { return( m_pCbxUseCustomShow->IsEnabled() && m_pCbxUseCustomShow->IsChecked() ); } @@ -267,7 +267,7 @@ SdDefineCustomShowDlg::SdDefineCustomShowDlg( Window* pWindow, ModalDialog ( pWindow, "DefineCustomSlideShow", "modules/simpress/ui/definecustomslideshow.ui" ), rDoc ( rDrawDoc ), rpCustomShow ( rpCS ), - bModified ( sal_False ) + bModified ( false ) { get( m_pEdtName, "customname" ); get( m_pLbPages, "pages" ); @@ -343,10 +343,10 @@ SdDefineCustomShowDlg::~SdDefineCustomShowDlg() // CheckState void SdDefineCustomShowDlg::CheckState() { - sal_Bool bPages = m_pLbPages->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND; + bool bPages = m_pLbPages->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND; //sal_Bool bCSPages = aLbCustomPages.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND; - sal_Bool bCSPages = m_pLbCustomPages->FirstSelected() != NULL; - sal_Bool bCount = m_pLbCustomPages->GetEntryCount() > 0; + bool bCSPages = m_pLbCustomPages->FirstSelected() != NULL; + bool bCount = m_pLbCustomPages->GetEntryCount() > 0; m_pBtnOK->Enable( bCount ); m_pBtnAdd->Enable( bPages ); @@ -380,7 +380,7 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonHdl, void *, p ) if( nPosCP != TREELIST_APPEND ) nPosCP++; } - bModified = sal_True; + bModified = true; } } else if( p == m_pBtnRemove ) @@ -391,12 +391,12 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonHdl, void *, p ) sal_uLong nPos = m_pLbCustomPages->GetModel()->GetAbsPos( pEntry ); m_pLbCustomPages->GetModel()->Remove( m_pLbCustomPages->GetModel()->GetEntryAtAbsPos( nPos ) ); - bModified = sal_True; + bModified = true; } } else if( p == m_pEdtName ) { - bModified = sal_True; + bModified = true; } CheckState(); @@ -410,14 +410,14 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonHdl, void *, p ) */ void SdDefineCustomShowDlg::CheckCustomShow() { - sal_Bool bDifferent = sal_False; + bool bDifferent = false; SvTreeListEntry* pEntry = NULL; // compare count if( rpCustomShow->PagesVector().size() != m_pLbCustomPages->GetEntryCount() ) { rpCustomShow->PagesVector().clear(); - bDifferent = sal_True; + bDifferent = true; } // compare page pointer @@ -431,7 +431,7 @@ void SdDefineCustomShowDlg::CheckCustomShow() if( *it1 != pEntry->GetUserData() ) { rpCustomShow->PagesVector().clear(); - bDifferent = sal_True; + bDifferent = true; } } } @@ -447,7 +447,7 @@ void SdDefineCustomShowDlg::CheckCustomShow() pPage = (SdPage*) pEntry->GetUserData(); rpCustomShow->PagesVector().push_back( pPage ); } - bModified = sal_True; + bModified = true; } // compare name and set name if necessary @@ -455,7 +455,7 @@ void SdDefineCustomShowDlg::CheckCustomShow() if( rpCustomShow->GetName() != aStr ) { rpCustomShow->SetName( aStr ); - bModified = sal_True; + bModified = true; } } @@ -463,7 +463,7 @@ void SdDefineCustomShowDlg::CheckCustomShow() IMPL_LINK_NOARG(SdDefineCustomShowDlg, OKHdl) { // check name... - sal_Bool bDifferent = sal_True; + bool bDifferent = true; SdCustomShowList* pCustomShowList = rDoc.GetCustomShowList(); if( pCustomShowList ) { @@ -476,7 +476,7 @@ IMPL_LINK_NOARG(SdDefineCustomShowDlg, OKHdl) pCustomShow = pCustomShowList->Next() ) { if( aName == pCustomShow->GetName() && aName != aOldName ) - bDifferent = sal_False; + bDifferent = false; } pCustomShowList->Seek( nPosToSelect ); } diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 3baf0d0a6586..4868054c0d36 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -137,7 +137,7 @@ private: class AssistentDlgImpl : public SfxListener { public: - AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, sal_Bool bAutoPilot ); + AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, bool bAutoPilot ); virtual ~AssistentDlgImpl(); /// Local mutex used to serialize concurrent method calls. @@ -155,7 +155,7 @@ public: /** Flag that is set to sal_True after the recently used files have been scanned. */ - sal_Bool mbRecentDocumentsReady; + bool mbRecentDocumentsReady; /** When the list of templates has not been scanned already this is done when this method is called. That includes requesting the whole list @@ -180,13 +180,13 @@ public: /** Flag that is set to sal_True after the impress templates have been scanned. */ - sal_Bool mbTemplatesReady; + bool mbTemplatesReady; /** Flag used to prevent nested or concurrent calls to the <member>UpdatePreview</memember> method. A <TRUE/> value indicates that a preview update is currently active. */ - sal_Bool mbPreviewUpdating; + bool mbPreviewUpdating; ::Window* mpWindow; @@ -216,7 +216,7 @@ public: TemplateDir* mpLayoutRegion; // preview - sal_Bool mbUserDataDirty; + bool mbUserDataDirty; Timer maPrevTimer; Timer maEffectPrevTimer; Timer maUpdatePageListTimer; @@ -228,11 +228,11 @@ public: bool mbPreview; sal_uInt16 mnShowPage; - sal_Bool mbDocPreview; + bool mbDocPreview; OUString maPageListFile; - void UpdatePreview( sal_Bool bDocPreview ); + void UpdatePreview( bool bDocPreview ); void UpdatePageList(); void UpdateUserData(); @@ -347,15 +347,15 @@ public: -AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, sal_Bool bAutoPilot ) : +AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, bool bAutoPilot ) : mpTemplateRegion(NULL), mpLayoutRegion(NULL), - mbUserDataDirty(sal_False), + mbUserDataDirty(false), xDocShell (NULL), mpWindowUpdater (new WindowUpdater()), mbPreview(true), mnShowPage(0), - mbDocPreview(sal_False), + mbDocPreview(false), maAssistentFunc(5), maPreviewFlag(pWindow,SdResId(CB_PREVIEW)), maStartWithFlag(pWindow,SdResId(CB_STARTWITH)), @@ -369,9 +369,9 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, maOpenStr(SdResId(STR_OPEN)) { maPageListFile = "?"; - mbRecentDocumentsReady = sal_False; - mbTemplatesReady = sal_False; - mbPreviewUpdating = sal_False; + mbRecentDocumentsReady = false; + mbTemplatesReady = false; + mbPreviewUpdating = false; mpWindow = pWindow; @@ -613,7 +613,7 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink, mpWindowUpdater->RegisterWindow (&maPreview); - UpdatePreview( sal_True ); + UpdatePreview( true ); //check whether we should start with a template document initialy and preselect it const OUString aServiceName( "com.sun.star.presentation.PresentationDocument" ); @@ -825,10 +825,10 @@ void AssistentDlgImpl::ScanDocmenu (void) } } } - mbRecentDocumentsReady = sal_True; + mbRecentDocumentsReady = true; try { - UpdatePreview(sal_True); + UpdatePreview(true); } catch (uno::RuntimeException& ) { @@ -849,7 +849,7 @@ void AssistentDlgImpl::ProvideTemplates (void) try { - UpdatePreview(sal_True); + UpdatePreview(true); } catch (uno::RuntimeException& ) { @@ -920,7 +920,7 @@ void AssistentDlgImpl::TemplateScanDone ( SelectLayoutRegion (mpPage2RegionLB->GetSelectEntry()); // Make the changes visible. - mbTemplatesReady = sal_True; + mbTemplatesReady = true; if (mpWindow) UpdatePage(); } @@ -1016,7 +1016,7 @@ OUString AssistentDlgImpl::GetLayoutFileName() SfxObjectShellLock AssistentDlgImpl::GetDocument() { - UpdatePreview(sal_False); // but load completely + UpdatePreview(false); // but load completely UpdatePageList(); SfxObjectShell* pShell = xDocShell; @@ -1026,7 +1026,7 @@ SfxObjectShellLock AssistentDlgImpl::GetDocument() if(pDoc) { const sal_uInt16 nPageCount = pDoc->GetSdPageCount(PK_STANDARD); - sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); + bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); double fNewTime = (double)mpPage3PresTimeTMF->GetTime().GetMSFromTime() / 1000.0; if(bKiosk) { @@ -1150,7 +1150,7 @@ void AssistentDlgImpl::UpdatePage() if(GetStartType() != ST_TEMPLATE) maNextPageButton.Enable(false); - sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); + bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); mpPage3PresTimeFT->Enable(bKiosk); mpPage3BreakFT->Enable(bKiosk); mpPage3PresTimeTMF->Enable(bKiosk); @@ -1221,7 +1221,7 @@ IMPL_LINK_NOARG(AssistentDlgImpl, PreviewFlagHdl) if( maPreviewFlag.IsChecked() != mbPreview ) { mbPreview = maPreviewFlag.IsChecked(); - UpdatePreview(sal_True); + UpdatePreview(true); } return 0; } @@ -1254,7 +1254,7 @@ IMPL_LINK_NOARG(AssistentDlgImpl, PageSelectHdl) if( mnShowPage != nPage ) { mnShowPage = nPage; - UpdatePreview(sal_False); + UpdatePreview(false); } return 0; @@ -1268,7 +1268,7 @@ IMPL_LINK_NOARG(AssistentDlgImpl, UpdatePageListHdl) IMPL_LINK_NOARG(AssistentDlgImpl, UpdatePreviewHdl) { - UpdatePreview( sal_True ); + UpdatePreview( true ); return 0; } @@ -1325,7 +1325,7 @@ IMPL_LINK_NOARG(AssistentDlgImpl, PresTypeHdl) maNextPageButton.Enable(false); } - sal_Bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); + bool bKiosk = mpPage3PresTypeKioskRB->IsChecked(); mpPage3PresTimeFT->Enable(bKiosk); mpPage3BreakFT->Enable(bKiosk); mpPage3PresTimeTMF->Enable(bKiosk); @@ -1336,7 +1336,7 @@ IMPL_LINK_NOARG(AssistentDlgImpl, PresTypeHdl) IMPL_LINK_NOARG(AssistentDlgImpl, UpdateUserDataHdl) { - mbUserDataDirty = sal_True; + mbUserDataDirty = true; OUString aTopic = mpPage4AskTopicEDT->GetText(); OUString aName = mpPage4AskNameEDT->GetText(); OUString aInfo = mpPage4AskInfoEDT->GetText(); @@ -1409,7 +1409,7 @@ void AssistentDlgImpl::UpdateUserData() if (pPage && (!aTopic.isEmpty() || !aName.isEmpty() || !aInfo.isEmpty())) { if( pPage->GetAutoLayout() == AUTOLAYOUT_NONE ) - pPage->SetAutoLayout(AUTOLAYOUT_TITLE, sal_True); + pPage->SetAutoLayout(AUTOLAYOUT_TITLE, true); SdrTextObj* pObj; @@ -1452,13 +1452,13 @@ void AssistentDlgImpl::UpdateUserData() } } - mbUserDataDirty = sal_False; + mbUserDataDirty = false; } void AssistentDlgImpl::UpdatePageList() { if(mbDocPreview || !mbPreview) - UpdatePreview(sal_False); + UpdatePreview(false); else if(maPageListFile == maDocFile) return; @@ -1474,20 +1474,20 @@ void AssistentDlgImpl::UpdatePageList() mpPage5PageListCT->Fill(pDoc); } -void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) +void AssistentDlgImpl::UpdatePreview( bool bDocPreview ) { // Guard against multiple concurrent execution to this method caused either // by calls from different threads or recursion. ::osl::MutexGuard aGuard (maMutex); if (mbPreviewUpdating) return; - mbPreviewUpdating = sal_True; + mbPreviewUpdating = true; if(!mbPreview && bDocPreview) { maPreview.Invalidate(); maPreview.SetObjectShell(0); - mbPreviewUpdating = sal_False; + mbPreviewUpdating = false; return; } @@ -1496,7 +1496,7 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) SfxApplication *pSfxApp = SFX_APP(); sal_uLong lErr; - sal_Bool bChangeMaster = !aLayoutFile.isEmpty(); + bool bChangeMaster = !aLayoutFile.isEmpty(); if (aDocFile.isEmpty()) { @@ -1506,15 +1506,15 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) CloseDocShell(); DrawDocShell* pNewDocSh; - xDocShell = pNewDocSh = new DrawDocShell(SFX_CREATE_MODE_STANDARD, sal_False); + xDocShell = pNewDocSh = new DrawDocShell(SFX_CREATE_MODE_STANDARD, false); pNewDocSh->DoInitNew(NULL); SdDrawDocument* pDoc = pNewDocSh->GetDoc(); pDoc->CreateFirstPages(); pDoc->StopWorkStartupDelay(); - mbDocPreview = sal_False; + mbDocPreview = false; maDocFile = aDocFile; - mbUserDataDirty = sal_True; + mbUserDataDirty = true; } else bChangeMaster = !aLayoutFile.isEmpty() && (maLayoutFile != aLayoutFile); @@ -1528,10 +1528,10 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) ::svl::IUndoManager* pUndoMgr = pDocShell?pDocShell->GetUndoManager():NULL; if(pUndoMgr) pUndoMgr->Undo(); - mbUserDataDirty = sal_True; + mbUserDataDirty = true; } else - bChangeMaster = sal_False; + bChangeMaster = false; } else { @@ -1575,7 +1575,7 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) mnShowPage = 0; mbDocPreview = bDocPreview; maDocFile = aDocFile; - mbUserDataDirty = sal_True; + mbUserDataDirty = true; } if(bChangeMaster && (aLayoutFile != maDocFile)) @@ -1612,14 +1612,14 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) if( pDoc && pLayoutDoc ) { - pDoc->SetMasterPage(0, OUString(), pLayoutDoc, sal_True, sal_False ); + pDoc->SetMasterPage(0, OUString(), pLayoutDoc, true, false ); } else { OSL_FAIL("sd::AssistentDlgImpl::UpdatePreview(), no document for preview?"); } - mbUserDataDirty = sal_True; + mbUserDataDirty = true; } maLayoutFile = aLayoutFile; @@ -1633,7 +1633,7 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview ) maPreview.SetObjectShell( xDocShell, mnShowPage ); } - mbPreviewUpdating = sal_False; + mbPreviewUpdating = false; } void AssistentDlgImpl::SavePassword( SfxObjectShellLock xDoc, const OUString& rPath ) @@ -1819,7 +1819,7 @@ Image AssistentDlgImpl::GetUiIconForCommand (const OUString& sCommandURL) -AssistentDlg::AssistentDlg(Window* pParent, sal_Bool bAutoPilot) : +AssistentDlg::AssistentDlg(Window* pParent, bool bAutoPilot) : ModalDialog(pParent,SdResId(DLG_ASS)) { Link aFinishLink = LINK(this,AssistentDlg, FinishHdl); @@ -1894,7 +1894,7 @@ OutputType AssistentDlg::GetOutputMedium() const return OUTPUT_ORIGINAL; } -sal_Bool AssistentDlg::IsSummary() const +bool AssistentDlg::IsSummary() const { return mpImpl->mpPage5SummaryCB->IsChecked(); } @@ -1909,12 +1909,12 @@ OUString AssistentDlg::GetDocPath() const return mpImpl->GetDocFileName(); } -sal_Bool AssistentDlg::GetStartWithFlag() const +bool AssistentDlg::GetStartWithFlag() const { return !mpImpl->maStartWithFlag.IsChecked(); } -sal_Bool AssistentDlg::IsDocEmpty() const +bool AssistentDlg::IsDocEmpty() const { return mpImpl->GetDocFileName().isEmpty() && mpImpl->GetLayoutFileName().isEmpty(); diff --git a/sd/source/ui/dlg/dlgassim.cxx b/sd/source/ui/dlg/dlgassim.cxx index ac43e960cca2..a2283ce3d0e9 100644 --- a/sd/source/ui/dlg/dlgassim.cxx +++ b/sd/source/ui/dlg/dlgassim.cxx @@ -183,10 +183,10 @@ sal_uInt16 SdPageListControl::GetSelectedPage() return nPage; } -sal_Bool SdPageListControl::IsPageChecked( sal_uInt16 nPage ) +bool SdPageListControl::IsPageChecked( sal_uInt16 nPage ) { SvTreeListEntry* pEntry = GetModel()->GetEntry(nPage); - return pEntry?(sal_Bool)(GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED): sal_False; + return pEntry && (GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED); } void SdPageListControl::DataChanged( const DataChangedEvent& rDCEvt ) diff --git a/sd/source/ui/dlg/dlgassim.hxx b/sd/source/ui/dlg/dlgassim.hxx index 2b8ab976cb92..11c888a13377 100644 --- a/sd/source/ui/dlg/dlgassim.hxx +++ b/sd/source/ui/dlg/dlgassim.hxx @@ -39,7 +39,7 @@ public: void Clear(); sal_uInt16 GetSelectedPage(); - sal_Bool IsPageChecked( sal_uInt16 nPage ); + bool IsPageChecked( sal_uInt16 nPage ); DECL_LINK( CheckButtonClickHdl, void * ); diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx index 84c1d34a0712..07608e3309b1 100644 --- a/sd/source/ui/dlg/dlgctrls.cxx +++ b/sd/source/ui/dlg/dlgctrls.cxx @@ -85,7 +85,7 @@ void FadeEffectLB::applySelected( SdPage* pSlide ) const { pSlide->setTransitionType( 0 ); pSlide->setTransitionSubtype( 0 ); - pSlide->setTransitionDirection( sal_True ); + pSlide->setTransitionDirection( true ); pSlide->setTransitionFadeColor( 0 ); } } diff --git a/sd/source/ui/dlg/dlgolbul.cxx b/sd/source/ui/dlg/dlgolbul.cxx index 1dfdc3de2094..73d6de45cda7 100644 --- a/sd/source/ui/dlg/dlgolbul.cxx +++ b/sd/source/ui/dlg/dlgolbul.cxx @@ -63,7 +63,7 @@ OutlineBulletDlg::OutlineBulletDlg( pOutputSet = new SfxItemSet( *pAttr ); pOutputSet->ClearItem(); - sal_Bool bOutliner = sal_False; + bool bOutliner = false; // special treatment if a title object is selected if( pView ) @@ -79,10 +79,10 @@ OutlineBulletDlg::OutlineBulletDlg( switch(pObj->GetObjIdentifier()) { case OBJ_TITLETEXT: - bTitle = sal_True; + bTitle = true; break; case OBJ_OUTLINETEXT: - bOutliner = sal_True; + bOutliner = true; break; } } diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx index b6eebfc51440..9f546fe47399 100644 --- a/sd/source/ui/dlg/dlgpage.cxx +++ b/sd/source/ui/dlg/dlgpage.cxx @@ -33,7 +33,7 @@ /** * Constructor of tab dialog: appends pages to the dialog */ -SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, sal_Bool bAreaPage ) : +SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ) : SfxTabDialog ( pParent ,"DrawPageDialog" ,"modules/sdraw/ui/drawpagedialog.ui" diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx index d13cd69ecd0f..5afafe381cd7 100644 --- a/sd/source/ui/dlg/dlgsnap.cxx +++ b/sd/source/ui/dlg/dlgsnap.cxx @@ -117,9 +117,9 @@ SdSnapLineDlg::SdSnapLineDlg( */ IMPL_LINK( SdSnapLineDlg, ClickHdl, Button *, pBtn ) { - if ( pBtn == m_pRbPoint ) SetInputFields(sal_True, sal_True); - else if ( pBtn == m_pRbHorz ) SetInputFields(sal_False, sal_True); - else if ( pBtn == m_pRbVert ) SetInputFields(sal_True, sal_False); + if ( pBtn == m_pRbPoint ) SetInputFields(true, true); + else if ( pBtn == m_pRbHorz ) SetInputFields(false, true); + else if ( pBtn == m_pRbVert ) SetInputFields(true, false); else if ( pBtn == m_pBtnDelete ) EndDialog(RET_SNAP_DELETE); return 0; @@ -152,7 +152,7 @@ void SdSnapLineDlg::HideRadioGroup() /** * disable X or Y input fields */ -void SdSnapLineDlg::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) +void SdSnapLineDlg::SetInputFields(bool bEnableX, bool bEnableY) { if ( bEnableX ) { diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index ebb939dead5c..cd015cdbd285 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -61,7 +61,7 @@ void SdDocPreviewWin::SetObjectShell( SfxObjectShell* pObj, sal_uInt16 nShowPage } SdDocPreviewWin::SdDocPreviewWin( Window* pParent, const ResId& rResId ) -: Control(pParent, rResId), pMetaFile( 0 ), bInEffect(sal_False), mpObj(NULL), mnShowPage(0) +: Control(pParent, rResId), pMetaFile( 0 ), bInEffect(false), mpObj(NULL), mnShowPage(0) { SetBorderStyle( WINDOW_BORDER_MONO ); svtools::ColorConfig aColorConfig; diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx index 5060e07679d3..452cc8fbcb07 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -55,8 +55,8 @@ private: css::uno::Reference< css::media::XPlayer > mxPlayer; sal_uLong mnPlaySoundEvent; - sal_Bool mbUsableSelection; - sal_Bool mbLabelPlaying; + bool mbUsableSelection; + bool mbLabelPlaying; void CheckSelectionState(); @@ -67,7 +67,7 @@ private: DECL_LINK( IsMusicStoppedHdl, void * ); public: - SdFileDialog_Imp( const short nDialogType, sal_Bool bUsableSelection ); + SdFileDialog_Imp( const short nDialogType, bool bUsableSelection ); virtual ~SdFileDialog_Imp(); ErrCode Execute(); @@ -119,7 +119,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl) mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY, SD_RESSTR( STR_PLAY ) ); - mbLabelPlaying = sal_False; + mbLabelPlaying = false; } catch(const css::lang::IllegalArgumentException&) { @@ -152,7 +152,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl) mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY, SD_RESSTR( STR_STOP ) ); - mbLabelPlaying = sal_True; + mbLabelPlaying = true; } catch (const css::lang::IllegalArgumentException&) { @@ -188,7 +188,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, IsMusicStoppedHdl) { mxControlAccess->setLabel( css::ui::dialogs::ExtendedFilePickerElementIds::PUSHBUTTON_PLAY, SD_RESSTR( STR_PLAY ) ); - mbLabelPlaying = sal_False; + mbLabelPlaying = false; } catch (const css::lang::IllegalArgumentException&) { @@ -226,11 +226,11 @@ void SdFileDialog_Imp::CheckSelectionState() SdFileDialog_Imp::SdFileDialog_Imp( const short nDialogType, - sal_Bool bUsableSelection ) : + bool bUsableSelection ) : FileDialogHelper( nDialogType, 0 ), mnPlaySoundEvent( 0 ), mbUsableSelection( bUsableSelection ), - mbLabelPlaying(sal_False) + mbLabelPlaying(false) { maUpdateTimer.SetTimeoutHdl(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl)); @@ -256,7 +256,7 @@ SdFileDialog_Imp::SdFileDialog_Imp( const short nDialogType, #endif } } - else if( mbUsableSelection != sal_True ) + else if( mbUsableSelection != true ) { try { @@ -297,7 +297,7 @@ ErrCode SdFileDialog_Imp::Execute() SdOpenSoundFileDialog::SdOpenSoundFileDialog() : mpImpl( new SdFileDialog_Imp( - css::ui::dialogs::TemplateDescription::FILEOPEN_PLAY, sal_False ) ) + css::ui::dialogs::TemplateDescription::FILEOPEN_PLAY, false ) ) { OUString aDescr; aDescr = SD_RESSTR(STR_ALL_FILES); diff --git a/sd/source/ui/dlg/inspagob.cxx b/sd/source/ui/dlg/inspagob.cxx index b400ca9d68cc..8c104974e03d 100644 --- a/sd/source/ui/dlg/inspagob.cxx +++ b/sd/source/ui/dlg/inspagob.cxx @@ -105,7 +105,7 @@ std::vector<OUString> SdInsertPagesObjsDlg::GetList( const sal_uInt16 nType ) /** * is link checked */ -sal_Bool SdInsertPagesObjsDlg::IsLink() +bool SdInsertPagesObjsDlg::IsLink() { return( m_pCbxLink->IsChecked() ); } @@ -113,7 +113,7 @@ sal_Bool SdInsertPagesObjsDlg::IsLink() /** * is link checked */ -sal_Bool SdInsertPagesObjsDlg::IsRemoveUnnessesaryMasterPages() const +bool SdInsertPagesObjsDlg::IsRemoveUnnessesaryMasterPages() const { return( m_pCbxMasters->IsChecked() ); } diff --git a/sd/source/ui/dlg/morphdlg.cxx b/sd/source/ui/dlg/morphdlg.cxx index b0b5b4928d1e..b0ac4252c8fb 100644 --- a/sd/source/ui/dlg/morphdlg.cxx +++ b/sd/source/ui/dlg/morphdlg.cxx @@ -70,18 +70,18 @@ void MorphDlg::LoadSettings() SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream( OUString(SD_OPTION_MORPHING) , SD_OPTION_LOAD ) ); sal_uInt16 nSteps; - sal_Bool bOrient, bAttrib; + bool bOrient, bAttrib; if( xIStm.Is() ) { SdIOCompat aCompat( *xIStm, STREAM_READ ); - xIStm->ReadUInt16( nSteps ).ReadUChar( bOrient ).ReadUChar( bAttrib ); + xIStm->ReadUInt16( nSteps ).ReadCharAsBool( bOrient ).ReadCharAsBool( bAttrib ); } else { nSteps = 16; - bOrient = bAttrib = sal_True; + bOrient = bAttrib = true; } m_pMtfSteps->SetValue( nSteps ); diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index 76cd0f442115..82f4f65f70ee 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -72,7 +72,7 @@ SdNavigatorWin::SdNavigatorWin( , maTlbObjects( this, SdResId( TLB_OBJECTS ) ) , maLbDocs ( this, SdResId( LB_DOCS ) ) , mpChildWinContext( pChWinCtxt ) - , mbDocImported ( sal_False ) + , mbDocImported ( false ) // On changes of the DragType: adjust SelectionMode of TLB! , meDragType ( NAVIGATOR_DRAGTYPE_EMBEDDED ) , mpBindings ( pInBindings ) @@ -110,7 +110,7 @@ SdNavigatorWin::SdNavigatorWin( // set focus to listbox, otherwise it is in the toolbox which is only useful // for keyboard navigation maTlbObjects.GrabFocus(); - maTlbObjects.SetSdNavigatorWinFlag(sal_True); + maTlbObjects.SetSdNavigatorWinFlag(true); // DragTypeListBox maLbDocs.SetSelectHdl( LINK( this, SdNavigatorWin, SelectDocumentHdl ) ); @@ -167,10 +167,10 @@ void SdNavigatorWin::FreshTree( const SdDrawDocument* pDoc ) sd::DrawDocShell* pDocShell = pNonConstDoc->GetDocSh(); OUString aDocShName( pDocShell->GetName() ); OUString aDocName = pDocShell->GetMedium()->GetName(); - maTlbObjects.SetSaveTreeItemStateFlag(sal_True); //Added by yanjun for sym2_6385 + maTlbObjects.SetSaveTreeItemStateFlag(true); //Added by yanjun for sym2_6385 maTlbObjects.Clear(); - maTlbObjects.Fill( pDoc, sal_False, aDocName ); // Nur normale Seiten - maTlbObjects.SetSaveTreeItemStateFlag(sal_False); //Added by yanjun for sym2_6385 + maTlbObjects.Fill( pDoc, false, aDocName ); // Nur normale Seiten + maTlbObjects.SetSaveTreeItemStateFlag(false); //Added by yanjun for sym2_6385 RefreshDocumentLB(); maLbDocs.SelectEntry( aDocShName ); } @@ -207,7 +207,7 @@ void SdNavigatorWin::InitTreeLB( const SdDrawDocument* pDoc ) { OUString aDocName = pDocShell->GetMedium()->GetName(); maTlbObjects.Clear(); - maTlbObjects.Fill( pDoc, (sal_Bool) sal_False, aDocName ); // only normal pages + maTlbObjects.Fill( pDoc, false, aDocName ); // only normal pages RefreshDocumentLB(); maLbDocs.SelectEntry( aDocShName ); @@ -434,7 +434,7 @@ IMPL_LINK_NOARG(SdNavigatorWin, SelectDocumentHdl) { OUString aStrLb = maLbDocs.GetSelectEntry(); long nPos = maLbDocs.GetSelectEntryPos(); - sal_Bool bFound = sal_False; + bool bFound = false; ::sd::DrawDocShell* pDocShell = NULL; NavDocInfo* pInfo = GetDocInfo(); @@ -448,7 +448,7 @@ IMPL_LINK_NOARG(SdNavigatorWin, SelectDocumentHdl) { pDocShell = pInfo->mpDocShell; - bFound = sal_True; + bFound = true; } if( bFound ) @@ -460,7 +460,7 @@ IMPL_LINK_NOARG(SdNavigatorWin, SelectDocumentHdl) ::sd::DrawDocShell* pNCDocShell = pNonConstDoc->GetDocSh(); OUString aDocName = pNCDocShell->GetMedium()->GetName(); maTlbObjects.Clear(); - maTlbObjects.Fill( pDoc, (sal_Bool) sal_False, aDocName ); // only normal pages + maTlbObjects.Fill( pDoc, false, aDocName ); // only normal pages } } @@ -655,7 +655,7 @@ bool SdNavigatorWin::InsertFile(const OUString& rFileName) if( !maTlbObjects.IsEqualToDoc( pDropDoc ) ) { // only normal pages - maTlbObjects.Fill(pDropDoc, (sal_Bool) sal_False, maDropFileName); + maTlbObjects.Fill(pDropDoc, false, maDropFileName); RefreshDocumentLB( &maDropFileName ); } } @@ -687,7 +687,7 @@ void SdNavigatorWin::RefreshDocumentLB( const OUString* pDocName ) maLbDocs.RemoveEntry( 0 ); maLbDocs.InsertEntry( *pDocName, 0 ); - mbDocImported = sal_True; + mbDocImported = true; } else { @@ -723,7 +723,7 @@ void SdNavigatorWin::RefreshDocumentLB( const OUString* pDocName ) if( !aStr.isEmpty() ) aInfo.SetName(); else - aInfo.SetName( sal_False ); + aInfo.SetName( false ); // at the moment, we use the name of the shell again (i.e. // without path) since Koose thinks it is an error if the path // is shown in url notation! @@ -734,7 +734,7 @@ void SdNavigatorWin::RefreshDocumentLB( const OUString* pDocName ) if( pDocShell == pCurrentDocShell ) aInfo.SetActive(); else - aInfo.SetActive( sal_False ); + aInfo.SetActive( false ); maDocList.push_back( aInfo ); } @@ -746,7 +746,7 @@ void SdNavigatorWin::RefreshDocumentLB( const OUString* pDocName ) -sal_uInt16 SdNavigatorWin::GetDragTypeSdResId( NavigatorDragType eDT, sal_Bool bImage ) +sal_uInt16 SdNavigatorWin::GetDragTypeSdResId( NavigatorDragType eDT, bool bImage ) { switch( eDT ) { @@ -861,7 +861,7 @@ void SdNavigatorWin::DataChanged( const DataChangedEvent& rDCEvt ) void SdNavigatorWin::SetDragImage() { - maToolbox.SetItemImage( TBI_DRAGTYPE, maToolbox.GetImageList().GetImage( GetDragTypeSdResId( meDragType, sal_True ) ) ); + maToolbox.SetItemImage( TBI_DRAGTYPE, maToolbox.GetImageList().GetImage( GetDragTypeSdResId( meDragType, true ) ) ); } void SdNavigatorWin::ApplyImageList() diff --git a/sd/source/ui/dlg/paragr.cxx b/sd/source/ui/dlg/paragr.cxx index 7338955b0350..91f4b30ef507 100644 --- a/sd/source/ui/dlg/paragr.cxx +++ b/sd/source/ui/dlg/paragr.cxx @@ -97,8 +97,8 @@ bool SdParagraphNumTabPage::FillItemSet( SfxItemSet& rSet ) m_pNewStartNF->GetText() != m_pNewStartNF->GetSavedValue()) { mbModified = true; - sal_Bool bNewStartChecked = TRISTATE_TRUE == m_pNewStartCB->GetState(); - sal_Bool bNumberNewStartChecked = TRISTATE_TRUE == m_pNewStartNumberCB->GetState(); + bool bNewStartChecked = TRISTATE_TRUE == m_pNewStartCB->GetState(); + bool bNumberNewStartChecked = TRISTATE_TRUE == m_pNewStartNumberCB->GetState(); rSet.Put(SfxBoolItem(ATTR_NUMBER_NEWSTART, bNewStartChecked)); const sal_Int16 nStartAt = (sal_Int16)m_pNewStartNF->GetValue(); @@ -147,7 +147,7 @@ void SdParagraphNumTabPage::Reset( const SfxItemSet& rSet ) IMPL_LINK_NOARG(SdParagraphNumTabPage, ImplNewStartHdl) { - sal_Bool bEnable = m_pNewStartCB->IsChecked(); + bool bEnable = m_pNewStartCB->IsChecked(); m_pNewStartNumberCB->Enable(bEnable); m_pNewStartNF->Enable(bEnable && m_pNewStartNumberCB->IsChecked()); return 0; @@ -169,7 +169,7 @@ SdParagraphDlg::SdParagraphDlg( Window* pParent, const SfxItemSet* pAttr ) AddTabPage( "labelTP_PARA_ALIGN", RID_SVXPAGE_ALIGN_PARAGRAPH); - static const sal_Bool bShowParaNumbering = ( getenv( "SD_SHOW_NUMBERING_PAGE" ) != NULL ); + static const bool bShowParaNumbering = ( getenv( "SD_SHOW_NUMBERING_PAGE" ) != NULL ); if( bShowParaNumbering ) AddTabPage( "labelNUMBERING", SdParagraphNumTabPage::Create, SdParagraphNumTabPage::GetRanges ); else diff --git a/sd/source/ui/dlg/present.cxx b/sd/source/ui/dlg/present.cxx index 7d1f022f8760..2911984c0e2a 100644 --- a/sd/source/ui/dlg/present.cxx +++ b/sd/source/ui/dlg/present.cxx @@ -124,8 +124,8 @@ SdStartPresentationDlg::SdStartPresentationDlg( Window* pWindow, aCbxChangePage->Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_CHANGE_PAGE ) ).GetValue() ); aCbxAlwaysOnTop->Check( ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ALWAYS_ON_TOP ) ).GetValue() ); - const sal_Bool bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue(); - const sal_Bool bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue(); + const bool bEndless = ( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_ENDLESS ) ).GetValue(); + const bool bWindow = !( ( const SfxBoolItem& ) rOutAttrs.Get( ATTR_PRESENT_FULLSCREEN ) ).GetValue(); const long nPause = ( ( const SfxUInt32Item& ) rOutAttrs.Get( ATTR_PRESENT_PAUSE_TIMEOUT ) ).GetValue(); aTmfPause->SetTime( Time( 0, 0, nPause ) ); @@ -201,7 +201,7 @@ void SdStartPresentationDlg::InitMonitorSettings() } else { - sal_Bool bUnifiedDisplay = Application::IsUnifiedDisplay(); + bool bUnifiedDisplay = Application::IsUnifiedDisplay(); sal_Int32 nExternalIndex = Application::GetDisplayExternalScreen(); sal_Int32 nSelectedIndex (-1); diff --git a/sd/source/ui/dlg/sddlgfact.cxx b/sd/source/ui/dlg/sddlgfact.cxx index 7cfc086c016e..8ea43f36e032 100644 --- a/sd/source/ui/dlg/sddlgfact.cxx +++ b/sd/source/ui/dlg/sddlgfact.cxx @@ -73,12 +73,12 @@ void AbstractCopyDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) pDlg->GetAttr( rOutAttrs ); } -sal_Bool AbstractSdCustomShowDlg_Impl::IsModified() const +bool AbstractSdCustomShowDlg_Impl::IsModified() const { return pDlg->IsModified(); } -sal_Bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const +bool AbstractSdCustomShowDlg_Impl::IsCustomShow() const { return pDlg->IsCustomShow(); } @@ -199,7 +199,7 @@ OutputType AbstractAssistentDlg_Impl::GetOutputMedium() const return pDlg->GetOutputMedium(); } -sal_Bool AbstractAssistentDlg_Impl::IsSummary() const +bool AbstractAssistentDlg_Impl::IsSummary() const { return pDlg->IsSummary(); } @@ -214,12 +214,12 @@ OUString AbstractAssistentDlg_Impl::GetDocPath() const return pDlg->GetDocPath(); } -sal_Bool AbstractAssistentDlg_Impl::GetStartWithFlag() const +bool AbstractAssistentDlg_Impl::GetStartWithFlag() const { return pDlg->GetStartWithFlag(); } -sal_Bool AbstractAssistentDlg_Impl::IsDocEmpty() const +bool AbstractAssistentDlg_Impl::IsDocEmpty() const { return pDlg->IsDocEmpty(); } @@ -254,7 +254,7 @@ void AbstractSdSnapLineDlg_Impl::HideDeleteBtn() pDlg->HideDeleteBtn(); } -void AbstractSdSnapLineDlg_Impl::SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) +void AbstractSdSnapLineDlg_Impl::SetInputFields(bool bEnableX, bool bEnableY) { pDlg->SetInputFields(bEnableX, bEnableY); } @@ -274,7 +274,7 @@ void AbstractSdInsertLayerDlg_Impl::SetHelpId( const OString& rHelpId ) pDlg->SetHelpId( rHelpId ); } -sal_Bool AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const +bool AbstractSdInsertPasteDlg_Impl::IsInsertBefore() const { return pDlg->IsInsertBefore(); } @@ -289,12 +289,12 @@ std::vector<OUString> AbstractSdInsertPagesObjsDlg_Impl::GetList(const sal_uInt1 return pDlg->GetList(nType); } -sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsLink() +bool AbstractSdInsertPagesObjsDlg_Impl::IsLink() { return pDlg->IsLink(); } -sal_Bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const +bool AbstractSdInsertPagesObjsDlg_Impl::IsRemoveUnnessesaryMasterPages() const { return pDlg->IsRemoveUnnessesaryMasterPages(); } @@ -309,12 +309,12 @@ sal_uInt16 AbstractMorphDlg_Impl::GetFadeSteps() const return pDlg->GetFadeSteps(); } -sal_Bool AbstractMorphDlg_Impl::IsAttributeFade() const +bool AbstractMorphDlg_Impl::IsAttributeFade() const { return pDlg->IsAttributeFade(); } -sal_Bool AbstractMorphDlg_Impl::IsOrientationFade() const +bool AbstractMorphDlg_Impl::IsOrientationFade() const { return pDlg->IsOrientationFade(); } @@ -399,12 +399,12 @@ SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabCharDialog( ::W return new SdAbstractTabDialog_Impl( new SdCharDlg( pParent, pAttr, pDocShell ) ); } -SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage ) +SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage ) { return new SdAbstractTabDialog_Impl( new SdPageDlg( pDocShell, pParent, pAttr, bAreaPage ) ); } -AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) +AbstractAssistentDlg * SdAbstractDialogFactory_Impl::CreateAssistentDlg( ::Window* pParent, bool bAutoPilot) { return new AbstractAssistentDlg_Impl( new AssistentDlg( pParent, bAutoPilot ) ); } diff --git a/sd/source/ui/dlg/sddlgfact.hxx b/sd/source/ui/dlg/sddlgfact.hxx index d29ce574456c..15b91e11f1b0 100644 --- a/sd/source/ui/dlg/sddlgfact.hxx +++ b/sd/source/ui/dlg/sddlgfact.hxx @@ -65,8 +65,8 @@ class SdCustomShowDlg; class AbstractSdCustomShowDlg_Impl : public AbstractSdCustomShowDlg { DECL_ABSTDLG_BASE(AbstractSdCustomShowDlg_Impl,SdCustomShowDlg) - virtual sal_Bool IsModified() const SAL_OVERRIDE ; - virtual sal_Bool IsCustomShow() const SAL_OVERRIDE ; + virtual bool IsModified() const SAL_OVERRIDE ; + virtual bool IsCustomShow() const SAL_OVERRIDE ; }; class SfxTabDialog; @@ -117,11 +117,11 @@ class AbstractAssistentDlg_Impl : public AbstractAssistentDlg DECL_ABSTDLG_BASE(AbstractAssistentDlg_Impl,AssistentDlg) virtual SfxObjectShellLock GetDocument() SAL_OVERRIDE; virtual OutputType GetOutputMedium() const SAL_OVERRIDE; - virtual sal_Bool IsSummary() const SAL_OVERRIDE; + virtual bool IsSummary() const SAL_OVERRIDE; virtual StartType GetStartType() const SAL_OVERRIDE; virtual OUString GetDocPath() const SAL_OVERRIDE; - virtual sal_Bool GetStartWithFlag() const SAL_OVERRIDE; - virtual sal_Bool IsDocEmpty() const SAL_OVERRIDE; + virtual bool GetStartWithFlag() const SAL_OVERRIDE; + virtual bool IsDocEmpty() const SAL_OVERRIDE; virtual com::sun::star::uno::Sequence< com::sun::star::beans::NamedValue > GetPassword() SAL_OVERRIDE; }; @@ -140,7 +140,7 @@ class AbstractSdSnapLineDlg_Impl : public AbstractSdSnapLineDlg virtual void GetAttr(SfxItemSet& rOutAttrs) SAL_OVERRIDE; virtual void HideRadioGroup() SAL_OVERRIDE; virtual void HideDeleteBtn() SAL_OVERRIDE; - virtual void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY) SAL_OVERRIDE; + virtual void SetInputFields(bool bEnableX, bool bEnableY) SAL_OVERRIDE; //from class Window virtual void SetText( const OUString& rStr ) SAL_OVERRIDE; }; @@ -158,7 +158,7 @@ class SdInsertPasteDlg; class AbstractSdInsertPasteDlg_Impl : public AbstractSdInsertPasteDlg { DECL_ABSTDLG_BASE(AbstractSdInsertPasteDlg_Impl,SdInsertPasteDlg) - virtual sal_Bool IsInsertBefore() const SAL_OVERRIDE; + virtual bool IsInsertBefore() const SAL_OVERRIDE; }; class SdInsertPagesObjsDlg; @@ -167,17 +167,17 @@ class AbstractSdInsertPagesObjsDlg_Impl : public AbstractSdInsertPagesObjsDlg DECL_ABSTDLG_BASE(AbstractSdInsertPagesObjsDlg_Impl,SdInsertPagesObjsDlg) virtual ::Window * GetWindow() SAL_OVERRIDE; virtual std::vector<OUString> GetList ( const sal_uInt16 nType ) SAL_OVERRIDE; - virtual sal_Bool IsLink() SAL_OVERRIDE; - virtual sal_Bool IsRemoveUnnessesaryMasterPages() const SAL_OVERRIDE; + virtual bool IsLink() SAL_OVERRIDE; + virtual bool IsRemoveUnnessesaryMasterPages() const SAL_OVERRIDE; }; class AbstractMorphDlg_Impl : public AbstractMorphDlg { DECL_ABSTDLG_BASE(AbstractMorphDlg_Impl,::sd::MorphDlg) virtual void SaveSettings() const SAL_OVERRIDE; - virtual sal_uInt16 GetFadeSteps() const SAL_OVERRIDE; - virtual sal_Bool IsAttributeFade() const SAL_OVERRIDE ; - virtual sal_Bool IsOrientationFade() const SAL_OVERRIDE ; + virtual sal_uInt16 GetFadeSteps() const SAL_OVERRIDE; + virtual bool IsAttributeFade() const SAL_OVERRIDE ; + virtual bool IsOrientationFade() const SAL_OVERRIDE ; }; class SdStartPresentationDlg; @@ -235,8 +235,8 @@ public: virtual AbstractCopyDlg* CreateCopyDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, const rtl::Reference<XColorList> &pColTab, ::sd::View* pView ) SAL_OVERRIDE; virtual AbstractSdCustomShowDlg* CreateSdCustomShowDlg( ::Window* pWindow, SdDrawDocument& rDrawDoc ) SAL_OVERRIDE; virtual SfxAbstractTabDialog* CreateSdTabCharDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell ) SAL_OVERRIDE; - virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, sal_Bool bAreaPage = sal_True ) SAL_OVERRIDE; - virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, sal_Bool bAutoPilot) SAL_OVERRIDE; + virtual SfxAbstractTabDialog* CreateSdTabPageDialog( ::Window* pParent, const SfxItemSet* pAttr, SfxObjectShell* pDocShell, bool bAreaPage = true ) SAL_OVERRIDE; + virtual AbstractAssistentDlg* CreateAssistentDlg( ::Window* pParent, bool bAutoPilot) SAL_OVERRIDE; virtual AbstractSdModifyFieldDlg* CreateSdModifyFieldDlg( ::Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ) SAL_OVERRIDE; virtual AbstractSdSnapLineDlg* CreateSdSnapLineDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView) SAL_OVERRIDE; virtual AbstractSdInsertLayerDlg* CreateSdInsertLayerDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, bool bDeletable, const OUString& aStr ) SAL_OVERRIDE; diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index 1ae155d848f2..b9349e0b0162 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -68,7 +68,7 @@ void SdPresLayoutDlg::Reset() // replace master page if( mrOutAttrs.GetItemState( ATTR_PRESLAYOUT_MASTER_PAGE, false, &pPoolItem ) == SFX_ITEM_SET ) { - sal_Bool bMasterPage = ( (const SfxBoolItem*) pPoolItem)->GetValue(); + bool bMasterPage = ( (const SfxBoolItem*) pPoolItem)->GetValue(); m_pCbxMasterPage->Enable( !bMasterPage ); m_pCbxMasterPage->Check( bMasterPage ); } @@ -101,7 +101,7 @@ void SdPresLayoutDlg::Reset() void SdPresLayoutDlg::GetAttr(SfxItemSet& rOutAttrs) { short nId = m_pVS->GetSelectItemId(); - sal_Bool bLoad = nId > mnLayoutCount; + bool bLoad = nId > mnLayoutCount; rOutAttrs.Put( SfxBoolItem( ATTR_PRESLAYOUT_LOAD, bLoad ) ); OUString aLayoutName; @@ -184,7 +184,7 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl) // Inserted update to force repaint Update(); - sal_Bool bCancel = sal_False; + bool bCancel = false; switch (nResult) { @@ -203,14 +203,14 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl) break; default: - bCancel = sal_True; + bCancel = true; } delete pDlg; if( !bCancel ) { // check if template already exists - sal_Bool bExists = sal_False; + bool bExists = false; OUString aCompareStr(maName); if (aCompareStr.isEmpty()) aCompareStr = maStrNone; @@ -221,7 +221,7 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl) { if( aCompareStr == *it ) { - bExists = sal_True; + bExists = true; // select template m_pVS->SelectItem( aPos + 1 ); } @@ -258,7 +258,7 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl) } else { - bCancel = sal_True; + bCancel = true; } pDoc->CloseBookmarkDoc(); diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 5849589de0af..f359b8a2618b 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -73,9 +73,9 @@ public: }; -sal_Bool SdPageObjsTLB::bIsInDrag = sal_False; +bool SdPageObjsTLB::bIsInDrag = false; -sal_Bool SdPageObjsTLB::IsInDrag() +bool SdPageObjsTLB::IsInDrag() { return bIsInDrag; } @@ -92,7 +92,7 @@ SdPageObjsTLB::SdPageObjsTransferable::SdPageObjsTransferable( ::sd::DrawDocShell& rDocShell, NavigatorDragType eDragType, const ::com::sun::star::uno::Any& rTreeListBoxData ) - : SdTransferable(rDocShell.GetDoc(), NULL, sal_True), + : SdTransferable(rDocShell.GetDoc(), NULL, true), mrParent( rParent ), maBookmark( rBookmark ), mrDocShell( rDocShell ), @@ -223,7 +223,7 @@ sal_uInt32 SdPageObjsTLB::SdPageObjsTransferable::GetListBoxDropFormatId (void) SdPageObjsTLB::SdPageObjsTLB( Window* pParentWin, const SdResId& rSdResId ) : SvTreeListBox ( pParentWin, rSdResId ) -, bisInSdNavigatorWin ( sal_False ) +, bisInSdNavigatorWin ( false ) , mpParent ( pParentWin ) , mpDoc ( NULL ) , mpBookmarkDoc ( NULL ) @@ -231,7 +231,7 @@ SdPageObjsTLB::SdPageObjsTLB( Window* pParentWin, const SdResId& rSdResId ) , mpOwnMedium ( NULL ) , maImgOle ( BitmapEx( SdResId( BMP_OLE ) ) ) , maImgGraphic ( BitmapEx( SdResId( BMP_GRAPHIC ) ) ) -, mbLinkableSelected ( sal_False ) +, mbLinkableSelected ( false ) , mpDropNavWin ( NULL ) , mpFrame ( NULL ) , mbSaveTreeItemState ( false ) @@ -262,7 +262,7 @@ SdPageObjsTLB::SdPageObjsTLB( Window* pParentWin, WinBits nStyle ) , mpOwnMedium ( NULL ) , maImgOle ( BitmapEx( SdResId( BMP_OLE ) ) ) , maImgGraphic ( BitmapEx( SdResId( BMP_GRAPHIC ) ) ) -, mbLinkableSelected ( sal_False ) +, mbLinkableSelected ( false ) , mpDropNavWin ( NULL ) , mpFrame ( NULL ) , mbSaveTreeItemState ( false ) @@ -294,7 +294,7 @@ SdPageObjsTLB::~SdPageObjsTLB() } // helper function for GetEntryAltText and GetEntryLongDescription -OUString SdPageObjsTLB::getAltLongDescText(SvTreeListEntry* pEntry , sal_Bool isAltText) const +OUString SdPageObjsTLB::getAltLongDescText(SvTreeListEntry* pEntry , bool isAltText) const { sal_uInt16 maxPages = mpDoc->GetPageCount(); sal_uInt16 pageNo; @@ -328,12 +328,12 @@ OUString SdPageObjsTLB::getAltLongDescText(SvTreeListEntry* pEntry , sal_Bool is OUString SdPageObjsTLB::GetEntryAltText( SvTreeListEntry* pEntry ) const { - return getAltLongDescText( pEntry, sal_True ); + return getAltLongDescText( pEntry, true ); } OUString SdPageObjsTLB::GetEntryLongDescription( SvTreeListEntry* pEntry ) const { - return getAltLongDescText( pEntry, sal_False); + return getAltLongDescText( pEntry, false); } void SdPageObjsTLB::MarkCurEntry( const OUString& rName ) @@ -462,9 +462,9 @@ OUString SdPageObjsTLB::GetObjectName( /** * select a entry in TreeLB */ -sal_Bool SdPageObjsTLB::SelectEntry( const OUString& rName ) +bool SdPageObjsTLB::SelectEntry( const OUString& rName ) { - sal_Bool bFound = sal_False; + bool bFound = false; if( !rName.isEmpty() ) { @@ -476,7 +476,7 @@ sal_Bool SdPageObjsTLB::SelectEntry( const OUString& rName ) aTmp = GetEntryText( pEntry ); if( aTmp == rName ) { - bFound = sal_True; + bFound = true; SetCurEntry( pEntry ); } } @@ -487,10 +487,10 @@ sal_Bool SdPageObjsTLB::SelectEntry( const OUString& rName ) /** * @return true if children of the specified string are selected */ -sal_Bool SdPageObjsTLB::HasSelectedChildren( const OUString& rName ) +bool SdPageObjsTLB::HasSelectedChildren( const OUString& rName ) { - sal_Bool bFound = sal_False; - sal_Bool bChildren = sal_False; + bool bFound = false; + bool bChildren = false; if( !rName.isEmpty() ) { @@ -502,11 +502,11 @@ sal_Bool SdPageObjsTLB::HasSelectedChildren( const OUString& rName ) aTmp = GetEntryText( pEntry ); if( aTmp == rName ) { - bFound = sal_True; - sal_Bool bExpanded = IsExpanded( pEntry ); + bFound = true; + bool bExpanded = IsExpanded( pEntry ); long nCount = GetChildSelectionCount( pEntry ); if( bExpanded && nCount > 0 ) - bChildren = sal_True; + bChildren = true; } } } @@ -517,7 +517,7 @@ sal_Bool SdPageObjsTLB::HasSelectedChildren( const OUString& rName ) /** * Fill TreeLB with pages and objects */ -void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, sal_Bool bAllPages, +void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, bool bAllPages, const OUString& rDocName) { OUString aSelection; @@ -529,7 +529,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, sal_Bool bAllPages, mpDoc = pInDoc; maDocName = rDocName; - mbShowAllPages = (bAllPages == sal_True); + mbShowAllPages = bAllPages; mpMedium = NULL; SdPage* pPage = NULL; @@ -634,7 +634,7 @@ void SdPageObjsTLB::AddShapeList ( IM_FLAT, false /*not reverse*/); - sal_Bool bMarked=sal_False; + bool bMarked=false; if(bisInSdNavigatorWin) { Window* pWindow=NULL; @@ -851,13 +851,13 @@ bool SdPageObjsTLB::GetShowAllShapes (void) const * If a doc is provided, this will be the used doc (important by more than * one document). */ -sal_Bool SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc ) +bool SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc ) { if( pInDoc ) mpDoc = pInDoc; if( !mpDoc ) - return( sal_False ); + return false; SdrObject* pObj = NULL; SdPage* pPage = NULL; @@ -874,11 +874,11 @@ sal_Bool SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc ) if( pPage->GetPageKind() == PK_STANDARD ) { if( !pEntry ) - return( sal_False ); + return false; aName = GetEntryText( pEntry ); if( pPage->GetName() != aName ) - return( sal_False ); + return false; pEntry = Next( pEntry ); @@ -896,12 +896,12 @@ sal_Bool SdPageObjsTLB::IsEqualToDoc( const SdDrawDocument* pInDoc ) if( !aObjectName.isEmpty() ) { if( !pEntry ) - return( sal_False ); + return false; aName = GetEntryText( pEntry ); if( aObjectName != aName ) - return( sal_False ); + return false; pEntry = Next( pEntry ); } @@ -1045,7 +1045,7 @@ SdDrawDocument* SdPageObjsTLB::GetBookmarkDoc(SfxMedium* pMed) if( pMed ) { // in this mode the document is also owned and controlled by this instance - mxBookmarkDocShRef = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD, sal_True); + mxBookmarkDocShRef = new ::sd::DrawDocShell(SFX_CREATE_MODE_STANDARD, true); if (mxBookmarkDocShRef->DoLoad(pMed)) mpBookmarkDoc = mxBookmarkDocShRef->GetDoc(); else @@ -1105,12 +1105,12 @@ void SdPageObjsTLB::SelectHdl() { SvTreeListEntry* pEntry = FirstSelected(); - mbLinkableSelected = sal_True; + mbLinkableSelected = true; while( pEntry && mbLinkableSelected ) { if( NULL == pEntry->GetUserData() ) - mbLinkableSelected = sal_False; + mbLinkableSelected = false; pEntry = NextSelected( pEntry ); } @@ -1141,7 +1141,7 @@ void SdPageObjsTLB::KeyInput( const KeyEvent& rKEvt ) { if(bisInSdNavigatorWin) { - sal_Bool bMarked=sal_False; + bool bMarked=false; SvTreeListEntry* pNewEntry = GetCurEntry(); if (!pNewEntry) return; @@ -1247,7 +1247,7 @@ void SdPageObjsTLB::DoDrag() SvTreeListBox::ReleaseMouse(); - bIsInDrag = sal_True; + bIsInDrag = true; SvLBoxDDInfo aDDInfo; memset(&aDDInfo,0,sizeof(SvLBoxDDInfo)); @@ -1324,7 +1324,7 @@ void SdPageObjsTLB::OnDragFinished( sal_uInt8 ) } mpDropNavWin = NULL; - bIsInDrag = sal_False; + bIsInDrag = false; } /** diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx index 78a8ef9a12b2..d0c5a65301b3 100644 --- a/sd/source/ui/dlg/tpaction.cxx +++ b/sd/source/ui/dlg/tpaction.cxx @@ -178,7 +178,7 @@ void SdTPAction::Construct() // fill OLE-Actionlistbox SdrOle2Obj* pOleObj = NULL; SdrGrafObj* pGrafObj = NULL; - sal_Bool bOLEAction = sal_False; + bool bOLEAction = false; if ( mpView->AreObjectsMarked() ) { @@ -205,7 +205,7 @@ void SdTPAction::Construct() } if( pGrafObj ) { - bOLEAction = sal_True; + bOLEAction = true; aVerbVector.push_back( 0 ); m_pLbOLEAction->InsertEntry( MnemonicGenerator::EraseAllMnemonicChars( SD_RESSTR( STR_EDIT_OBJ ) ) ); @@ -215,7 +215,7 @@ void SdTPAction::Construct() uno::Reference < embed::XEmbeddedObject > xObj = pOleObj->GetObjRef(); if ( xObj.is() ) { - bOLEAction = sal_True; + bOLEAction = true; uno::Sequence < embed::VerbDescriptor > aVerbs; try { @@ -267,7 +267,7 @@ void SdTPAction::Construct() bool SdTPAction::FillItemSet( SfxItemSet& rAttrs ) { - sal_Bool bModified = sal_False; + bool bModified = false; presentation::ClickAction eCA = presentation::ClickAction_NONE; if( m_pLbAction->GetSelectEntryCount() ) @@ -276,12 +276,12 @@ bool SdTPAction::FillItemSet( SfxItemSet& rAttrs ) if( m_pLbAction->GetSavedValue() != m_pLbAction->GetSelectEntryPos() ) { rAttrs.Put( SfxAllEnumItem( ATTR_ACTION, (sal_uInt16)eCA ) ); - bModified = sal_True; + bModified = true; } else rAttrs.InvalidateItem( ATTR_ACTION ); - OUString aFileName = GetEditText( sal_True ); + OUString aFileName = GetEditText( true ); if( aFileName.isEmpty() ) rAttrs.InvalidateItem( ATTR_ACTION_FILENAME ); else @@ -297,7 +297,7 @@ bool SdTPAction::FillItemSet( SfxItemSet& rAttrs ) INetURLObject::DECODE_UNAMBIGUOUS ); rAttrs.Put( SfxStringItem( ATTR_ACTION_FILENAME, aFileName ) ); - bModified = sal_True; + bModified = true; } else { @@ -388,8 +388,8 @@ void SdTPAction::UpdateTree() if( !bTreeUpdated && mpDoc && mpDoc->GetDocSh() && mpDoc->GetDocSh()->GetMedium() ) { //m_pLbTree->Clear(); - m_pLbTree->Fill( mpDoc, sal_True, mpDoc->GetDocSh()->GetMedium()->GetName() ); - bTreeUpdated = sal_True; + m_pLbTree->Fill( mpDoc, true, mpDoc->GetDocSh()->GetMedium()->GetName() ); + bTreeUpdated = true; } } @@ -399,11 +399,11 @@ void SdTPAction::OpenFileDialog() { // Soundpreview only for interaction with sound presentation::ClickAction eCA = GetActualClickAction(); - sal_Bool bSound = ( eCA == presentation::ClickAction_SOUND ); - sal_Bool bPage = ( eCA == presentation::ClickAction_BOOKMARK ); - sal_Bool bDocument = ( eCA == presentation::ClickAction_DOCUMENT || + bool bSound = ( eCA == presentation::ClickAction_SOUND ); + bool bPage = ( eCA == presentation::ClickAction_BOOKMARK ); + bool bDocument = ( eCA == presentation::ClickAction_DOCUMENT || eCA == presentation::ClickAction_PROGRAM ); - sal_Bool bMacro = ( eCA == presentation::ClickAction_MACRO ); + bool bMacro = ( eCA == presentation::ClickAction_MACRO ); if( bPage ) { @@ -700,7 +700,7 @@ IMPL_LINK_NOARG(SdTPAction, CheckFileHdl) aLastFile = aFile; m_pLbTreeDocument->Clear(); - m_pLbTreeDocument->Fill( pBookmarkDoc, sal_True, aFile ); + m_pLbTreeDocument->Fill( pBookmarkDoc, true, aFile ); mpDoc->CloseBookmarkDoc(); m_pLbTreeDocument->Show(); } @@ -806,7 +806,7 @@ void SdTPAction::SetEditText( OUString const & rStr ) -OUString SdTPAction::GetEditText( sal_Bool bFullDocDestination ) +OUString SdTPAction::GetEditText( bool bFullDocDestination ) { OUString aStr; presentation::ClickAction eCA = GetActualClickAction(); diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index b8c4a01a75d4..98b393784efa 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -138,7 +138,7 @@ SdTpOptionsContents::~SdTpOptionsContents() bool SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs ) { - sal_Bool bModified = sal_False; + bool bModified = false; if( m_pCbxRuler->GetSavedValue() != TriState(m_pCbxRuler->IsChecked()) || m_pCbxMoveOutline->GetSavedValue() != TriState(m_pCbxMoveOutline->IsChecked()) || @@ -153,7 +153,7 @@ bool SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs ) aOptsItem.GetOptionsLayout().SetHandlesBezier( m_pCbxHandlesBezier->IsChecked() ); rAttrs.Put( aOptsItem ); - bModified = sal_True; + bModified = true; } return( bModified ); } @@ -366,7 +366,7 @@ int SdTpOptionsMisc::DeactivatePage( SfxItemSet* pActiveSet ) bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs ) { - sal_Bool bModified = sal_False; + bool bModified = false; if( m_pCbxStartWithTemplate->GetSavedValue() != TriState(m_pCbxStartWithTemplate->IsChecked()) || m_pCbxMarkedHitMovesAlways->GetSavedValue()!= TriState(m_pCbxMarkedHitMovesAlways->IsChecked()) || @@ -396,7 +396,7 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs ) : ::com::sun::star::document::PrinterIndependentLayout::ENABLED); rAttrs.Put( aOptsItem ); - bModified = sal_True; + bModified = true; } // metric @@ -406,7 +406,7 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs ) sal_uInt16 nFieldUnit = (sal_uInt16)(sal_IntPtr)m_pLbMetric->GetEntryData( nMPos ); rAttrs.Put( SfxUInt16Item( GetWhich( SID_ATTR_METRIC ), (sal_uInt16)nFieldUnit ) ); - bModified |= sal_True; + bModified = true; } // tabulator space @@ -416,7 +416,7 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs ) SfxMapUnit eUnit = rAttrs.GetPool()->GetMetric( nWh ); SfxUInt16Item aDef( nWh,(sal_uInt16)GetCoreValue( *m_pMtrFldTabstop, eUnit ) ); rAttrs.Put( aDef ); - bModified |= sal_True; + bModified = true; } sal_Int32 nX, nY; @@ -425,7 +425,7 @@ bool SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs ) rAttrs.Put( SfxInt32Item( ATTR_OPTIONS_SCALE_X, nX ) ); rAttrs.Put( SfxInt32Item( ATTR_OPTIONS_SCALE_Y, nY ) ); - bModified = sal_True; + bModified = true; } return( bModified ); @@ -577,35 +577,35 @@ OUString SdTpOptionsMisc::GetScale( sal_Int32 nX, sal_Int32 nY ) -sal_Bool SdTpOptionsMisc::SetScale( const OUString& aScale, sal_Int32& rX, sal_Int32& rY ) +bool SdTpOptionsMisc::SetScale( const OUString& aScale, sal_Int32& rX, sal_Int32& rY ) { if( comphelper::string::getTokenCount(aScale, TOKEN) != 2 ) - return( sal_False ); + return false; OUString aTmp(aScale.getToken(0, TOKEN)); if (!comphelper::string::isdigitAsciiString(aTmp)) - return sal_False; + return false; rX = (long) aTmp.toInt32(); if( rX == 0 ) - return( sal_False ); + return false; aTmp = aScale.getToken(1, TOKEN); if (!comphelper::string::isdigitAsciiString(aTmp)) - return sal_False; + return false; rY = (long) aTmp.toInt32(); if( rY == 0 ) - return sal_False; + return false; - return sal_True; + return true; } void SdTpOptionsMisc::UpdateCompatibilityControls (void) { // Disable the compatibility controls by default. Enable them only when // there is at least one open document. - sal_Bool bIsEnabled = sal_False; + bool bIsEnabled = false; try { @@ -631,7 +631,7 @@ void SdTpOptionsMisc::UpdateCompatibilityControls (void) if (xModel.is()) { // There is at leas one model/document: Enable the compatibility controls. - bIsEnabled = sal_True; + bIsEnabled = true; break; } } diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx index 6fdab807f8de..8026286bc483 100644 --- a/sd/source/ui/dlg/vectdlg.cxx +++ b/sd/source/ui/dlg/vectdlg.cxx @@ -303,19 +303,19 @@ void SdVectorizeDlg::LoadSettings() sal_uInt16 nLayers; sal_uInt16 nReduce; sal_uInt16 nFillHoles; - sal_Bool bFillHoles; + bool bFillHoles; if( xIStm.Is() ) { SdIOCompat aCompat( *xIStm, STREAM_READ ); - xIStm->ReadUInt16( nLayers ).ReadUInt16( nReduce ).ReadUInt16( nFillHoles ).ReadUChar( bFillHoles ); + xIStm->ReadUInt16( nLayers ).ReadUInt16( nReduce ).ReadUInt16( nFillHoles ).ReadCharAsBool( bFillHoles ); } else { nLayers = 8; nReduce = 0; nFillHoles = 32; - bFillHoles = sal_False; + bFillHoles = false; } m_pNmLayers->SetValue( nLayers ); diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index d16eef4e4a1a..3f97097fd14c 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -284,7 +284,7 @@ Bitmap DrawDocShell::GetPagePreviewBitmap(SdPage* pPage, sal_uInt16 nMaxEdgePixe * name. * @return sal_False if the user cancels the action. */ -sal_Bool DrawDocShell::CheckPageName (::Window* pWin, OUString& rName ) +bool DrawDocShell::CheckPageName (::Window* pWin, OUString& rName ) { const OUString aStrForDlg( rName ); bool bIsNameValid = IsNewPageNameValid( rName, true ); @@ -403,7 +403,7 @@ bool DrawDocShell::IsNewPageNameValid( OUString & rInOutPageName, bool bResetStr { if (!rInOutPageName.isEmpty()) { - sal_Bool bOutDummy; + bool bOutDummy; sal_uInt16 nExistingPageNum = mpDoc->GetPageByName( rInOutPageName, bOutDummy ); bCanUseNewName = ( nExistingPageNum == SDRPAGE_NOTFOUND ); } diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx index cd45b39d2320..e03d55677e4d 100644 --- a/sd/source/ui/docshell/docshel3.cxx +++ b/sd/source/ui/docshell/docshel3.cxx @@ -257,7 +257,7 @@ void DrawDocShell::Execute( SfxRequest& rReq ) if( mpViewShell ) { rtl::Reference<FuPoor> aFunc( FuHangulHanjaConversion::Create( mpViewShell, mpViewShell->GetActiveWindow(), mpViewShell->GetView(), mpDoc, rReq ) ); - static_cast< FuHangulHanjaConversion* >( aFunc.get() )->StartConversion( LANGUAGE_KOREAN, LANGUAGE_KOREAN, NULL, i18n::TextConversionOption::CHARACTER_BY_CHARACTER, sal_True ); + static_cast< FuHangulHanjaConversion* >( aFunc.get() )->StartConversion( LANGUAGE_KOREAN, LANGUAGE_KOREAN, NULL, i18n::TextConversionOption::CHARACTER_BY_CHARACTER, true ); } } break; diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index f929483077cc..b61aa4582ede 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -86,7 +86,7 @@ namespace sd { /** * Creates (if necessary) and returns a SfxPrinter */ -SfxPrinter* DrawDocShell::GetPrinter(sal_Bool bCreate) +SfxPrinter* DrawDocShell::GetPrinter(bool bCreate) { if (bCreate && !mpPrinter) { @@ -111,7 +111,7 @@ SfxPrinter* DrawDocShell::GetPrinter(sal_Bool bCreate) pSet->Put( aFlagItem ); mpPrinter = new SfxPrinter(pSet); - mbOwnPrinter = sal_True; + mbOwnPrinter = true; // set output quality sal_uInt16 nQuality = aPrintItem.GetOptionsPrint().GetOutputQuality(); @@ -151,7 +151,7 @@ void DrawDocShell::SetPrinter(SfxPrinter *pNewPrinter) } mpPrinter = pNewPrinter; - mbOwnPrinter = sal_True; + mbOwnPrinter = true; if ( mpDoc->GetPrinterIndependentLayout() == ::com::sun::star::document::PrinterIndependentLayout::DISABLED ) UpdateFontList(); UpdateRefDevice(); @@ -162,7 +162,7 @@ void DrawDocShell::UpdateFontList() delete mpFontList; OutputDevice* pRefDevice = NULL; if ( mpDoc->GetPrinterIndependentLayout() == ::com::sun::star::document::PrinterIndependentLayout::DISABLED ) - pRefDevice = GetPrinter(sal_True); + pRefDevice = GetPrinter(true); else pRefDevice = SD_MOD()->GetVirtualRefDevice(); mpFontList = new FontList( pRefDevice, NULL, false ); @@ -172,7 +172,7 @@ void DrawDocShell::UpdateFontList() Printer* DrawDocShell::GetDocumentPrinter() { - return GetPrinter(sal_False); + return GetPrinter(false); } void DrawDocShell::OnDocumentPrinterChanged(Printer* pNewPrinter) @@ -196,7 +196,7 @@ void DrawDocShell::OnDocumentPrinterChanged(Printer* pNewPrinter) SetPrinter((SfxPrinter*) pNewPrinter); // container owns printer - mbOwnPrinter = sal_False; + mbOwnPrinter = false; } } @@ -227,12 +227,12 @@ void DrawDocShell::UpdateRefDevice() } mpDoc->SetRefDevice( pRefDevice ); - ::sd::Outliner* pOutl = mpDoc->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = mpDoc->GetOutliner( false ); if( pOutl ) pOutl->SetRefDevice( pRefDevice ); - ::sd::Outliner* pInternalOutl = mpDoc->GetInternalOutliner( sal_False ); + ::sd::Outliner* pInternalOutl = mpDoc->GetInternalOutliner( false ); if( pInternalOutl ) pInternalOutl->SetRefDevice( pRefDevice ); @@ -264,9 +264,9 @@ bool DrawDocShell::InitNew( const ::com::sun::star::uno::Reference< ::com::sun:: */ bool DrawDocShell::Load( SfxMedium& rMedium ) { - mbNewDocument = sal_False; + mbNewDocument = false; - sal_Bool bRet = sal_False; + bool bRet = false; bool bStartPresentation = false; ErrCode nError = ERRCODE_NONE; @@ -291,7 +291,7 @@ bool DrawDocShell::Load( SfxMedium& rMedium ) bRet = SfxObjectShell::Load( rMedium ); if( bRet ) { - bRet = SdXMLFilter( rMedium, *this, sal_True, SDXMLMODE_Normal, SotStorage::GetVersion( rMedium.GetStorage() ) ).Import( nError ); + bRet = SdXMLFilter( rMedium, *this, true, SDXMLMODE_Normal, SotStorage::GetVersion( rMedium.GetStorage() ) ).Import( nError ); } if( bRet ) @@ -343,7 +343,7 @@ bool DrawDocShell::Load( SfxMedium& rMedium ) */ bool DrawDocShell::LoadFrom( SfxMedium& rMedium ) { - mbNewDocument = sal_False; + mbNewDocument = false; WaitObject* pWait = NULL; if( mpViewShell ) @@ -355,7 +355,7 @@ bool DrawDocShell::LoadFrom( SfxMedium& rMedium ) // TODO/LATER: nobody is interested in the error code?! ErrCode nError = ERRCODE_NONE; - bool bRet = SdXMLFilter( rMedium, *this, sal_True, SDXMLMODE_Organizer, SotStorage::GetVersion( rMedium.GetStorage() ) ).Import( nError ); + bool bRet = SdXMLFilter( rMedium, *this, true, SDXMLMODE_Organizer, SotStorage::GetVersion( rMedium.GetStorage() ) ).Import( nError ); // tell SFX to change viewshell when in preview mode @@ -378,7 +378,7 @@ bool DrawDocShell::LoadFrom( SfxMedium& rMedium ) bool DrawDocShell::ImportFrom(SfxMedium &rMedium, uno::Reference<text::XTextRange> const& xInsertPosition) { - const sal_Bool bRet = SfxObjectShell::ImportFrom(rMedium, xInsertPosition); + const bool bRet = SfxObjectShell::ImportFrom(rMedium, xInsertPosition); SfxItemSet* pSet = rMedium.GetItemSet(); if( pSet ) @@ -406,7 +406,7 @@ bool DrawDocShell::ImportFrom(SfxMedium &rMedium, */ bool DrawDocShell::ConvertFrom( SfxMedium& rMedium ) { - mbNewDocument = sal_False; + mbNewDocument = false; const OUString aFilterName( rMedium.GetFilter()->GetFilterName() ); bool bRet = false; @@ -435,7 +435,7 @@ bool DrawDocShell::ConvertFrom( SfxMedium& rMedium ) || aFilterName == pFilterPowerPoint97AutoPlay) { mpDoc->StopWorkStartupDelay(); - bRet = SdPPTFilter( rMedium, *this, sal_True ).Import(); + bRet = SdPPTFilter( rMedium, *this, true ).Import(); } else if (aFilterName.indexOf("impress8") >= 0 || aFilterName.indexOf("draw8") >= 0) @@ -444,7 +444,7 @@ bool DrawDocShell::ConvertFrom( SfxMedium& rMedium ) mpDoc->CreateFirstPages(); mpDoc->StopWorkStartupDelay(); ErrCode nError = ERRCODE_NONE; - bRet = SdXMLFilter( rMedium, *this, sal_True ).Import( nError ); + bRet = SdXMLFilter( rMedium, *this, true ).Import( nError ); } else if (aFilterName.indexOf("StarOffice XML (Draw)") >= 0 || @@ -454,13 +454,13 @@ bool DrawDocShell::ConvertFrom( SfxMedium& rMedium ) mpDoc->CreateFirstPages(); mpDoc->StopWorkStartupDelay(); ErrCode nError = ERRCODE_NONE; - bRet = SdXMLFilter( rMedium, *this, sal_True, SDXMLMODE_Normal, SOFFICE_FILEFORMAT_60 ).Import( nError ); + bRet = SdXMLFilter( rMedium, *this, true, SDXMLMODE_Normal, SOFFICE_FILEFORMAT_60 ).Import( nError ); } else if( aFilterName.equals( "CGM - Computer Graphics Metafile" ) ) { mpDoc->CreateFirstPages(); mpDoc->StopWorkStartupDelay(); - bRet = SdCGMFilter( rMedium, *this, sal_True ).Import(); + bRet = SdCGMFilter( rMedium, *this, true ).Import(); } else { @@ -510,7 +510,7 @@ bool DrawDocShell::Save() // Call UpdateDocInfoForSave() before export UpdateDocInfoForSave(); - bRet = SdXMLFilter( *GetMedium(), *this, sal_True, SDXMLMODE_Normal, SotStorage::GetVersion( GetMedium()->GetStorage() ) ).Export(); + bRet = SdXMLFilter( *GetMedium(), *this, true, SDXMLMODE_Normal, SotStorage::GetVersion( GetMedium()->GetStorage() ) ).Export(); } return bRet; @@ -548,7 +548,7 @@ bool DrawDocShell::SaveAs( SfxMedium& rMedium ) { // Call UpdateDocInfoForSave() before export UpdateDocInfoForSave(); - bRet = SdXMLFilter( rMedium, *this, sal_True, SDXMLMODE_Normal, SotStorage::GetVersion( rMedium.GetStorage() ) ).Export(); + bRet = SdXMLFilter( rMedium, *this, true, SDXMLMODE_Normal, SotStorage::GetVersion( rMedium.GetStorage() ) ).Export(); } if( GetError() == ERRCODE_NONE ) @@ -572,27 +572,27 @@ bool DrawDocShell::ConvertTo( SfxMedium& rMedium ) if( aTypeName.indexOf( "graphic_HTML" ) >= 0 ) { - pFilter = new SdHTMLFilter( rMedium, *this, sal_True ); + pFilter = new SdHTMLFilter( rMedium, *this, true ); } else if( aTypeName.indexOf( "MS_PowerPoint_97" ) >= 0 ) { - pFilter = new SdPPTFilter( rMedium, *this, sal_True ); + pFilter = new SdPPTFilter( rMedium, *this, true ); ((SdPPTFilter*)pFilter)->PreSaveBasic(); } else if ( aTypeName.indexOf( "CGM_Computer_Graphics_Metafile" ) >= 0 ) { - pFilter = new SdCGMFilter( rMedium, *this, sal_True ); + pFilter = new SdCGMFilter( rMedium, *this, true ); } else if( aTypeName.indexOf( "draw8" ) >= 0 || aTypeName.indexOf( "impress8" ) >= 0 ) { - pFilter = new SdXMLFilter( rMedium, *this, sal_True ); + pFilter = new SdXMLFilter( rMedium, *this, true ); UpdateDocInfoForSave(); } else if( aTypeName.indexOf( "StarOffice_XML_Impress" ) >= 0 || aTypeName.indexOf( "StarOffice_XML_Draw" ) >= 0 ) { - pFilter = new SdXMLFilter( rMedium, *this, sal_True, SDXMLMODE_Normal, SOFFICE_FILEFORMAT_60 ); + pFilter = new SdXMLFilter( rMedium, *this, true, SDXMLMODE_Normal, SOFFICE_FILEFORMAT_60 ); UpdateDocInfoForSave(); } else @@ -627,7 +627,7 @@ bool DrawDocShell::SaveCompleted( const ::com::sun::star::uno::Reference< ::com: if( SfxObjectShell::SaveCompleted(xStorage) ) { - mpDoc->NbcSetChanged( sal_False ); + mpDoc->NbcSetChanged( false ); if( mpViewShell ) { @@ -668,16 +668,16 @@ SfxStyleSheetBasePool* DrawDocShell::GetStyleSheetPool() return( (SfxStyleSheetBasePool*) mpDoc->GetStyleSheetPool() ); } -sal_Bool DrawDocShell::GotoBookmark(const OUString& rBookmark) +bool DrawDocShell::GotoBookmark(const OUString& rBookmark) { - sal_Bool bFound = sal_False; + bool bFound = false; if (mpViewShell && mpViewShell->ISA(DrawViewShell)) { DrawViewShell* pDrawViewShell = static_cast<DrawViewShell*>(mpViewShell); ViewShellBase& rBase (mpViewShell->GetViewShellBase()); - sal_Bool bIsMasterPage = sal_False; + bool bIsMasterPage = false; sal_uInt16 nPageNumber = SDRPAGE_NOTFOUND; SdrObject* pObj = NULL; @@ -734,7 +734,7 @@ sal_Bool DrawDocShell::GotoBookmark(const OUString& rBookmark) { // Jump to the bookmarked page. This is done in three steps. - bFound = sal_True; + bFound = true; SdPage* pPage; if (bIsMasterPage) pPage = (SdPage*) mpDoc->GetMasterPage(nPageNumber); @@ -746,7 +746,7 @@ sal_Bool DrawDocShell::GotoBookmark(const OUString& rBookmark) PageKind eNewPageKind = pPage->GetPageKind(); if( (eNewPageKind != PK_STANDARD) && (mpDoc->GetDocumentType() == DOCUMENT_TYPE_DRAW) ) - return sal_False; + return false; if (eNewPageKind != pDrawViewShell->GetPageKind()) { @@ -846,11 +846,11 @@ sal_Bool DrawDocShell::GotoBookmark(const OUString& rBookmark) } //If object is marked , return true , else return false . -sal_Bool DrawDocShell::IsMarked( SdrObject* pObject ) +bool DrawDocShell::IsMarked( SdrObject* pObject ) { - sal_Bool bisMarked =sal_False; + bool bisMarked =false; - if (mpViewShell && mpViewShell->ISA(DrawViewShell)) + if (mpViewShell && mpViewShell->ISA(DrawViewShell)) { DrawViewShell* pDrViewSh = (DrawViewShell*) mpViewShell; if (pObject ) @@ -860,12 +860,13 @@ sal_Bool DrawDocShell::IsMarked( SdrObject* pObject ) } return bisMarked; } + //If object is marked , return true , else return false . -sal_Bool DrawDocShell::GetObjectIsmarked(const OUString& rBookmark) +bool DrawDocShell::GetObjectIsmarked(const OUString& rBookmark) { OSL_TRACE("GotoBookmark %s", OUStringToOString(rBookmark, RTL_TEXTENCODING_UTF8).getStr()); - sal_Bool bUnMark = sal_False; + bool bUnMark = false; if (mpViewShell && mpViewShell->ISA(DrawViewShell)) { @@ -877,8 +878,8 @@ sal_Bool DrawDocShell::GetObjectIsmarked(const OUString& rBookmark) aBookmark = rBookmark.copy( 1 ); // Ist das Bookmark eine Seite? - sal_Bool bIsMasterPage; - sal_uInt16 nPgNum = mpDoc->GetPageByName( aBookmark, bIsMasterPage ); + bool bIsMasterPage; + sal_uInt16 nPgNum = mpDoc->GetPageByName( aBookmark, bIsMasterPage ); SdrObject* pObj = NULL; if (nPgNum == SDRPAGE_NOTFOUND) @@ -967,11 +968,11 @@ sal_Bool DrawDocShell::GetObjectIsmarked(const OUString& rBookmark) return ( bUnMark); } //realize multi-selection of objects -sal_Bool DrawDocShell::GotoTreeBookmark(const OUString& rBookmark) +bool DrawDocShell::GotoTreeBookmark(const OUString& rBookmark) { OSL_TRACE("GotoBookmark %s", OUStringToOString(rBookmark, RTL_TEXTENCODING_UTF8).getStr()); - sal_Bool bFound = sal_False; + bool bFound = false; if (mpViewShell && mpViewShell->ISA(DrawViewShell)) { @@ -983,8 +984,8 @@ sal_Bool DrawDocShell::GotoTreeBookmark(const OUString& rBookmark) aBookmark = rBookmark.copy( 1 ); // Ist das Bookmark eine Seite? - sal_Bool bIsMasterPage; - sal_uInt16 nPgNum = mpDoc->GetPageByName( aBookmark, bIsMasterPage ); + bool bIsMasterPage; + sal_uInt16 nPgNum = mpDoc->GetPageByName( aBookmark, bIsMasterPage ); SdrObject* pObj = NULL; if (nPgNum == SDRPAGE_NOTFOUND) @@ -1003,7 +1004,7 @@ sal_Bool DrawDocShell::GotoTreeBookmark(const OUString& rBookmark) /********************************************************** * Zur Seite springen **********************************************************/ - bFound = sal_True; + bFound = true; SdPage* pPage = (SdPage*) mpDoc->GetPage(nPgNum); PageKind eNewPageKind = pPage->GetPageKind(); @@ -1062,7 +1063,7 @@ sal_Bool DrawDocShell::GotoTreeBookmark(const OUString& rBookmark) // Objekt einblenden und selektieren pDrViewSh->MakeVisible(pObj->GetLogicRect(), *pDrViewSh->GetActiveWindow()); - sal_Bool bUnMark = pDrViewSh->GetView()->IsObjMarked(pObj); + bool bUnMark = pDrViewSh->GetView()->IsObjMarked(pObj); pDrViewSh->GetView()->MarkObj(pObj, pDrViewSh->GetView()->GetSdrPageView(), bUnMark); } } @@ -1222,7 +1223,7 @@ const OUString DrawDocShell::getDocAccTitle() const return sRet; } -void DrawDocShell::setDocReadOnly( sal_Bool bReadOnly) +void DrawDocShell::setDocReadOnly( bool bReadOnly) { if (mpDoc ) { @@ -1230,14 +1231,14 @@ void DrawDocShell::setDocReadOnly( sal_Bool bReadOnly) } } -sal_Bool DrawDocShell::getDocReadOnly() const +bool DrawDocShell::getDocReadOnly() const { if (mpDoc) { return mpDoc->getDocReadOnly(); } - return sal_False; + return false; } } // end of namespace sd diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 7becd842e230..5750387505cd 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -95,7 +95,7 @@ SFX_IMPL_OBJECTFACTORY( void DrawDocShell::Construct( bool bClipboard ) { - mbInDestruction = sal_False; + mbInDestruction = false; SetSlotFilter(); // setzt Filter zurueck mbOwnDocument = mpDoc == 0; @@ -116,7 +116,7 @@ void DrawDocShell::Construct( bool bClipboard ) } DrawDocShell::DrawDocShell(SfxObjectCreateMode eMode, - sal_Bool bDataObject, + bool bDataObject, DocumentType eDocumentType) : SfxObjectShell( eMode == SFX_CREATE_MODE_INTERNAL ? SFX_CREATE_MODE_EMBEDDED : eMode), mpDoc(NULL), @@ -127,13 +127,13 @@ DrawDocShell::DrawDocShell(SfxObjectCreateMode eMode, meDocType(eDocumentType), mpFilterSIDs(0), mbSdDataObj(bDataObject), - mbOwnPrinter(sal_False), - mbNewDocument( sal_True ) + mbOwnPrinter(false), + mbNewDocument( true ) { Construct( eMode == SFX_CREATE_MODE_INTERNAL ); } -DrawDocShell::DrawDocShell( const sal_uInt64 nModelCreationFlags, sal_Bool bDataObject, DocumentType eDocumentType ) : +DrawDocShell::DrawDocShell( const sal_uInt64 nModelCreationFlags, bool bDataObject, DocumentType eDocumentType ) : SfxObjectShell( nModelCreationFlags ), mpDoc(NULL), mpUndoManager(NULL), @@ -143,14 +143,14 @@ DrawDocShell::DrawDocShell( const sal_uInt64 nModelCreationFlags, sal_Bool bData meDocType(eDocumentType), mpFilterSIDs(0), mbSdDataObj(bDataObject), - mbOwnPrinter(sal_False), - mbNewDocument( sal_True ) + mbOwnPrinter(false), + mbNewDocument( true ) { Construct( false ); } DrawDocShell::DrawDocShell(SdDrawDocument* pDoc, SfxObjectCreateMode eMode, - sal_Bool bDataObject, + bool bDataObject, DocumentType eDocumentType) : SfxObjectShell(eMode == SFX_CREATE_MODE_INTERNAL ? SFX_CREATE_MODE_EMBEDDED : eMode), mpDoc(pDoc), @@ -161,8 +161,8 @@ DrawDocShell::DrawDocShell(SdDrawDocument* pDoc, SfxObjectCreateMode eMode, meDocType(eDocumentType), mpFilterSIDs(0), mbSdDataObj(bDataObject), - mbOwnPrinter(sal_False), - mbNewDocument( sal_True ) + mbOwnPrinter(false), + mbNewDocument( true ) { Construct( eMode == SFX_CREATE_MODE_INTERNAL ); } @@ -175,7 +175,7 @@ DrawDocShell::~DrawDocShell() // may be useful in other places as well. Broadcast(SfxSimpleHint(SFX_HINT_DYING)); - mbInDestruction = sal_True; + mbInDestruction = true; SetDocShellFunction(0); @@ -225,7 +225,7 @@ void DrawDocShell::GetState(SfxItemSet &rSet) case SID_CLOSEDOC: { - sal_Bool bDisabled = sal_False; + bool bDisabled = false; if (bDisabled) { rSet.DisableItem(SID_CLOSEDOC); diff --git a/sd/source/ui/docshell/grdocsh.cxx b/sd/source/ui/docshell/grdocsh.cxx index 5a0b821addae..8f095f4cf1e8 100644 --- a/sd/source/ui/docshell/grdocsh.cxx +++ b/sd/source/ui/docshell/grdocsh.cxx @@ -54,7 +54,7 @@ void GraphicDocShell::InitInterface_Impl() SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SFXOBJECTSHELL_STD_NORMAL, "sdraw" ) GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode, - sal_Bool bDataObject, + bool bDataObject, DocumentType eDocType) : DrawDocShell(eMode, bDataObject, eDocType) { @@ -62,7 +62,7 @@ GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode, } GraphicDocShell::GraphicDocShell(const sal_uInt64 nModelCreationFlags, - sal_Bool bDataObject, + bool bDataObject, DocumentType eDocType) : DrawDocShell(nModelCreationFlags, bDataObject, eDocType) { diff --git a/sd/source/ui/docshell/sdclient.cxx b/sd/source/ui/docshell/sdclient.cxx index abda2f4eb764..c75be23db533 100644 --- a/sd/source/ui/docshell/sdclient.cxx +++ b/sd/source/ui/docshell/sdclient.cxx @@ -63,8 +63,8 @@ void Client::RequestNewObjectArea( Rectangle& aObjRect ) { ::sd::View* pView = mpViewShell->GetView(); - sal_Bool bSizeProtect = sal_False; - sal_Bool bPosProtect = sal_False; + bool bSizeProtect = false; + bool bPosProtect = false; const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); if (rMarkList.GetMarkCount() == 1) diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx index 51c943e198f8..f4842cb3f4ee 100644 --- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx +++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx @@ -218,7 +218,7 @@ sal_Bool SAL_CALL ViewShellWrapper::relocateToAnchor ( const Reference<XResource>& xResource) throw (RuntimeException, std::exception) { - sal_Bool bResult (false); + bool bResult (false); Reference<XPane> xPane (xResource, UNO_QUERY); if (xPane.is()) @@ -234,7 +234,7 @@ sal_Bool SAL_CALL ViewShellWrapper::relocateToAnchor ( ::Window* pWindow = VCLUnoHelper::GetWindow(xPane->getWindow()); if (pWindow != NULL && mpViewShell->RelocateToParentWindow(pWindow)) { - bResult = sal_True; + bResult = true; // Attach to the window of the new pane. xWindow = Reference<awt::XWindow>(xPane->getWindow(), UNO_QUERY); diff --git a/sd/source/ui/framework/module/ResourceManager.cxx b/sd/source/ui/framework/module/ResourceManager.cxx index 9c780e0b6821..82e7588aa2b1 100644 --- a/sd/source/ui/framework/module/ResourceManager.cxx +++ b/sd/source/ui/framework/module/ResourceManager.cxx @@ -103,7 +103,7 @@ void ResourceManager::AddActiveMainView ( mpActiveMainViewContainer->insert(rsMainViewURL); } -sal_Bool ResourceManager::IsResourceActive ( +bool ResourceManager::IsResourceActive ( const OUString& rsMainViewURL) { return (mpActiveMainViewContainer->find(rsMainViewURL) != mpActiveMainViewContainer->end()); diff --git a/sd/source/ui/framework/module/ResourceManager.hxx b/sd/source/ui/framework/module/ResourceManager.hxx index 4c818dd5a666..b7a321b3d73f 100644 --- a/sd/source/ui/framework/module/ResourceManager.hxx +++ b/sd/source/ui/framework/module/ResourceManager.hxx @@ -60,7 +60,7 @@ public: activate the resource managed by the called object. */ void AddActiveMainView (const OUString& rsMainViewURL); - sal_Bool IsResourceActive (const OUString& rsMainViewURL); + bool IsResourceActive (const OUString& rsMainViewURL); virtual void SaveResourceState (void); virtual void SAL_CALL disposing (void) SAL_OVERRIDE; diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index 2fde69849f67..8c6fd275ff04 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -612,7 +612,7 @@ void FrameworkHelper::HandleModeChangeSlot ( sal_uLong nSlotId, SfxRequest& rRequest) { - sal_Bool bIsActive = sal_True; + bool bIsActive = true; if ( ! mxConfigurationController.is()) return; diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx index caa7043ef759..95e9e913a459 100644 --- a/sd/source/ui/func/fubullet.cxx +++ b/sd/source/ui/func/fubullet.cxx @@ -307,7 +307,7 @@ void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFra const bool bTextEdit = pOLV; SvtCTLOptions aCTLOptions; - const sal_Bool bCtlEnabled = aCTLOptions.IsCTLFontEnabled(); + const bool bCtlEnabled = aCTLOptions.IsCTLFontEnabled(); if(!bTextEdit ) { diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx index de697f83778a..c77d680ff1af 100644 --- a/sd/source/ui/func/fucon3d.cxx +++ b/sd/source/ui/func/fucon3d.cxx @@ -300,9 +300,9 @@ void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject* p3DObj, E3dS pScene->SetMergedItemSetAndBroadcast(aAttr); } -sal_Bool FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); + bool bReturn = FuConstruct::MouseButtonDown(rMEvt); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { @@ -339,20 +339,20 @@ sal_Bool FuConstruct3dObject::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuConstruct3dObject::MouseMove(const MouseEvent& rMEvt) +bool FuConstruct3dObject::MouseMove(const MouseEvent& rMEvt) { return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) +bool FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if ( mpView->IsCreateObj() && rMEvt.IsLeft() ) { mpView->EndCreateObj(SDRCREATE_FORCEEND); - bReturn = sal_True; + bReturn = true; } bReturn = FuConstruct::MouseButtonUp(rMEvt) || bReturn; @@ -367,9 +367,9 @@ sal_Bool FuConstruct3dObject::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstruct3dObject::KeyInput(const KeyEvent& rKEvt) +bool FuConstruct3dObject::KeyInput(const KeyEvent& rKEvt) { - return( FuConstruct::KeyInput(rKEvt) ); + return FuConstruct::KeyInput(rKEvt); } diff --git a/sd/source/ui/func/fuconarc.cxx b/sd/source/ui/func/fuconarc.cxx index fc7808abade8..ca77fbe122d8 100644 --- a/sd/source/ui/func/fuconarc.cxx +++ b/sd/source/ui/func/fuconarc.cxx @@ -104,9 +104,9 @@ void FuConstructArc::DoExecute( SfxRequest& rReq ) } -sal_Bool FuConstructArc::MouseButtonDown( const MouseEvent& rMEvt ) +bool FuConstructArc::MouseButtonDown( const MouseEvent& rMEvt ) { - sal_Bool bReturn = FuConstruct::MouseButtonDown( rMEvt ); + bool bReturn = FuConstruct::MouseButtonDown( rMEvt ); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { @@ -125,22 +125,22 @@ sal_Bool FuConstructArc::MouseButtonDown( const MouseEvent& rMEvt ) pObj->SetMergedItemSet(aAttr); } - bReturn = sal_True; + bReturn = true; } return bReturn; } -sal_Bool FuConstructArc::MouseMove( const MouseEvent& rMEvt ) +bool FuConstructArc::MouseMove( const MouseEvent& rMEvt ) { return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstructArc::MouseButtonUp( const MouseEvent& rMEvt ) +bool FuConstructArc::MouseButtonUp( const MouseEvent& rMEvt ) { - sal_Bool bReturn = sal_False; - sal_Bool bCreated = sal_False; + bool bReturn = false; + bool bCreated = false; if ( mpView->IsCreateObj() && rMEvt.IsLeft() ) { @@ -150,11 +150,11 @@ sal_Bool FuConstructArc::MouseButtonUp( const MouseEvent& rMEvt ) { if (nCount != mpView->GetSdrPageView()->GetObjList()->GetObjCount()) { - bCreated = sal_True; + bCreated = true; } } - bReturn = sal_True; + bReturn = true; } bReturn = FuConstruct::MouseButtonUp (rMEvt) || bReturn; @@ -169,10 +169,9 @@ sal_Bool FuConstructArc::MouseButtonUp( const MouseEvent& rMEvt ) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstructArc::KeyInput(const KeyEvent& rKEvt) +bool FuConstructArc::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = FuConstruct::KeyInput(rKEvt); - return(bReturn); + return FuConstruct::KeyInput(rKEvt); } diff --git a/sd/source/ui/func/fuconbez.cxx b/sd/source/ui/func/fuconbez.cxx index 59b6f057d09d..b61fc5d2ca4e 100644 --- a/sd/source/ui/func/fuconbez.cxx +++ b/sd/source/ui/func/fuconbez.cxx @@ -89,9 +89,9 @@ void FuConstructBezierPolygon::DoExecute( SfxRequest& rReq ) } -sal_Bool FuConstructBezierPolygon::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstructBezierPolygon::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); + bool bReturn = FuConstruct::MouseButtonDown(rMEvt); SdrViewEvent aVEvt; SdrHitKind eHit = mpView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); @@ -139,17 +139,16 @@ sal_Bool FuConstructBezierPolygon::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuConstructBezierPolygon::MouseMove(const MouseEvent& rMEvt) +bool FuConstructBezierPolygon::MouseMove(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseMove(rMEvt); - return(bReturn); + return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstructBezierPolygon::MouseButtonUp(const MouseEvent& rMEvt ) +bool FuConstructBezierPolygon::MouseButtonUp(const MouseEvent& rMEvt ) { - sal_Bool bReturn = sal_False; - sal_Bool bCreated = sal_False; + bool bReturn = false; + bool bCreated = false; SdrViewEvent aVEvt; mpView->PickAnything(rMEvt, SDRMOUSEBUTTONUP, aVEvt); @@ -167,15 +166,15 @@ sal_Bool FuConstructBezierPolygon::MouseButtonUp(const MouseEvent& rMEvt ) if (aVEvt.eEvent == SDREVENT_ENDCREATE) { - bReturn = sal_True; + bReturn = true; if (nCount == (mpView->GetSdrPageView()->GetObjList()->GetObjCount() - 1)) { - bCreated = sal_True; + bCreated = true; } // trick to suppress FuDraw::DoubleClick - bMBDown = sal_False; + bMBDown = false; } @@ -228,11 +227,9 @@ sal_Bool FuConstructBezierPolygon::MouseButtonUp(const MouseEvent& rMEvt ) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstructBezierPolygon::KeyInput(const KeyEvent& rKEvt) +bool FuConstructBezierPolygon::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = FuConstruct::KeyInput(rKEvt); - - return(bReturn); + return FuConstruct::KeyInput(rKEvt); } diff --git a/sd/source/ui/func/fuconcs.cxx b/sd/source/ui/func/fuconcs.cxx index c782b6c67ef1..cea7ea815b4d 100644 --- a/sd/source/ui/func/fuconcs.cxx +++ b/sd/source/ui/func/fuconcs.cxx @@ -110,9 +110,9 @@ void FuConstructCustomShape::DoExecute( SfxRequest& rReq ) } -sal_Bool FuConstructCustomShape::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstructCustomShape::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); + bool bReturn = FuConstruct::MouseButtonDown(rMEvt); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { @@ -127,12 +127,12 @@ sal_Bool FuConstructCustomShape::MouseButtonDown(const MouseEvent& rMEvt) if ( pObj ) { SetAttributes( pObj ); - sal_Bool bForceFillStyle = sal_True; - sal_Bool bForceNoFillStyle = sal_False; + bool bForceFillStyle = true; + bool bForceNoFillStyle = false; if ( ((SdrObjCustomShape*)pObj)->UseNoFillStyle() ) { - bForceFillStyle = sal_False; - bForceNoFillStyle = sal_True; + bForceFillStyle = false; + bForceNoFillStyle = true; } SfxItemSet aAttr(mpDoc->GetPool()); SetStyleSheet( aAttr, pObj, bForceFillStyle, bForceNoFillStyle ); @@ -144,22 +144,22 @@ sal_Bool FuConstructCustomShape::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuConstructCustomShape::MouseMove(const MouseEvent& rMEvt) +bool FuConstructCustomShape::MouseMove(const MouseEvent& rMEvt) { return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstructCustomShape::MouseButtonUp(const MouseEvent& rMEvt) +bool FuConstructCustomShape::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn(sal_False); + bool bReturn(false); if(mpView->IsCreateObj() && rMEvt.IsLeft()) { SdrObject* pObj = mpView->GetCreateObj(); if( pObj && mpView->EndCreateObj( SDRCREATE_FORCEEND ) ) { - bReturn = sal_True; + bReturn = true; } } bReturn = FuConstruct::MouseButtonUp (rMEvt) || bReturn; @@ -174,10 +174,9 @@ sal_Bool FuConstructCustomShape::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstructCustomShape::KeyInput(const KeyEvent& rKEvt) +bool FuConstructCustomShape::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = FuConstruct::KeyInput(rKEvt); - return(bReturn); + return FuConstruct::KeyInput(rKEvt); } @@ -192,7 +191,7 @@ void FuConstructCustomShape::Activate() */ void FuConstructCustomShape::SetAttributes( SdrObject* pObj ) { - sal_Bool bAttributesAppliedFromGallery = sal_False; + bool bAttributesAppliedFromGallery = false; if ( GalleryExplorer::GetSdrObjCount( GALLERY_THEME_POWERPOINT ) ) { @@ -238,7 +237,7 @@ void FuConstructCustomShape::SetAttributes( SdrObject* pObj ) double a = nAngle * F_PI18000; pObj->NbcRotate( pObj->GetSnapRect().Center(), nAngle, sin( a ), cos( a ) ); } - bAttributesAppliedFromGallery = sal_True; + bAttributesAppliedFromGallery = true; /* diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 6c04adeeb0f0..d7c051a9c5d4 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -181,9 +181,9 @@ void FuConstructRectangle::DoExecute( SfxRequest& rReq ) } -sal_Bool FuConstructRectangle::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstructRectangle::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); + bool bReturn = FuConstruct::MouseButtonDown(rMEvt); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { @@ -221,15 +221,15 @@ sal_Bool FuConstructRectangle::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuConstructRectangle::MouseMove(const MouseEvent& rMEvt) +bool FuConstructRectangle::MouseMove(const MouseEvent& rMEvt) { return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstructRectangle::MouseButtonUp(const MouseEvent& rMEvt) +bool FuConstructRectangle::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn(sal_False); + bool bReturn(false); if(mpView->IsCreateObj() && rMEvt.IsLeft()) { @@ -261,7 +261,7 @@ sal_Bool FuConstructRectangle::MouseButtonUp(const MouseEvent& rMEvt) pObj->SetMergedItemSet(aSet); } - bReturn = sal_True; + bReturn = true; } } @@ -277,10 +277,9 @@ sal_Bool FuConstructRectangle::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstructRectangle::KeyInput(const KeyEvent& rKEvt) +bool FuConstructRectangle::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = FuConstruct::KeyInput(rKEvt); - return(bReturn); + return FuConstruct::KeyInput(rKEvt); } @@ -905,7 +904,7 @@ SdrObject* FuConstructRectangle::CreateDefaultObject(const sal_uInt16 nID, const { if(pObj->ISA(SdrCaptionObj)) { - sal_Bool bIsVertical(SID_DRAW_CAPTION_VERTICAL == nID); + bool bIsVertical(SID_DRAW_CAPTION_VERTICAL == nID); ((SdrTextObj*)pObj)->SetVerticalWriting(bIsVertical); diff --git a/sd/source/ui/func/fuconstr.cxx b/sd/source/ui/func/fuconstr.cxx index e8d5450bf63c..fe39c1d81e1c 100644 --- a/sd/source/ui/func/fuconstr.cxx +++ b/sd/source/ui/func/fuconstr.cxx @@ -63,19 +63,19 @@ void FuConstruct::DoExecute( SfxRequest& rReq ) } -sal_Bool FuConstruct::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstruct::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuDraw::MouseButtonDown(rMEvt); + bool bReturn = FuDraw::MouseButtonDown(rMEvt); - bMBDown = sal_True; + bMBDown = true; bSelectionChanged = false; if ( mpView->IsAction() ) { - return sal_True; + return true; } - bFirstMouseMove = sal_True; + bFirstMouseMove = true; aDragTimer.Start(); aMDPos = mpWindow->PixelToLogic( rMEvt.GetPosPixel() ); @@ -91,12 +91,12 @@ sal_Bool FuConstruct::MouseButtonDown(const MouseEvent& rMEvt) { sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog); - bReturn = sal_True; + bReturn = true; } else if ( mpView->AreObjectsMarked() ) { mpView->UnmarkAll(); - bReturn = sal_True; + bReturn = true; } } @@ -104,14 +104,14 @@ sal_Bool FuConstruct::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuConstruct::MouseMove(const MouseEvent& rMEvt) +bool FuConstruct::MouseMove(const MouseEvent& rMEvt) { FuDraw::MouseMove(rMEvt); if (aDragTimer.IsActive() ) { if( bFirstMouseMove ) - bFirstMouseMove = sal_False; + bFirstMouseMove = false; else aDragTimer.Stop(); } @@ -125,18 +125,18 @@ sal_Bool FuConstruct::MouseMove(const MouseEvent& rMEvt) mpView->MovAction(aPnt); } - return sal_True; + return true; } -sal_Bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) +bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_True; + bool bReturn = true; if (aDragTimer.IsActive() ) { aDragTimer.Stop(); - bIsInDragMode = sal_False; + bIsInDragMode = false; } FuDraw::MouseButtonUp(rMEvt); @@ -146,11 +146,11 @@ sal_Bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) if ( mpView && mpView->IsDragObj() ) { FrameView* pFrameView = mpViewShell->GetFrameView(); - sal_Bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); + bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); if (bDragWithCopy) { - bDragWithCopy = !mpView->IsPresObjSelected(sal_False, sal_True); + bDragWithCopy = !mpView->IsPresObjSelected(false, true); } mpView->SetDragWithCopy(bDragWithCopy); @@ -162,7 +162,7 @@ sal_Bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) } else { - bReturn = sal_False; + bReturn = false; } if ( mpView && !mpView->IsAction() ) @@ -217,7 +217,7 @@ sal_Bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) { DoubleClick(rMEvt); } - bMBDown = sal_False; + bMBDown = false; return bReturn; } @@ -226,9 +226,9 @@ sal_Bool FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstruct::KeyInput(const KeyEvent& rKEvt) +bool FuConstruct::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if ( !bReturn ) bReturn = FuDraw::KeyInput(rKEvt); @@ -255,8 +255,8 @@ void FuConstruct::Deactivate() */ void FuConstruct::SetStyleSheet(SfxItemSet& rAttr, SdrObject* pObj) { - sal_Bool bUseFillStyle, bUseNoFillStyle; - bUseFillStyle = bUseNoFillStyle = sal_False; + bool bUseFillStyle, bUseNoFillStyle; + bUseFillStyle = bUseNoFillStyle = false; switch( nSlotId ) { @@ -275,7 +275,7 @@ void FuConstruct::SetStyleSheet(SfxItemSet& rAttr, SdrObject* pObj) case SID_DRAW_FREELINE: case SID_DRAW_BEZIER_FILL: { - bUseFillStyle = sal_True; + bUseFillStyle = true; break; } case SID_DRAW_RECT_NOFILL: @@ -323,7 +323,7 @@ void FuConstruct::SetStyleSheet(SfxItemSet& rAttr, SdrObject* pObj) case SID_DRAW_BEZIER_NOFILL: case SID_LINE_ARROW_END: { - bUseNoFillStyle = sal_True; + bUseNoFillStyle = true; break; } } @@ -331,7 +331,7 @@ void FuConstruct::SetStyleSheet(SfxItemSet& rAttr, SdrObject* pObj) } void FuConstruct::SetStyleSheet( SfxItemSet& rAttr, SdrObject* pObj, - const sal_Bool bForceFillStyle, const sal_Bool bForceNoFillStyle ) + const bool bForceFillStyle, const bool bForceNoFillStyle ) { SdPage* pPage = (SdPage*)mpView->GetSdrPageView()->GetPage(); if ( pPage->IsMasterPage() && pPage->GetPageKind() == PK_STANDARD && diff --git a/sd/source/ui/func/fuconuno.cxx b/sd/source/ui/func/fuconuno.cxx index a3de537a6530..13892f1aad16 100644 --- a/sd/source/ui/func/fuconuno.cxx +++ b/sd/source/ui/func/fuconuno.cxx @@ -83,9 +83,9 @@ void FuConstructUnoControl::DoExecute( SfxRequest& rReq ) ToolBarManager::msDrawingObjectToolBar); } -sal_Bool FuConstructUnoControl::MouseButtonDown(const MouseEvent& rMEvt) +bool FuConstructUnoControl::MouseButtonDown(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuConstruct::MouseButtonDown(rMEvt); + bool bReturn = FuConstruct::MouseButtonDown(rMEvt); if ( rMEvt.IsLeft() && !mpView->IsAction() ) { @@ -93,24 +93,24 @@ sal_Bool FuConstructUnoControl::MouseButtonDown(const MouseEvent& rMEvt) mpWindow->CaptureMouse(); sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); mpView->BegCreateObj(aPnt, (OutputDevice*) NULL, nDrgLog); - bReturn = sal_True; + bReturn = true; } return bReturn; } -sal_Bool FuConstructUnoControl::MouseMove(const MouseEvent& rMEvt) +bool FuConstructUnoControl::MouseMove(const MouseEvent& rMEvt) { return FuConstruct::MouseMove(rMEvt); } -sal_Bool FuConstructUnoControl::MouseButtonUp(const MouseEvent& rMEvt) +bool FuConstructUnoControl::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if ( mpView->IsCreateObj() && rMEvt.IsLeft() ) { mpView->EndCreateObj(SDRCREATE_FORCEEND); - bReturn = sal_True; + bReturn = true; } bReturn = (FuConstruct::MouseButtonUp(rMEvt) || bReturn); @@ -125,10 +125,9 @@ sal_Bool FuConstructUnoControl::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuConstructUnoControl::KeyInput(const KeyEvent& rKEvt) +bool FuConstructUnoControl::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = FuConstruct::KeyInput(rKEvt); - return(bReturn); + return FuConstruct::KeyInput(rKEvt); } void FuConstructUnoControl::Activate() diff --git a/sd/source/ui/func/fucopy.cxx b/sd/source/ui/func/fucopy.cxx index d2453fcf022d..02d194f33a9e 100644 --- a/sd/source/ui/func/fucopy.cxx +++ b/sd/source/ui/func/fucopy.cxx @@ -128,7 +128,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) sal_Int32 lWidth = 0, lHeight = 0, lSizeX = 0L, lSizeY = 0L, lAngle = 0L; sal_uInt16 nNumber = 0; Color aStartColor, aEndColor; - sal_Bool bColor = sal_False; + bool bColor = false; const SfxPoolItem* pPoolItem = NULL; // Count @@ -153,22 +153,22 @@ void FuCopy::DoExecute( SfxRequest& rReq ) if( SFX_ITEM_SET == pArgs->GetItemState( ATTR_COPY_START_COLOR, true, &pPoolItem ) ) { aStartColor = ( ( const XColorItem* ) pPoolItem )->GetColorValue(); - bColor = sal_True; + bColor = true; } if( SFX_ITEM_SET == pArgs->GetItemState( ATTR_COPY_END_COLOR, true, &pPoolItem ) ) { aEndColor = ( ( const XColorItem* ) pPoolItem )->GetColorValue(); if( aStartColor == aEndColor ) - bColor = sal_False; + bColor = false; } else - bColor = sal_False; + bColor = false; // remove handles //HMHmpView->HideMarkHdl(); SfxProgress* pProgress = NULL; - sal_Bool bWaiting = sal_False; + bool bWaiting = false; if( nNumber > 1 ) { @@ -177,7 +177,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) pProgress = new SfxProgress( mpDocSh, aStr, nNumber ); mpDocSh->SetWaitCursor( true ); - bWaiting = sal_True; + bWaiting = true; } const SdrMarkList aMarkList( mpView->GetMarkedObjectList() ); diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx index f8b7e8ae3794..fdc6ea1f3219 100644 --- a/sd/source/ui/func/fudraw.cxx +++ b/sd/source/ui/func/fudraw.cxx @@ -76,10 +76,10 @@ TYPEINIT1( FuDraw, FuPoor ); FuDraw::FuDraw(ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq) : FuPoor(pViewSh, pWin, pView, pDoc, rReq) - , bMBDown(sal_False) - , bDragHelpLine(sal_False) + , bMBDown(false) + , bDragHelpLine(false) , nHelpLine(0) - , bPermanent(sal_False) + , bPermanent(false) { } @@ -88,14 +88,14 @@ FuDraw::~FuDraw() mpView->BrkAction(); } -sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) +bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); - sal_Bool bReturn = sal_False; + bool bReturn = false; - bDragHelpLine = sal_False; + bDragHelpLine = false; aMDPos = mpWindow->PixelToLogic( rMEvt.GetPosPixel() ); @@ -105,7 +105,7 @@ sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) bool bOrtho = false; - sal_Bool bRestricted = sal_True; + bool bRestricted = true; if (mpView->IsDragObj()) { @@ -115,7 +115,7 @@ sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) if (!pHdl || (!pHdl->IsCornerHdl() && !pHdl->IsVertexHdl())) { // Move - bRestricted = sal_False; + bRestricted = false; } } @@ -192,10 +192,10 @@ sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() ); // look only for HelpLines when they are visible (!) - sal_Bool bHelpLine(sal_False); + bool bHelpLine(false); if(mpView->IsHlplVisible()) bHelpLine = mpView->PickHelpLine(aMDPos, nHitLog, *mpWindow, nHelpLine, pPV); - sal_Bool bHitHdl = (mpView->PickHandle(aMDPos) != NULL); + bool bHitHdl = (mpView->PickHandle(aMDPos) != NULL); if ( bHelpLine && !mpView->IsCreateObj() @@ -204,7 +204,7 @@ sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) mpWindow->CaptureMouse(); mpView->BegDragHelpLine(nHelpLine, pPV); bDragHelpLine = mpView->IsDragHelpLine(); - bReturn = sal_True; + bReturn = true; } } ForcePointer(&rMEvt); @@ -213,14 +213,14 @@ sal_Bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuDraw::MouseMove(const MouseEvent& rMEvt) +bool FuDraw::MouseMove(const MouseEvent& rMEvt) { FrameView* pFrameView = mpViewShell->GetFrameView(); Point aPos = mpWindow->PixelToLogic( rMEvt.GetPosPixel() ); bool bOrtho = false; - sal_Bool bRestricted = sal_True; + bool bRestricted = true; if (mpView->IsDragObj()) { @@ -230,7 +230,7 @@ sal_Bool FuDraw::MouseMove(const MouseEvent& rMEvt) if (!pHdl || (!pHdl->IsCornerHdl() && !pHdl->IsVertexHdl())) { // Move - bRestricted = sal_False; + bRestricted = false; } } @@ -308,7 +308,7 @@ sal_Bool FuDraw::MouseMove(const MouseEvent& rMEvt) mpView->MovDragHelpLine(aPos); } - sal_Bool bReturn = mpView->MouseMove(rMEvt, mpWindow); + bool bReturn = mpView->MouseMove(rMEvt, mpWindow); if (mpView->IsAction()) { @@ -323,7 +323,7 @@ sal_Bool FuDraw::MouseMove(const MouseEvent& rMEvt) } -sal_Bool FuDraw::MouseButtonUp(const MouseEvent& rMEvt) +bool FuDraw::MouseButtonUp(const MouseEvent& rMEvt) { if ( mpView->IsDragHelpLine() ) mpView->EndDragHelpLine(); @@ -352,20 +352,20 @@ sal_Bool FuDraw::MouseButtonUp(const MouseEvent& rMEvt) mpView->SetOPntSnap(pFrameView->IsOPntSnap()); mpView->SetOConSnap(pFrameView->IsOConSnap()); - bIsInDragMode = sal_False; + bIsInDragMode = false; ForcePointer(&rMEvt); FuPoor::MouseButtonUp(rMEvt); - return sal_False; + return false; } /** * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) +bool FuDraw::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; switch ( rKEvt.GetKeyCode().GetCode() ) { @@ -380,7 +380,7 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) { if (!mpDocSh->IsReadOnly()) { - if (mpView->IsPresObjSelected(sal_False, sal_True, sal_False, sal_True)) + if (mpView->IsPresObjSelected(false, true, false, true)) { InfoBox(mpWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE) ).Execute(); } @@ -403,7 +403,7 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) mpView->DeleteMarked(); } } - bReturn = sal_True; + bReturn = true; } break; @@ -438,7 +438,7 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) if(mpView->AreObjectsMarked()) mpView->MakeVisible(mpView->GetAllMarkedRect(), *mpWindow); - bReturn = sal_True; + bReturn = true; } } break; @@ -456,7 +456,7 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) if(mpView->AreObjectsMarked()) mpView->MakeVisible(mpView->GetAllMarkedRect(), *mpWindow); - bReturn = sal_True; + bReturn = true; } } break; @@ -474,7 +474,7 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) if(mpView->AreObjectsMarked()) mpView->MakeVisible(mpView->GetAllMarkedRect(), *mpWindow); - bReturn = sal_True; + bReturn = true; } } break; @@ -516,8 +516,8 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) { Point aPnt; sal_uInt16 nModifier = 0; - sal_Bool bLeftDown = sal_False; - sal_Bool bDefPointer = sal_True; + bool bLeftDown = false; + bool bDefPointer = true; if (pMEvt) { @@ -535,7 +535,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) if (SD_MOD()->GetWaterCan() && !mpView->PickHandle(aPnt)) { // water can mode - bDefPointer = sal_False; + bDefPointer = false; mpWindow->SetPointer(Pointer(POINTER_FILL)); } } @@ -546,7 +546,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) if (SD_MOD()->GetWaterCan() && !pHdl) { // water can mode - bDefPointer = sal_False; + bDefPointer = false; mpWindow->SetPointer(Pointer(POINTER_FILL)); } else if (!pHdl && @@ -557,7 +557,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) if (pMask && pMask->IsEyedropping()) { - bDefPointer = sal_False; + bDefPointer = false; mpWindow->SetPointer(Pointer(POINTER_REFHAND)); } } @@ -585,7 +585,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) if ((pObject->ISA(E3dObject)) && (rMarkList.GetMarkCount() == 1)) { mpWindow->SetPointer(Pointer(POINTER_ROTATE)); - bDefPointer = sal_False; // Otherwise it'll be calles Joes routine and the mousepointer will reconfigurate again + bDefPointer = false; // Otherwise it'll be calles Joes routine and the mousepointer will reconfigurate again } } @@ -608,7 +608,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) aVEvt.pObj->IsEmptyPresObj() ) { pObj = NULL; - bDefPointer = sal_False; + bDefPointer = false; mpWindow->SetPointer(Pointer(POINTER_ARROW)); } } @@ -638,14 +638,14 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt) /** * Set cursor for animaton or imagemap */ -sal_Bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos) +bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos) { - sal_Bool bSet = sal_False; + bool bSet = false; - sal_Bool bAnimationInfo = (!mpDocSh->ISA(GraphicDocShell) && + bool bAnimationInfo = (!mpDocSh->ISA(GraphicDocShell) && mpDoc->GetAnimationInfo(pObj)) ? sal_True:sal_False; - sal_Bool bImageMapInfo = sal_False; + bool bImageMapInfo = false; if (!bAnimationInfo) bImageMapInfo = mpDoc->GetIMapInfo(pObj) ? sal_True:sal_False; @@ -704,7 +704,7 @@ sal_Bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos) pInfo->meTextEffect != presentation::AnimationEffect_NONE ))))) { // Animation object - bSet = sal_True; + bSet = true; mpWindow->SetPointer(Pointer(POINTER_REFHAND)); } } @@ -714,7 +714,7 @@ sal_Bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos) /****************************************************** * ImageMap ******************************************************/ - bSet = sal_True; + bSet = true; mpWindow->SetPointer(Pointer(POINTER_REFHAND)); } } @@ -785,9 +785,9 @@ void FuDraw::DoubleClick(const MouseEvent& rMEvt) } -sal_Bool FuDraw::RequestHelp(const HelpEvent& rHEvt) +bool FuDraw::RequestHelp(const HelpEvent& rHEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if (Help::IsBalloonHelpEnabled() || Help::IsQuickHelpEnabled()) { @@ -828,9 +828,9 @@ sal_Bool FuDraw::RequestHelp(const HelpEvent& rHEvt) -sal_Bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewEvent& rVEvt) +bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrViewEvent& rVEvt) { - sal_Bool bSet = sal_False; + bool bSet = false; OUString aHelpText; Point aPos(mpWindow->PixelToLogic(mpWindow->ScreenToOutputPixel(rPosPixel))); @@ -968,7 +968,7 @@ sal_Bool FuDraw::SetHelpText(SdrObject* pObj, const Point& rPosPixel, const SdrV if (!aHelpText.isEmpty()) { - bSet = sal_True; + bSet = true; Rectangle aLogicPix = mpWindow->LogicToPixel(pObj->GetLogicRect()); Rectangle aScreenRect(mpWindow->OutputToScreenPixel(aLogicPix.TopLeft()), mpWindow->OutputToScreenPixel(aLogicPix.BottomRight())); diff --git a/sd/source/ui/func/fudspord.cxx b/sd/source/ui/func/fudspord.cxx index 8a93e716da41..a22b46922b24 100644 --- a/sd/source/ui/func/fudspord.cxx +++ b/sd/source/ui/func/fudspord.cxx @@ -63,16 +63,16 @@ rtl::Reference<FuPoor> FuDisplayOrder::Create( ViewShell* pViewSh, ::sd::Window* } -sal_Bool FuDisplayOrder::MouseButtonDown(const MouseEvent& rMEvt) +bool FuDisplayOrder::MouseButtonDown(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); - return sal_True; + return true; } -sal_Bool FuDisplayOrder::MouseMove(const MouseEvent& rMEvt) +bool FuDisplayOrder::MouseMove(const MouseEvent& rMEvt) { SdrObject* pPickObj; SdrPageView* pPV; @@ -98,11 +98,11 @@ sal_Bool FuDisplayOrder::MouseMove(const MouseEvent& rMEvt) implClearOverlay(); } - return sal_True; + return true; } -sal_Bool FuDisplayOrder::MouseButtonUp(const MouseEvent& rMEvt) +bool FuDisplayOrder::MouseButtonUp(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); @@ -124,7 +124,7 @@ sal_Bool FuDisplayOrder::MouseButtonUp(const MouseEvent& rMEvt) mpViewShell->Cancel(); - return sal_True; + return true; } diff --git a/sd/source/ui/func/fuediglu.cxx b/sd/source/ui/func/fuediglu.cxx index 51e3c32f106c..7907884476d3 100644 --- a/sd/source/ui/func/fuediglu.cxx +++ b/sd/source/ui/func/fuediglu.cxx @@ -50,7 +50,7 @@ FuEditGluePoints::FuEditGluePoints ( : FuDraw(pViewSh, pWin, pView, pDoc, rReq) //Add Shift+UP/DOWN/LEFT/RIGHT key to move the position of insert point, //and SHIFT+ENTER key to decide the position and draw the new insert point - ,bBeginInsertPoint(sal_False), + ,bBeginInsertPoint(false), oldPoint(0,0) { } @@ -82,23 +82,23 @@ FuEditGluePoints::~FuEditGluePoints() } -sal_Bool FuEditGluePoints::MouseButtonDown(const MouseEvent& rMEvt) +bool FuEditGluePoints::MouseButtonDown(const MouseEvent& rMEvt) { mpView->SetActualWin( mpWindow ); - sal_Bool bReturn = FuDraw::MouseButtonDown(rMEvt); + bool bReturn = FuDraw::MouseButtonDown(rMEvt); if (mpView->IsAction()) { if (rMEvt.IsRight()) mpView->BckAction(); - return sal_True; + return true; } if (rMEvt.IsLeft()) { - bReturn = sal_True; + bReturn = true; sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() ); sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); mpWindow->CaptureMouse(); @@ -163,7 +163,7 @@ sal_Bool FuEditGluePoints::MouseButtonDown(const MouseEvent& rMEvt) mpView->UnmarkAllObj(); } - sal_Bool bMarked = sal_False; + bool bMarked = false; if (!rMEvt.IsMod1()) { @@ -205,7 +205,7 @@ sal_Bool FuEditGluePoints::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuEditGluePoints::MouseMove(const MouseEvent& rMEvt) +bool FuEditGluePoints::MouseMove(const MouseEvent& rMEvt) { mpView->SetActualWin( mpWindow ); @@ -221,19 +221,19 @@ sal_Bool FuEditGluePoints::MouseMove(const MouseEvent& rMEvt) ForcePointer(&rMEvt); - return sal_True; + return true; } -sal_Bool FuEditGluePoints::MouseButtonUp(const MouseEvent& rMEvt) +bool FuEditGluePoints::MouseButtonUp(const MouseEvent& rMEvt) { mpView->SetActualWin( mpWindow ); - sal_Bool bReturn = sal_False; + bool bReturn = false; if (mpView->IsAction()) { - bReturn = sal_True; + bReturn = true; mpView->EndAction(); } @@ -265,14 +265,14 @@ sal_Bool FuEditGluePoints::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuEditGluePoints::KeyInput(const KeyEvent& rKEvt) +bool FuEditGluePoints::KeyInput(const KeyEvent& rKEvt) { mpView->SetActualWin( mpWindow ); //Add Shift+UP/DOWN/LEFT/RIGHT key to move the position of insert point, //and SHIFT+ENTER key to decide the position and draw the new insert point - sal_Bool bReturn = sal_False; + bool bReturn = false; switch (rKEvt.GetKeyCode().GetCode()) { @@ -319,8 +319,8 @@ sal_Bool FuEditGluePoints::KeyInput(const KeyEvent& rKEvt) MouseEvent eMevt(ePoint,1,2,MOUSE_LEFT, 0); MouseMove(eMevt); oldPoint = ePoint; - bBeginInsertPoint = sal_True; - bReturn = sal_True; + bBeginInsertPoint = true; + bReturn = true; } } break; @@ -340,7 +340,7 @@ sal_Bool FuEditGluePoints::KeyInput(const KeyEvent& rKEvt) //simulate mouse button up action MouseEvent rMEvt(oldPoint+Point(0,0),1,17, MOUSE_LEFT, KEY_SHIFT); MouseButtonUp(rMEvt); - bReturn= sal_True; + bReturn= true; } } break; @@ -368,7 +368,7 @@ void FuEditGluePoints::ForcePointer(const MouseEvent* pMEvt) } } -sal_Bool FuEditGluePoints::Command(const CommandEvent& rCEvt) +bool FuEditGluePoints::Command(const CommandEvent& rCEvt) { mpView->SetActualWin( mpWindow ); return FuPoor::Command( rCEvt ); @@ -431,7 +431,7 @@ void FuEditGluePoints::ReceiveRequest(SfxRequest& rReq) { const SfxItemSet* pSet = rReq.GetArgs(); const SfxPoolItem& rItem = pSet->Get(SID_GLUE_PERCENT); - sal_Bool bPercent = ((const SfxBoolItem&) rItem).GetValue(); + bool bPercent = ((const SfxBoolItem&) rItem).GetValue(); mpView->SetMarkedGluePointsPercent(bPercent); } break; diff --git a/sd/source/ui/func/fuexpand.cxx b/sd/source/ui/func/fuexpand.cxx index 5af78118f979..8780176f2fc9 100644 --- a/sd/source/ui/func/fuexpand.cxx +++ b/sd/source/ui/func/fuexpand.cxx @@ -152,7 +152,7 @@ void FuExpandPage::DoExecute( SfxRequest& ) // use MasterPage of the current page pPage->TRG_SetMasterPage(pActualPage->TRG_GetMasterPage()); pPage->SetLayoutName(pActualPage->GetLayoutName()); - pPage->SetAutoLayout(AUTOLAYOUT_ENUM, sal_True); + pPage->SetAutoLayout(AUTOLAYOUT_ENUM, true); pPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); // notes-page @@ -175,7 +175,7 @@ void FuExpandPage::DoExecute( SfxRequest& ) // use MasterPage of the current page pNotesPage->TRG_SetMasterPage(pActualNotesPage->TRG_GetMasterPage()); pNotesPage->SetLayoutName(pActualNotesPage->GetLayoutName()); - pNotesPage->SetAutoLayout(pActualNotesPage->GetAutoLayout(), sal_True); + pNotesPage->SetAutoLayout(pActualNotesPage->GetAutoLayout(), true); pNotesPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); // create title text objects diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx index 9966adffdc7b..cc8967fe33b5 100644 --- a/sd/source/ui/func/fuformatpaintbrush.cxx +++ b/sd/source/ui/func/fuformatpaintbrush.cxx @@ -92,7 +92,7 @@ static void unmarkimpl( SdrView* pView ) pView->UnMarkAll(); } -sal_Bool FuFormatPaintBrush::MouseButtonDown(const MouseEvent& rMEvt) +bool FuFormatPaintBrush::MouseButtonDown(const MouseEvent& rMEvt) { if(mpView&&mpWindow) { @@ -140,17 +140,17 @@ sal_Bool FuFormatPaintBrush::MouseButtonDown(const MouseEvent& rMEvt) if( aVEvt.pObj ) { sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() ); - sal_Bool bToggle = sal_False; + bool bToggle = false; mpView->MarkObj(mpWindow->PixelToLogic( rMEvt.GetPosPixel() ), nHitLog, bToggle, false); - return sal_True; + return true; } } - return sal_False; + return false; } -sal_Bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt) +bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if( mpWindow && mpView ) { if ( mpView->IsTextEdit() ) @@ -163,7 +163,7 @@ sal_Bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt) sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() ); SdrObject* pObj=0; SdrPageView* pPV=0; - sal_Bool bOverMarkableObject = mpView->PickObj( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ),nHitLog, pObj, pPV, SDRSEARCH_PICKMARKABLE); + bool bOverMarkableObject = mpView->PickObj( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ),nHitLog, pObj, pPV, SDRSEARCH_PICKMARKABLE); if(bOverMarkableObject && HasContentForThisType(pObj->GetObjInventor(),pObj->GetObjIdentifier()) ) mpWindow->SetPointer(Pointer(POINTER_FILL)); @@ -174,7 +174,7 @@ sal_Bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt) return bReturn; } -sal_Bool FuFormatPaintBrush::MouseButtonUp(const MouseEvent& rMEvt) +bool FuFormatPaintBrush::MouseButtonUp(const MouseEvent& rMEvt) { if( mpItemSet.get() && mpView && mpView->AreObjectsMarked() ) { @@ -196,19 +196,19 @@ sal_Bool FuFormatPaintBrush::MouseButtonUp(const MouseEvent& rMEvt) mpViewShell->GetViewFrame()->GetBindings().Invalidate(SID_FORMATPAINTBRUSH); if( mbPermanent ) - return sal_True; + return true; } implcancel(); - return sal_True; + return true; } -sal_Bool FuFormatPaintBrush::KeyInput(const KeyEvent& rKEvt) +bool FuFormatPaintBrush::KeyInput(const KeyEvent& rKEvt) { if( (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE) && mpViewShell ) { implcancel(); - return sal_True; + return true; } return FuPoor::KeyInput(rKEvt); } @@ -218,7 +218,7 @@ void FuFormatPaintBrush::Activate() mbOldIsQuickTextEditMode = mpViewShell->GetFrameView()->IsQuickEdit(); if( !mbOldIsQuickTextEditMode ) { - mpViewShell->GetFrameView()->SetQuickEdit(sal_True); + mpViewShell->GetFrameView()->SetQuickEdit(true); mpView->SetQuickTextEditMode(true); } } @@ -227,7 +227,7 @@ void FuFormatPaintBrush::Deactivate() { if( !mbOldIsQuickTextEditMode ) { - mpViewShell->GetFrameView()->SetQuickEdit(sal_False); + mpViewShell->GetFrameView()->SetQuickEdit(false); mpView->SetQuickTextEditMode(false); } } diff --git a/sd/source/ui/func/fuhhconv.cxx b/sd/source/ui/func/fuhhconv.cxx index 374ec24b0959..95532343deba 100644 --- a/sd/source/ui/func/fuhhconv.cxx +++ b/sd/source/ui/func/fuhhconv.cxx @@ -63,16 +63,16 @@ FuHangulHanjaConversion::FuHangulHanjaConversion ( SfxRequest& rReq ) : FuPoor(pViewSh, pWin, pView, pDocument, rReq), pSdOutliner(NULL), - bOwnOutliner(sal_False) + bOwnOutliner(false) { if ( mpViewShell->ISA(DrawViewShell) ) { - bOwnOutliner = sal_True; + bOwnOutliner = true; pSdOutliner = new Outliner( mpDoc, OUTLINERMODE_TEXTOBJECT ); } else if ( mpViewShell->ISA(OutlineViewShell) ) { - bOwnOutliner = sal_False; + bOwnOutliner = false; pSdOutliner = mpDoc->GetOutliner(); } @@ -101,7 +101,7 @@ rtl::Reference<FuPoor> FuHangulHanjaConversion::Create( ViewShell* pViewSh, ::sd * Search and replace */ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_Int16 nTargetLanguage, - const Font *pTargetFont, sal_Int32 nOptions, sal_Bool bIsInteractive ) + const Font *pTargetFont, sal_Int32 nOptions, bool bIsInteractive ) { mpView->BegUndo(SD_RESSTR(STR_UNDO_HANGULHANJACONVERSION)); @@ -116,7 +116,7 @@ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_In { pSdOutliner->EndConversion(); - bOwnOutliner = sal_True; + bOwnOutliner = true; pSdOutliner = new Outliner( mpDoc, OUTLINERMODE_TEXTOBJECT ); pSdOutliner->BeginConversion(); } @@ -125,7 +125,7 @@ void FuHangulHanjaConversion::StartConversion( sal_Int16 nSourceLanguage, sal_In pSdOutliner->EndConversion(); delete pSdOutliner; - bOwnOutliner = sal_False; + bOwnOutliner = false; pSdOutliner = mpDoc->GetOutliner(); pSdOutliner->BeginConversion(); } @@ -222,9 +222,9 @@ void FuHangulHanjaConversion::StartChineseConversion() if( RET_OK == nDialogRet ) { //get some parameters from the dialog - sal_Bool bToSimplified = sal_True; - sal_Bool bUseVariants = sal_True; - sal_Bool bCommonTerms = sal_True; + bool bToSimplified = true; + bool bUseVariants = true; + bool bCommonTerms = true; Reference< beans::XPropertySet > xProp( xDialog, UNO_QUERY ); if( xProp.is() ) { @@ -250,7 +250,7 @@ void FuHangulHanjaConversion::StartChineseConversion() DEFAULTFONT_CJK_PRESENTATION, nTargetLang, DEFAULTFONT_FLAGS_ONLYONE ); - StartConversion( nSourceLang, nTargetLang, &aTargetFont, nOptions, sal_False ); + StartConversion( nSourceLang, nTargetLang, &aTargetFont, nOptions, false ); ConvertStyles( nTargetLang, &aTargetFont ); } } diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index 6146ba7fe268..4748442537b2 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -225,7 +225,7 @@ void FuInsertClipboard::DoExecute( SfxRequest& ) if( !mpView->InsertData( aDataHelper, mpWindow->PixelToLogic( Rectangle( Point(), mpWindow->GetOutputSizePixel() ).Center() ), - nAction, sal_False, nFormatId ) && + nAction, false, nFormatId ) && ( mpViewShell && mpViewShell->ISA( DrawViewShell ) ) ) { DrawViewShell* pDrViewSh = static_cast<DrawViewShell*>(mpViewShell); @@ -412,7 +412,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) { // insert object sal_Int64 nAspect = embed::Aspects::MSOLE_CONTENT; - sal_Bool bCreateNew = sal_False; + bool bCreateNew = false; uno::Reference < embed::XEmbeddedObject > xObj; uno::Reference < embed::XStorage > xStorage = comphelper::OStorageHelper::GetTemporaryStorage(); SvObjectServerList aServerLst; @@ -520,7 +520,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) //if( SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE & xObj->getStatus( nAspect ) ) // aIPObj->OnDocumentPrinterChanged( mpDocSh->GetPrinter(sal_False) ); - sal_Bool bInsertNewObject = sal_True; + bool bInsertNewObject = true; Size aSize; MapUnit aMapUnit = MAP_100TH_MM; @@ -571,7 +571,7 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) if ( !( (SdrOle2Obj*) pObj)->GetObjRef().is() ) { // the empty OLE object gets a new IPObj - bInsertNewObject = sal_False; + bInsertNewObject = false; pObj->SetEmptyPresObj(false); ( (SdrOle2Obj*) pObj)->SetOutlinerParaObject(NULL); ( (SdrOle2Obj*) pObj)->SetObjRef(xObj); diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx index 820479638d6e..84daeec317c3 100644 --- a/sd/source/ui/func/fuinsfil.cxx +++ b/sd/source/ui/func/fuinsfil.cxx @@ -254,8 +254,8 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) SFX_APP()->GetFilterMatcher().GuessFilter( *pMedium, &pFilter, SFX_FILTER_IMPORT, SFX_FILTER_NOTINSTALLED | SFX_FILTER_EXECUTABLE ); - sal_Bool bDrawMode = mpViewShell && mpViewShell->ISA(DrawViewShell); - sal_Bool bInserted = sal_False; + bool bDrawMode = mpViewShell && mpViewShell->ISA(DrawViewShell); + bool bInserted = false; if( pFilter ) { @@ -275,19 +275,19 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) InsSDDinOlMode( pMedium ); // don't delete Medium here, ownership of pMedium has changed in this case - bInserted = sal_True; + bInserted = true; } } else { - sal_Bool bFound = ( ::std::find( aFilterVector.begin(), aFilterVector.end(), pFilter->GetMimeType() ) != aFilterVector.end() ); + bool bFound = ( ::std::find( aFilterVector.begin(), aFilterVector.end(), pFilter->GetMimeType() ) != aFilterVector.end() ); if( !bFound && ( aFilterName.indexOf( "Text" ) != -1 || aFilterName.indexOf( "Rich" ) != -1 || aFilterName.indexOf( "RTF" ) != -1 || aFilterName.indexOf( "HTML" ) != -1 ) ) { - bFound = sal_True; + bFound = true; } if( bFound ) @@ -297,7 +297,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) else InsTextOrRTFinOlMode(pMedium); - bInserted = sal_True; + bInserted = true; delete pMedium; } } @@ -315,16 +315,16 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) -sal_Bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium) +bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium) { - sal_Bool bOK = sal_False; + bool bOK = false; mpDocSh->SetWaitCursor( false ); SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); AbstractSdInsertPagesObjsDlg* pDlg = pFact ? pFact->CreateSdInsertPagesObjsDlg( NULL, mpDoc, pMedium, aFile ) : 0; if( !pDlg ) - return sal_False; + return false; /* Maybe a QueryBox is opened ("update links?"), therefore the dialog becomes the current DefModalDialogParent */ @@ -342,8 +342,8 @@ sal_Bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium) /* list with page names (if NULL, then all pages) First, insert pages */ std::vector<OUString> aBookmarkList = pDlg->GetList( 1 ); // pages - sal_Bool bLink = pDlg->IsLink(); - sal_Bool bReplace = sal_False; + bool bLink = pDlg->IsLink(); + bool bReplace = false; SdPage* pPage = NULL; ::sd::View* pView = mpViewShell->GetView(); @@ -370,7 +370,7 @@ sal_Bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium) } } - sal_Bool bNameOK; + bool bNameOK; std::vector<OUString> aExchangeList; std::vector<OUString> aObjectBookmarkList = pDlg->GetList( 2 ); // objects @@ -387,7 +387,7 @@ sal_Bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium) if( bNameOK ) bOK = mpDoc->InsertBookmarkAsPage( aBookmarkList, &aExchangeList, bLink, bReplace, nPos, - sal_False, NULL, sal_True, sal_True, sal_False ); + false, NULL, true, true, false ); aBookmarkList.clear(); aExchangeList.clear(); @@ -686,7 +686,7 @@ void FuInsertFile::InsTextOrRTFinOlMode(SfxMedium* pMedium) -sal_Bool FuInsertFile::InsSDDinOlMode(SfxMedium* pMedium) +bool FuInsertFile::InsSDDinOlMode(SfxMedium* pMedium) { OutlineView* pOlView = static_cast<OutlineView*>(mpView); @@ -724,10 +724,10 @@ sal_Bool FuInsertFile::InsSDDinOlMode(SfxMedium* pMedium) pOutliner->SetEndMovingHdl(aOldEndMovingHdl); pOutliner->SetStatusEventHdl(aOldStatusEventHdl); - return sal_True; + return true; } else - return sal_False; + return false; } diff --git a/sd/source/ui/func/fuline.cxx b/sd/source/ui/func/fuline.cxx index 9b38b9ed9432..ee03d31a58dd 100644 --- a/sd/source/ui/func/fuline.cxx +++ b/sd/source/ui/func/fuline.cxx @@ -61,7 +61,7 @@ rtl::Reference<FuPoor> FuLine::Create( ViewShell* pViewSh, ::sd::Window* pWin, : void FuLine::DoExecute( SfxRequest& rReq ) { - sal_Bool bHasMarked = mpView->AreObjectsMarked(); + bool bHasMarked = mpView->AreObjectsMarked(); const SfxItemSet* pArgs = rReq.GetArgs(); diff --git a/sd/source/ui/func/fulinend.cxx b/sd/source/ui/func/fulinend.cxx index 01be0670ab84..304d82ff947c 100644 --- a/sd/source/ui/func/fulinend.cxx +++ b/sd/source/ui/func/fulinend.cxx @@ -98,18 +98,18 @@ void FuLineEnd::DoExecute( SfxRequest& ) long nCount = pLineEndList->Count(); long j = 1; - sal_Bool bDifferent = sal_False; + bool bDifferent = false; while( !bDifferent ) { aName = aNewName; aName += " "; aName += OUString::number(j++); - bDifferent = sal_True; + bDifferent = true; for( long i = 0; i < nCount && bDifferent; i++ ) { if( aName == pLineEndList->GetLineEnd( i )->GetName() ) - bDifferent = sal_False; + bDifferent = false; } } @@ -123,12 +123,12 @@ void FuLineEnd::DoExecute( SfxRequest& ) if( pDlg->Execute() == RET_OK ) { pDlg->GetName( aName ); - bDifferent = sal_True; + bDifferent = true; for( long i = 0; i < nCount && bDifferent; i++ ) { if( aName == pLineEndList->GetLineEnd( i )->GetName() ) - bDifferent = sal_False; + bDifferent = false; } if( bDifferent ) diff --git a/sd/source/ui/func/fumorph.cxx b/sd/source/ui/func/fumorph.cxx index 5a94f8f75c93..73a1a8f49c67 100644 --- a/sd/source/ui/func/fumorph.cxx +++ b/sd/source/ui/func/fumorph.cxx @@ -330,7 +330,7 @@ void FuMorph::ImpAddPolys( */ void FuMorph::ImpInsertPolygons( B2DPolyPolygonList_impl& rPolyPolyList3D, - sal_Bool bAttributeFade, + bool bAttributeFade, const SdrObject* pObj1, const SdrObject* pObj2 ) @@ -345,11 +345,11 @@ void FuMorph::ImpInsertPolygons( SfxItemPool* pPool = pObj1->GetObjectItemPool(); SfxItemSet aSet1( *pPool,SDRATTR_START,SDRATTR_NOTPERSIST_FIRST-1,EE_ITEMS_START,EE_ITEMS_END,0 ); SfxItemSet aSet2( aSet1 ); - sal_Bool bLineColor = sal_False; - sal_Bool bFillColor = sal_False; - sal_Bool bLineWidth = sal_False; - sal_Bool bIgnoreLine = sal_False; - sal_Bool bIgnoreFill = sal_False; + bool bLineColor = false; + bool bFillColor = false; + bool bLineWidth = false; + bool bIgnoreLine = false; + bool bIgnoreFill = false; aSet1.Put(pObj1->GetMergedItemSet()); aSet2.Put(pObj2->GetMergedItemSet()); @@ -363,7 +363,7 @@ void FuMorph::ImpInsertPolygons( { if ( ( eLineStyle1 != XLINE_NONE ) && ( eLineStyle2 != XLINE_NONE ) ) { - bLineWidth = bLineColor = sal_True; + bLineWidth = bLineColor = true; aStartLineCol = static_cast< XLineColorItem const & >( aSet1.Get(XATTR_LINECOLOR)).GetColorValue(); @@ -374,18 +374,18 @@ void FuMorph::ImpInsertPolygons( nEndLineWidth = ITEMVALUE( aSet2, XATTR_LINEWIDTH, XLineWidthItem ); } else if ( ( eLineStyle1 == XLINE_NONE ) && ( eLineStyle2 == XLINE_NONE ) ) - bIgnoreLine = sal_True; + bIgnoreLine = true; if ( ( eFillStyle1 == XFILL_SOLID ) && ( eFillStyle2 == XFILL_SOLID ) ) { - bFillColor = sal_True; + bFillColor = true; aStartFillCol = static_cast< XFillColorItem const & >( aSet1.Get(XATTR_FILLCOLOR)).GetColorValue(); aEndFillCol = static_cast< XFillColorItem const & >( aSet2.Get(XATTR_FILLCOLOR)).GetColorValue(); } else if ( ( eFillStyle1 == XFILL_NONE ) && ( eFillStyle2 == XFILL_NONE ) ) - bIgnoreFill = sal_True; + bIgnoreFill = true; } if ( pPageView ) @@ -479,7 +479,7 @@ void FuMorph::ImpInsertPolygons( /** * create morphed PolyPolygons */ -sal_Bool FuMorph::ImpMorphPolygons( +bool FuMorph::ImpMorphPolygons( const ::basegfx::B2DPolyPolygon& rPolyPoly1, const ::basegfx::B2DPolyPolygon& rPolyPoly2, const sal_uInt16 nSteps, @@ -510,7 +510,7 @@ sal_Bool FuMorph::ImpMorphPolygons( rPolyPolyList3D.push_back( pNewPolyPoly2D ); } } - return sal_True; + return true; } } // end of namespace sd diff --git a/sd/source/ui/func/fuoaprms.cxx b/sd/source/ui/func/fuoaprms.cxx index 805baed8245e..a7d087974e93 100644 --- a/sd/source/ui/func/fuoaprms.cxx +++ b/sd/source/ui/func/fuoaprms.cxx @@ -103,20 +103,20 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) presentation::AnimationEffect eEffect = presentation::AnimationEffect_NONE; presentation::AnimationEffect eTextEffect = presentation::AnimationEffect_NONE; presentation::AnimationSpeed eSpeed = presentation::AnimationSpeed_MEDIUM; - sal_Bool bActive = sal_False; - sal_Bool bFadeOut = sal_False; + bool bActive = false; + bool bFadeOut = false; Color aFadeColor = COL_LIGHTGRAY; - sal_Bool bInvisible = sal_False; - sal_Bool bSoundOn = sal_False; + bool bInvisible = false; + bool bSoundOn = false; OUString aSound; - sal_Bool bPlayFull = sal_False; + bool bPlayFull = false; presentation::ClickAction eClickAction = presentation::ClickAction_NONE; OUString aBookmark; presentation::AnimationEffect eSecondEffect = presentation::AnimationEffect_NONE; presentation::AnimationSpeed eSecondSpeed = presentation::AnimationSpeed_MEDIUM; - sal_Bool bSecondSoundOn = sal_False; - sal_Bool bSecondPlayFull = sal_False; + bool bSecondSoundOn = false; + bool bSecondPlayFull = false; SdAnimationInfo* pInfo; @@ -234,7 +234,7 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) } else { - if (nAnimationSet == ATTR_SET && bActive == sal_True) + if (nAnimationSet == ATTR_SET && bActive) nAnimationSet = ATTR_MIXED; if (nEffectSet == ATTR_SET && eEffect != presentation::AnimationEffect_NONE) @@ -246,22 +246,22 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) if (nSpeedSet == ATTR_SET) nSpeedSet = ATTR_MIXED; - if (nFadeOutSet == ATTR_SET && bFadeOut == sal_True) + if (nFadeOutSet == ATTR_SET && bFadeOut) nFadeOutSet = ATTR_MIXED; if (nFadeColorSet == ATTR_SET) nFadeColorSet = ATTR_MIXED; - if (nInvisibleSet == ATTR_SET && bInvisible == sal_True) + if (nInvisibleSet == ATTR_SET && bInvisible) nInvisibleSet = ATTR_MIXED; - if (nSoundOnSet == ATTR_SET && bSoundOn == sal_True) + if (nSoundOnSet == ATTR_SET && bSoundOn) nSoundOnSet = ATTR_MIXED; if (nSoundFileSet == ATTR_SET) nSoundFileSet = ATTR_MIXED; - if (nPlayFullSet == ATTR_SET && bPlayFull == sal_True) + if (nPlayFullSet == ATTR_SET && bPlayFull) nPlayFullSet = ATTR_MIXED; if (nClickActionSet == ATTR_SET && eClickAction != presentation::ClickAction_NONE) @@ -276,10 +276,10 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) if (nSecondSpeedSet == ATTR_SET) nSecondSpeedSet = ATTR_MIXED; - if (nSecondSoundOnSet == ATTR_SET && bSecondSoundOn == sal_True) + if (nSecondSoundOnSet == ATTR_SET && bSecondSoundOn) nSecondSoundOnSet = ATTR_MIXED; - if (nSecondPlayFullSet == ATTR_SET && bSecondPlayFull == sal_True) + if (nSecondPlayFullSet == ATTR_SET && bSecondPlayFull) nSecondPlayFullSet = ATTR_MIXED; } } @@ -683,11 +683,11 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) pInfo = mpDoc->GetAnimationInfo(pObject); - sal_Bool bCreated = sal_False; + bool bCreated = false; if( !pInfo ) { pInfo = SdDrawDocument::GetShapeUserData(*pObject,true); - bCreated = sal_True; + bCreated = true; } // path object for 'following curves'? diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx index e3c09761a210..870d4e24b213 100644 --- a/sd/source/ui/func/fuolbull.cxx +++ b/sd/source/ui/func/fuolbull.cxx @@ -319,8 +319,8 @@ const SfxPoolItem* FuOutlineBullet::GetNumBulletItem(SfxItemSet& aNewAttr, sal_u return pTmpItem; else { - sal_Bool bOutliner = sal_False; - sal_Bool bTitle = sal_False; + bool bOutliner = false; + bool bTitle = false; if( mpView ) { @@ -335,10 +335,10 @@ const SfxPoolItem* FuOutlineBullet::GetNumBulletItem(SfxItemSet& aNewAttr, sal_u switch(pObj->GetObjIdentifier()) { case OBJ_TITLETEXT: - bTitle = sal_True; + bTitle = true; break; case OBJ_OUTLINETEXT: - bOutliner = sal_True; + bOutliner = true; break; } } diff --git a/sd/source/ui/func/fuoltext.cxx b/sd/source/ui/func/fuoltext.cxx index 626a411950c8..b9ca47444585 100644 --- a/sd/source/ui/func/fuoltext.cxx +++ b/sd/source/ui/func/fuoltext.cxx @@ -97,11 +97,11 @@ rtl::Reference<FuPoor> FuOutlineText::Create( ViewShell* pViewSh, ::sd::Window* } -sal_Bool FuOutlineText::MouseButtonDown(const MouseEvent& rMEvt) +bool FuOutlineText::MouseButtonDown(const MouseEvent& rMEvt) { mpWindow->GrabFocus(); - sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonDown(rMEvt); + bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonDown(rMEvt); if (bReturn) { @@ -117,9 +117,9 @@ sal_Bool FuOutlineText::MouseButtonDown(const MouseEvent& rMEvt) } -sal_Bool FuOutlineText::MouseMove(const MouseEvent& rMEvt) +bool FuOutlineText::MouseMove(const MouseEvent& rMEvt) { - sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseMove(rMEvt); + bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseMove(rMEvt); if (!bReturn) { @@ -130,9 +130,9 @@ sal_Bool FuOutlineText::MouseMove(const MouseEvent& rMEvt) } -sal_Bool FuOutlineText::MouseButtonUp(const MouseEvent& rMEvt) +bool FuOutlineText::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonUp(rMEvt); + bool bReturn = pOutlineView->GetViewByWindow(mpWindow)->MouseButtonUp(rMEvt); if (bReturn) { @@ -148,7 +148,7 @@ sal_Bool FuOutlineText::MouseButtonUp(const MouseEvent& rMEvt) if( pField && pField->ISA( SvxURLField ) ) { - bReturn = sal_True; + bReturn = true; mpWindow->ReleaseMouse(); SfxStringItem aStrItem( SID_FILE_NAME, ( (SvxURLField*) pField)->GetURL() ); SfxStringItem aReferer( SID_REFERER, mpDocSh->GetMedium()->GetName() ); @@ -182,9 +182,9 @@ sal_Bool FuOutlineText::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuOutlineText::KeyInput(const KeyEvent& rKEvt) +bool FuOutlineText::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; sal_uInt16 nKeyGroup = rKEvt.GetKeyCode().GetGroup(); if( !mpDocSh->IsReadOnly() || nKeyGroup == KEYGROUP_CURSOR ) diff --git a/sd/source/ui/func/fuoutl.cxx b/sd/source/ui/func/fuoutl.cxx index 23d2a3754597..c9ba61135bba 100644 --- a/sd/source/ui/func/fuoutl.cxx +++ b/sd/source/ui/func/fuoutl.cxx @@ -43,9 +43,9 @@ FuOutline::FuOutline ( /** * forward to OutlinerView */ -sal_Bool FuOutline::Command(const CommandEvent& rCEvt) +bool FuOutline::Command(const CommandEvent& rCEvt) { - sal_Bool bResult = sal_False; + bool bResult = false; OutlinerView* pOlView = static_cast<OutlineView*>(mpView)->GetViewByWindow(mpWindow); @@ -54,7 +54,7 @@ sal_Bool FuOutline::Command(const CommandEvent& rCEvt) if (pOlView) { pOlView->Command(rCEvt); // unfortunately, we do not get a return value - bResult = sal_True; + bResult = true; } return bResult; } diff --git a/sd/source/ui/func/fupage.cxx b/sd/source/ui/func/fupage.cxx index d4c4102a9455..92776325786f 100644 --- a/sd/source/ui/func/fupage.cxx +++ b/sd/source/ui/func/fupage.cxx @@ -225,7 +225,7 @@ const SfxItemSet* FuPage::ExecuteDialog( Window* pParent ) bool bScale = mpDoc->GetDocumentType() != DOCUMENT_TYPE_DRAW; aNewAttr.Put( SfxBoolItem( SID_ATTR_PAGE_EXT1, bScale ? sal_True : sal_False ) ); - sal_Bool bFullSize = mpPage->IsMasterPage() ? + bool bFullSize = mpPage->IsMasterPage() ? mpPage->IsBackgroundFullSize() : ((SdPage&)mpPage->TRG_GetMasterPage()).IsBackgroundFullSize(); aNewAttr.Put( SfxBoolItem( SID_ATTR_PAGE_EXT2, bFullSize ) ); @@ -325,7 +325,7 @@ const SfxItemSet* FuPage::ExecuteDialog( Window* pParent ) { // if some fillstyle-items are not set in the dialog, then // try to use the items before - sal_Bool bChanges = sal_False; + bool bChanges = false; for( sal_uInt16 i=XATTR_FILL_FIRST; i<XATTR_FILL_LAST; i++ ) { if( aMergedAttr.GetItemState( i ) != SFX_ITEM_DEFAULT ) @@ -334,7 +334,7 @@ const SfxItemSet* FuPage::ExecuteDialog( Window* pParent ) pTempSet->Put( aMergedAttr.Get( i ) ); else if( aMergedAttr.GetItem( i ) != pTempSet->GetItem( i ) ) - bChanges = sal_True; + bChanges = true; } } @@ -489,13 +489,13 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) // Set new page-attributes PageKind ePageKind = mpDrawViewShell->GetPageKind(); const SfxPoolItem* pPoolItem; - sal_Bool bSetPageSizeAndBorder = sal_False; + bool bSetPageSizeAndBorder = false; Size aNewSize(maSize); sal_Int32 nLeft = -1, nRight = -1, nUpper = -1, nLower = -1; - sal_Bool bScaleAll = sal_True; + bool bScaleAll = true; Orientation eOrientation = mpPage->GetOrientation(); SdPage* pMasterPage = mpPage->IsMasterPage() ? mpPage : &(SdPage&)(mpPage->TRG_GetMasterPage()); - sal_Bool bFullSize = pMasterPage->IsBackgroundFullSize(); + bool bFullSize = pMasterPage->IsBackgroundFullSize(); sal_uInt16 nPaperBin = mpPage->GetPaperBin(); if( pArgs->GetItemState(SID_ATTR_PAGE, true, &pPoolItem) == SFX_ITEM_SET ) @@ -506,7 +506,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT; if( mpPage->GetOrientation() != eOrientation ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; mpDrawViewShell->ResetActualPage(); } @@ -516,7 +516,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) aNewSize = ((const SvxSizeItem*) pPoolItem)->GetSize(); if( mpPage->GetSize() != aNewSize ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; } if( pArgs->GetItemState(mpDoc->GetPool().GetWhich(SID_ATTR_LRSPACE), @@ -526,7 +526,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) nRight = ((const SvxLRSpaceItem*) pPoolItem)->GetRight(); if( mpPage->GetLftBorder() != nLeft || mpPage->GetRgtBorder() != nRight ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; } @@ -537,7 +537,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) nLower = ((const SvxULSpaceItem*) pPoolItem)->GetLower(); if( mpPage->GetUppBorder() != nUpper || mpPage->GetLwrBorder() != nLower ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; } if( pArgs->GetItemState(mpDoc->GetPool().GetWhich(SID_ATTR_PAGE_EXT1), true, &pPoolItem) == SFX_ITEM_SET ) @@ -550,7 +550,7 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) bFullSize = ((const SfxBoolItem*) pPoolItem)->GetValue(); if(pMasterPage->IsBackgroundFullSize() != bFullSize ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; } // Paper Bin @@ -559,18 +559,18 @@ void FuPage::ApplyItemSet( const SfxItemSet* pArgs ) nPaperBin = ((const SvxPaperBinItem*) pPoolItem)->GetValue(); if( mpPage->GetPaperBin() != nPaperBin ) - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; } if (nLeft == -1 && nUpper != -1) { - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; nLeft = mpPage->GetLftBorder(); nRight = mpPage->GetRgtBorder(); } else if (nLeft != -1 && nUpper == -1) { - bSetPageSizeAndBorder = sal_True; + bSetPageSizeAndBorder = true; nUpper = mpPage->GetUppBorder(); nLower = mpPage->GetLwrBorder(); } diff --git a/sd/source/ui/func/fuparagr.cxx b/sd/source/ui/func/fuparagr.cxx index e4250eddaa58..edc1f611b9e6 100644 --- a/sd/source/ui/func/fuparagr.cxx +++ b/sd/source/ui/func/fuparagr.cxx @@ -123,7 +123,7 @@ void FuParagraph::DoExecute( SfxRequest& rReq ) const SfxPoolItem *pItem = 0; if( SFX_ITEM_SET == pArgs->GetItemState( ATTR_NUMBER_NEWSTART, false, &pItem ) ) { - const sal_Bool bNewStart = ((SfxBoolItem*)pItem)->GetValue() ? sal_True : sal_False; + const bool bNewStart = ((SfxBoolItem*)pItem)->GetValue() ? sal_True : sal_False; pOutliner->SetParaIsNumberingRestart( eSelection.nStartPara, bNewStart ); } diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx index fdf2086953cb..9d642e5949a7 100644 --- a/sd/source/ui/func/fupoor.cxx +++ b/sd/source/ui/func/fupoor.cxx @@ -77,11 +77,11 @@ FuPoor::FuPoor ( nSlotId( rReq.GetSlot() ), nSlotValue(0), pDialog(NULL), - bIsInDragMode(sal_False), - bNoScrollUntilInside (sal_True), - bScrollable (sal_False), - bDelayActive (sal_False), - bFirstMouseMove (sal_False), + bIsInDragMode(false), + bNoScrollUntilInside (true), + bScrollable (false), + bDelayActive (false), + bFirstMouseMove (false), // remember MouseButton state mnCode(0) { @@ -124,7 +124,7 @@ void FuPoor::Deactivate() aScrollTimer.Stop(); aDelayToScrollTimer.Stop (); bScrollable = - bDelayActive = sal_False; + bDelayActive = false; if (pDialog) { @@ -150,7 +150,7 @@ void FuPoor::ForceScroll(const Point& aPixPos) if ( bNoScrollUntilInside ) { if ( rRect.IsInside(aPos) ) - bNoScrollUntilInside = sal_False; + bNoScrollUntilInside = false; } else { @@ -194,11 +194,11 @@ IMPL_LINK_INLINE_END( FuPoor, ScrollHdl, Timer *, pTimer ) * handle keyboard events * @returns sal_True if the event was handled, sal_False otherwise */ -sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) +bool FuPoor::KeyInput(const KeyEvent& rKEvt) { sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode(); - sal_Bool bReturn = sal_False; - sal_Bool bSlideShow = SlideShow::IsRunning( mpViewShell->GetViewShellBase() ); + bool bReturn = false; + bool bSlideShow = SlideShow::IsRunning( mpViewShell->GetViewShellBase() ); switch (nCode) { @@ -251,7 +251,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) } // consumed - bReturn = sal_True; + bReturn = true; } } else @@ -279,7 +279,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) } // consumed - bReturn = sal_True; + bReturn = true; } } } @@ -292,7 +292,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) { // do something with a selected handle? const SdrHdlList& rHdlList = mpView->GetHdlList(); - sal_Bool bForward(!rKEvt.GetKeyCode().IsShift()); + bool bForward(!rKEvt.GetKeyCode().IsShift()); ((SdrHdlList&)rHdlList).TravelFocusHdl(bForward); @@ -307,7 +307,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) } // consumed - bReturn = sal_True; + bReturn = true; } } break; @@ -327,9 +327,9 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) if (mpViewShell->ISA(DrawViewShell)) static_cast<DrawViewShell*>(mpViewShell) - ->SetZoomOnPage(sal_False); + ->SetZoomOnPage(false); - bReturn = sal_True; + bReturn = true; } } break; @@ -343,9 +343,9 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) if (mpViewShell->ISA(DrawViewShell)) static_cast<DrawViewShell*>(mpViewShell) - ->SetZoomOnPage(sal_False); + ->SetZoomOnPage(false); - bReturn = sal_True; + bReturn = true; } } break; @@ -357,7 +357,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) // zoom to page mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_SIZE_PAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); - bReturn = sal_True; + bReturn = true; } } break; @@ -369,7 +369,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) // zoom to selected objects mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_SIZE_OPTIMAL, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); - bReturn = sal_True; + bReturn = true; } } break; @@ -382,7 +382,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) { // use next ZoomRect mpViewShell->SetZoomRect(pZoomList->GetNextZoomRect()); - bReturn = sal_True; + bReturn = true; } } break; @@ -395,7 +395,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) { // use previous ZoomRect mpViewShell->SetZoomRect(pZoomList->GetPreviousZoomRect()); - bReturn = sal_True; + bReturn = true; } } break; @@ -408,7 +408,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) { // jump to first page static_cast<DrawViewShell*>(mpViewShell)->SwitchPage(0); - bReturn = sal_True; + bReturn = true; } } break; @@ -425,7 +425,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) static_cast<DrawViewShell*>(mpViewShell) ->SwitchPage(mpDoc->GetSdPageCount( pPage->GetPageKind()) - 1); - bReturn = sal_True; + bReturn = true; } } break; @@ -446,7 +446,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) mpView->SdrEndTextEdit(); // Previous page. - bReturn = sal_True; + bReturn = true; SdPage* pPage = static_cast<DrawViewShell*>(mpViewShell)->GetActualPage(); sal_uInt16 nSdPage = (pPage->GetPageNum() - 1) / 2; @@ -492,7 +492,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) mpView->SdrEndTextEdit(); // Next page. - bReturn = sal_True; + bReturn = true; SdPage* pPage = static_cast<DrawViewShell*>(mpViewShell)->GetActualPage(); sal_uInt16 nSdPage = (pPage->GetPageNum() - 1) / 2; @@ -579,7 +579,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) } } - bReturn = sal_True; + bReturn = true; } } } @@ -626,8 +626,8 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) const SdrHdlList& rHdlList = mpView->GetHdlList(); SdrHdl* pHdl = rHdlList.GetFocusHdl(); - sal_Bool bIsMoveOfConnectedHandle(sal_False); - sal_Bool bOldSuppress = false; + bool bIsMoveOfConnectedHandle(false); + bool bOldSuppress = false; SdrEdgeObj* pEdgeObj = 0L; if(pHdl && pHdl->GetObj() && pHdl->GetObj()->ISA(SdrEdgeObj) && 0 == pHdl->GetPolyNum()) @@ -638,14 +638,14 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) { if(pEdgeObj->GetConnection(true).GetObject()) { - bIsMoveOfConnectedHandle = sal_True; + bIsMoveOfConnectedHandle = true; } } if(1L == pHdl->GetPointNum()) { if(pEdgeObj->GetConnection(false).GetObject()) { - bIsMoveOfConnectedHandle = sal_True; + bIsMoveOfConnectedHandle = true; } } } @@ -754,7 +754,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) if(mpView->IsDragObj()) { bool bWasNoSnap = rDragStat.IsNoSnap(); - sal_Bool bWasSnapEnabled = mpView->IsSnapEnabled(); + bool bWasSnapEnabled = mpView->IsSnapEnabled(); // switch snapping off if(!bWasNoSnap) @@ -790,7 +790,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) mpViewShell->ScrollLines(nX, nY); } - bReturn = sal_True; + bReturn = true; } } break; @@ -818,7 +818,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) if(pObj->ISA(SdrTextObj) && pObj->HasTextEdit()) { // use common IsSimpleCharInput from the EditEngine. - sal_Bool bPrintable(EditEngine::IsSimpleCharInput(rKEvt)); + bool bPrintable(EditEngine::IsSimpleCharInput(rKEvt)); if(bPrintable) { @@ -832,7 +832,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) 0L); // consumed - bReturn = sal_True; + bReturn = true; } } } @@ -883,7 +883,7 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) 0L); // consumed - bReturn = sal_True; + bReturn = true; } } } @@ -893,9 +893,9 @@ sal_Bool FuPoor::KeyInput(const KeyEvent& rKEvt) return(bReturn); } -sal_Bool FuPoor::MouseMove(const MouseEvent& ) +bool FuPoor::MouseMove(const MouseEvent& ) { - return sal_False; + return false; } void FuPoor::SelectionHasChanged() @@ -950,7 +950,7 @@ void FuPoor::DoPasteUnformatted() { mpView->InsertData( aDataHelper, mpWindow->PixelToLogic( Rectangle( Point(), mpWindow->GetOutputSizePixel() ).Center() ), - nAction, sal_False, FORMAT_STRING); + nAction, false, FORMAT_STRING); } } } @@ -966,17 +966,17 @@ IMPL_LINK_NOARG(FuPoor, DragHdl) SdrHdl* pHdl = mpView->PickHandle(aMDPos); if ( pHdl==NULL && mpView->IsMarkedHit(aMDPos, nHitLog) - && !mpView->IsPresObjSelected(sal_False, sal_True) ) + && !mpView->IsPresObjSelected(false, true) ) { mpWindow->ReleaseMouse(); - bIsInDragMode = sal_True; + bIsInDragMode = true; mpView->StartDrag( aMDPos, mpWindow ); } } return 0; } -sal_Bool FuPoor::Command(const CommandEvent& rCEvt) +bool FuPoor::Command(const CommandEvent& rCEvt) { return( mpView->Command(rCEvt,mpWindow) ); } @@ -987,7 +987,7 @@ sal_Bool FuPoor::Command(const CommandEvent& rCEvt) IMPL_LINK_NOARG_INLINE_START(FuPoor, DelayHdl) { aDelayToScrollTimer.Stop (); - bScrollable = sal_True; + bScrollable = true; Point aPnt(mpWindow->GetPointerPosPixel()); @@ -999,33 +999,33 @@ IMPL_LINK_NOARG_INLINE_START(FuPoor, DelayHdl) } IMPL_LINK_INLINE_END( FuPoor, DelayHdl, Timer *, pTimer ) -sal_Bool FuPoor::MouseButtonUp (const MouseEvent& rMEvt) +bool FuPoor::MouseButtonUp (const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); aDelayToScrollTimer.Stop (); return bScrollable = - bDelayActive = sal_False; + bDelayActive = false; } -sal_Bool FuPoor::MouseButtonDown(const MouseEvent& rMEvt) +bool FuPoor::MouseButtonDown(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); - return sal_False; + return false; } void FuPoor::StartDelayToScrollTimer () { - bDelayActive = sal_True; + bDelayActive = true; aDelayToScrollTimer.Start (); } -sal_Bool FuPoor::RequestHelp(const HelpEvent& rHEvt) +bool FuPoor::RequestHelp(const HelpEvent& rHEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; SdrPageView* pPV = mpView->GetSdrPageView(); diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 05f015109155..10f58307354e 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -86,7 +86,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) mpView->UnmarkAll(); } - sal_Bool bError = sal_False; + bool bError = false; // determine the active page sal_uInt16 nSelectedPage = SDRPAGE_NOTFOUND; @@ -108,19 +108,19 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) /* if we are on a master page, the changes apply for all pages and notes- pages who are using the relevant layout */ - sal_Bool bOnMaster = sal_False; + bool bOnMaster = false; if( mpViewShell && mpViewShell->ISA(DrawViewShell)) { EditMode eEditMode = static_cast<DrawViewShell*>(mpViewShell)->GetEditMode(); if (eEditMode == EM_MASTERPAGE) - bOnMaster = sal_True; + bOnMaster = true; } - sal_Bool bMasterPage = bOnMaster; - sal_Bool bCheckMasters = sal_False; + bool bMasterPage = bOnMaster; + bool bCheckMasters = false; // call dialog - sal_Bool bLoad = sal_False; // appear the new master pages? + bool bLoad = false; // appear the new master pages? OUString aFile; SfxItemSet aSet(mpDoc->GetPool(), ATTR_PRESLAYOUT_START, ATTR_PRESLAYOUT_END); @@ -169,7 +169,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) break; default: - bError = sal_True; + bError = true; } delete pDlg; } @@ -185,7 +185,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) removing a masterpage, it's possible that you are removing the current masterpage. So you have to call ResetActualPage ! */ if( mpViewShell->ISA(DrawViewShell) && !bCheckMasters ) - static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(sal_True); + static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(true); if (bLoad) { @@ -210,7 +210,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) // remove blocking if (mpViewShell->ISA(DrawViewShell) && !bCheckMasters ) - static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(sal_False); + static_cast<DrawView*>(mpView)->BlockPageOrderChangedHint(false); // if the master page was visible, show it again if (!bError && nSelectedPage != SDRPAGE_NOTFOUND) @@ -245,7 +245,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) DrawViewShell* pDrawViewSh = static_cast<DrawViewShell*>(mpViewShell); EditMode eMode = pDrawViewSh->GetEditMode(); - sal_Bool bLayer = pDrawViewSh->IsLayerModeActive(); + bool bLayer = pDrawViewSh->IsLayerModeActive(); pDrawViewSh->ChangeEditMode( eMode, !bLayer ); pDrawViewSh->ChangeEditMode( eMode, bLayer ); } diff --git a/sd/source/ui/func/fuprobjs.cxx b/sd/source/ui/func/fuprobjs.cxx index 441c0caf0a1e..a200955bb51f 100644 --- a/sd/source/ui/func/fuprobjs.cxx +++ b/sd/source/ui/func/fuprobjs.cxx @@ -77,7 +77,7 @@ void FuPresentationObjects::DoExecute( SfxRequest& ) OUString aLayoutName = ((SfxStringItem&)aSet.Get(SID_STATUS_LAYOUT)).GetValue(); DBG_ASSERT(!aLayoutName.isEmpty(), "Layout not defined"); - sal_Bool bUnique = sal_False; + bool bUnique = false; sal_Int16 nDepth, nTmp; OutlineView* pOlView = static_cast<OutlineView*>(pOutlineViewShell->GetView()); OutlinerView* pOutlinerView = pOlView->GetViewByWindow( (Window*) mpWindow ); @@ -100,16 +100,16 @@ void FuPresentationObjects::DoExecute( SfxRequest& ) if( nDepth != nTmp ) { - bUnique = sal_False; + bUnique = false; break; } if( pOutl->HasParaFlag( pPara, PARAFLAG_ISPAGE ) != bPage ) { - bUnique = sal_False; + bUnique = false; break; } - bUnique = sal_True; + bUnique = true; ++iter; } diff --git a/sd/source/ui/func/fusearch.cxx b/sd/source/ui/func/fusearch.cxx index f3c1cf22ae6d..704550c353cc 100644 --- a/sd/source/ui/func/fusearch.cxx +++ b/sd/source/ui/func/fusearch.cxx @@ -58,7 +58,7 @@ FuSearch::FuSearch ( SfxRequest& rReq ) : FuPoor(pViewSh, pWin, pView, pDoc, rReq), pSdOutliner(NULL), - bOwnOutliner(sal_False) + bOwnOutliner(false) { } @@ -75,12 +75,12 @@ void FuSearch::DoExecute( SfxRequest& ) if ( mpViewShell->ISA(DrawViewShell) ) { - bOwnOutliner = sal_True; + bOwnOutliner = true; pSdOutliner = new ::sd::Outliner( mpDoc, OUTLINERMODE_TEXTOBJECT ); } else if ( mpViewShell->ISA(OutlineViewShell) ) { - bOwnOutliner = sal_False; + bOwnOutliner = false; pSdOutliner = mpDoc->GetOutliner(); } @@ -114,7 +114,7 @@ void FuSearch::SearchAndReplace( const SvxSearchItem* pSearchItem ) { pSdOutliner->EndSpelling(); - bOwnOutliner = sal_True; + bOwnOutliner = true; pSdOutliner = new ::sd::Outliner( mpDoc, OUTLINERMODE_TEXTOBJECT ); pSdOutliner->PrepareSpelling(); } @@ -123,14 +123,14 @@ void FuSearch::SearchAndReplace( const SvxSearchItem* pSearchItem ) pSdOutliner->EndSpelling(); delete pSdOutliner; - bOwnOutliner = sal_False; + bOwnOutliner = false; pSdOutliner = mpDoc->GetOutliner(); pSdOutliner->PrepareSpelling(); } if (pSdOutliner) { - sal_Bool bEndSpelling = pSdOutliner->StartSearchAndReplace(pSearchItem); + bool bEndSpelling = pSdOutliner->StartSearchAndReplace(pSearchItem); if (bEndSpelling) { diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index cd8630ea3fb1..82c1c45713e1 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -83,19 +83,19 @@ FuSelection::FuSelection ( SdDrawDocument* pDoc, SfxRequest& rReq) : FuDraw(pViewSh, pWin, pView, pDoc, rReq), - bTempRotation(sal_False), - bSelectionChanged(sal_False), - bHideAndAnimate(sal_False), + bTempRotation(false), + bSelectionChanged(false), + bHideAndAnimate(false), pHdl(NULL), - bSuppressChangesOfSelection(sal_False), - bMirrorSide0(sal_False), + bSuppressChangesOfSelection(false), + bMirrorSide0(false), nEditMode(SID_BEZIER_MOVE), pWaterCanCandidate(NULL) //Add Shift+UP/DOWN/LEFT/RIGHT key to move the position of insert point, //and SHIFT+ENTER key to decide the position and draw the new insert point - ,bBeginInsertPoint(sal_False), + ,bBeginInsertPoint(false), oldPoint(0,0) - ,bMovedToCenterPoint(sal_False) + ,bMovedToCenterPoint(false) { } @@ -125,28 +125,28 @@ FuSelection::~FuSelection() } } -sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) +bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) { // Hack for #?????# - bHideAndAnimate = sal_False; + bHideAndAnimate = false; pHdl = NULL; - sal_Bool bReturn = FuDraw::MouseButtonDown(rMEvt); - sal_Bool bWaterCan = SD_MOD()->GetWaterCan(); + bool bReturn = FuDraw::MouseButtonDown(rMEvt); + bool bWaterCan = SD_MOD()->GetWaterCan(); const bool bReadOnly = mpDocSh->IsReadOnly(); // When the right mouse button is pressed then only select objects // (and deselect others) as a preparation for showing the context // menu. const bool bSelectionOnly = rMEvt.IsRight(); - bMBDown = sal_True; - bSelectionChanged = sal_False; + bMBDown = true; + bSelectionChanged = false; if ( mpView->IsAction() ) { if ( rMEvt.IsRight() ) mpView->BckAction(); - return sal_True; + return true; } sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); @@ -173,7 +173,7 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) long nAngle0 = GetAngle(aMDPos - mpView->GetRef1()); nAngle0 -= 27000; nAngle0 = NormAngle360(nAngle0); - bMirrorSide0 = sal_Bool (nAngle0 < 18000L); + bMirrorSide0 = nAngle0 < 18000L; if (!pHdl && mpView->Is3DRotationCreationActive()) { @@ -181,23 +181,23 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) * If 3D-rotation bodies are about to be created, * end creation now. ******************************************************************/ - bSuppressChangesOfSelection = sal_True; + bSuppressChangesOfSelection = true; if(mpWindow) mpWindow->EnterWait(); mpView->End3DCreation(); - bSuppressChangesOfSelection = sal_False; + bSuppressChangesOfSelection = false; mpView->ResetCreationActive(); if(mpWindow) mpWindow->LeaveWait(); } - sal_Bool bTextEdit = sal_False; + bool bTextEdit = false; SdrViewEvent aVEvt; SdrHitKind eHit = mpView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); if ( eHit == SDRHIT_TEXTEDITOBJ && ( mpViewShell->GetFrameView()->IsQuickEdit() || dynamic_cast< sdr::table::SdrTableObj* >( aVEvt.pObj ) != NULL ) ) { - bTextEdit = sal_True; + bTextEdit = true; } if(!bTextEdit @@ -220,20 +220,20 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) else { // hit handle or marked object - bFirstMouseMove = sal_True; + bFirstMouseMove = true; aDragTimer.Start(); } if ( ! rMEvt.IsRight()) mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog); - bReturn = sal_True; + bReturn = true; } else { if (!rMEvt.IsMod2() && mpView->PickObj(aMDPos, mpView->getHitTolLog(), pObj, pPV, SDRSEARCH_PICKMACRO)) { mpView->BegMacroObj(aMDPos, nHitLog, pObj, pPV, mpWindow); - bReturn = sal_True; + bReturn = true; } else if ( bTextEdit ) { @@ -280,7 +280,7 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) &aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0L); } - bReturn = sal_True; + bReturn = true; } else if(!rMEvt.IsMod2() && mpViewShell->ISA(DrawViewShell) @@ -320,7 +320,7 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) { // New: double click on empty space/on obj on MasterPage, leave group mpView->LeaveOneGroup(); - bReturn = sal_True; + bReturn = true; } } } @@ -339,8 +339,8 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) } else { - bReturn = sal_True; - sal_Bool bDeactivateOLE = sal_False; + bReturn = true; + bool bDeactivateOLE = false; if ( !rMEvt.IsShift() && !rMEvt.IsMod2() ) { @@ -351,13 +351,13 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) if (pIPClient && pIPClient->IsObjectInPlaceActive()) { // OLE-Objekt gets deactivated in subsequent UnmarkAll() - bDeactivateOLE = sal_True; + bDeactivateOLE = true; } mpView->UnmarkAll(); } - sal_Bool bMarked = sal_False; + bool bMarked = false; if ( !rMEvt.IsMod1() && !bDeactivateOLE) { @@ -367,12 +367,12 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) } else { - sal_Bool bToggle = sal_False; + bool bToggle = false; if (rMEvt.IsShift() && mpView->GetMarkedObjectList().GetMarkCount() > 1) { // No Toggle on single selection - bToggle = sal_True; + bToggle = true; } bMarked = mpView->MarkObj(aMDPos, nHitLog, bToggle, false); @@ -510,7 +510,7 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) mpView->UnmarkAllObj(); } - sal_Bool bMarked = sal_False; + bool bMarked = false; if (!rMEvt.IsMod1()) { @@ -563,15 +563,15 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) return bReturn; } -sal_Bool FuSelection::MouseMove(const MouseEvent& rMEvt) +bool FuSelection::MouseMove(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuDraw::MouseMove(rMEvt); + bool bReturn = FuDraw::MouseMove(rMEvt); if (aDragTimer.IsActive()) { if(bFirstMouseMove) { - bFirstMouseMove = sal_False; + bFirstMouseMove = false; } else { @@ -601,9 +601,9 @@ sal_Bool FuSelection::MouseMove(const MouseEvent& rMEvt) return (bReturn); } -sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) +bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; // When the right mouse button is pressed then only select objects // (and deselect others) as a preparation for showing the context // menu. @@ -614,20 +614,20 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) if (bHideAndAnimate) { // Animation is still running -> return immediately - bHideAndAnimate = sal_False; + bHideAndAnimate = false; pHdl = NULL; mpWindow->ReleaseMouse(); - return(sal_True); + return true; } if (aDragTimer.IsActive() ) { aDragTimer.Stop(); - bIsInDragMode = sal_False; + bIsInDragMode = false; } if( !mpView ) - return (sal_False); + return false; Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) ); sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() ); @@ -644,11 +644,11 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) * Object was moved ******************************************************************/ FrameView* pFrameView = mpViewShell->GetFrameView(); - sal_Bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); + bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); if (bDragWithCopy) { - bDragWithCopy = !mpView->IsPresObjSelected(sal_False, sal_True); + bDragWithCopy = !mpView->IsPresObjSelected(false, true); } mpView->SetDragWithCopy(bDragWithCopy); @@ -669,7 +669,7 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) { mpView->UnmarkAllObj(); mpView->MarkObj(pObj,pPV,false,false); - return (sal_True); + return true; } /************************************************************** * Toggle between selection and rotation @@ -692,7 +692,7 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) && ! bSelectionOnly) { - bTempRotation = sal_True; + bTempRotation = true; nSlotId = SID_OBJECT_ROTATE; Activate(); } @@ -706,9 +706,9 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) { if (!pHdl) { - bSuppressChangesOfSelection = sal_True; + bSuppressChangesOfSelection = true; mpView->Start3DCreation(); - bSuppressChangesOfSelection = sal_False; + bSuppressChangesOfSelection = false; } else if (pHdl->GetKind() != HDL_MIRX && pHdl->GetKind() != HDL_REF1 && @@ -721,15 +721,15 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) long nAngle1 = GetAngle(aPnt - mpView->GetRef1()); nAngle1 -= 27000; nAngle1 = NormAngle360(nAngle1); - sal_Bool bMirrorSide1 = sal_Bool (nAngle1 < 18000L); + bool bMirrorSide1 = nAngle1 < 18000L; if (bMirrorSide0 != bMirrorSide1) { - bSuppressChangesOfSelection = sal_True; + bSuppressChangesOfSelection = true; if(mpWindow) mpWindow->EnterWait(); mpView->End3DCreation(); - bSuppressChangesOfSelection = sal_False; + bSuppressChangesOfSelection = false; nSlotId = SID_OBJECT_SELECT; if(mpWindow) mpWindow->LeaveWait(); @@ -799,7 +799,7 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) DoubleClick(rMEvt); } - bMBDown = sal_False; + bMBDown = false; ForcePointer(&rMEvt); pHdl = NULL; @@ -821,7 +821,7 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) (pSingleObj->GetObjInventor() != SdrInventor || pSingleObj->GetObjIdentifier() == OBJ_MEASURE) ) ) { - bReturn = sal_True; + bReturn = true; ForcePointer(&rMEvt); pHdl = NULL; mpWindow->ReleaseMouse(); @@ -846,11 +846,11 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) else if ( mpView->IsDragObj() ) { FrameView* pFrameView = mpViewShell->GetFrameView(); - sal_Bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); + bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); if (bDragWithCopy) { - bDragWithCopy = !mpView->IsPresObjSelected(sal_False, sal_True); + bDragWithCopy = !mpView->IsPresObjSelected(false, true); } mpView->SetDragWithCopy(bDragWithCopy); @@ -901,9 +901,9 @@ sal_Bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) * Process keyboard input * @returns sal_True if a KeyEvent is being processed, sal_False otherwise */ -sal_Bool FuSelection::KeyInput(const KeyEvent& rKEvt) +bool FuSelection::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; switch (rKEvt.GetKeyCode().GetCode()) { @@ -957,8 +957,8 @@ sal_Bool FuSelection::KeyInput(const KeyEvent& rKEvt) MouseEvent eMevt(ePoint,1,2, MOUSE_LEFT, 0); MouseMove(eMevt); oldPoint = ePoint; - bMovedToCenterPoint = sal_True; - bReturn = sal_True; + bMovedToCenterPoint = true; + bReturn = true; } } break; @@ -971,16 +971,16 @@ sal_Bool FuSelection::KeyInput(const KeyEvent& rKEvt) MouseEvent aMevt(oldPoint,1,3, MOUSE_LEFT, KEY_SHIFT); MouseButtonDown(aMevt); mpWindow->CaptureMouse(); - bBeginInsertPoint = sal_True; + bBeginInsertPoint = true; } else { //simulate mouse button up action MouseEvent rMEvt(oldPoint,1,17, MOUSE_LEFT, KEY_SHIFT); MouseButtonUp(rMEvt); - bBeginInsertPoint = sal_False; + bBeginInsertPoint = false; } - bReturn= sal_True; + bReturn= true; } break; } @@ -1110,7 +1110,7 @@ void FuSelection::Activate() case SID_CONVERT_TO_3D_LATHE: { eMode = SDRDRAG_MIRROR; - bSuppressChangesOfSelection = sal_True; + bSuppressChangesOfSelection = true; if ( mpView->GetDragMode() != eMode ) mpView->SetDragMode(eMode); @@ -1118,7 +1118,7 @@ void FuSelection::Activate() if (!mpView->Is3DRotationCreationActive()) mpView->Start3DCreation(); - bSuppressChangesOfSelection = sal_False; + bSuppressChangesOfSelection = false; } break; @@ -1134,7 +1134,7 @@ void FuSelection::Activate() if (nSlotId != SID_OBJECT_ROTATE) { - bTempRotation = sal_False; + bTempRotation = false; } FuDraw::Activate(); @@ -1150,7 +1150,7 @@ void FuSelection::Deactivate() void FuSelection::SelectionHasChanged() { - bSelectionChanged = sal_True; + bSelectionChanged = true; FuDraw::SelectionHasChanged(); @@ -1193,11 +1193,11 @@ void FuSelection::SetEditMode(sal_uInt16 nMode) /** * Execute animation or interaction */ -sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) +bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) { - sal_Bool bAnimated = sal_False; - sal_Bool bClosed = pObj->IsClosedObj(); - sal_Bool bFilled = sal_False; + bool bAnimated = false; + bool bClosed = pObj->IsClosedObj(); + bool bFilled = false; if (bClosed) { @@ -1247,7 +1247,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) Execute(SID_OPENDOC, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD, &aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0L); - bAnimated = sal_True; + bAnimated = true; } } else if (!mpDocSh->ISA(GraphicDocShell) && @@ -1269,7 +1269,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) SfxStringItem aItem(SID_NAVIGATOR_OBJECT, pInfo->GetBookmark()); mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_NAVIGATOR_OBJECT, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1289,7 +1289,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) &aStrItem, &aFrameItem, &aBrowseItem, &aReferer, 0L); } - bAnimated = sal_True; + bAnimated = true; } break; @@ -1300,7 +1300,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_NAVIGATOR_PAGE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1311,7 +1311,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_NAVIGATOR_PAGE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1322,7 +1322,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_NAVIGATOR_PAGE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1333,7 +1333,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) mpViewShell->GetViewFrame()->GetDispatcher()-> Execute(SID_NAVIGATOR_PAGE, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aItem, 0L); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1347,7 +1347,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) catch( uno::Exception& ) { } - bAnimated = sal_True; + bAnimated = true; } break; @@ -1357,7 +1357,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) mpView->UnmarkAll(); mpView->MarkObj(pObj, mpView->GetSdrPageView(), false, false); pDrViewSh->DoVerb((sal_Int16)pInfo->mnVerb); - bAnimated = sal_True; + bAnimated = true; } break; @@ -1382,7 +1382,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) 0L ); } - bAnimated = sal_True; + bAnimated = true; } break; @@ -1403,17 +1403,17 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) *pInArgs, aRet, aOutArgsIndex, aOutArgs); // Check the return value from the script - sal_Bool bTmp = sal_False; + bool bTmp = false; if ( eErr == ERRCODE_NONE && aRet.getValueType() == getCppuBooleanType() && ( aRet >>= bTmp ) && - bTmp == sal_True ) + bTmp ) { - bAnimated = sal_True; + bAnimated = true; } else { - bAnimated = sal_False; + bAnimated = false; } } else @@ -1434,7 +1434,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) default: { - bAnimated = sal_False; + bAnimated = false; } break; } @@ -1458,7 +1458,7 @@ sal_Bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos) break; default: - bAnimated = sal_False; + bAnimated = false; break; } } diff --git a/sd/source/ui/func/fusldlg.cxx b/sd/source/ui/func/fusldlg.cxx index b5ac8f79fbe5..ea5333cf133d 100644 --- a/sd/source/ui/func/fusldlg.cxx +++ b/sd/source/ui/func/fusldlg.cxx @@ -115,7 +115,7 @@ void FuSlideShowDlg::DoExecute( SfxRequest& ) { OUString aPage; long nValue32; - sal_Bool bValue; + bool bValue; bool bValuesChanged = false; pDlg->GetAttr( aDlgSet ); diff --git a/sd/source/ui/func/fusnapln.cxx b/sd/source/ui/func/fusnapln.cxx index 5d77e970dac0..69e50f0f28d6 100644 --- a/sd/source/ui/func/fusnapln.cxx +++ b/sd/source/ui/func/fusnapln.cxx @@ -58,7 +58,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) { const SfxItemSet* pArgs = rReq.GetArgs(); sal_uInt16 nHelpLine = 0; - sal_Bool bCreateNew = sal_True; + bool bCreateNew = true; // Get index of snap line or snap point from the request. SFX_REQUEST_ARG (rReq, pHelpLineIndex, SfxUInt32Item, ID_VAL_INDEX, false); @@ -83,7 +83,7 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) // request. Determine it from the mouse position. aLinePos = static_cast<DrawViewShell*>(mpViewShell)->GetMousePos(); - static_cast<DrawViewShell*>(mpViewShell)->SetMousePosFreezed( sal_False ); + static_cast<DrawViewShell*>(mpViewShell)->SetMousePosFreezed( false ); if ( aLinePos.X() >= 0 ) @@ -126,18 +126,18 @@ void FuSnapLine::DoExecute( SfxRequest& rReq ) if ( rHelpLine.GetKind() == SDRHELPLINE_POINT ) { pDlg->SetText(SD_RESSTR(STR_SNAPDLG_SETPOINT)); - pDlg->SetInputFields(sal_True, sal_True); + pDlg->SetInputFields(true, true); } else { pDlg->SetText(SD_RESSTR(STR_SNAPDLG_SETLINE)); if ( rHelpLine.GetKind() == SDRHELPLINE_VERTICAL ) - pDlg->SetInputFields(sal_True, sal_False); + pDlg->SetInputFields(true, false); else - pDlg->SetInputFields(sal_False, sal_True); + pDlg->SetInputFields(false, true); } - bCreateNew = sal_False; + bCreateNew = false; } else pDlg->HideDeleteBtn(); diff --git a/sd/source/ui/func/fusumry.cxx b/sd/source/ui/func/fusumry.cxx index f8ef7f027cfb..a5ae8c0d8b5f 100644 --- a/sd/source/ui/func/fusumry.cxx +++ b/sd/source/ui/func/fusumry.cxx @@ -132,7 +132,7 @@ void FuSummaryPage::DoExecute( SfxRequest& ) // use MasterPage of the current page pSummaryPage->TRG_SetMasterPage(pActualPage->TRG_GetMasterPage()); pSummaryPage->SetLayoutName(pActualPage->GetLayoutName()); - pSummaryPage->SetAutoLayout(AUTOLAYOUT_ENUM, sal_True); + pSummaryPage->SetAutoLayout(AUTOLAYOUT_ENUM, true); pSummaryPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); pSummaryPage->setHeaderFooterSettings(pActualPage->getHeaderFooterSettings()); @@ -154,7 +154,7 @@ void FuSummaryPage::DoExecute( SfxRequest& ) // use MasterPage of the current page pNotesPage->TRG_SetMasterPage(pActualNotesPage->TRG_GetMasterPage()); pNotesPage->SetLayoutName(pActualNotesPage->GetLayoutName()); - pNotesPage->SetAutoLayout(pActualNotesPage->GetAutoLayout(), sal_True); + pNotesPage->SetAutoLayout(pActualNotesPage->GetAutoLayout(), true); pNotesPage->TRG_SetMasterPageVisibleLayers(aVisibleLayers); pNotesPage->setHeaderFooterSettings(pActualNotesPage->getHeaderFooterSettings()); diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx index 289bb09aced7..1dd0c403ba20 100644 --- a/sd/source/ui/func/futempl.cxx +++ b/sd/source/ui/func/futempl.cxx @@ -258,7 +258,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) if (pArgs && pArgs->GetItemState( nSId ) == SFX_ITEM_SET) { aStyleName = ( ( (const SfxStringItem &) pArgs->Get( nSId ) ).GetValue() ); - SD_MOD()->SetWaterCan( sal_True ); + SD_MOD()->SetWaterCan( true ); pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily); } // no presentation object templates, they are only allowed implicitly @@ -272,11 +272,11 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) } else - SD_MOD()->SetWaterCan( sal_False ); + SD_MOD()->SetWaterCan( false ); } else { - SD_MOD()->SetWaterCan( sal_False ); + SD_MOD()->SetWaterCan( false ); // we have to re-enable to tools-bar mpViewShell->Invalidate(); } @@ -299,7 +299,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) SfxAbstractTabDialog* pStdDlg = NULL; SfxAbstractTabDialog* pPresDlg = NULL; SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); - sal_Bool bOldDocInOtherLanguage = sal_False; + bool bOldDocInOtherLanguage = false; SfxItemSet aOriSet( pStyleSheet->GetItemSet() ); SfxStyleFamily eFamily = pStyleSheet->GetFamily(); @@ -365,7 +365,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) else { OSL_FAIL("StyleSheet from older version with different language"); - bOldDocInOtherLanguage = sal_True; + bOldDocInOtherLanguage = true; } if( !bOldDocInOtherLanguage ) @@ -596,7 +596,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) { nRetMask = pStyleSheet->GetMask(); SfxItemSet aCoreSet( mpDoc->GetPool() ); - mpView->GetAttributes( aCoreSet, sal_True ); + mpView->GetAttributes( aCoreSet, true ); // if the object had a template, this becomes parent of the new template SfxStyleSheet* pOldStyle = mpView->GetStyleSheet(); diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 9c48716478bf..0b925970aa8d 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -132,14 +132,14 @@ static sal_uInt16 SidArray[] = { TYPEINIT1( FuText, FuConstruct ); -static sal_Bool bTestText = 0; +static bool bTestText = false; /** * base class for text functions */ FuText::FuText( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ) : FuConstruct(pViewSh, pWin, pView, pDoc, rReq) -, bFirstObjCreated(sal_False) +, bFirstObjCreated(false) , bJustEndedEdit(false) , rRequest (rReq) { @@ -228,7 +228,7 @@ void FuText::DoExecute( SfxRequest& ) } } - sal_Bool bQuickDrag = sal_True; + bool bQuickDrag = true; const SfxItemSet* pArgs = rRequest.GetArgs(); @@ -241,18 +241,18 @@ void FuText::DoExecute( SfxRequest& ) && (sal_uInt16)((SfxUInt16Item&)pArgs->Get(SID_TEXTEDIT)).GetValue() == 2) { // Selection by doubleclick -> don't allow QuickDrag - bQuickDrag = sal_False; + bQuickDrag = false; } SetInEditMode(aMEvt, bQuickDrag); } -sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) +bool FuText::MouseButtonDown(const MouseEvent& rMEvt) { - bMBDown = sal_True; + bMBDown = true; bJustEndedEdit = false; - sal_Bool bReturn = FuDraw::MouseButtonDown(rMEvt); + bool bReturn = FuDraw::MouseButtonDown(rMEvt); mpView->SetMarkHdlWhenTextEdit(true); SdrViewEvent aVEvt; @@ -262,7 +262,7 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) { // hit text -> SdrView handles event if (mpView->MouseButtonDown(rMEvt, mpWindow)) - return (sal_True); + return true; } if (rMEvt.GetClicks() == 1) @@ -296,11 +296,11 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) if (eHit == SDRHIT_TEXTEDIT) { - SetInEditMode(rMEvt, sal_False); + SetInEditMode(rMEvt, false); } else { - sal_Bool bMacro = sal_False; + bool bMacro = false; if (bMacro && mpView->PickObj(aMDPos,mpView->getHitTolLog(),pObj,pPV,SDRSEARCH_PICKMACRO)) { @@ -339,7 +339,7 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) mxTextObj.reset( static_cast<SdrTextObj*>(aVEvt.pObj) ); } - SetInEditMode(rMEvt, sal_True); + SetInEditMode(rMEvt, true); } else if (aVEvt.eEvent == SDREVENT_EXECUTEURL && !rMEvt.IsMod2()) { @@ -404,7 +404,7 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) } // Drag object - bFirstMouseMove = sal_True; + bFirstMouseMove = true; aDragTimer.Start(); } @@ -446,7 +446,7 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) else if ( rMEvt.GetClicks() == 2 && !mpView->IsTextEdit() ) { MouseEvent aMEvt( mpWindow->GetPointerPosPixel() ); - SetInEditMode( aMEvt, sal_False ); + SetInEditMode( aMEvt, false ); } if (!bIsInDragMode) @@ -458,14 +458,14 @@ sal_Bool FuText::MouseButtonDown(const MouseEvent& rMEvt) return (bReturn); } -sal_Bool FuText::MouseMove(const MouseEvent& rMEvt) +bool FuText::MouseMove(const MouseEvent& rMEvt) { - sal_Bool bReturn = FuDraw::MouseMove(rMEvt); + bool bReturn = FuDraw::MouseMove(rMEvt); if (aDragTimer.IsActive() ) { if( bFirstMouseMove ) - bFirstMouseMove = sal_False; + bFirstMouseMove = false; else aDragTimer.Stop(); } @@ -592,15 +592,15 @@ void FuText::ImpSetAttributesFitCommon(SdrTextObj* pTxtObj) } } -sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) +bool FuText::MouseButtonUp(const MouseEvent& rMEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; SdrObject* pObj; SdrPageView* pPV; if (aDragTimer.IsActive()) { aDragTimer.Stop(); - bIsInDragMode = sal_False; + bIsInDragMode = false; } mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); @@ -608,9 +608,9 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) ); if( (mpView && mpView->MouseButtonUp(rMEvt, mpWindow)) || rMEvt.GetClicks() == 2 ) - return (sal_True); // handle event from SdrView + return true; // handle event from SdrView - sal_Bool bEmptyTextObj = sal_False; + bool bEmptyTextObj = false; if (mxTextObj.is()) { @@ -624,9 +624,9 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) && ( rMarkList.GetMark(0)->GetMarkedSdrObj() == mxTextObj.get()) ) { if( mxTextObj.is() && !GetTextObj()->GetOutlinerParaObject() ) - bEmptyTextObj = sal_True; + bEmptyTextObj = true; else - bFirstObjCreated = sal_True; + bFirstObjCreated = true; bReset = false; } } @@ -641,11 +641,11 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) { // object was moved FrameView* pFrameView = mpViewShell->GetFrameView(); - sal_Bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); + bool bDragWithCopy = (rMEvt.IsMod1() && pFrameView->IsDragWithCopy()); if (bDragWithCopy) { - bDragWithCopy = !mpView->IsPresObjSelected(sal_False, sal_True); + bDragWithCopy = !mpView->IsPresObjSelected(false, true); } mpView->SetDragWithCopy(bDragWithCopy); @@ -688,7 +688,7 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) // vertical when there was a vertical one used last time. OutlinerParaObject* pOPO = GetTextObj()->GetOutlinerParaObject(); SdrOutliner& rOutl = mxTextObj->GetModel()->GetDrawOutliner(GetTextObj()); - sal_Bool bVertical((pOPO && pOPO->IsVertical()) + bool bVertical((pOPO && pOPO->IsVertical()) || nSlotId == SID_ATTR_CHAR_VERTICAL || nSlotId == SID_TEXT_FITTOSIZE_VERTICAL); rOutl.SetVertical(bVertical); @@ -723,13 +723,13 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) { ImpSetAttributesFitToSize(GetTextObj()); - SetInEditMode(rMEvt, sal_False); + SetInEditMode(rMEvt, false); } else if ( nSlotId == SID_TEXT_FITTOSIZE_VERTICAL ) { ImpSetAttributesFitToSizeVertical(GetTextObj()); - SetInEditMode(rMEvt, sal_False); + SetInEditMode(rMEvt, false); } else { @@ -738,7 +738,7 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) // thereby the handles and the gray frame are correct mpView->AdjustMarkHdl(); mpView->PickHandle(aPnt); - SetInEditMode(rMEvt, sal_False); + SetInEditMode(rMEvt, false); } } else if ( mpView && mpView->IsAction()) @@ -774,7 +774,7 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() ); mpView->BegCreateObj(aMDPos, (OutputDevice*) NULL, nDrgLog); - sal_Bool bSnapEnabled = mpView->IsSnapEnabled(); + bool bSnapEnabled = mpView->IsSnapEnabled(); if (bSnapEnabled) mpView->SetSnapEnabled(false); @@ -873,10 +873,10 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) GetTextObj()->SetMergedItemSet(aSet); GetTextObj()->SetDisableAutoWidthOnDragging(true); - SetInEditMode(rMEvt, sal_False); + SetInEditMode(rMEvt, false); } - bFirstObjCreated = sal_True; + bFirstObjCreated = true; } else { @@ -895,7 +895,7 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) bJustEndedEdit = false; FuPoor::cancel(); } - bMBDown = sal_False; + bMBDown = false; FuConstruct::MouseButtonUp(rMEvt); return (bReturn); } @@ -904,13 +904,13 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt) * handle keyboard events * @returns sal_True if the event was handled, sal_False otherwise */ -sal_Bool FuText::KeyInput(const KeyEvent& rKEvt) +bool FuText::KeyInput(const KeyEvent& rKEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; mpView->SetMarkHdlWhenTextEdit(true); KeyCode nCode = rKEvt.GetKeyCode(); - sal_Bool bShift = nCode.IsShift(); + bool bShift = nCode.IsShift(); if(mxTextObj.is()) { @@ -933,14 +933,14 @@ sal_Bool FuText::KeyInput(const KeyEvent& rKEvt) if ( mxTextObj.is() && mxTextObj->GetObjInventor() == SdrInventor && mxTextObj->GetObjIdentifier() == OBJ_TITLETEXT && rKEvt.GetKeyCode().GetCode() == KEY_RETURN ) { // title text object: always soft breaks - bShift = sal_True; + bShift = true; } sal_uInt16 nKey = nCode.GetCode(); KeyCode aKeyCode (nKey, bShift, nCode.IsMod1(), nCode.IsMod2(), nCode.IsMod3() ); KeyEvent aKEvt(rKEvt.GetCharCode(), aKeyCode); - sal_Bool bOK = sal_True; + bool bOK = true; if (mpDocSh->IsReadOnly()) { @@ -948,12 +948,12 @@ sal_Bool FuText::KeyInput(const KeyEvent& rKEvt) } if( aKeyCode.GetCode() == KEY_PAGEUP || aKeyCode.GetCode() == KEY_PAGEDOWN ) { - bOK = sal_False; // default handling in base class + bOK = false; // default handling in base class } if (bOK && mpView->KeyInput(aKEvt, mpWindow) ) { - bReturn = sal_True; + bReturn = true; mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray ); @@ -1015,7 +1015,7 @@ void FuText::Deactivate() /** * Sets the object into the edit mode. */ -void FuText::SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag) +void FuText::SetInEditMode(const MouseEvent& rMEvt, bool bQuickDrag) { SdrPageView* pPV = mpView->GetSdrPageView(); if( mxTextObj.is() && (mxTextObj->GetPage() == pPV->GetPage()) ) @@ -1027,7 +1027,7 @@ void FuText::SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag) else mpView->SetEditMode(SDREDITMODE_EDIT); - sal_Bool bEmptyOutliner = sal_False; + bool bEmptyOutliner = false; if (!GetTextObj()->GetOutlinerParaObject() && mpView->GetTextEditOutliner()) { @@ -1040,7 +1040,7 @@ void FuText::SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag) // with only one paragraph if (pOutl->GetText(p1stPara).isEmpty()) { - bEmptyOutliner = sal_True; + bEmptyOutliner = true; } } } @@ -1077,7 +1077,7 @@ void FuText::SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag) if (mpView->SdrBeginTextEdit(pTextObj, pPV, mpWindow, true, pOutl) && mxTextObj->GetObjInventor() == SdrInventor) { - bFirstObjCreated = sal_True; + bFirstObjCreated = true; DeleteDefaultText(); OutlinerView* pOLV = mpView->GetTextEditOutlinerView(); @@ -1132,9 +1132,9 @@ void FuText::SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag) /** * Text entry is started, if necessary delete the default text. */ -sal_Bool FuText::DeleteDefaultText() +bool FuText::DeleteDefaultText() { - sal_Bool bDeleted = sal_False; + bool bDeleted = false; if ( mxTextObj.is() && mxTextObj->IsEmptyPresObj() ) { @@ -1152,7 +1152,7 @@ sal_Bool FuText::DeleteDefaultText() { ::Outliner* pOutliner = mpView->GetTextEditOutliner(); SfxStyleSheet* pSheet = pOutliner->GetStyleSheet( 0 ); - sal_Bool bIsUndoEnabled = pOutliner->IsUndoEnabled(); + bool bIsUndoEnabled = pOutliner->IsUndoEnabled(); if( bIsUndoEnabled ) pOutliner->EnableUndo(false); @@ -1166,7 +1166,7 @@ sal_Bool FuText::DeleteDefaultText() pOutliner->SetStyleSheet(0, pSheet); mxTextObj->SetEmptyPresObj(true); - bDeleted = sal_True; + bDeleted = true; } } } @@ -1174,14 +1174,14 @@ sal_Bool FuText::DeleteDefaultText() return(bDeleted); } -sal_Bool FuText::Command(const CommandEvent& rCEvt) +bool FuText::Command(const CommandEvent& rCEvt) { - return( FuPoor::Command(rCEvt) ); + return FuPoor::Command(rCEvt); } -sal_Bool FuText::RequestHelp(const HelpEvent& rHEvt) +bool FuText::RequestHelp(const HelpEvent& rHEvt) { - sal_Bool bReturn = sal_False; + bool bReturn = false; OutlinerView* pOLV = mpView->GetTextEditOutlinerView(); @@ -1270,7 +1270,7 @@ void FuText::ReceiveRequest(SfxRequest& rReq) } } - sal_Bool bQuickDrag = sal_True; + bool bQuickDrag = true; const SfxItemSet* pArgs = rReq.GetArgs(); @@ -1283,7 +1283,7 @@ void FuText::ReceiveRequest(SfxRequest& rReq) && (sal_uInt16) ((SfxUInt16Item&) pArgs->Get(SID_TEXTEDIT)).GetValue() == 2) { // selection wit double click -> do not allow QuickDrag - bQuickDrag = sal_False; + bQuickDrag = false; } SetInEditMode(aMEvt, bQuickDrag); @@ -1312,7 +1312,7 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR SdrTextObj* pText = (SdrTextObj*)pObj; pText->SetLogicRect(rRectangle); - sal_Bool bVertical = (SID_ATTR_CHAR_VERTICAL == nID || SID_TEXT_FITTOSIZE_VERTICAL == nID); + bool bVertical = (SID_ATTR_CHAR_VERTICAL == nID || SID_TEXT_FITTOSIZE_VERTICAL == nID); pText->SetVerticalWriting(bVertical); ImpSetAttributesForNewTextObject(pText); diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx index e5e2e770b1bb..f3bda04bfdaa 100644 --- a/sd/source/ui/func/fuzoom.cxx +++ b/sd/source/ui/func/fuzoom.cxx @@ -49,8 +49,8 @@ FuZoom::FuZoom( SdDrawDocument* pDoc, SfxRequest& rReq) : FuPoor(pViewSh, pWin, pView, pDoc, rReq), - bVisible(sal_False), - bStartDrag(sal_False) + bVisible(false), + bStartDrag(false) { } @@ -61,8 +61,8 @@ FuZoom::~FuZoom() // Hide ZoomRect mpViewShell->DrawMarkRect(aZoomRect); - bVisible = sal_False; - bStartDrag = sal_False; + bVisible = false; + bStartDrag = false; } } @@ -72,21 +72,21 @@ rtl::Reference<FuPoor> FuZoom::Create( ViewShell* pViewSh, ::sd::Window* pWin, : return xFunc; } -sal_Bool FuZoom::MouseButtonDown(const MouseEvent& rMEvt) +bool FuZoom::MouseButtonDown(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); mpWindow->CaptureMouse(); - bStartDrag = sal_True; + bStartDrag = true; aBeginPosPix = rMEvt.GetPosPixel(); aBeginPos = mpWindow->PixelToLogic(aBeginPosPix); - return sal_True; + return true; } -sal_Bool FuZoom::MouseMove(const MouseEvent& rMEvt) +bool FuZoom::MouseMove(const MouseEvent& rMEvt) { if (bStartDrag) { @@ -125,13 +125,13 @@ sal_Bool FuZoom::MouseMove(const MouseEvent& rMEvt) mpViewShell->DrawMarkRect(aZoomRect); } - bVisible = sal_True; + bVisible = true; } return bStartDrag; } -sal_Bool FuZoom::MouseButtonUp(const MouseEvent& rMEvt) +bool FuZoom::MouseButtonUp(const MouseEvent& rMEvt) { // remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); @@ -140,7 +140,7 @@ sal_Bool FuZoom::MouseButtonUp(const MouseEvent& rMEvt) { // Hide ZoomRect mpViewShell->DrawMarkRect(aZoomRect); - bVisible = sal_False; + bVisible = false; } Point aPosPix = rMEvt.GetPosPixel(); @@ -171,11 +171,11 @@ sal_Bool FuZoom::MouseButtonUp(const MouseEvent& rMEvt) mpWindow->GetOutputSizePixel())); mpViewShell->GetZoomList()->InsertZoomRect(aVisAreaWin); - bStartDrag = sal_False; + bStartDrag = false; mpWindow->ReleaseMouse(); mpViewShell->Cancel(); - return sal_True; + return true; } void FuZoom::Activate() diff --git a/sd/source/ui/func/smarttag.cxx b/sd/source/ui/func/smarttag.cxx index e0612b0ec588..c6fc83a08d8c 100644 --- a/sd/source/ui/func/smarttag.cxx +++ b/sd/source/ui/func/smarttag.cxx @@ -125,16 +125,16 @@ sal_uLong SmartTag::GetMarkedPointCount() const -sal_Bool SmartTag::MarkPoint(SdrHdl& /*rHdl*/, sal_Bool /*bUnmark*/ ) +bool SmartTag::MarkPoint(SdrHdl& /*rHdl*/, bool /*bUnmark*/ ) { - return sal_False; + return false; } -sal_Bool SmartTag::MarkPoints(const Rectangle* /*pRect*/, sal_Bool /*bUnmark*/ ) +bool SmartTag::MarkPoints(const Rectangle* /*pRect*/, bool /*bUnmark*/ ) { - return sal_False; + return false; } @@ -358,7 +358,7 @@ bool SmartTagSet::getContext( SdrViewContext& rContext ) const // support point editing -sal_Bool SmartTagSet::HasMarkablePoints() const +bool SmartTagSet::HasMarkablePoints() const { return GetMarkablePointCount() != 0 ? sal_True : sal_False; } @@ -374,7 +374,7 @@ sal_uLong SmartTagSet::GetMarkablePointCount() const -sal_Bool SmartTagSet::HasMarkedPoints() const +bool SmartTagSet::HasMarkedPoints() const { return GetMarkedPointCount() != 0 ? sal_True : sal_False; } @@ -391,7 +391,7 @@ sal_uLong SmartTagSet::GetMarkedPointCount() const -sal_Bool SmartTagSet::IsPointMarkable(const SdrHdl& rHdl) const +bool SmartTagSet::IsPointMarkable(const SdrHdl& rHdl) const { const SmartHdl* pSmartHdl = dynamic_cast< const SmartHdl* >( &rHdl ); @@ -400,21 +400,21 @@ sal_Bool SmartTagSet::IsPointMarkable(const SdrHdl& rHdl) const -sal_Bool SmartTagSet::MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark ) +bool SmartTagSet::MarkPoint(SdrHdl& rHdl, bool bUnmark ) { if( mxSelectedTag.is() ) return mxSelectedTag->MarkPoint( rHdl, bUnmark ); - return sal_False; + return false; } -sal_Bool SmartTagSet::MarkPoints(const Rectangle* pRect, sal_Bool bUnmark) +bool SmartTagSet::MarkPoints(const Rectangle* pRect, bool bUnmark) { if( mxSelectedTag.is() ) return mxSelectedTag->MarkPoints( pRect, bUnmark ); - return sal_False; + return false; } diff --git a/sd/source/ui/func/unprlout.cxx b/sd/source/ui/func/unprlout.cxx index 5d85e83fc585..a0ef9e1e4430 100644 --- a/sd/source/ui/func/unprlout.cxx +++ b/sd/source/ui/func/unprlout.cxx @@ -34,7 +34,7 @@ SdPresentationLayoutUndoAction::SdPresentationLayoutUndoAction( const OUString& aTheNewLayoutName, AutoLayout eTheOldAutoLayout, AutoLayout eTheNewAutoLayout, - sal_Bool bSet, + bool bSet, SdPage* pThePage): SdUndoAction(pTheDoc) { @@ -51,16 +51,16 @@ SdPresentationLayoutUndoAction::SdPresentationLayoutUndoAction( void SdPresentationLayoutUndoAction::Undo() { - pPage->SetPresentationLayout(aOldLayoutName, sal_True, sal_True, sal_True); + pPage->SetPresentationLayout(aOldLayoutName, true, true, true); if (bSetAutoLayout) - pPage->SetAutoLayout(eOldAutoLayout, sal_True); + pPage->SetAutoLayout(eOldAutoLayout, true); } void SdPresentationLayoutUndoAction::Redo() { pPage->SetPresentationLayout(aNewLayoutName); if (bSetAutoLayout) - pPage->SetAutoLayout(eNewAutoLayout, sal_True); + pPage->SetAutoLayout(eNewAutoLayout, true); } SdPresentationLayoutUndoAction::~SdPresentationLayoutUndoAction() diff --git a/sd/source/ui/inc/AccessibleSlideSorterObject.hxx b/sd/source/ui/inc/AccessibleSlideSorterObject.hxx index ca57b9f4a065..351c28e1b7b6 100644 --- a/sd/source/ui/inc/AccessibleSlideSorterObject.hxx +++ b/sd/source/ui/inc/AccessibleSlideSorterObject.hxx @@ -235,7 +235,7 @@ private: @return sal_True, if the object is disposed or in the course of being disposed. Otherwise, sal_False is returned. */ - sal_Bool IsDisposed (void); + bool IsDisposed (void); }; diff --git a/sd/source/ui/inc/AccessibleSlideSorterView.hxx b/sd/source/ui/inc/AccessibleSlideSorterView.hxx index 0ed08adf88bf..9139740632e1 100644 --- a/sd/source/ui/inc/AccessibleSlideSorterView.hxx +++ b/sd/source/ui/inc/AccessibleSlideSorterView.hxx @@ -318,7 +318,7 @@ private: @return sal_True, if the object is disposed or in the course of being disposed. Otherwise, sal_False is returned. */ - sal_Bool IsDisposed (void); + bool IsDisposed (void); }; } // end of namespace ::accessibility diff --git a/sd/source/ui/inc/BreakDlg.hxx b/sd/source/ui/inc/BreakDlg.hxx index ddb279acaf0e..0669795e78d5 100644 --- a/sd/source/ui/inc/BreakDlg.hxx +++ b/sd/source/ui/inc/BreakDlg.hxx @@ -63,7 +63,7 @@ private: DrawView* pDrView; - sal_Bool bCancel; + bool bCancel; Timer aTimer; SvdProgressInfo *pProgrInfo; diff --git a/sd/source/ui/inc/DrawDocShell.hxx b/sd/source/ui/inc/DrawDocShell.hxx index 7f125242bb09..151ed6975889 100644 --- a/sd/source/ui/inc/DrawDocShell.hxx +++ b/sd/source/ui/inc/DrawDocShell.hxx @@ -59,18 +59,18 @@ private: public: DrawDocShell ( SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED, - sal_Bool bSdDataObj=sal_False, + bool bSdDataObj=false, DocumentType=DOCUMENT_TYPE_IMPRESS); DrawDocShell ( const sal_uInt64 nModelCreationFlags, - sal_Bool bSdDataObj=sal_False, + bool bSdDataObj=false, DocumentType=DOCUMENT_TYPE_IMPRESS); DrawDocShell ( SdDrawDocument* pDoc, SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED, - sal_Bool bSdDataObj=sal_False, + bool bSdDataObj=false, DocumentType=DOCUMENT_TYPE_IMPRESS); virtual ~DrawDocShell(); @@ -116,11 +116,11 @@ public: SdDrawDocument* GetDoc(); DocumentType GetDocumentType() const { return meDocType; } - SfxPrinter* GetPrinter(sal_Bool bCreate); + SfxPrinter* GetPrinter(bool bCreate); void SetPrinter(SfxPrinter *pNewPrinter); void UpdateFontList(); - sal_Bool IsInDestruction() const { return mbInDestruction; } + bool IsInDestruction() const { return mbInDestruction; } void CancelSearching(); @@ -131,12 +131,12 @@ public: void Disconnect(sd::ViewShell* pViewSh); void UpdateTablePointers(); - sal_Bool GotoBookmark(const OUString& rBookmark); + bool GotoBookmark(const OUString& rBookmark); //realize multi-selection of objects - sal_Bool GotoTreeBookmark(const OUString& rBookmark); - sal_Bool IsMarked( SdrObject* pObject ); - sal_Bool GetObjectIsmarked(const OUString& rBookmark); + bool GotoTreeBookmark(const OUString& rBookmark); + bool IsMarked( SdrObject* pObject ); + bool GetObjectIsmarked(const OUString& rBookmark); Bitmap GetPagePreviewBitmap(SdPage* pPage, sal_uInt16 nMaxEdgePixel); /** checks, if the given name is a valid new name for a slide @@ -154,12 +154,12 @@ public: a default name of a not-yet-existing slide (e.g. 'Slide 17'), sal_True is returned, but rName is set to an empty string. */ - sal_Bool CheckPageName(::Window* pWin, OUString& rName ); + bool CheckPageName(::Window* pWin, OUString& rName ); - void SetSlotFilter(sal_Bool bEnable = sal_False, sal_uInt16 nCount = 0, const sal_uInt16* pSIDs = NULL) { mbFilterEnable = bEnable; mnFilterCount = nCount; mpFilterSIDs = pSIDs; } + void SetSlotFilter(bool bEnable = false, sal_uInt16 nCount = 0, const sal_uInt16* pSIDs = NULL) { mbFilterEnable = bEnable; mnFilterCount = nCount; mpFilterSIDs = pSIDs; } void ApplySlotFilter() const; - sal_uInt16 GetStyleFamily() const { return mnStyleFamily; } + sal_uInt16 GetStyleFamily() const { return mnStyleFamily; } void SetStyleFamily( sal_uInt16 nSF ) { mnStyleFamily = nSF; } /** executes the SID_OPENDOC slot to let the framework open a document @@ -217,11 +217,11 @@ protected: sal_uInt16 mnStyleFamily; const sal_uInt16* mpFilterSIDs; sal_uInt16 mnFilterCount; - sal_Bool mbFilterEnable; - sal_Bool mbSdDataObj; - sal_Bool mbInDestruction; - sal_Bool mbOwnPrinter; - sal_Bool mbNewDocument; + bool mbFilterEnable; + bool mbSdDataObj; + bool mbInDestruction; + bool mbOwnPrinter; + bool mbNewDocument; bool mbOwnDocument; // if true, we own mpDoc and will delete it in our d'tor void Construct(bool bClipboard); @@ -229,8 +229,8 @@ protected: public: virtual void setDocAccTitle( const OUString& rTitle ); virtual const OUString getDocAccTitle() const; - virtual void setDocReadOnly( sal_Bool bReadOnly); - virtual sal_Bool getDocReadOnly() const; + virtual void setDocReadOnly( bool bReadOnly); + virtual bool getDocReadOnly() const; }; #ifndef SV_DECL_DRAW_DOC_SHELL_DEFINED diff --git a/sd/source/ui/inc/DrawViewShell.hxx b/sd/source/ui/inc/DrawViewShell.hxx index 57d830141de5..87670c1da23b 100644 --- a/sd/source/ui/inc/DrawViewShell.hxx +++ b/sd/source/ui/inc/DrawViewShell.hxx @@ -127,7 +127,7 @@ public: void HidePage(); - virtual sal_Bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) SAL_OVERRIDE; virtual void MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin) SAL_OVERRIDE; virtual void MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) SAL_OVERRIDE; virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin) SAL_OVERRIDE; @@ -159,7 +159,7 @@ public: virtual void UIActivating( SfxInPlaceClient* ) SAL_OVERRIDE; virtual void UIDeactivated( SfxInPlaceClient* ) SAL_OVERRIDE; virtual OUString GetSelectionText( bool bCompleteWords = false ); - virtual sal_Bool HasSelection( sal_Bool bText = sal_True ) const; + virtual bool HasSelection( bool bText = true ) const; void ExecCtrl(SfxRequest& rReq); void GetCtrlState(SfxItemSet& rSet); @@ -231,13 +231,13 @@ public: const Ruler& rRuler, const MouseEvent& rMEvt); - virtual bool PrepareClose( sal_Bool bUI = sal_True ) SAL_OVERRIDE; + virtual bool PrepareClose( bool bUI = true ) SAL_OVERRIDE; PageKind GetPageKind() { return mePageKind; } Point GetMousePos() { return maMousePos; } - sal_Bool IsMousePosFreezed() { return mbMousePosFreezed; } - void SetMousePosFreezed( sal_Bool bIn ) { mbMousePosFreezed = bIn; } + bool IsMousePosFreezed() { return mbMousePosFreezed; } + void SetMousePosFreezed( bool bIn ) { mbMousePosFreezed = bIn; } EditMode GetEditMode() const { return meEditMode; } virtual SdPage* GetActualPage() SAL_OVERRIDE { return mpActualPage; } @@ -247,10 +247,10 @@ public: void ResetActualPage(); void ResetActualLayer(); - sal_Bool SwitchPage(sal_uInt16 nPage); - sal_Bool IsSwitchPageAllowed() const; + bool SwitchPage(sal_uInt16 nPage); + bool IsSwitchPageAllowed() const; - sal_Bool GotoBookmark(const OUString& rBookmark); + bool GotoBookmark(const OUString& rBookmark); //Realize multi-selection of objects, If object is marked, the //corresponding entry is set true, else the corresponding entry is set //false. @@ -262,10 +262,10 @@ public: virtual void WriteFrameViewData() SAL_OVERRIDE; virtual ErrCode DoVerb(long nVerb) SAL_OVERRIDE; - virtual sal_Bool ActivateObject(SdrOle2Obj* pObj, long nVerb) SAL_OVERRIDE; + virtual bool ActivateObject(SdrOle2Obj* pObj, long nVerb) SAL_OVERRIDE; - void SetZoomOnPage( sal_Bool bZoom = sal_True ) { mbZoomOnPage = bZoom; } - sal_Bool IsZoomOnPage() { return mbZoomOnPage; } + void SetZoomOnPage( bool bZoom = true ) { mbZoomOnPage = bZoom; } + bool IsZoomOnPage() { return mbZoomOnPage; } void CheckLineTo (SfxRequest& rReq); void SetChildWindowState( SfxItemSet& rSet ); @@ -273,7 +273,7 @@ public: void LockInput(); void UnlockInput(); - sal_Bool IsInputLocked() const { return mnLockCount > 0UL; } + bool IsInputLocked() const { return mnLockCount > 0UL; } sal_uInt16 GetCurPageId() { return( maTabControl.GetCurPageId() ); } @@ -294,8 +294,8 @@ public: virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, sal_uInt16 nPage, sal_uInt16 nLayer ) SAL_OVERRIDE; - virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ) SAL_OVERRIDE; - virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ) SAL_OVERRIDE; + virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE; + virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE; virtual void VisAreaChanged(const Rectangle& rRect) SAL_OVERRIDE; @@ -379,17 +379,17 @@ protected: SdPage* mpActualPage; Rectangle maMarkRect; Point maMousePos; - sal_Bool mbMousePosFreezed; + bool mbMousePosFreezed; TabControl maTabControl; EditMode meEditMode; PageKind mePageKind; - sal_Bool mbZoomOnPage; - sal_Bool mbIsRulerDrag; + bool mbZoomOnPage; + bool mbIsRulerDrag; sal_uLong mnLockCount; - sal_Bool mbReadOnly; + bool mbReadOnly; sal_uInt16* mpSlotArray; - static sal_Bool mbPipette; + static bool mbPipette; DECL_LINK( ClipboardChanged, TransferableDataHelper* ); DECL_LINK( TabSplitHdl, TabBar * ); @@ -399,20 +399,20 @@ protected: void DeleteActualPage(); void DeleteActualLayer(); - virtual SvxRuler* CreateHRuler(::sd::Window* pWin, sal_Bool bIsFirst) SAL_OVERRIDE; + virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst) SAL_OVERRIDE; virtual SvxRuler* CreateVRuler(::sd::Window* pWin) SAL_OVERRIDE; virtual void UpdateHRuler() SAL_OVERRIDE; virtual void UpdateVRuler() SAL_OVERRIDE; virtual void SetZoomFactor(const Fraction& rZoomX, const Fraction& rZoomY) SAL_OVERRIDE; void SetupPage( Size &rSize, long nLeft, long nRight, long nUpper, long nLower, - sal_Bool bSize, sal_Bool bMargin, sal_Bool bScaleAll ); + bool bSize, bool bMargin, bool bScaleAll ); - sal_uInt16 GetIdBySubId( sal_uInt16 nSId ); + sal_uInt16 GetIdBySubId( sal_uInt16 nSId ); void MapSlot( sal_uInt16 nSId ); - void UpdateToolboxImages( SfxItemSet &rSet, sal_Bool bPermanent = sal_True ); - sal_uInt16 GetMappedSlot( sal_uInt16 nSId ); - sal_uInt16 GetArrayId( sal_uInt16 nSId ); + void UpdateToolboxImages( SfxItemSet &rSet, bool bPermanent = true ); + sal_uInt16 GetMappedSlot( sal_uInt16 nSId ); + sal_uInt16 GetArrayId( sal_uInt16 nSId ); void GetMenuStateSel(SfxItemSet& rSet); @@ -459,7 +459,7 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::scanner::XScannerManager2 > mxScannerManager; ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > mxScannerListener; TransferableClipboardListener* mpClipEvtLstnr; - sal_Bool mbPastePossible; + bool mbPastePossible; virtual void Notify (SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE; diff --git a/sd/source/ui/inc/FrameView.hxx b/sd/source/ui/inc/FrameView.hxx index 739debb23452..40bdffe449bd 100644 --- a/sd/source/ui/inc/FrameView.hxx +++ b/sd/source/ui/inc/FrameView.hxx @@ -67,17 +67,17 @@ public: { maPrintableLayers = rPrintableLayers; } const SetOfByte& GetPrintableLayers() { return maPrintableLayers; } - void SetRuler(const sal_Bool bRulerOn) + void SetRuler(const bool bRulerOn) { mbRuler = bRulerOn; } - sal_Bool HasRuler() const { return mbRuler; } + bool HasRuler() const { return mbRuler; } - void SetNoColors(const sal_Bool bNoCol) + void SetNoColors(const bool bNoCol) { mbNoColors = bNoCol; } - sal_Bool IsNoColors() const { return mbNoColors; } + bool IsNoColors() const { return mbNoColors; } - void SetNoAttribs(const sal_Bool bNoAttr) + void SetNoAttribs(const bool bNoAttr) { mbNoAttribs = bNoAttr; } - sal_Bool IsNoAttribs() const { return mbNoAttribs; } + bool IsNoAttribs() const { return mbNoAttribs; } void SetVisArea(const Rectangle& rVisArea) { maVisArea = rVisArea; } @@ -116,19 +116,19 @@ public: */ EditMode GetViewShEditModeOnLoad (void) const; - void SetLayerMode(sal_Bool bMode) + void SetLayerMode(bool bMode) { mbLayerMode = bMode; } - sal_Bool IsLayerMode() const { return mbLayerMode; } + bool IsLayerMode() const { return mbLayerMode; } - void SetQuickEdit(sal_Bool bQEdit) + void SetQuickEdit(bool bQEdit) { mbQuickEdit = bQEdit; } - sal_Bool IsQuickEdit() const { return mbQuickEdit; } + bool IsQuickEdit() const { return mbQuickEdit; } - void SetDoubleClickTextEdit( sal_Bool bOn = sal_True ) { mbDoubleClickTextEdit = bOn; } - sal_Bool IsDoubleClickTextEdit() const { return mbDoubleClickTextEdit; } + void SetDoubleClickTextEdit( bool bOn = true ) { mbDoubleClickTextEdit = bOn; } + bool IsDoubleClickTextEdit() const { return mbDoubleClickTextEdit; } - void SetClickChangeRotation( sal_Bool bOn = sal_True ) { mbClickChangeRotation = bOn; } - sal_Bool IsClickChangeRotation() const { return mbClickChangeRotation; } + void SetClickChangeRotation( bool bOn = true ) { mbClickChangeRotation = bOn; } + bool IsClickChangeRotation() const { return mbClickChangeRotation; } /** Remember the type of the view shell that was (or soon will be) previously associated with this frame view. @@ -174,15 +174,15 @@ public: private: sal_uInt16 mnRefCount; - sal_Bool mbRuler; + bool mbRuler; SetOfByte maVisibleLayers; SetOfByte maLockedLayers; SetOfByte maPrintableLayers; SdrHelpLineList maStandardHelpLines; SdrHelpLineList maNotesHelpLines; SdrHelpLineList maHandoutHelpLines; - sal_Bool mbNoColors; ///< structuring mode - sal_Bool mbNoAttribs; ///< structuring mode + bool mbNoColors; ///< structuring mode + bool mbNoAttribs; ///< structuring mode Rectangle maVisArea; ///< visible area PageKind mePageKind; ///< kind of page (standard, notes, handout) sal_uInt16 mnSelectedPage; @@ -192,10 +192,10 @@ private: EditMode meNotesEditMode; ///< edit mode in notes mode (Page/MasterPage) EditMode meHandoutEditMode; ///< edit mode in handout mode (Page/MasterPage) EditMode meEditModeOnLoad; - sal_Bool mbLayerMode; ///< layer on/off - sal_Bool mbQuickEdit; ///< QuickEdit on/off - sal_Bool mbDoubleClickTextEdit; ///< text mode after double click - sal_Bool mbClickChangeRotation; ///< single click switches between selection/rotation mode + bool mbLayerMode; ///< layer on/off + bool mbQuickEdit; ///< QuickEdit on/off + bool mbDoubleClickTextEdit; ///< text mode after double click + bool mbClickChangeRotation; ///< single click switches between selection/rotation mode sal_uInt16 mnPresViewShellId; ///< ViewShell from which the presentation was started sal_uInt16 mnSlotId; ///< SlotId, which was initial mentioned sal_uInt16 mnSlidesPerRow; ///< slides per row on the slide-desk diff --git a/sd/source/ui/inc/GraphicDocShell.hxx b/sd/source/ui/inc/GraphicDocShell.hxx index 5808493f9ef3..4a18ae332b58 100644 --- a/sd/source/ui/inc/GraphicDocShell.hxx +++ b/sd/source/ui/inc/GraphicDocShell.hxx @@ -50,12 +50,12 @@ public: GraphicDocShell ( SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED, - sal_Bool bSdDataObj=sal_False, + bool bSdDataObj=false, DocumentType=DOCUMENT_TYPE_DRAW); GraphicDocShell ( const sal_uInt64 nModelCreationFlags, - sal_Bool bSdDataObj=sal_False, + bool bSdDataObj=false, DocumentType=DOCUMENT_TYPE_DRAW); virtual ~GraphicDocShell (void); diff --git a/sd/source/ui/inc/OutlineBulletDlg.hxx b/sd/source/ui/inc/OutlineBulletDlg.hxx index a17aa67ab8a4..b2fe9c50bc6e 100644 --- a/sd/source/ui/inc/OutlineBulletDlg.hxx +++ b/sd/source/ui/inc/OutlineBulletDlg.hxx @@ -51,7 +51,7 @@ private: SfxItemSet *pOutputSet; sal_uInt16 m_nOptionsId; sal_uInt16 m_nPositionId; - sal_Bool bTitle; + bool bTitle; ::sd::View *pSdView; }; diff --git a/sd/source/ui/inc/OutlineView.hxx b/sd/source/ui/inc/OutlineView.hxx index 57446826edf5..bf90ecb58a0e 100644 --- a/sd/source/ui/inc/OutlineView.hxx +++ b/sd/source/ui/inc/OutlineView.hxx @@ -113,10 +113,10 @@ public: sal_uLong GetPaperWidth(); - sal_Bool PrepareClose(sal_Bool bUI = sal_True); + bool PrepareClose(bool bUI = true); - virtual sal_Bool GetAttributes( SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr=sal_False ) const SAL_OVERRIDE; - virtual sal_Bool SetAttributes(const SfxItemSet& rSet, sal_Bool bReplaceAll = sal_False) SAL_OVERRIDE; + virtual bool GetAttributes( SfxItemSet& rTargetSet, bool bOnlyHardAttr = false ) const SAL_OVERRIDE; + virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll = false) SAL_OVERRIDE; void FillOutliner(); void SetLinks(); @@ -186,7 +186,7 @@ private: sal_Int32 mnPagesToProcess; // for the progress bar sal_Int32 mnPagesProcessed; - sal_Bool mbFirstPaint; + bool mbFirstPaint; sal_uLong mnPaperWidth; diff --git a/sd/source/ui/inc/OutlineViewShell.hxx b/sd/source/ui/inc/OutlineViewShell.hxx index 141a1881a4cc..7aebf2279374 100644 --- a/sd/source/ui/inc/OutlineViewShell.hxx +++ b/sd/source/ui/inc/OutlineViewShell.hxx @@ -72,7 +72,7 @@ public: */ virtual void ArrangeGUIElements (void) SAL_OVERRIDE; - virtual bool PrepareClose( sal_Bool bUI = sal_True ) SAL_OVERRIDE; + virtual bool PrepareClose( bool bUI = true ) SAL_OVERRIDE; virtual long VirtHScrollHdl(ScrollBar* pHScroll) SAL_OVERRIDE; virtual long VirtVScrollHdl(ScrollBar* pVHScroll) SAL_OVERRIDE; @@ -105,7 +105,7 @@ public: virtual void SetZoom(long nZoom) SAL_OVERRIDE; virtual void SetZoomRect(const Rectangle& rZoomRect) SAL_OVERRIDE; virtual OUString GetSelectionText( bool bCompleteWords = false ); - virtual sal_Bool HasSelection( sal_Bool bText = sal_True ) const; + virtual bool HasSelection( bool bText = true ) const; void Execute(SfxRequest& rReq); @@ -113,13 +113,13 @@ public: virtual void WriteFrameViewData() SAL_OVERRIDE; virtual void Command( const CommandEvent& rCEvt, ::sd::Window* pWin ) SAL_OVERRIDE; - virtual sal_Bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) SAL_OVERRIDE; virtual void MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) SAL_OVERRIDE; sal_uLong Read(SvStream& rInput, const OUString& rBaseURL, sal_uInt16 eFormat); - virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ) SAL_OVERRIDE; - virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ) SAL_OVERRIDE; + virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE; + virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ) SAL_OVERRIDE; /** this method is called when the visible area of the view from this viewshell is changed */ virtual void VisAreaChanged(const Rectangle& rRect) SAL_OVERRIDE; @@ -139,7 +139,7 @@ public: /** Update the preview to show the specified page. */ - virtual void UpdatePreview (SdPage* pPage, sal_Bool bInit = sal_False) SAL_OVERRIDE; + virtual void UpdatePreview (SdPage* pPage, bool bInit = false) SAL_OVERRIDE; virtual css::uno::Reference<css::drawing::XDrawSubController> CreateSubController (void) SAL_OVERRIDE; @@ -159,7 +159,7 @@ private: OutlineView* pOlView; SdPage* pLastPage; // Zur performanten Aufbereitung der Preview TransferableClipboardListener* pClipEvtLstnr; - sal_Bool bPastePossible; + bool bPastePossible; bool mbInitialized; void Construct (DrawDocShell* pDocSh); diff --git a/sd/source/ui/inc/PresentationViewShell.hxx b/sd/source/ui/inc/PresentationViewShell.hxx index 75a64cef95f7..8fa4fcfedf3c 100644 --- a/sd/source/ui/inc/PresentationViewShell.hxx +++ b/sd/source/ui/inc/PresentationViewShell.hxx @@ -55,7 +55,7 @@ public: virtual void Resize (void) SAL_OVERRIDE; protected: - virtual SvxRuler* CreateHRuler(::sd::Window* pWin, sal_Bool bIsFirst) SAL_OVERRIDE; + virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst) SAL_OVERRIDE; virtual SvxRuler* CreateVRuler(::sd::Window* pWin) SAL_OVERRIDE; private: diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx index f330fcefcfeb..4773083f4964 100644 --- a/sd/source/ui/inc/RemoteServer.hxx +++ b/sd/source/ui/inc/RemoteServer.hxx @@ -65,7 +65,7 @@ namespace sd // For the control dialog SD_DLLPUBLIC static std::vector<ClientInfo*> getClients(); - SD_DLLPUBLIC static sal_Bool connectClient( ClientInfo *pClient, + SD_DLLPUBLIC static bool connectClient( ClientInfo *pClient, const OUString& aPin ); /// ensure that discoverability (eg. for Bluetooth) is enabled diff --git a/sd/source/ui/inc/Ruler.hxx b/sd/source/ui/inc/Ruler.hxx index f74000c3a4ab..b6d920f445e2 100644 --- a/sd/source/ui/inc/Ruler.hxx +++ b/sd/source/ui/inc/Ruler.hxx @@ -46,7 +46,7 @@ public: void SetNullOffset(const Point& rOffset); - sal_Bool IsHorizontal() const { return bHorz; } + bool IsHorizontal() const { return bHorz; } using ::Ruler::SetNullOffset; protected: @@ -54,7 +54,7 @@ protected: ::sd::Window* pSdWin; DrawViewShell* pDrViewShell; RulerCtrlItem* pCtrlItem; - sal_Bool bHorz; + bool bHorz; virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; diff --git a/sd/source/ui/inc/SdUnoDrawView.hxx b/sd/source/ui/inc/SdUnoDrawView.hxx index 79056e4323f9..62687526a1fd 100644 --- a/sd/source/ui/inc/SdUnoDrawView.hxx +++ b/sd/source/ui/inc/SdUnoDrawView.hxx @@ -101,10 +101,10 @@ public: virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; protected: - sal_Bool getMasterPageMode(void) const throw(); + bool getMasterPageMode(void) const throw(); void setMasterPageMode(bool MasterPageMode_) throw(); - sal_Bool getLayerMode(void) const throw(); - void setLayerMode(sal_Bool LayerMode_) throw(); + bool getLayerMode(void) const throw(); + void setLayerMode(bool LayerMode_) throw(); public: /** Return a reference to the active layer object. @return diff --git a/sd/source/ui/inc/TabControl.hxx b/sd/source/ui/inc/TabControl.hxx index 50742964ce96..cbc273b21573 100644 --- a/sd/source/ui/inc/TabControl.hxx +++ b/sd/source/ui/inc/TabControl.hxx @@ -56,7 +56,7 @@ public: protected: DrawViewShell* pDrViewSh; - sal_Bool bInternalMove; + bool bInternalMove; // TabBar virtual void Select() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index 234d1f363c20..da4098d5f5f3 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -77,8 +77,8 @@ public: void CompleteRedraw( OutputDevice* pOutDev, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0L) SAL_OVERRIDE; - virtual sal_Bool GetAttributes( SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr=sal_False ) const; - virtual sal_Bool SetAttributes(const SfxItemSet& rSet, sal_Bool bReplaceAll = sal_False); + virtual bool GetAttributes( SfxItemSet& rTargetSet, bool bOnlyHardAttr = false ) const; + virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll = false); virtual void MarkListHasChanged() SAL_OVERRIDE; virtual void ModelHasChanged() SAL_OVERRIDE; virtual void SelectAll(); @@ -86,7 +86,7 @@ public: virtual void DoCopy(::Window* pWindow=NULL); virtual void DoPaste(::Window* pWindow=NULL); virtual void DoConnect(SdrOle2Obj* pOleObj) SAL_OVERRIDE; - virtual sal_Bool SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr = sal_False); + virtual bool SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr = false); virtual void StartDrag( const Point& rStartPos, ::Window* pWindow ); virtual void DragFinished( sal_Int8 nDropAction ); virtual sal_Int8 AcceptDrop ( @@ -113,11 +113,11 @@ public: ::com::sun::star::datatransfer::XTransferable> CreateSelectionDataObject (::sd::View*, ::Window& rWindow); - void UpdateSelectionClipboard( sal_Bool bForceDeselect ); + void UpdateSelectionClipboard( bool bForceDeselect ); - inline DrawDocShell* GetDocSh (void) const; - inline SdDrawDocument& GetDoc (void) const; - inline ViewShell* GetViewShell (void) const; + inline DrawDocShell* GetDocSh(void) const; + inline SdDrawDocument& GetDoc(void) const; + inline ViewShell* GetViewShell(void) const; virtual bool SdrBeginTextEdit(SdrObject* pObj, SdrPageView* pPV = 0L, ::Window* pWin = 0L, bool bIsNewObj = false, SdrOutliner* pGivenOutliner = 0L, OutlinerView* pGivenOutlinerView = 0L, @@ -127,8 +127,8 @@ public: bool RestoreDefaultText( SdrTextObj* pTextObj ); - sal_Bool InsertData( const TransferableDataHelper& rDataHelper, - const Point& rPos, sal_Int8& rDnDAction, sal_Bool bDrag, + bool InsertData( const TransferableDataHelper& rDataHelper, + const Point& rPos, sal_Int8& rDnDAction, bool bDrag, sal_uLong nFormat = 0, sal_uInt16 nPage = SDRPAGE_NOTFOUND, sal_uInt16 nLayer = SDRLAYER_NOTFOUND ); /** gets the metafile from the given transferable helper and insert it as a graphic shape. @param bOptimize if set to true, the metafile is analyzed and if only one bitmap action is @@ -154,18 +154,18 @@ public: bool PasteRTFTable( SotStorageStreamRef xStm, SdrPage* pPage, sal_uLong nPasteOptions ); - sal_Bool IsPresObjSelected(sal_Bool bOnPage=sal_True, sal_Bool bOnMasterPage=sal_True, sal_Bool bCheckPresObjListOnly=sal_False, sal_Bool bCheckLayoutOnly=sal_False) const; + bool IsPresObjSelected(bool bOnPage = true, bool bOnMasterPage = true, bool bCheckPresObjListOnly = false, bool bCheckLayoutOnly = false) const; void SetMarkedOriginalSize(); - sal_Bool IsMorphingAllowed() const; - sal_Bool IsVectorizeAllowed() const; + bool IsMorphingAllowed() const; + bool IsVectorizeAllowed() const; virtual SfxStyleSheet* GetStyleSheet() const; /** return parameter: pExchangeList == NULL -> all names are unique - bNameOK == sal_False -> cancel by user + bNameOK == false -> cancel by user nType == 0 -> pages nType == 1 -> objects nType == 2 -> pages and objects */ @@ -197,7 +197,7 @@ public: virtual bool IsPointMarkable(const SdrHdl& rHdl) const SAL_OVERRIDE; virtual bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false) SAL_OVERRIDE; virtual void CheckPossibilities() SAL_OVERRIDE; - virtual sal_Bool MarkPoints(const ::Rectangle* pRect, sal_Bool bUnmark); + virtual bool MarkPoints(const ::Rectangle* pRect, bool bUnmark) SAL_OVERRIDE; using SdrMarkView::MarkPoints; bool ShouldToggleOn( diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx index abd4d2b0acd2..ce5ea3152fb2 100644 --- a/sd/source/ui/inc/ViewShell.hxx +++ b/sd/source/ui/inc/ViewShell.hxx @@ -179,12 +179,12 @@ public: // Mouse- & Key-Events virtual void PrePaint(); virtual void Paint (const Rectangle& rRect, ::sd::Window* pWin); - virtual sal_Bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin); + virtual bool KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin); virtual void MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin); virtual void MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin); virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin); virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin); - virtual sal_Bool RequestHelp( const HelpEvent& rEvt, ::sd::Window* pWin ); + virtual bool RequestHelp( const HelpEvent& rEvt, ::sd::Window* pWin ); virtual bool Notify( NotifyEvent& rNEvt, ::sd::Window* pWin ); virtual bool HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWin); @@ -196,8 +196,8 @@ public: const SfxPoolItem* GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16& nNumItemId); - sal_Bool HasRuler (void); - void SetRuler(sal_Bool bRuler); + bool HasRuler (void); + void SetRuler(bool bRuler); /** Set internal values of all scroll bars that determine thumb size and position. The external values like size and position of the scroll @@ -209,13 +209,13 @@ public: virtual void SetZoom(long nZoom); virtual void SetZoomRect(const Rectangle& rZoomRect); void InitWindows(const Point& rViewOrigin, const Size& rViewSize, - const Point& rWinPos, sal_Bool bUpdate = sal_False); + const Point& rWinPos, bool bUpdate = false); void InvalidateWindows(); /** This method is still used by the OutlineViewShell to update the model according to the content of the outline view. This in turn updates the previews in the slide sorter. */ - virtual void UpdatePreview (SdPage* pPage, sal_Bool bInit = sal_False); + virtual void UpdatePreview (SdPage* pPage, bool bInit = false); void DrawMarkRect(const Rectangle& rRect) const; @@ -235,7 +235,7 @@ public: virtual void WriteUserData(OUString& rString); virtual void ReadUserData(const OUString& rString); - virtual sal_Bool ActivateObject(SdrOle2Obj* pObj, long nVerb); + virtual bool ActivateObject(SdrOle2Obj* pObj, long nVerb); /** @returns current or selected page or 0. This method @@ -262,11 +262,11 @@ public: void SetPageSizeAndBorder(PageKind ePageKind, const Size& rNewSize, long nLeft, long nRight, long nUpper, long nLower, - sal_Bool bScaleAll, Orientation eOrient, sal_uInt16 nPaperBin, - sal_Bool bBackgroundFullSize ); + bool bScaleAll, Orientation eOrient, sal_uInt16 nPaperBin, + bool bBackgroundFullSize ); - void SetStartShowWithDialog( sal_Bool bIn = sal_True ) { mbStartShowWithDialog = bIn; } - sal_Bool IsStartShowWithDialog() const { return mbStartShowWithDialog; } + void SetStartShowWithDialog( bool bIn = true ) { mbStartShowWithDialog = bIn; } + bool IsStartShowWithDialog() const { return mbStartShowWithDialog; } sal_uInt16 GetPrintedHandoutPageNum (void) const { return mnPrintedHandoutPageNum; } void SetPrintedHandoutPageNum (sal_uInt16 nPageNumber) {mnPrintedHandoutPageNum=nPageNumber; } @@ -274,7 +274,7 @@ public: sal_uInt16 GetPrintedHandoutPageCount(void) const { return mnPrintedHandoutPageCount; } void SetPrintedHandoutPageCount (sal_uInt16 nPageCount) {mnPrintedHandoutPageCount=nPageCount; } - virtual bool PrepareClose( sal_Bool bUI = sal_True ); + virtual bool PrepareClose( bool bUI = true ); void GetMenuState(SfxItemSet& rSet); @@ -283,8 +283,8 @@ public: virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, sal_uInt16 nPage, sal_uInt16 nLayer ); - virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); - virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False ); + virtual void WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ); + virtual void ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, bool bBrowse = false ); /** this method is called when the visible area of the view from this viewshell is changed */ virtual void VisAreaChanged(const Rectangle& rRect); @@ -415,7 +415,7 @@ public: As a result the border is adapted. */ virtual void ShowUIControls (bool bVisible = true); - sal_Bool IsPageFlipMode(void) const; + bool IsPageFlipMode(void) const; /** Set the given window as new parent window. This is not possible for all views, so the return value tells the caller if the relocation @@ -495,13 +495,13 @@ protected: Size maViewSize; Size maScrBarWH; - sal_Bool mbCenterAllowed; // will be forwarded to window + bool mbCenterAllowed; // will be forwarded to window - sal_Bool mbStartShowWithDialog; // presentation is started by dialog + bool mbStartShowWithDialog; // presentation is started by dialog sal_uInt16 mnPrintedHandoutPageNum; // Page number of the handout page that is to be printed. sal_uInt16 mnPrintedHandoutPageCount; // Page count of the handout pages that are to be printed. - //af sal_Bool bPrintDirectSelected; // Print only selected objects in direct print + //af bool bPrintDirectSelected; // Print only selected objects in direct print //afString sPageRange; // pagerange if selected objects in direct print /** Area covered by all windows, i.e. the area of the parent window @@ -525,8 +525,8 @@ protected: virtual ::svl::IUndoManager* ImpGetUndoManager (void) const; void ImpGetUndoStrings(SfxItemSet &rSet) const; void ImpGetRedoStrings(SfxItemSet &rSet) const; - void ImpSidUndo(sal_Bool bDrawViewShell, SfxRequest& rReq); - void ImpSidRedo(sal_Bool bDrawViewShell, SfxRequest& rReq); + void ImpSidUndo(bool bDrawViewShell, SfxRequest& rReq); + void ImpSidRedo(bool bDrawViewShell, SfxRequest& rReq); DECL_LINK( HScrollHdl, ScrollBar * ); DECL_LINK( VScrollHdl, ScrollBar * ); @@ -536,7 +536,7 @@ protected: virtual long VirtVScrollHdl(ScrollBar* pVScroll); // virtual functions ruler handling - virtual SvxRuler* CreateHRuler(::sd::Window* pWin, sal_Bool bIsFirst); + virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst); virtual SvxRuler* CreateVRuler(::sd::Window* pWin); virtual void UpdateHRuler(); virtual void UpdateVRuler(); diff --git a/sd/source/ui/inc/Window.hxx b/sd/source/ui/inc/Window.hxx index 57381e8a0949..da54789d6271 100644 --- a/sd/source/ui/inc/Window.hxx +++ b/sd/source/ui/inc/Window.hxx @@ -123,7 +123,7 @@ public: larger than the view or the value of aWinPos in this direction is -1 then the window is centered in this direction. */ - void UpdateMapOrigin (sal_Bool bInvalidate = sal_True); + void UpdateMapOrigin (bool bInvalidate = true); void UpdateMapMode (void); diff --git a/sd/source/ui/inc/animobjs.hxx b/sd/source/ui/inc/animobjs.hxx index 359b85535f76..87fea2763d84 100644 --- a/sd/source/ui/inc/animobjs.hxx +++ b/sd/source/ui/inc/animobjs.hxx @@ -140,8 +140,8 @@ private: Size aFltWinSize; Size aDisplaySize; Size aBmpSize; - sal_Bool bMovie; - sal_Bool bAllObjects; + bool bMovie; + bool bAllObjects; SfxBindings* pBindings; AnimationControllerItem* pControllerItem; diff --git a/sd/source/ui/inc/custsdlg.hxx b/sd/source/ui/inc/custsdlg.hxx index aec20d3ade36..2b0fa42f165a 100644 --- a/sd/source/ui/inc/custsdlg.hxx +++ b/sd/source/ui/inc/custsdlg.hxx @@ -50,7 +50,7 @@ private: SdDrawDocument& rDoc; SdCustomShowList* pCustomShowList; SdCustomShow* pCustomShow; - sal_Bool bModified; + bool bModified; void CheckState(); @@ -61,8 +61,8 @@ public: SdCustomShowDlg( Window* pWindow, SdDrawDocument& rDrawDoc ); virtual ~SdCustomShowDlg(); - sal_Bool IsModified() const { return( bModified ); } - sal_Bool IsCustomShow() const; + bool IsModified() const { return( bModified ); } + bool IsCustomShow() const; }; @@ -82,7 +82,7 @@ private: SdDrawDocument& rDoc; SdCustomShow*& rpCustomShow; - sal_Bool bModified; + bool bModified; OUString aOldName; void CheckState(); @@ -97,7 +97,7 @@ public: SdDrawDocument& rDrawDoc, SdCustomShow*& rpCS ); virtual ~SdDefineCustomShowDlg(); - sal_Bool IsModified() const { return( bModified ); } + bool IsModified() const { return( bModified ); } }; #endif // INCLUDED_SD_SOURCE_UI_INC_CUSTSDLG_HXX diff --git a/sd/source/ui/inc/dlgass.hxx b/sd/source/ui/inc/dlgass.hxx index f89685ce0517..028d2c9d566b 100644 --- a/sd/source/ui/inc/dlgass.hxx +++ b/sd/source/ui/inc/dlgass.hxx @@ -41,19 +41,19 @@ private: AssistentDlgImpl* mpImpl; public: - AssistentDlg(Window* pParent, sal_Bool bAutoPilot); + AssistentDlg(Window* pParent, bool bAutoPilot); virtual ~AssistentDlg(); DECL_LINK( FinishHdl, void * ); SfxObjectShellLock GetDocument(); OutputType GetOutputMedium() const; - sal_Bool IsSummary() const; + bool IsSummary() const; StartType GetStartType() const; OUString GetDocPath() const; - sal_Bool GetStartWithFlag() const; + bool GetStartWithFlag() const; - sal_Bool IsDocEmpty() const; + bool IsDocEmpty() const; com::sun::star::uno::Sequence< com::sun::star::beans::NamedValue > GetPassword(); }; diff --git a/sd/source/ui/inc/dlgpage.hxx b/sd/source/ui/inc/dlgpage.hxx index e2fdc22d5e68..1878aa3bf362 100644 --- a/sd/source/ui/inc/dlgpage.hxx +++ b/sd/source/ui/inc/dlgpage.hxx @@ -44,7 +44,7 @@ private: public: - SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, sal_Bool bAreaPage = sal_True ); + SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet* pAttr, bool bAreaPage = true ); virtual ~SdPageDlg() {}; virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage) SAL_OVERRIDE; diff --git a/sd/source/ui/inc/dlgsnap.hxx b/sd/source/ui/inc/dlgsnap.hxx index 481adfa8f173..d6464b98e7b0 100644 --- a/sd/source/ui/inc/dlgsnap.hxx +++ b/sd/source/ui/inc/dlgsnap.hxx @@ -66,7 +66,7 @@ public: void HideRadioGroup(); void HideDeleteBtn() { m_pBtnDelete->Hide(); } - void SetInputFields(sal_Bool bEnableX, sal_Bool bEnableY); + void SetInputFields(bool bEnableX, bool bEnableY); }; diff --git a/sd/source/ui/inc/docprev.hxx b/sd/source/ui/inc/docprev.hxx index 11171969f22b..4a8efe32ac47 100644 --- a/sd/source/ui/inc/docprev.hxx +++ b/sd/source/ui/inc/docprev.hxx @@ -41,7 +41,7 @@ class SD_DLLPUBLIC SdDocPreviewWin : public Control, public SfxListener { protected: GDIMetaFile* pMetaFile; - sal_Bool bInEffect; + bool bInEffect; Link aClickHdl; SfxObjectShell* mpObj; sal_uInt16 mnShowPage; diff --git a/sd/source/ui/inc/drawview.hxx b/sd/source/ui/inc/drawview.hxx index 0a149461b8a8..026fa95720aa 100644 --- a/sd/source/ui/inc/drawview.hxx +++ b/sd/source/ui/inc/drawview.hxx @@ -45,13 +45,13 @@ public: virtual void MarkListHasChanged() SAL_OVERRIDE; void CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0L) SAL_OVERRIDE; - virtual sal_Bool SetAttributes(const SfxItemSet& rSet, sal_Bool bReplaceAll = sal_False) SAL_OVERRIDE; + virtual bool SetAttributes(const SfxItemSet& rSet, bool bReplaceAll = false) SAL_OVERRIDE; virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE; - void BlockPageOrderChangedHint(sal_Bool bBlock); + void BlockPageOrderChangedHint(bool bBlock); - sal_Bool SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr = sal_False) SAL_OVERRIDE; + bool SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr = false) SAL_OVERRIDE; virtual bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const SAL_OVERRIDE; virtual void MakeVisible(const Rectangle& rRect, ::Window& rWin) SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fucon3d.hxx b/sd/source/ui/inc/fucon3d.hxx index 6ea52cbae3f6..c978ee0fbd45 100644 --- a/sd/source/ui/inc/fucon3d.hxx +++ b/sd/source/ui/inc/fucon3d.hxx @@ -39,10 +39,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuconarc.hxx b/sd/source/ui/inc/fuconarc.hxx index d9b2ece8b2b6..30208baf1fa7 100644 --- a/sd/source/ui/inc/fuconarc.hxx +++ b/sd/source/ui/inc/fuconarc.hxx @@ -35,10 +35,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuconbez.hxx b/sd/source/ui/inc/fuconbez.hxx index 15907e22a618..43aa50e64ee2 100644 --- a/sd/source/ui/inc/fuconbez.hxx +++ b/sd/source/ui/inc/fuconbez.hxx @@ -40,10 +40,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuconcs.hxx b/sd/source/ui/inc/fuconcs.hxx index 66b34db89e77..63c6b71a28f8 100644 --- a/sd/source/ui/inc/fuconcs.hxx +++ b/sd/source/ui/inc/fuconcs.hxx @@ -38,10 +38,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuconrec.hxx b/sd/source/ui/inc/fuconrec.hxx index 3efba9d797f4..b33f86aa60fb 100644 --- a/sd/source/ui/inc/fuconrec.hxx +++ b/sd/source/ui/inc/fuconrec.hxx @@ -42,10 +42,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuconstr.hxx b/sd/source/ui/inc/fuconstr.hxx index 322c58ddf4ca..26dcecd44fe1 100644 --- a/sd/source/ui/inc/fuconstr.hxx +++ b/sd/source/ui/inc/fuconstr.hxx @@ -37,10 +37,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; @@ -54,7 +54,7 @@ public: // SJ: setting stylesheet, the use of a filled or unfilled style // is determinded by the parameters bUseFillStyle and bUseNoFillStyle : void SetStyleSheet( SfxItemSet& rAttr, SdrObject* pObj, - const sal_Bool bUseFillStyle, const sal_Bool bUseNoFillStyle ); + const bool bUseFillStyle, const bool bUseNoFillStyle ); protected: FuConstruct (ViewShell* pViewSh, diff --git a/sd/source/ui/inc/fuconuno.hxx b/sd/source/ui/inc/fuconuno.hxx index 5914346e9720..c8c4b386de09 100644 --- a/sd/source/ui/inc/fuconuno.hxx +++ b/sd/source/ui/inc/fuconuno.hxx @@ -38,10 +38,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fudraw.hxx b/sd/source/ui/inc/fudraw.hxx index 2bd87360b40e..fb13e98ccc27 100644 --- a/sd/source/ui/inc/fudraw.hxx +++ b/sd/source/ui/inc/fudraw.hxx @@ -37,11 +37,11 @@ class FuDraw public: TYPEINFO_OVERRIDE(); - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool RequestHelp(const HelpEvent& rHEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool RequestHelp(const HelpEvent& rHEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; @@ -50,10 +50,10 @@ public: virtual void DoubleClick(const MouseEvent& rMEvt); - sal_Bool SetPointer(SdrObject* pObj, const Point& rPos); - sal_Bool SetHelpText(SdrObject* pObj, const Point& rPos, const SdrViewEvent& rVEvt); + bool SetPointer(SdrObject* pObj, const Point& rPos); + bool SetHelpText(SdrObject* pObj, const Point& rPos, const SdrViewEvent& rVEvt); - void SetPermanent(sal_Bool bSet) { bPermanent = bSet; } + void SetPermanent(bool bSet) { bPermanent = bSet; } /** is called when the current function should be aborted. <p> This is used when a function gets a KEY_ESCAPE but can also @@ -74,10 +74,10 @@ protected: Pointer aNewPointer; Pointer aOldPointer; - sal_Bool bMBDown; - sal_Bool bDragHelpLine; + bool bMBDown; + bool bDragHelpLine; sal_uInt16 nHelpLine; - sal_Bool bPermanent; + bool bPermanent; }; diff --git a/sd/source/ui/inc/fudspord.hxx b/sd/source/ui/inc/fudspord.hxx index 8e1356a31c57..aaea29645b60 100644 --- a/sd/source/ui/inc/fudspord.hxx +++ b/sd/source/ui/inc/fudspord.hxx @@ -38,9 +38,9 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); // Mouse- & Key-Events - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuediglu.hxx b/sd/source/ui/inc/fuediglu.hxx index 871b12e95503..5eb054b01771 100644 --- a/sd/source/ui/inc/fuediglu.hxx +++ b/sd/source/ui/inc/fuediglu.hxx @@ -34,11 +34,11 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; virtual void ReceiveRequest(SfxRequest& rReq) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; @@ -48,7 +48,7 @@ public: //and SHIFT+ENTER key to decide the position and draw the new insert point virtual void ForcePointer(const MouseEvent* pMEvt = NULL) SAL_OVERRIDE; private: - sal_Bool bBeginInsertPoint; + bool bBeginInsertPoint; Point oldPoint; protected: FuEditGluePoints ( diff --git a/sd/source/ui/inc/fuformatpaintbrush.hxx b/sd/source/ui/inc/fuformatpaintbrush.hxx index 1cd122b26111..41c3396b27cb 100644 --- a/sd/source/ui/inc/fuformatpaintbrush.hxx +++ b/sd/source/ui/inc/fuformatpaintbrush.hxx @@ -36,10 +36,10 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuhhconv.hxx b/sd/source/ui/inc/fuhhconv.hxx index 637dbb917c67..ee34bd6b4f5d 100644 --- a/sd/source/ui/inc/fuhhconv.hxx +++ b/sd/source/ui/inc/fuhhconv.hxx @@ -35,7 +35,7 @@ class FuHangulHanjaConversion : public FuPoor static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); void StartConversion( sal_Int16 nSourceLanguage, sal_Int16 nTargetLanguage, - const Font *pTargetFont, sal_Int32 nOptions, sal_Bool bIsInteractive ); + const Font *pTargetFont, sal_Int32 nOptions, bool bIsInteractive ); void StartChineseConversion(); @@ -47,7 +47,7 @@ class FuHangulHanjaConversion : public FuPoor virtual ~FuHangulHanjaConversion(); Outliner* pSdOutliner; - sal_Bool bOwnOutliner; + bool bOwnOutliner; private: FuHangulHanjaConversion ( diff --git a/sd/source/ui/inc/fuinsfil.hxx b/sd/source/ui/inc/fuinsfil.hxx index fac9e41a4014..ad404c174e70 100644 --- a/sd/source/ui/inc/fuinsfil.hxx +++ b/sd/source/ui/inc/fuinsfil.hxx @@ -52,9 +52,9 @@ private: OUString aFile; ///< chosen file name void InsTextOrRTFinOlMode(SfxMedium* pMedium); - sal_Bool InsSDDinOlMode(SfxMedium* pMedium); + bool InsSDDinOlMode(SfxMedium* pMedium); void InsTextOrRTFinDrMode(SfxMedium* pMedium); - sal_Bool InsSDDinDrMode(SfxMedium* pMedium); + bool InsSDDinDrMode(SfxMedium* pMedium); }; } // end of namespace sd diff --git a/sd/source/ui/inc/fumorph.hxx b/sd/source/ui/inc/fumorph.hxx index c5a85d963a26..ce591a3bb404 100644 --- a/sd/source/ui/inc/fumorph.hxx +++ b/sd/source/ui/inc/fumorph.hxx @@ -54,7 +54,7 @@ private: void ImpInsertPolygons( B2DPolyPolygonList_impl& rPolyPolyList3D, - sal_Bool bAttributeFade, + bool bAttributeFade, const SdrObject* pObj1, const SdrObject* pObj2 ); @@ -65,7 +65,7 @@ private: double fMorphingFactor ); - sal_Bool ImpMorphPolygons( + bool ImpMorphPolygons( const ::basegfx::B2DPolyPolygon& rPolyPoly1, const ::basegfx::B2DPolyPolygon& rPolyPoly2, const sal_uInt16 nSteps, diff --git a/sd/source/ui/inc/fuoltext.hxx b/sd/source/ui/inc/fuoltext.hxx index 0b6b0fece74e..9579423acc65 100644 --- a/sd/source/ui/inc/fuoltext.hxx +++ b/sd/source/ui/inc/fuoltext.hxx @@ -42,10 +42,10 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void DoCut() SAL_OVERRIDE; virtual void DoCopy() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/fuoutl.hxx b/sd/source/ui/inc/fuoutl.hxx index dbf764a3486c..3f02120d8993 100644 --- a/sd/source/ui/inc/fuoutl.hxx +++ b/sd/source/ui/inc/fuoutl.hxx @@ -43,7 +43,7 @@ class FuOutline public: TYPEINFO_OVERRIDE(); - virtual sal_Bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; + virtual bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; protected: FuOutline ( diff --git a/sd/source/ui/inc/fupoor.hxx b/sd/source/ui/inc/fupoor.hxx index 4f0c5140b9e2..8909694f186b 100644 --- a/sd/source/ui/inc/fupoor.hxx +++ b/sd/source/ui/inc/fupoor.hxx @@ -66,15 +66,15 @@ public: virtual void DoPasteUnformatted(); // Mouse- & Key-Events; Returnwert=sal_True: Event wurde bearbeitet - virtual sal_Bool KeyInput(const KeyEvent& rKEvt); - virtual sal_Bool MouseMove(const MouseEvent& ); - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); + virtual bool KeyInput(const KeyEvent& rKEvt); + virtual bool MouseMove(const MouseEvent& ); + virtual bool MouseButtonUp(const MouseEvent& rMEvt); // moved from inline to *.cxx - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); + virtual bool MouseButtonDown(const MouseEvent& rMEvt); - virtual sal_Bool Command(const CommandEvent& rCEvt); - virtual sal_Bool RequestHelp(const HelpEvent& rHEvt); + virtual bool Command(const CommandEvent& rCEvt); + virtual bool RequestHelp(const HelpEvent& rHEvt); virtual void Paint(const Rectangle&, ::sd::Window* ); virtual void ReceiveRequest(SfxRequest& rReq); @@ -88,7 +88,7 @@ public: sal_uInt16 GetSlotID() const { return( nSlotId ); } sal_uInt16 GetSlotValue() const { return( nSlotValue ); } - void SetNoScrollUntilInside(sal_Bool bNoScroll = sal_True) + void SetNoScrollUntilInside(bool bNoScroll = true) { bNoScrollUntilInside = bNoScroll; } void StartDelayToScrollTimer (); @@ -164,17 +164,17 @@ protected: Timer aDragTimer; ///< for Drag&Drop DECL_LINK(DragHdl, void *); - sal_Bool bIsInDragMode; + bool bIsInDragMode; Point aMDPos; ///< position of MouseButtonDown /// Flag to prevent auto-scrolling until one drags from outside into the window - sal_Bool bNoScrollUntilInside; + bool bNoScrollUntilInside; /// timer to delay scrolling (~ 1 sec) when dragging out of the window Timer aDelayToScrollTimer; - sal_Bool bScrollable; - sal_Bool bDelayActive; - sal_Bool bFirstMouseMove; + bool bScrollable; + bool bDelayActive; + bool bFirstMouseMove; /// member to hold state of the mouse buttons for creation of own MouseEvents (like in ScrollHdl) diff --git a/sd/source/ui/inc/fusearch.hxx b/sd/source/ui/inc/fusearch.hxx index 2f80866f521d..63cb35973e55 100644 --- a/sd/source/ui/inc/fusearch.hxx +++ b/sd/source/ui/inc/fusearch.hxx @@ -45,7 +45,7 @@ protected: virtual ~FuSearch (void); ::sd::Outliner* pSdOutliner; - sal_Bool bOwnOutliner; + bool bOwnOutliner; private: FuSearch ( diff --git a/sd/source/ui/inc/fusel.hxx b/sd/source/ui/inc/fusel.hxx index 326f69a2fdd7..1426afe4e7a3 100644 --- a/sd/source/ui/inc/fusel.hxx +++ b/sd/source/ui/inc/fusel.hxx @@ -40,10 +40,10 @@ public: virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; @@ -53,7 +53,7 @@ public: void SetEditMode(sal_uInt16 nMode); sal_uInt16 GetEditMode() { return nEditMode; } - sal_Bool AnimateObj(SdrObject* pObj, const Point& rPos); + bool AnimateObj(SdrObject* pObj, const Point& rPos); /** is called when the current function should be aborted. <p> This is used when a function gets a KEY_ESCAPE but can also @@ -74,12 +74,12 @@ protected: virtual ~FuSelection(); - sal_Bool bTempRotation; - sal_Bool bSelectionChanged; - sal_Bool bHideAndAnimate; + bool bTempRotation; + bool bSelectionChanged; + bool bHideAndAnimate; SdrHdl* pHdl; - sal_Bool bSuppressChangesOfSelection; - sal_Bool bMirrorSide0; + bool bSuppressChangesOfSelection; + bool bMirrorSide0; sal_uInt16 nEditMode; ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > mxPlayer; @@ -99,10 +99,10 @@ private: SdrObject* pickObject (const Point& rTestPoint); //Add Shift+UP/DOWN/LEFT/RIGHT key to move the position of insert point, //and SHIFT+ENTER key to decide the position and draw the new insert point - sal_Bool bBeginInsertPoint; + bool bBeginInsertPoint; Point oldPoint; //let mouse cursor move - sal_Bool bMovedToCenterPoint; + bool bMovedToCenterPoint; }; } // end of namespace sd diff --git a/sd/source/ui/inc/futext.hxx b/sd/source/ui/inc/futext.hxx index 015b89fbfdc9..4a1180b8e95e 100644 --- a/sd/source/ui/inc/futext.hxx +++ b/sd/source/ui/inc/futext.hxx @@ -43,20 +43,20 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); virtual void DoExecute( SfxRequest& rReq ) SAL_OVERRIDE; - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; - virtual sal_Bool RequestHelp(const HelpEvent& rHEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool Command(const CommandEvent& rCEvt) SAL_OVERRIDE; + virtual bool RequestHelp(const HelpEvent& rHEvt) SAL_OVERRIDE; virtual void ReceiveRequest(SfxRequest& rReq) SAL_OVERRIDE; virtual void DoubleClick(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; ///< activates the function virtual void Deactivate() SAL_OVERRIDE; ///< deactivates the function - void SetInEditMode(const MouseEvent& rMEvt, sal_Bool bQuickDrag); - sal_Bool DeleteDefaultText(); + void SetInEditMode(const MouseEvent& rMEvt, bool bQuickDrag); + bool DeleteDefaultText(); SdrTextObj* GetTextObj() { return static_cast< SdrTextObj* >( mxTextObj.get() ); } virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle) SAL_OVERRIDE; @@ -82,7 +82,7 @@ protected: SdrObjectWeakRef mxTextObj; Link aOldLink; - sal_Bool bFirstObjCreated; + bool bFirstObjCreated; bool bJustEndedEdit; SfxRequest& rRequest; diff --git a/sd/source/ui/inc/fuzoom.hxx b/sd/source/ui/inc/fuzoom.hxx index 9a8284b1cfe0..8f42cb0d04b1 100644 --- a/sd/source/ui/inc/fuzoom.hxx +++ b/sd/source/ui/inc/fuzoom.hxx @@ -36,9 +36,9 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); // Mouse- & Key-Events - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; ///< activates the function virtual void Deactivate() SAL_OVERRIDE; ///< deactivates the function @@ -50,8 +50,8 @@ protected: Point aBeginPos; Point aEndPos; Rectangle aZoomRect; - sal_Bool bVisible; - sal_Bool bStartDrag; + bool bVisible; + bool bStartDrag; Pointer aPtr; private: diff --git a/sd/source/ui/inc/inspagob.hxx b/sd/source/ui/inc/inspagob.hxx index ad1c742b5241..36ab45d44b12 100644 --- a/sd/source/ui/inc/inspagob.hxx +++ b/sd/source/ui/inc/inspagob.hxx @@ -55,8 +55,8 @@ public: std::vector<OUString> GetList ( const sal_uInt16 nType ) ; - sal_Bool IsLink(); - sal_Bool IsRemoveUnnessesaryMasterPages() const; + bool IsLink(); + bool IsRemoveUnnessesaryMasterPages() const; }; diff --git a/sd/source/ui/inc/navigatr.hxx b/sd/source/ui/inc/navigatr.hxx index 422f36f17264..b7a8e85dc831 100644 --- a/sd/source/ui/inc/navigatr.hxx +++ b/sd/source/ui/inc/navigatr.hxx @@ -67,16 +67,16 @@ public: { } - sal_Bool HasName() { return( (sal_Bool) bName ); } - sal_Bool IsActive() { return( (sal_Bool) bActive ); } + bool HasName() { return bName; } + bool IsActive() { return bActive; } - void SetName( sal_Bool bOn = sal_True ) { bName = bOn; } - void SetActive( sal_Bool bOn = sal_True ) { bActive = bOn; } + void SetName( bool bOn = true ) { bName = bOn; } + void SetActive( bool bOn = true ) { bActive = bOn; } private: friend class SdNavigatorWin; - sal_Bool bName : 1; - sal_Bool bActive : 1; + bool bName : 1; + bool bActive : 1; ::sd::DrawDocShell* mpDocShell; }; @@ -130,7 +130,7 @@ private: ::sd::NavigatorChildWindow* mpChildWinContext; Size maSize; Size maMinSize; - sal_Bool mbDocImported; + bool mbDocImported; OUString maDropFileName; NavigatorDragType meDragType; std::vector<NavDocInfo> maDocList; @@ -145,7 +145,7 @@ private: */ // bool mbShowAllShapes; - sal_uInt16 GetDragTypeSdResId( NavigatorDragType eDT, sal_Bool bImage = sal_False ); + sal_uInt16 GetDragTypeSdResId( NavigatorDragType eDT, bool bImage = false ); NavDocInfo* GetDocInfo(); DECL_LINK( GetFocusObjectsHdl, void * ); diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index e2a54d460ee5..81fc9d538498 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -67,7 +67,7 @@ public: ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetProperties( const ::com::sun::star::uno::Sequence< OUString >& rNames ); - sal_Bool PutProperties( const com::sun::star::uno::Sequence< OUString >& rNames, + bool PutProperties( const com::sun::star::uno::Sequence< OUString >& rNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any>& rValues ); void SetModified(); }; @@ -81,8 +81,8 @@ private: OUString maSubTree; SdOptionsItem* mpCfgItem; sal_uInt16 mnConfigId; - sal_Bool mbInit : 1; - sal_Bool mbEnableModify : 1; + bool mbInit : 1; + bool mbEnableModify : 1; SAL_DLLPRIVATE void Commit( SdOptionsItem& rCfgItem ) const; SAL_DLLPRIVATE ::com::sun::star::uno::Sequence< OUString > GetPropertyNames() const; @@ -95,8 +95,8 @@ protected: protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const = 0; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) = 0; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const = 0; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) = 0; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const = 0; public: @@ -106,7 +106,7 @@ public: const OUString& GetSubTree() const { return maSubTree; } sal_uInt16 GetConfigId() const { return mnConfigId; } - void EnableModify( sal_Bool bModify ) { mbEnableModify = bModify; } + void EnableModify( bool bModify ) { mbEnableModify = bModify; } void Store(); @@ -118,39 +118,39 @@ class SD_DLLPUBLIC SdOptionsLayout : public SdOptionsGeneric { private: - sal_Bool bRuler; // Layout/Display/Ruler - sal_Bool bMoveOutline; // Layout/Display/Contur - sal_Bool bDragStripes; // Layout/Display/Guide - sal_Bool bHandlesBezier; // Layout/Display/Bezier - sal_Bool bHelplines; // Layout/Display/Helpline + bool bRuler; // Layout/Display/Ruler + bool bMoveOutline; // Layout/Display/Contur + bool bDragStripes; // Layout/Display/Guide + bool bHandlesBezier; // Layout/Display/Bezier + bool bHelplines; // Layout/Display/Helpline sal_uInt16 nMetric; // Layout/Other/MeasureUnit sal_uInt16 nDefTab; // Layout/Other/TabStop protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsLayout( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsLayout( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsLayout() {} - sal_Bool operator==( const SdOptionsLayout& rOpt ) const; + bool operator==( const SdOptionsLayout& rOpt ) const; - sal_Bool IsRulerVisible() const { Init(); return (sal_Bool) bRuler; } - sal_Bool IsMoveOutline() const { Init(); return (sal_Bool) bMoveOutline; } - sal_Bool IsDragStripes() const { Init(); return (sal_Bool) bDragStripes; } - sal_Bool IsHandlesBezier() const { Init(); return (sal_Bool) bHandlesBezier; } - sal_Bool IsHelplines() const { Init(); return (sal_Bool) bHelplines; } + bool IsRulerVisible() const { Init(); return bRuler; } + bool IsMoveOutline() const { Init(); return bMoveOutline; } + bool IsDragStripes() const { Init(); return bDragStripes; } + bool IsHandlesBezier() const { Init(); return bHandlesBezier; } + bool IsHelplines() const { Init(); return bHelplines; } sal_uInt16 GetMetric() const { Init(); return( ( 0xffff == nMetric ) ? (sal_uInt16)SfxModule::GetCurrentFieldUnit() : nMetric ); } sal_uInt16 GetDefTab() const { Init(); return nDefTab; } - void SetRulerVisible( sal_Bool bOn = sal_True ) { if( bRuler != bOn ) { OptionsChanged(); bRuler = bOn; } } - void SetMoveOutline( sal_Bool bOn = sal_True ) { if( bMoveOutline != bOn ) { OptionsChanged(); bMoveOutline = bOn; } } - void SetDragStripes( sal_Bool bOn = sal_True ) { if( bDragStripes != bOn ) { OptionsChanged(); bDragStripes = bOn; } } - void SetHandlesBezier( sal_Bool bOn = sal_True ) { if( bHandlesBezier != bOn ) { OptionsChanged(); bHandlesBezier = bOn; } } - void SetHelplines( sal_Bool bOn = sal_True ) { if( bHelplines != bOn ) { OptionsChanged(); bHelplines = bOn; } } + void SetRulerVisible( bool bOn = true ) { if( bRuler != bOn ) { OptionsChanged(); bRuler = bOn; } } + void SetMoveOutline( bool bOn = true ) { if( bMoveOutline != bOn ) { OptionsChanged(); bMoveOutline = bOn; } } + void SetDragStripes( bool bOn = true ) { if( bDragStripes != bOn ) { OptionsChanged(); bDragStripes = bOn; } } + void SetHandlesBezier( bool bOn = true ) { if( bHandlesBezier != bOn ) { OptionsChanged(); bHandlesBezier = bOn; } } + void SetHelplines( bool bOn = true ) { if( bHelplines != bOn ) { OptionsChanged(); bHelplines = bOn; } } void SetMetric( sal_uInt16 nInMetric ) { if( nMetric != nInMetric ) { OptionsChanged(); nMetric = nInMetric; } } void SetDefTab( sal_uInt16 nTab ) { if( nDefTab != nTab ) { OptionsChanged(); nDefTab = nTab; } } }; @@ -178,15 +178,15 @@ private: protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsContents( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsContents( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsContents() {} - sal_Bool operator==( const SdOptionsContents& rOpt ) const; + bool operator==( const SdOptionsContents& rOpt ) const; }; class SD_DLLPUBLIC SdOptionsContentsItem : public SfxPoolItem @@ -212,28 +212,28 @@ private: sal_uLong nDefaultObjectSizeWidth; sal_uLong nDefaultObjectSizeHeight; - sal_Bool bStartWithTemplate : 1; // Misc/NewDoc/AutoPilot - sal_Bool bMarkedHitMovesAlways : 1; // Misc/ObjectMoveable - sal_Bool bMoveOnlyDragging : 1; // Currently, not in use !!! - sal_Bool bCrookNoContortion : 1; // Misc/NoDistort - sal_Bool bQuickEdit : 1; // Misc/TextObject/QuickEditing - sal_Bool bMasterPageCache : 1; // Misc/BackgroundCache - sal_Bool bDragWithCopy : 1; // Misc/CopyWhileMoving - sal_Bool bPickThrough : 1; // Misc/TextObject/Selectable - sal_Bool bDoubleClickTextEdit : 1; // Misc/DclickTextedit - sal_Bool bClickChangeRotation : 1; // Misc/RotateClick - sal_Bool bEnableSdremote : 1; // Misc/Start/EnableSdremote - sal_Bool bEnablePresenterScreen : 1; // Misc/Start/EnablePresenterDisplay - sal_Bool bSolidDragging : 1; // Misc/ModifyWithAttributes - sal_Bool bSummationOfParagraphs : 1; // misc/SummationOfParagraphs - sal_Bool bShowUndoDeleteWarning : 1; // Misc/ShowUndoDeleteWarning + bool bStartWithTemplate : 1; // Misc/NewDoc/AutoPilot + bool bMarkedHitMovesAlways : 1; // Misc/ObjectMoveable + bool bMoveOnlyDragging : 1; // Currently, not in use !!! + bool bCrookNoContortion : 1; // Misc/NoDistort + bool bQuickEdit : 1; // Misc/TextObject/QuickEditing + bool bMasterPageCache : 1; // Misc/BackgroundCache + bool bDragWithCopy : 1; // Misc/CopyWhileMoving + bool bPickThrough : 1; // Misc/TextObject/Selectable + bool bDoubleClickTextEdit : 1; // Misc/DclickTextedit + bool bClickChangeRotation : 1; // Misc/RotateClick + bool bEnableSdremote : 1; // Misc/Start/EnableSdremote + bool bEnablePresenterScreen : 1; // Misc/Start/EnablePresenterDisplay + bool bSolidDragging : 1; // Misc/ModifyWithAttributes + bool bSummationOfParagraphs : 1; // misc/SummationOfParagraphs + bool bShowUndoDeleteWarning : 1; // Misc/ShowUndoDeleteWarning // #i75315# - sal_Bool bSlideshowRespectZOrder : 1; // Misc/SlideshowRespectZOrder - sal_Bool bShowComments : 1; // Misc/ShowComments + bool bSlideshowRespectZOrder : 1; // Misc/SlideshowRespectZOrder + bool bShowComments : 1; // Misc/ShowComments - sal_Bool bPreviewNewEffects; - sal_Bool bPreviewChangedEffects; - sal_Bool bPreviewTransitions; + bool bPreviewNewEffects; + bool bPreviewChangedEffects; + bool bPreviewTransitions; sal_Int32 mnDisplay; @@ -251,30 +251,30 @@ private: protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsMisc( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsMisc( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsMisc() {} - sal_Bool operator==( const SdOptionsMisc& rOpt ) const; - - sal_Bool IsStartWithTemplate() const { Init(); return (sal_Bool) bStartWithTemplate; } - sal_Bool IsMarkedHitMovesAlways() const { Init(); return (sal_Bool) bMarkedHitMovesAlways; } - sal_Bool IsMoveOnlyDragging() const { Init(); return (sal_Bool) bMoveOnlyDragging; } - sal_Bool IsCrookNoContortion() const { Init(); return (sal_Bool) bCrookNoContortion; } - sal_Bool IsQuickEdit() const { Init(); return (sal_Bool) bQuickEdit; } - sal_Bool IsMasterPagePaintCaching() const { Init(); return (sal_Bool) bMasterPageCache; } - sal_Bool IsDragWithCopy() const { Init(); return (sal_Bool) bDragWithCopy; } - sal_Bool IsPickThrough() const { Init(); return (sal_Bool) bPickThrough; } - sal_Bool IsDoubleClickTextEdit() const { Init(); return (sal_Bool) bDoubleClickTextEdit; } - sal_Bool IsClickChangeRotation() const { Init(); return (sal_Bool) bClickChangeRotation; } - sal_Bool IsEnableSdremote() const { Init(); return (sal_Bool) bEnableSdremote; } - sal_Bool IsEnablePresenterScreen() const { Init(); return (sal_Bool) bEnablePresenterScreen; } - sal_Bool IsSolidDragging() const { Init(); return (sal_Bool) bSolidDragging; } - sal_Bool IsSummationOfParagraphs() const { Init(); return bSummationOfParagraphs != 0; }; + bool operator==( const SdOptionsMisc& rOpt ) const; + + bool IsStartWithTemplate() const { Init(); return bStartWithTemplate; } + bool IsMarkedHitMovesAlways() const { Init(); return bMarkedHitMovesAlways; } + bool IsMoveOnlyDragging() const { Init(); return bMoveOnlyDragging; } + bool IsCrookNoContortion() const { Init(); return bCrookNoContortion; } + bool IsQuickEdit() const { Init(); return bQuickEdit; } + bool IsMasterPagePaintCaching() const { Init(); return bMasterPageCache; } + bool IsDragWithCopy() const { Init(); return bDragWithCopy; } + bool IsPickThrough() const { Init(); return bPickThrough; } + bool IsDoubleClickTextEdit() const { Init(); return bDoubleClickTextEdit; } + bool IsClickChangeRotation() const { Init(); return bClickChangeRotation; } + bool IsEnableSdremote() const { Init(); return bEnableSdremote; } + bool IsEnablePresenterScreen() const { Init(); return bEnablePresenterScreen; } + bool IsSolidDragging() const { Init(); return bSolidDragging; } + bool IsSummationOfParagraphs() const { Init(); return bSummationOfParagraphs; }; /** Return the currently selected printer independent layout mode. @return @@ -282,14 +282,14 @@ public: is disabled. Other values are reserved for future use. */ sal_uInt16 GetPrinterIndependentLayout() const { Init(); return mnPrinterIndependentLayout; }; - sal_Bool IsShowUndoDeleteWarning() const { Init(); return (sal_Bool) bShowUndoDeleteWarning; } - sal_Bool IsSlideshowRespectZOrder() const { Init(); return (sal_Bool) bSlideshowRespectZOrder; } + bool IsShowUndoDeleteWarning() const { Init(); return bShowUndoDeleteWarning; } + bool IsSlideshowRespectZOrder() const { Init(); return bSlideshowRespectZOrder; } sal_uLong GetDefaultObjectSizeWidth() const { Init(); return nDefaultObjectSizeWidth; } sal_uLong GetDefaultObjectSizeHeight() const { Init(); return nDefaultObjectSizeHeight; } - sal_Bool IsPreviewNewEffects() const { Init(); return bPreviewNewEffects; } - sal_Bool IsPreviewChangedEffects() const { Init(); return bPreviewChangedEffects; } - sal_Bool IsPreviewTransitions() const { Init(); return bPreviewTransitions; } + bool IsPreviewNewEffects() const { Init(); return bPreviewNewEffects; } + bool IsPreviewChangedEffects() const { Init(); return bPreviewChangedEffects; } + bool IsPreviewTransitions() const { Init(); return bPreviewTransitions; } sal_Int32 GetDisplay() const; void SetDisplay( sal_Int32 nDisplay = 0 ); @@ -300,19 +300,19 @@ public: double GetPresentationPenWidth() const { Init(); return mnPenWidth; } void SetPresentationPenWidth( double nPenWidth ) { if( mnPenWidth != nPenWidth ) { OptionsChanged(); mnPenWidth = nPenWidth; } } - void SetStartWithTemplate( sal_Bool bOn = sal_True ) { if( bStartWithTemplate != bOn ) { OptionsChanged(); bStartWithTemplate = bOn; } } - void SetMarkedHitMovesAlways( sal_Bool bOn = sal_True ) { if( bMarkedHitMovesAlways != bOn ) { OptionsChanged(); bMarkedHitMovesAlways = bOn; } } - void SetMoveOnlyDragging( sal_Bool bOn = sal_True ) { if( bMoveOnlyDragging != bOn ) { OptionsChanged(); bMoveOnlyDragging = bOn; } } - void SetCrookNoContortion( sal_Bool bOn = sal_True ) { if( bCrookNoContortion != bOn ) { OptionsChanged(); bCrookNoContortion = bOn; } } - void SetQuickEdit( sal_Bool bOn = sal_True ) { if( bQuickEdit != bOn ) { OptionsChanged(); bQuickEdit = bOn; } } - void SetMasterPagePaintCaching( sal_Bool bOn = sal_True ) { if( bMasterPageCache != bOn ) { OptionsChanged(); bMasterPageCache = bOn; } } - void SetDragWithCopy( sal_Bool bOn = sal_True ) { if( bDragWithCopy != bOn ) { OptionsChanged(); bDragWithCopy = bOn; } } - void SetPickThrough( sal_Bool bOn = sal_True ) { if( bPickThrough != bOn ) { OptionsChanged(); bPickThrough = bOn; } } - void SetDoubleClickTextEdit( sal_Bool bOn = sal_True ) { if( bDoubleClickTextEdit != bOn ) { OptionsChanged(); bDoubleClickTextEdit = bOn; } } - void SetClickChangeRotation( sal_Bool bOn = sal_True ) { if( bClickChangeRotation != bOn ) { OptionsChanged(); bClickChangeRotation = bOn; } } - void SetEnableSdremote( sal_Bool bOn = sal_True ) { if( bEnableSdremote != bOn ) { OptionsChanged(); bEnableSdremote = bOn; } } - void SetEnablePresenterScreen( sal_Bool bOn = sal_True ) { if( bEnablePresenterScreen != bOn ) { OptionsChanged(); bEnablePresenterScreen = bOn; } } - void SetSummationOfParagraphs( sal_Bool bOn = sal_True ){ if ( bOn != bSummationOfParagraphs ) { OptionsChanged(); bSummationOfParagraphs = bOn; } } + void SetStartWithTemplate( bool bOn = true ) { if( bStartWithTemplate != bOn ) { OptionsChanged(); bStartWithTemplate = bOn; } } + void SetMarkedHitMovesAlways( bool bOn = true ) { if( bMarkedHitMovesAlways != bOn ) { OptionsChanged(); bMarkedHitMovesAlways = bOn; } } + void SetMoveOnlyDragging( bool bOn = true ) { if( bMoveOnlyDragging != bOn ) { OptionsChanged(); bMoveOnlyDragging = bOn; } } + void SetCrookNoContortion( bool bOn = true ) { if( bCrookNoContortion != bOn ) { OptionsChanged(); bCrookNoContortion = bOn; } } + void SetQuickEdit( bool bOn = true ) { if( bQuickEdit != bOn ) { OptionsChanged(); bQuickEdit = bOn; } } + void SetMasterPagePaintCaching( bool bOn = true ) { if( bMasterPageCache != bOn ) { OptionsChanged(); bMasterPageCache = bOn; } } + void SetDragWithCopy( bool bOn = true ) { if( bDragWithCopy != bOn ) { OptionsChanged(); bDragWithCopy = bOn; } } + void SetPickThrough( bool bOn = true ) { if( bPickThrough != bOn ) { OptionsChanged(); bPickThrough = bOn; } } + void SetDoubleClickTextEdit( bool bOn = true ) { if( bDoubleClickTextEdit != bOn ) { OptionsChanged(); bDoubleClickTextEdit = bOn; } } + void SetClickChangeRotation( bool bOn = true ) { if( bClickChangeRotation != bOn ) { OptionsChanged(); bClickChangeRotation = bOn; } } + void SetEnableSdremote( bool bOn = true ) { if( bEnableSdremote != bOn ) { OptionsChanged(); bEnableSdremote = bOn; } } + void SetEnablePresenterScreen( bool bOn = true ) { if( bEnablePresenterScreen != bOn ) { OptionsChanged(); bEnablePresenterScreen = bOn; } } + void SetSummationOfParagraphs( bool bOn = true ){ if ( bOn != bSummationOfParagraphs ) { OptionsChanged(); bSummationOfParagraphs = bOn; } } /** Set the printer independent layout mode. @param nOn The default value is to switch printer independent layout on, @@ -320,18 +320,18 @@ public: values are reserved for future use. */ void SetPrinterIndependentLayout (sal_uInt16 nOn = 1 ){ if ( nOn != mnPrinterIndependentLayout ) { OptionsChanged(); mnPrinterIndependentLayout = nOn; } } - void SetSolidDragging( sal_Bool bOn = sal_True ) { if( bSolidDragging != bOn ) { OptionsChanged(); bSolidDragging = bOn; } } - void SetShowUndoDeleteWarning( sal_Bool bOn = sal_True ) { if( bShowUndoDeleteWarning != bOn ) { OptionsChanged(); bShowUndoDeleteWarning = bOn; } } - void SetSlideshowRespectZOrder( sal_Bool bOn = sal_True ) { if( bSlideshowRespectZOrder != bOn ) { OptionsChanged(); bSlideshowRespectZOrder = bOn; } } + void SetSolidDragging( bool bOn = true ) { if( bSolidDragging != bOn ) { OptionsChanged(); bSolidDragging = bOn; } } + void SetShowUndoDeleteWarning( bool bOn = true ) { if( bShowUndoDeleteWarning != bOn ) { OptionsChanged(); bShowUndoDeleteWarning = bOn; } } + void SetSlideshowRespectZOrder( bool bOn = true ) { if( bSlideshowRespectZOrder != bOn ) { OptionsChanged(); bSlideshowRespectZOrder = bOn; } } void SetDefaultObjectSizeWidth( sal_uLong nWidth ) { if( nDefaultObjectSizeWidth != nWidth ) { OptionsChanged(); nDefaultObjectSizeWidth = nWidth; } } void SetDefaultObjectSizeHeight( sal_uLong nHeight ) { if( nDefaultObjectSizeHeight != nHeight ) { OptionsChanged(); nDefaultObjectSizeHeight = nHeight; } } - void SetPreviewNewEffects( sal_Bool bOn ) { if( bPreviewNewEffects != bOn ) { OptionsChanged(); bPreviewNewEffects = bOn; } } - void SetPreviewChangedEffects( sal_Bool bOn ) { if( bPreviewChangedEffects != bOn ) { OptionsChanged(); bPreviewChangedEffects = bOn; } } - void SetPreviewTransitions( sal_Bool bOn ) { if( bPreviewTransitions != bOn ) { OptionsChanged(); bPreviewTransitions = bOn; } } + void SetPreviewNewEffects( bool bOn ) { if( bPreviewNewEffects != bOn ) { OptionsChanged(); bPreviewNewEffects = bOn; } } + void SetPreviewChangedEffects( bool bOn ) { if( bPreviewChangedEffects != bOn ) { OptionsChanged(); bPreviewChangedEffects = bOn; } } + void SetPreviewTransitions( bool bOn ) { if( bPreviewTransitions != bOn ) { OptionsChanged(); bPreviewTransitions = bOn; } } - sal_Bool IsShowComments() const { Init(); return bShowComments; } - void SetShowComments( sal_Bool bShow ) { if( bShowComments != bShow ) { OptionsChanged(); bShowComments = bShow; } } + bool IsShowComments() const { Init(); return bShowComments; } + void SetShowComments( bool bShow ) { if( bShowComments != bShow ) { OptionsChanged(); bShowComments = bShow; } } }; class SD_DLLPUBLIC SdOptionsMiscItem : public SfxPoolItem @@ -356,13 +356,13 @@ class SD_DLLPUBLIC SdOptionsSnap : public SdOptionsGeneric { private: - sal_Bool bSnapHelplines : 1; // Snap/Object/SnapLine - sal_Bool bSnapBorder : 1; // Snap/Object/PageMargin - sal_Bool bSnapFrame : 1; // Snap/Object/ObjectFrame - sal_Bool bSnapPoints : 1; // Snap/Object/ObjectPoint - sal_Bool bOrtho : 1; // Snap/Position/CreatingMoving - sal_Bool bBigOrtho : 1; // Snap/Position/ExtendEdges - sal_Bool bRotate : 1; // Snap/Position/Rotating + bool bSnapHelplines : 1; // Snap/Object/SnapLine + bool bSnapBorder : 1; // Snap/Object/PageMargin + bool bSnapFrame : 1; // Snap/Object/ObjectFrame + bool bSnapPoints : 1; // Snap/Object/ObjectPoint + bool bOrtho : 1; // Snap/Position/CreatingMoving + bool bBigOrtho : 1; // Snap/Position/ExtendEdges + bool bRotate : 1; // Snap/Position/Rotating sal_Int16 nSnapArea; // Snap/Object/Range sal_Int16 nAngle; // Snap/Position/RotatingValue sal_Int16 nBezAngle; // Snap/Position/PointReduction @@ -370,34 +370,34 @@ private: protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsSnap( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsSnap( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsSnap() {} - sal_Bool operator==( const SdOptionsSnap& rOpt ) const; + bool operator==( const SdOptionsSnap& rOpt ) const; - sal_Bool IsSnapHelplines() const { Init(); return (sal_Bool) bSnapHelplines; } - sal_Bool IsSnapBorder() const { Init(); return (sal_Bool) bSnapBorder; } - sal_Bool IsSnapFrame() const { Init(); return (sal_Bool) bSnapFrame; } - sal_Bool IsSnapPoints() const { Init(); return (sal_Bool) bSnapPoints; } - sal_Bool IsOrtho() const { Init(); return (sal_Bool) bOrtho; } - sal_Bool IsBigOrtho() const { Init(); return (sal_Bool) bBigOrtho; } - sal_Bool IsRotate() const { Init(); return (sal_Bool) bRotate; } + bool IsSnapHelplines() const { Init(); return bSnapHelplines; } + bool IsSnapBorder() const { Init(); return bSnapBorder; } + bool IsSnapFrame() const { Init(); return bSnapFrame; } + bool IsSnapPoints() const { Init(); return bSnapPoints; } + bool IsOrtho() const { Init(); return bOrtho; } + bool IsBigOrtho() const { Init(); return bBigOrtho; } + bool IsRotate() const { Init(); return bRotate; } sal_Int16 GetSnapArea() const { Init(); return nSnapArea; } sal_Int16 GetAngle() const { Init(); return nAngle; } sal_Int16 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; } - void SetSnapHelplines( sal_Bool bOn = sal_True ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } } - void SetSnapBorder( sal_Bool bOn = sal_True ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } } - void SetSnapFrame( sal_Bool bOn = sal_True ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } } - void SetSnapPoints( sal_Bool bOn = sal_True ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } } - void SetOrtho( sal_Bool bOn = sal_True ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } } - void SetBigOrtho( sal_Bool bOn = sal_True ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } } - void SetRotate( sal_Bool bOn = sal_True ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } } + void SetSnapHelplines( bool bOn = true ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } } + void SetSnapBorder( bool bOn = true ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } } + void SetSnapFrame( bool bOn = true ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } } + void SetSnapPoints( bool bOn = true ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } } + void SetOrtho( bool bOn = true ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } } + void SetBigOrtho( bool bOn = true ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } } + void SetRotate( bool bOn = true ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } } void SetSnapArea( sal_Int16 nIn ) { if( nSnapArea != nIn ) { OptionsChanged(); nSnapArea = nIn; } } void SetAngle( sal_Int16 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } } void SetEliminatePolyPointLimitAngle( sal_Int16 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } } @@ -430,15 +430,15 @@ private: protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsZoom( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsZoom( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsZoom() {} - sal_Bool operator==( const SdOptionsZoom& rOpt ) const; + bool operator==( const SdOptionsZoom& rOpt ) const; void GetScale( sal_Int32& rX, sal_Int32& rY ) const { Init(); rX = nX; rY = nY; } void SetScale( sal_Int32 nInX, sal_Int32 nInY ) { if( nX != nInX || nY != nInY ) { OptionsChanged(); nX = nInX; nY = nInY; } } @@ -449,16 +449,16 @@ class SdOptionsGrid : public SdOptionsGeneric, public SvxOptionsGrid protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsGrid( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsGrid( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsGrid(); void SetDefaults(); - sal_Bool operator==( const SdOptionsGrid& rOpt ) const; + bool operator==( const SdOptionsGrid& rOpt ) const; sal_uInt32 GetFldDrawX() const { Init(); return SvxOptionsGrid::GetFldDrawX(); } sal_uInt32 GetFldDivisionX() const { Init(); return SvxOptionsGrid::GetFldDivisionX(); } @@ -466,10 +466,10 @@ public: sal_uInt32 GetFldDivisionY() const { Init(); return SvxOptionsGrid::GetFldDivisionY(); } sal_uInt32 GetFldSnapX() const { Init(); return SvxOptionsGrid::GetFldSnapX(); } sal_uInt32 GetFldSnapY() const { Init(); return SvxOptionsGrid::GetFldSnapY(); } - sal_Bool IsUseGridSnap() const { Init(); return SvxOptionsGrid::GetUseGridSnap(); } - sal_Bool IsSynchronize() const { Init(); return SvxOptionsGrid::GetSynchronize(); } - sal_Bool IsGridVisible() const { Init(); return SvxOptionsGrid::GetGridVisible(); } - sal_Bool IsEqualGrid() const { Init(); return SvxOptionsGrid::GetEqualGrid(); } + bool IsUseGridSnap() const { Init(); return SvxOptionsGrid::GetUseGridSnap(); } + bool IsSynchronize() const { Init(); return SvxOptionsGrid::GetSynchronize(); } + bool IsGridVisible() const { Init(); return SvxOptionsGrid::GetGridVisible(); } + bool IsEqualGrid() const { Init(); return SvxOptionsGrid::GetEqualGrid(); } void SetFldDrawX( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFldDrawX() ) { OptionsChanged(); SvxOptionsGrid::SetFldDrawX( nSet ); } } void SetFldDivisionX( sal_uInt32 nSet ) { if( nSet != SvxOptionsGrid::GetFldDivisionX() ) { OptionsChanged(); SvxOptionsGrid::SetFldDivisionX( nSet ); } } @@ -496,83 +496,83 @@ class SD_DLLPUBLIC SdOptionsPrint : public SdOptionsGeneric { private: - sal_Bool bDraw : 1; // Print/Content/Drawing - sal_Bool bNotes : 1; // Print/Content/Note - sal_Bool bHandout : 1; // Print/Content/Handout - sal_Bool bOutline : 1; // Print/Content/Outline - sal_Bool bDate : 1; // Print/Other/Date - sal_Bool bTime : 1; // Print/Other/Time - sal_Bool bPagename : 1; // Print/Other/PageName - sal_Bool bHiddenPages : 1; // Print/Other/HiddenPage - sal_Bool bPagesize : 1; // Print/Page/PageSize - sal_Bool bPagetile : 1; // Print/Page/PageTile - sal_Bool bWarningPrinter : 1; // These flags you get - sal_Bool bWarningSize : 1; // from the common options, - sal_Bool bWarningOrientation : 1; // currently org.openoffice.Office.Common.xml (class OfaMiscCfg ; sfx2/misccfg.hxx ) - sal_Bool bBooklet : 1; // Print/Page/Booklet - sal_Bool bFront : 1; // Print/Page/BookletFront - sal_Bool bBack : 1; // Print/Page/BookletFront - sal_Bool bCutPage : 1; // NOT persistent !!! - sal_Bool bPaperbin : 1; // Print/Other/FromPrinterSetup - sal_Bool mbHandoutHorizontal : 1; // Order Page previews on Handout Pages horizontal + bool bDraw : 1; // Print/Content/Drawing + bool bNotes : 1; // Print/Content/Note + bool bHandout : 1; // Print/Content/Handout + bool bOutline : 1; // Print/Content/Outline + bool bDate : 1; // Print/Other/Date + bool bTime : 1; // Print/Other/Time + bool bPagename : 1; // Print/Other/PageName + bool bHiddenPages : 1; // Print/Other/HiddenPage + bool bPagesize : 1; // Print/Page/PageSize + bool bPagetile : 1; // Print/Page/PageTile + bool bWarningPrinter : 1; // These flags you get + bool bWarningSize : 1; // from the common options, + bool bWarningOrientation : 1; // currently org.openoffice.Office.Common.xml (class OfaMiscCfg ; sfx2/misccfg.hxx ) + bool bBooklet : 1; // Print/Page/Booklet + bool bFront : 1; // Print/Page/BookletFront + bool bBack : 1; // Print/Page/BookletFront + bool bCutPage : 1; // NOT persistent !!! + bool bPaperbin : 1; // Print/Other/FromPrinterSetup + bool mbHandoutHorizontal : 1; // Order Page previews on Handout Pages horizontal sal_uInt16 mnHandoutPages; // Number of page previews on handout page (only 1/2/4/6/9 are supported) sal_uInt16 nQuality; // Print/Other/Quality protected: virtual void GetPropNameArray( const char**& ppNames, sal_uLong& rCount ) const SAL_OVERRIDE; - virtual sal_Bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; - virtual sal_Bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; + virtual bool ReadData( const ::com::sun::star::uno::Any* pValues ) SAL_OVERRIDE; + virtual bool WriteData( ::com::sun::star::uno::Any* pValues ) const SAL_OVERRIDE; public: - SdOptionsPrint( sal_uInt16 nConfigId, sal_Bool bUseConfig ); + SdOptionsPrint( sal_uInt16 nConfigId, bool bUseConfig ); virtual ~SdOptionsPrint() {} - sal_Bool operator==( const SdOptionsPrint& rOpt ) const; - - sal_Bool IsDraw() const { Init(); return (sal_Bool) bDraw; } - sal_Bool IsNotes() const { Init(); return (sal_Bool) bNotes; } - sal_Bool IsHandout() const { Init(); return (sal_Bool) bHandout; } - sal_Bool IsOutline() const { Init(); return (sal_Bool) bOutline; } - sal_Bool IsDate() const { Init(); return (sal_Bool) bDate; } - sal_Bool IsTime() const { Init(); return (sal_Bool) bTime; } - sal_Bool IsPagename() const { Init(); return (sal_Bool) bPagename; } - sal_Bool IsHiddenPages() const { Init(); return (sal_Bool) bHiddenPages; } - sal_Bool IsPagesize() const { Init(); return (sal_Bool) bPagesize; } - sal_Bool IsPagetile() const { Init(); return (sal_Bool) bPagetile; } - sal_Bool IsWarningPrinter() const { Init(); return (sal_Bool) bWarningPrinter; } - sal_Bool IsWarningSize() const { Init(); return (sal_Bool) bWarningSize; } - sal_Bool IsWarningOrientation() const { Init(); return (sal_Bool) bWarningOrientation; } - sal_Bool IsBooklet() const { Init(); return (sal_Bool) bBooklet; } - sal_Bool IsFrontPage() const { Init(); return (sal_Bool) bFront; } - sal_Bool IsBackPage() const { Init(); return (sal_Bool) bBack; } - sal_Bool IsCutPage() const { Init(); return (sal_Bool) bCutPage; } - sal_Bool IsPaperbin() const { Init(); return (sal_Bool) bPaperbin; } + bool operator==( const SdOptionsPrint& rOpt ) const; + + bool IsDraw() const { Init(); return bDraw; } + bool IsNotes() const { Init(); return bNotes; } + bool IsHandout() const { Init(); return bHandout; } + bool IsOutline() const { Init(); return bOutline; } + bool IsDate() const { Init(); return bDate; } + bool IsTime() const { Init(); return bTime; } + bool IsPagename() const { Init(); return bPagename; } + bool IsHiddenPages() const { Init(); return bHiddenPages; } + bool IsPagesize() const { Init(); return bPagesize; } + bool IsPagetile() const { Init(); return bPagetile; } + bool IsWarningPrinter() const { Init(); return bWarningPrinter; } + bool IsWarningSize() const { Init(); return bWarningSize; } + bool IsWarningOrientation() const { Init(); return bWarningOrientation; } + bool IsBooklet() const { Init(); return bBooklet; } + bool IsFrontPage() const { Init(); return bFront; } + bool IsBackPage() const { Init(); return bBack; } + bool IsCutPage() const { Init(); return bCutPage; } + bool IsPaperbin() const { Init(); return bPaperbin; } sal_uInt16 GetOutputQuality() const { Init(); return nQuality; } - sal_Bool IsHandoutHorizontal() const { Init(); return mbHandoutHorizontal; } + bool IsHandoutHorizontal() const { Init(); return mbHandoutHorizontal; } sal_uInt16 GetHandoutPages() const { Init(); return mnHandoutPages; } - void SetDraw( sal_Bool bOn = sal_True ) { if( bDraw != bOn ) { OptionsChanged(); bDraw = bOn; } } - void SetNotes( sal_Bool bOn = sal_True ) { if( bNotes != bOn ) { OptionsChanged(); bNotes = bOn; } } - void SetHandout( sal_Bool bOn = sal_True ) { if( bHandout != bOn ) { OptionsChanged(); bHandout = bOn; } } - void SetOutline( sal_Bool bOn = sal_True ) { if( bOutline != bOn ) { OptionsChanged(); bOutline = bOn; } } - void SetDate( sal_Bool bOn = sal_True ) { if( bDate != bOn ) { OptionsChanged(); bDate = bOn; } } - void SetTime( sal_Bool bOn = sal_True ) { if( bTime != bOn ) { OptionsChanged(); bTime = bOn; } } - void SetPagename( sal_Bool bOn = sal_True ) { if( bPagename != bOn ) { OptionsChanged(); bPagename = bOn; } } - void SetHiddenPages( sal_Bool bOn = sal_True ) { if( bHiddenPages != bOn ) { OptionsChanged(); bHiddenPages = bOn; } } - void SetPagesize( sal_Bool bOn = sal_True ) { if( bPagesize != bOn ) { OptionsChanged(); bPagesize = bOn; } } - void SetPagetile( sal_Bool bOn = sal_True ) { if( bPagetile != bOn ) { OptionsChanged(); bPagetile = bOn; } } - void SetWarningPrinter( sal_Bool bOn = sal_True ) { if( bWarningPrinter != bOn ) { OptionsChanged(); bWarningPrinter = bOn; } } - void SetWarningSize( sal_Bool bOn = sal_True ) { if( bWarningSize != bOn ) { OptionsChanged(); bWarningSize = bOn; } } - void SetWarningOrientation( sal_Bool bOn = sal_True ) { if( bWarningOrientation != bOn ) { OptionsChanged(); bWarningOrientation = bOn; } } - void SetBooklet( sal_Bool bOn = sal_True ) { if( bBooklet != bOn ) { OptionsChanged(); bBooklet = bOn; } } - void SetFrontPage( sal_Bool bOn = sal_True ) { if( bFront != bOn ) { OptionsChanged(); bFront = bOn; } } - void SetBackPage( sal_Bool bOn = sal_True ) { if( bBack != bOn ) { OptionsChanged(); bBack = bOn; } } - void SetCutPage( sal_Bool bOn = sal_True ) { if( bCutPage != bOn ) { OptionsChanged(); bCutPage = bOn; } } - void SetPaperbin( sal_Bool bOn = sal_True ) { if( bPaperbin != bOn ) { OptionsChanged(); bPaperbin = bOn; } } + void SetDraw( bool bOn = true ) { if( bDraw != bOn ) { OptionsChanged(); bDraw = bOn; } } + void SetNotes( bool bOn = true ) { if( bNotes != bOn ) { OptionsChanged(); bNotes = bOn; } } + void SetHandout( bool bOn = true ) { if( bHandout != bOn ) { OptionsChanged(); bHandout = bOn; } } + void SetOutline( bool bOn = true ) { if( bOutline != bOn ) { OptionsChanged(); bOutline = bOn; } } + void SetDate( bool bOn = true ) { if( bDate != bOn ) { OptionsChanged(); bDate = bOn; } } + void SetTime( bool bOn = true ) { if( bTime != bOn ) { OptionsChanged(); bTime = bOn; } } + void SetPagename( bool bOn = true ) { if( bPagename != bOn ) { OptionsChanged(); bPagename = bOn; } } + void SetHiddenPages( bool bOn = true ) { if( bHiddenPages != bOn ) { OptionsChanged(); bHiddenPages = bOn; } } + void SetPagesize( bool bOn = true ) { if( bPagesize != bOn ) { OptionsChanged(); bPagesize = bOn; } } + void SetPagetile( bool bOn = true ) { if( bPagetile != bOn ) { OptionsChanged(); bPagetile = bOn; } } + void SetWarningPrinter( bool bOn = true ) { if( bWarningPrinter != bOn ) { OptionsChanged(); bWarningPrinter = bOn; } } + void SetWarningSize( bool bOn = true ) { if( bWarningSize != bOn ) { OptionsChanged(); bWarningSize = bOn; } } + void SetWarningOrientation( bool bOn = true ) { if( bWarningOrientation != bOn ) { OptionsChanged(); bWarningOrientation = bOn; } } + void SetBooklet( bool bOn = true ) { if( bBooklet != bOn ) { OptionsChanged(); bBooklet = bOn; } } + void SetFrontPage( bool bOn = true ) { if( bFront != bOn ) { OptionsChanged(); bFront = bOn; } } + void SetBackPage( bool bOn = true ) { if( bBack != bOn ) { OptionsChanged(); bBack = bOn; } } + void SetCutPage( bool bOn = true ) { if( bCutPage != bOn ) { OptionsChanged(); bCutPage = bOn; } } + void SetPaperbin( bool bOn = true ) { if( bPaperbin != bOn ) { OptionsChanged(); bPaperbin = bOn; } } void SetOutputQuality( sal_uInt16 nInQuality ) { if( nQuality != nInQuality ) { OptionsChanged(); nQuality = nInQuality; } } - void SetHandoutHorizontal( sal_Bool bHandoutHorizontal ) { if( mbHandoutHorizontal != bHandoutHorizontal ) { OptionsChanged(); mbHandoutHorizontal = bHandoutHorizontal; } } + void SetHandoutHorizontal( bool bHandoutHorizontal ) { if( mbHandoutHorizontal != bHandoutHorizontal ) { OptionsChanged(); mbHandoutHorizontal = bHandoutHorizontal; } } void SetHandoutPages( sal_uInt16 nHandoutPages ) { if( nHandoutPages != mnHandoutPages ) { OptionsChanged(); mnHandoutPages = nHandoutPages; } } }; diff --git a/sd/source/ui/inc/pubdlg.hxx b/sd/source/ui/inc/pubdlg.hxx index 36bc3ed748fb..74f11d545f2c 100644 --- a/sd/source/ui/inc/pubdlg.hxx +++ b/sd/source/ui/inc/pubdlg.hxx @@ -151,8 +151,8 @@ private: Assistent aAssistentFunc; - sal_Bool m_bImpress; - sal_Bool m_bButtonsDirty; + bool m_bImpress; + bool m_bButtonsDirty; void SetDefaults(); void CreatePages(); @@ -165,10 +165,10 @@ private: void UpdatePage(); boost::ptr_vector<SdPublishingDesign> m_aDesignList; - sal_Bool m_bDesignListDirty; + bool m_bDesignListDirty; SdPublishingDesign* m_pDesign; - sal_Bool Load(); - sal_Bool Save(); + bool Load(); + bool Save(); void GetDesign( SdPublishingDesign* pDesign ); void SetDesign( SdPublishingDesign* pDesign ); diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx index 396352b239aa..08debfa1ef97 100644 --- a/sd/source/ui/inc/sdtreelb.hxx +++ b/sd/source/ui/inc/sdtreelb.hxx @@ -60,10 +60,10 @@ class SD_DLLPUBLIC SdPageObjsTLB : public SvTreeListBox { private: - static sal_Bool SAL_DLLPRIVATE bIsInDrag; ///< static, in the case the navigator is deleted in ExecuteDrag + static bool SAL_DLLPRIVATE bIsInDrag; ///< static, in the case the navigator is deleted in ExecuteDrag // set contenttree in SdNavigatorWin - sal_Bool bisInSdNavigatorWin; + bool bisInSdNavigatorWin; public: // nested class to implement the TransferableHelper @@ -129,13 +129,13 @@ protected: SfxMedium* mpOwnMedium; Image maImgOle; Image maImgGraphic; - sal_Bool mbLinkableSelected; + bool mbLinkableSelected; OUString maDocName; ::sd::DrawDocShellRef mxBookmarkDocShRef; ///< for the loading of bookmarks SdNavigatorWin* mpDropNavWin; SfxViewFrame* mpFrame; vector<OUString> maTreeItem; - sal_Bool mbSaveTreeItemState; + bool mbSaveTreeItemState; OUString maSelectionEntryText; // DragSourceHelper @@ -190,7 +190,7 @@ public: virtual ~SdPageObjsTLB(); // helper function for GetEntryAltText and GetEntryLongDescription - OUString getAltLongDescText( SvTreeListEntry* pEntry , sal_Bool isAltText) const; + OUString getAltLongDescText( SvTreeListEntry* pEntry , bool isAltText) const; OUString GetEntryAltText( SvTreeListEntry* pEntry ) const SAL_OVERRIDE; OUString GetEntryLongDescription( SvTreeListEntry* pEntry ) const SAL_OVERRIDE; virtual void SelectHdl() SAL_OVERRIDE; @@ -199,22 +199,22 @@ public: void SetViewFrame( SfxViewFrame* pViewFrame ) { mpFrame = pViewFrame; } SfxViewFrame* GetViewFrame() const { return mpFrame; } - void Fill( const SdDrawDocument*, sal_Bool bAllPages, const OUString& rDocName ); + void Fill( const SdDrawDocument*, bool bAllPages, const OUString& rDocName ); void Fill( const SdDrawDocument*, SfxMedium* pSfxMedium, const OUString& rDocName ); void SetShowAllShapes (const bool bShowAllShapes, const bool bFill); bool GetShowAllShapes (void) const; - sal_Bool IsEqualToDoc( const SdDrawDocument* pInDoc = NULL ); - sal_Bool HasSelectedChildren( const OUString& rName ); - sal_Bool SelectEntry( const OUString& rName ); + bool IsEqualToDoc( const SdDrawDocument* pInDoc = NULL ); + bool HasSelectedChildren( const OUString& rName ); + bool SelectEntry( const OUString& rName ); OUString GetSelectEntry(); //Mark Current Entry void MarkCurEntry( const OUString& rName ); - void SetSdNavigatorWinFlag(sal_Bool isInSdNavigatorWin){bisInSdNavigatorWin =isInSdNavigatorWin;}; + void SetSdNavigatorWinFlag(bool isInSdNavigatorWin){bisInSdNavigatorWin =isInSdNavigatorWin;}; void FreshCurEntry(); void Clear(); - void SetSaveTreeItemStateFlag(sal_Bool bState){mbSaveTreeItemState = bState;} + void SetSaveTreeItemStateFlag(bool bState){mbSaveTreeItemState = bState;} void SaveExpandedTreeItemState(SvTreeListEntry* pEntry, vector<OUString>& vectTreeItem); /** return selected entries @@ -225,9 +225,9 @@ public: SdDrawDocument* GetBookmarkDoc(SfxMedium* pMedium = NULL); - sal_Bool IsLinkableSelected() const { return mbLinkableSelected; } + bool IsLinkableSelected() const { return mbLinkableSelected; } - static sal_Bool IsInDrag(); + static bool IsInDrag(); using SvTreeListBox::ExecuteDrop; using SvTreeListBox::SelectEntry; diff --git a/sd/source/ui/inc/sdxfer.hxx b/sd/source/ui/inc/sdxfer.hxx index 01a97394c652..10ebdf788dcb 100644 --- a/sd/source/ui/inc/sdxfer.hxx +++ b/sd/source/ui/inc/sdxfer.hxx @@ -42,7 +42,7 @@ class SdTransferable : public TransferableHelper, public SfxListener { public: - SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, sal_Bool bInitOnGetData ); + SdTransferable( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, bool bInitOnGetData ); virtual ~SdTransferable(); void SetDocShell( const SfxObjectShellRef& rRef ) { maDocShellRef = rRef; } @@ -59,18 +59,18 @@ public: void SetStartPos( const Point& rStartPos ) { maStartPos = rStartPos; } const Point& GetStartPos() const { return maStartPos; } - void SetInternalMove( sal_Bool bSet ) { mbInternalMove = bSet; } - sal_Bool IsInternalMove() const { return mbInternalMove; } + void SetInternalMove( bool bSet ) { mbInternalMove = bSet; } + bool IsInternalMove() const { return mbInternalMove; } - sal_Bool HasSourceDoc( const SdDrawDocument* pDoc ) const { return( mpSourceDoc == pDoc ); } + bool HasSourceDoc( const SdDrawDocument* pDoc ) const { return( mpSourceDoc == pDoc ); } - void SetPageBookmarks( const std::vector<OUString>& rPageBookmarks, sal_Bool bPersistent ); - sal_Bool IsPageTransferable() const { return mbPageTransferable; } - sal_Bool HasPageBookmarks() const { return( mpPageDocShell && ( !maPageBookmarks.empty() ) ); } + void SetPageBookmarks( const std::vector<OUString>& rPageBookmarks, bool bPersistent ); + bool IsPageTransferable() const { return mbPageTransferable; } + bool HasPageBookmarks() const { return( mpPageDocShell && ( !maPageBookmarks.empty() ) ); } const std::vector<OUString>& GetPageBookmarks() const { return maPageBookmarks; } ::sd::DrawDocShell* GetPageDocShell() const { return mpPageDocShell; } - sal_Bool SetTableRTF( SdDrawDocument*, const ::com::sun::star::datatransfer::DataFlavor& ); + bool SetTableRTF( SdDrawDocument*, const ::com::sun::star::datatransfer::DataFlavor& ); static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); static SdTransferable* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxData ) throw(); @@ -130,12 +130,12 @@ private: ImageMap* mpImageMap; Rectangle maVisArea; Point maStartPos; - sal_Bool mbInternalMove : 1; - sal_Bool mbOwnDocument : 1; - sal_Bool mbOwnView : 1; - sal_Bool mbLateInit : 1; - sal_Bool mbPageTransferable : 1; - sal_Bool mbPageTransferablePersistent : 1; + bool mbInternalMove : 1; + bool mbOwnDocument : 1; + bool mbOwnView : 1; + bool mbLateInit : 1; + bool mbPageTransferable : 1; + bool mbPageTransferablePersistent : 1; bool mbIsUnoObj : 1; ::std::vector<boost::shared_ptr<UserData> > maUserData; diff --git a/sd/source/ui/inc/smarttag.hxx b/sd/source/ui/inc/smarttag.hxx index a63b73fd0229..b34a47da1d5b 100644 --- a/sd/source/ui/inc/smarttag.hxx +++ b/sd/source/ui/inc/smarttag.hxx @@ -70,9 +70,9 @@ public: protected: virtual sal_uLong GetMarkablePointCount() const; virtual sal_uLong GetMarkedPointCount() const; - virtual sal_Bool MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark=sal_False); + virtual bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false); virtual void CheckPossibilities(); - virtual sal_Bool MarkPoints(const Rectangle* pRect, sal_Bool bUnmark); + virtual bool MarkPoints(const Rectangle* pRect, bool bUnmark); virtual void addCustomHandles( SdrHdlList& rHandlerList ); virtual void select(); @@ -131,13 +131,13 @@ public: bool getContext( SdrViewContext& rContext ) const; // support point editing - sal_Bool HasMarkablePoints() const; + bool HasMarkablePoints() const; sal_uLong GetMarkablePointCount() const; - sal_Bool HasMarkedPoints() const; + bool HasMarkedPoints() const; sal_uLong GetMarkedPointCount() const; - sal_Bool IsPointMarkable(const SdrHdl& rHdl) const; - sal_Bool MarkPoint(SdrHdl& rHdl, sal_Bool bUnmark=sal_False); - sal_Bool MarkPoints(const Rectangle* pRect, sal_Bool bUnmark); + bool IsPointMarkable(const SdrHdl& rHdl) const; + bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false); + bool MarkPoints(const Rectangle* pRect, bool bUnmark); void CheckPossibilities(); diff --git a/sd/source/ui/inc/tbx_ww.hxx b/sd/source/ui/inc/tbx_ww.hxx index 3814dd2e3329..e269491edbf4 100644 --- a/sd/source/ui/inc/tbx_ww.hxx +++ b/sd/source/ui/inc/tbx_ww.hxx @@ -27,7 +27,7 @@ class SdTbxControl : public SfxToolBoxControl { private: - sal_Bool IsCheckable( sal_uInt16 nSId ); + bool IsCheckable( sal_uInt16 nSId ); public: SFX_DECL_TOOLBOX_CONTROL(); diff --git a/sd/source/ui/inc/tpaction.hxx b/sd/source/ui/inc/tpaction.hxx index fabd20a35b4f..b2d97df13848 100644 --- a/sd/source/ui/inc/tpaction.hxx +++ b/sd/source/ui/inc/tpaction.hxx @@ -75,7 +75,7 @@ private: SdDrawDocument* mpDoc; XColorListRef pColList; - sal_Bool bTreeUpdated; + bool bTreeUpdated; std::vector<com::sun::star::presentation::ClickAction> maCurrentActions; OUString aLastFile; ::std::vector< long > aVerbVector; @@ -93,7 +93,7 @@ private: void SetActualClickAction( ::com::sun::star::presentation::ClickAction eCA ); void SetActualAnimationEffect( ::com::sun::star::presentation::AnimationEffect eAE ); void SetEditText( OUString const & rStr ); - OUString GetEditText( sal_Bool bURL = sal_False ); + OUString GetEditText( bool bURL = false ); sal_uInt16 GetClickActionSdResId( ::com::sun::star::presentation::ClickAction eCA ); sal_uInt16 GetAnimationEffectSdResId( ::com::sun::star::presentation::AnimationEffect eAE ); diff --git a/sd/source/ui/inc/tpoption.hxx b/sd/source/ui/inc/tpoption.hxx index a83f416c244a..f2ede261aeb8 100644 --- a/sd/source/ui/inc/tpoption.hxx +++ b/sd/source/ui/inc/tpoption.hxx @@ -116,7 +116,7 @@ private: SfxMapUnit ePoolUnit; OUString GetScale( sal_Int32 nX, sal_Int32 nY ); - sal_Bool SetScale( const OUString& aScale, sal_Int32& rX, sal_Int32& rY ); + bool SetScale( const OUString& aScale, sal_Int32& rX, sal_Int32& rY ); DECL_LINK( SelectMetricHdl_Impl, void * ); diff --git a/sd/source/ui/inc/undopage.hxx b/sd/source/ui/inc/undopage.hxx index 1f24916d9c9e..1e3fd64e0905 100644 --- a/sd/source/ui/inc/undopage.hxx +++ b/sd/source/ui/inc/undopage.hxx @@ -41,17 +41,17 @@ class SdPageFormatUndoAction : public SdUndoAction sal_Int32 mnOldLower; Orientation meOldOrientation; sal_uInt16 mnOldPaperBin; - sal_Bool mbOldFullSize; + bool mbOldFullSize; Size maNewSize; sal_Int32 mnNewLeft; sal_Int32 mnNewRight; sal_Int32 mnNewUpper; sal_Int32 mnNewLower; - sal_Bool mbNewScale; + bool mbNewScale; Orientation meNewOrientation; sal_uInt16 mnNewPaperBin; - sal_Bool mbNewFullSize; + bool mbNewFullSize; public: TYPEINFO_OVERRIDE(); @@ -64,17 +64,17 @@ public: sal_Int32 nOldLwr, Orientation eOldOrient, sal_uInt16 nOPaperBin, - sal_Bool bOFullSize, + bool bOFullSize, const Size& rNewSz, sal_Int32 nNewLft, sal_Int32 nNewRgt, sal_Int32 nNewUpr, sal_Int32 nNewLwr, - sal_Bool bNewScl, + bool bNewScl, Orientation eNewOrient, sal_uInt16 nNPaperBin, - sal_Bool bNFullSize + bool bNFullSize ) : SdUndoAction(pDoc), mpPage (pThePage), diff --git a/sd/source/ui/inc/unmodpg.hxx b/sd/source/ui/inc/unmodpg.hxx index bf9c0d6849d7..180e99079db1 100644 --- a/sd/source/ui/inc/unmodpg.hxx +++ b/sd/source/ui/inc/unmodpg.hxx @@ -33,10 +33,10 @@ class ModifyPageUndoAction : public SdUndoAction OUString maNewName; AutoLayout meOldAutoLayout; AutoLayout meNewAutoLayout; - sal_Bool mbOldBckgrndVisible; - sal_Bool mbNewBckgrndVisible; - sal_Bool mbOldBckgrndObjsVisible; - sal_Bool mbNewBckgrndObjsVisible; + bool mbOldBckgrndVisible; + bool mbNewBckgrndVisible; + bool mbOldBckgrndObjsVisible; + bool mbNewBckgrndObjsVisible; OUString maComment; @@ -47,8 +47,8 @@ public: SdPage* pThePage, const OUString& aTheNewName, AutoLayout eTheNewAutoLayout, - sal_Bool bTheNewBckgrndVisible, - sal_Bool bTheNewBckgrndObjsVisible); + bool bTheNewBckgrndVisible, + bool bTheNewBckgrndObjsVisible); virtual ~ModifyPageUndoAction(); virtual void Undo() SAL_OVERRIDE; diff --git a/sd/source/ui/inc/unoaprms.hxx b/sd/source/ui/inc/unoaprms.hxx index b05158185c98..8d8b967d1100 100644 --- a/sd/source/ui/inc/unoaprms.hxx +++ b/sd/source/ui/inc/unoaprms.hxx @@ -34,20 +34,20 @@ class SdrObject; class SdAnimationPrmsUndoAction : public SdUndoAction { SdrObject* pObject; - sal_Bool bOldActive; - sal_Bool bNewActive; - sal_Bool bOldDimPrevious; - sal_Bool bNewDimPrevious; - sal_Bool bOldDimHide; - sal_Bool bNewDimHide; - sal_Bool bOldSoundOn; - sal_Bool bNewSoundOn; - sal_Bool bOldSecondSoundOn; - sal_Bool bNewSecondSoundOn; - sal_Bool bOldPlayFull; - sal_Bool bNewPlayFull; - sal_Bool bOldSecondPlayFull; - sal_Bool bNewSecondPlayFull; + bool bOldActive; + bool bNewActive; + bool bOldDimPrevious; + bool bNewDimPrevious; + bool bOldDimHide; + bool bNewDimHide; + bool bOldSoundOn; + bool bNewSoundOn; + bool bOldSecondSoundOn; + bool bNewSecondSoundOn; + bool bOldPlayFull; + bool bNewPlayFull; + bool bOldSecondPlayFull; + bool bNewSecondPlayFull; ::com::sun::star::presentation::AnimationEffect eOldEffect; ::com::sun::star::presentation::AnimationEffect eNewEffect; ::com::sun::star::presentation::AnimationEffect eOldTextEffect; @@ -70,25 +70,25 @@ class SdAnimationPrmsUndoAction : public SdUndoAction ::com::sun::star::presentation::ClickAction eNewClickAction; OUString aOldBookmark; OUString aNewBookmark; - sal_Bool bOldInvisibleInPres; - sal_Bool bNewInvisibleInPres; + bool bOldInvisibleInPres; + bool bNewInvisibleInPres; sal_uInt16 nOldVerb; sal_uInt16 nNewVerb; sal_uLong nOldPresOrder; sal_uLong nNewPresOrder; - sal_Bool bInfoCreated; + bool bInfoCreated; public: TYPEINFO_OVERRIDE(); SdAnimationPrmsUndoAction(SdDrawDocument* pTheDoc, SdrObject* pObj, - sal_Bool bCreated): + bool bCreated): SdUndoAction (pTheDoc), pObject (pObj), bInfoCreated (bCreated) {} - void SetActive(sal_Bool bTheOldActive, sal_Bool bTheNewActive) + void SetActive(bool bTheOldActive, bool bTheNewActive) { bOldActive = bTheOldActive; bNewActive = bTheNewActive; } void SetEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect) { eOldEffect = eTheOldEffect; eNewEffect = eTheNewEffect; } @@ -96,19 +96,19 @@ public: { eOldTextEffect = eTheOldEffect; eNewTextEffect = eTheNewEffect; } void SetSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed) { eOldSpeed = eTheOldSpeed; eNewSpeed = eTheNewSpeed; } - void SetDim(sal_Bool bTheOldDim, sal_Bool bTheNewDim) + void SetDim(bool bTheOldDim, bool bTheNewDim) { bOldDimPrevious = bTheOldDim; bNewDimPrevious = bTheNewDim; } void SetDimColor(Color aTheOldDimColor, Color aTheNewDimColor) { aOldDimColor = aTheOldDimColor; aNewDimColor = aTheNewDimColor; } - void SetDimHide(sal_Bool bTheOldDimHide, sal_Bool bTheNewDimHide) + void SetDimHide(bool bTheOldDimHide, bool bTheNewDimHide) { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; } - void SetSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn) + void SetSoundOn(bool bTheOldSoundOn, bool bTheNewSoundOn) { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; } void SetSound(const OUString& aTheOldSound, const OUString& aTheNewSound) { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; } void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen) { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; } - void SetPlayFull(sal_Bool bTheOldPlayFull, sal_Bool bTheNewPlayFull) + void SetPlayFull(bool bTheOldPlayFull, bool bTheNewPlayFull) { bOldPlayFull = bTheOldPlayFull; bNewPlayFull = bTheNewPlayFull; } void SetPathObj(SdrPathObj* pTheOldPath, SdrPathObj* pTheNewPath) { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; } @@ -116,7 +116,7 @@ public: { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; } void SetBookmark(const OUString& aTheOldBookmark, const OUString& aTheNewBookmark) { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; } - void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres, sal_Bool bTheNewInvisibleInPres) + void SetInvisibleInPres(bool bTheOldInvisibleInPres, bool bTheNewInvisibleInPres) { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; } void SetVerb(sal_uInt16 nTheOldVerb, sal_uInt16 nTheNewVerb) { nOldVerb = nTheOldVerb; nNewVerb = nTheNewVerb; } @@ -124,9 +124,9 @@ public: { eOldSecondEffect = eTheOldEffect; eNewSecondEffect = eTheNewEffect; } void SetSecondSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed) { eOldSecondSpeed = eTheOldSpeed; eNewSecondSpeed = eTheNewSpeed; } - void SetSecondSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn) + void SetSecondSoundOn(bool bTheOldSoundOn, bool bTheNewSoundOn) { bOldSecondSoundOn = bTheOldSoundOn; bNewSecondSoundOn = bTheNewSoundOn; } - void SetSecondPlayFull(sal_Bool bTheOldPlayFull, sal_Bool bTheNewPlayFull) + void SetSecondPlayFull(bool bTheOldPlayFull, bool bTheNewPlayFull) { bOldSecondPlayFull = bTheOldPlayFull; bNewSecondPlayFull = bTheNewPlayFull; } void SetPresOrder(sal_uLong nTheOldPresOrder, sal_uLong nTheNewPresOrder) { nOldPresOrder = nTheOldPresOrder; nNewPresOrder = nTheNewPresOrder; } diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index 3e3f751346ac..bcb6e054cb38 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -90,9 +90,9 @@ private: css::uno::Reference<css::uno::XInterface> create( OUString const & aServiceSpecifier, OUString const & referer); - SdPage* InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate = sal_False ) throw(); + SdPage* InsertSdPage( sal_uInt16 nPage, bool bDuplicate = false ) throw(); - const sal_Bool mbImpressDoc; + const bool mbImpressDoc; bool mbClipBoard; ::com::sun::star::uno::WeakReference< ::com::sun::star::drawing::XDrawPages > mxDrawPagesAccess; @@ -132,9 +132,9 @@ public: ::sd::DrawDocShell* GetDocShell() const { return mpDocShell; } SdDrawDocument* GetDoc() const { return mpDoc; } - sal_Bool IsImpressDocument() const { return mbImpressDoc; } + bool IsImpressDocument() const { return mbImpressDoc; } - void SetModified( sal_Bool bModified = sal_True ) throw(); + void SetModified( bool bModified = true ) throw(); ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XForbiddenCharacters > getForbiddenCharsTable(); diff --git a/sd/source/ui/inc/unosrch.hxx b/sd/source/ui/inc/unosrch.hxx index ad7be67c5eae..3ab929d5d24b 100644 --- a/sd/source/ui/inc/unosrch.hxx +++ b/sd/source/ui/inc/unosrch.hxx @@ -42,7 +42,7 @@ protected: ::com::sun::star::drawing::XDrawPage* mpPage; ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > Search( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xText, SdUnoSearchReplaceDescriptor* pDescr ) throw(); - sal_Bool Search( const OUString& rText, sal_Int32& nStartPos, sal_Int32& nEndPos, SdUnoSearchReplaceDescriptor* pDescr ) throw(); + bool Search( const OUString& rText, sal_Int32& nStartPos, sal_Int32& nEndPos, SdUnoSearchReplaceDescriptor* pDescr ) throw(); ESelection GetSelection( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xTextRange ) throw(); ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetShape( ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > xTextRange ) throw(); ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetNextShape( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > xShapes, ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xCurrentShape ) throw(); @@ -77,22 +77,22 @@ class SdUnoSearchReplaceDescriptor : public ::cppu::WeakImplHelper2< ::com::sun: protected: SvxItemPropertySet* mpPropSet; - sal_Bool mbBackwards; - sal_Bool mbCaseSensitive; - sal_Bool mbWords; + bool mbBackwards; + bool mbCaseSensitive; + bool mbWords; - sal_Bool mbReplace; + bool mbReplace; OUString maSearchStr; OUString maReplaceStr; public: - SdUnoSearchReplaceDescriptor( sal_Bool bReplace ) throw(); + SdUnoSearchReplaceDescriptor( bool bReplace ) throw(); virtual ~SdUnoSearchReplaceDescriptor() throw(); - sal_Bool IsBackwards() const throw() { return mbBackwards; } - sal_Bool IsCaseSensitive() const throw() { return mbCaseSensitive; } - sal_Bool IsWords() const throw() { return mbWords; } + bool IsBackwards() const throw() { return mbBackwards; } + bool IsCaseSensitive() const throw() { return mbCaseSensitive; } + bool IsWords() const throw() { return mbWords; } UNO3_GETIMPLEMENTATION_DECL( SdUnoSearchReplaceDescriptor ) diff --git a/sd/source/ui/inc/unprlout.hxx b/sd/source/ui/inc/unprlout.hxx index 58cb42f02380..85c36fd72a66 100644 --- a/sd/source/ui/inc/unprlout.hxx +++ b/sd/source/ui/inc/unprlout.hxx @@ -32,7 +32,7 @@ class SdPresentationLayoutUndoAction : public SdUndoAction OUString aNewLayoutName; AutoLayout eOldAutoLayout; AutoLayout eNewAutoLayout; - sal_Bool bSetAutoLayout; // sal_True: change AutoLayout + bool bSetAutoLayout; // sal_True: change AutoLayout SdPage* pPage; OUString aComment; @@ -43,7 +43,7 @@ public: const OUString& aTheNewLayoutName, AutoLayout eTheOldAutoLayout, AutoLayout eTheNewAutoLayout, - sal_Bool bSet, + bool bSet, SdPage* pThePage); virtual ~SdPresentationLayoutUndoAction(); diff --git a/sd/source/ui/inc/zoomlist.hxx b/sd/source/ui/inc/zoomlist.hxx index 9c07a2a5f9e7..db8055ab5853 100644 --- a/sd/source/ui/inc/zoomlist.hxx +++ b/sd/source/ui/inc/zoomlist.hxx @@ -37,8 +37,8 @@ public: void InsertZoomRect(const Rectangle& rRect); Rectangle GetNextZoomRect(); Rectangle GetPreviousZoomRect(); - sal_Bool IsNextPossible() const; - sal_Bool IsPreviousPossible() const; + bool IsNextPossible() const; + bool IsPreviousPossible() const; private: ViewShell* mpViewShell; diff --git a/sd/source/ui/presenter/CanvasUpdateRequester.cxx b/sd/source/ui/presenter/CanvasUpdateRequester.cxx index 16e1fd488c37..b736adc4148e 100644 --- a/sd/source/ui/presenter/CanvasUpdateRequester.cxx +++ b/sd/source/ui/presenter/CanvasUpdateRequester.cxx @@ -66,7 +66,7 @@ CanvasUpdateRequester::CanvasUpdateRequester ( const Reference<rendering::XSpriteCanvas>& rxCanvas) : mxCanvas(rxCanvas), mnUserEventId(0), - mbUpdateFlag(sal_False) + mbUpdateFlag(false) { Reference<lang::XComponent> xComponent (mxCanvas, UNO_QUERY); if (xComponent.is()) @@ -87,7 +87,7 @@ CanvasUpdateRequester::~CanvasUpdateRequester (void) -void CanvasUpdateRequester::RequestUpdate (const sal_Bool bUpdateAll) +void CanvasUpdateRequester::RequestUpdate (const bool bUpdateAll) { if (mnUserEventId == 0) { @@ -108,7 +108,7 @@ IMPL_LINK_NOARG(CanvasUpdateRequester, Callback) if (mxCanvas.is()) { mxCanvas->updateScreen(mbUpdateFlag); - mbUpdateFlag = sal_False; + mbUpdateFlag = false; } return 0; } diff --git a/sd/source/ui/presenter/CanvasUpdateRequester.hxx b/sd/source/ui/presenter/CanvasUpdateRequester.hxx index 0c3778929498..04822d876655 100644 --- a/sd/source/ui/presenter/CanvasUpdateRequester.hxx +++ b/sd/source/ui/presenter/CanvasUpdateRequester.hxx @@ -45,7 +45,7 @@ public: static ::boost::shared_ptr<CanvasUpdateRequester> Instance ( const css::uno::Reference<css::rendering::XSpriteCanvas>& rxCanvas); - void RequestUpdate (const sal_Bool bUpdateAll); + void RequestUpdate (const bool bUpdateAll); private: CanvasUpdateRequester (const css::uno::Reference<css::rendering::XSpriteCanvas>& rxCanvas); @@ -60,7 +60,7 @@ private: css::uno::Reference<css::rendering::XSpriteCanvas> mxCanvas; sal_uLong mnUserEventId; - sal_Bool mbUpdateFlag; + bool mbUpdateFlag; DECL_LINK(Callback, void*); }; diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index 529193ac1928..25045b2ccb78 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -250,7 +250,7 @@ std::vector<ClientInfo*> RemoteServer::getClients() return aClients; } -sal_Bool RemoteServer::connectClient( ClientInfo* pClient, const OUString& aPin ) +bool RemoteServer::connectClient( ClientInfo* pClient, const OUString& aPin ) { SAL_INFO( "sdremote", "RemoteServer::connectClient called" ); if ( !spServer ) diff --git a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx index b590a2b6214f..dc793a14615a 100644 --- a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx @@ -244,7 +244,7 @@ void CurrentMasterPagesSelector::ExecuteCommand (const sal_Int32 nCommandId) // Removing the precious flag so that the following call to // RemoveUnnessesaryMasterPages() will remove this master page. pMasterPage->SetPrecious(false); - mrDocument.RemoveUnnecessaryMasterPages(pMasterPage, sal_False, sal_True); + mrDocument.RemoveUnnecessaryMasterPages(pMasterPage, false, true); } } else diff --git a/sd/source/ui/sidebar/DocumentHelper.cxx b/sd/source/ui/sidebar/DocumentHelper.cxx index c4bd96c069c3..a96b55c49c2d 100644 --- a/sd/source/ui/sidebar/DocumentHelper.cxx +++ b/sd/source/ui/sidebar/DocumentHelper.cxx @@ -124,7 +124,7 @@ SdPage* DocumentHelper::CopyMasterPageToLocalDocument ( PK_STANDARD); if (pSlide == NULL) break; - pSlide->SetAutoLayout(AUTOLAYOUT_TITLE, sal_True); + pSlide->SetAutoLayout(AUTOLAYOUT_TITLE, true); // Create a copy of the master page and the associated notes // master page and insert them into our document. @@ -142,9 +142,9 @@ SdPage* DocumentHelper::CopyMasterPageToLocalDocument ( rTargetDocument.GetSdPageCount(PK_STANDARD)-1, pNewMasterPage->GetName(), &rTargetDocument, - sal_False, // Connect the new master page with the new slide but + false, // Connect the new master page with the new slide but // do not modify other (master) pages. - sal_True); + true); } while (false); @@ -391,9 +391,9 @@ SdPage* DocumentHelper::AddMasterPage ( pClonedMasterPage->GetUppBorder(), pClonedMasterPage->GetRgtBorder(), pClonedMasterPage->GetLwrBorder()); - pClonedMasterPage->ScaleObjects(aNewSize, aBorders, sal_True); + pClonedMasterPage->ScaleObjects(aNewSize, aBorders, true); pClonedMasterPage->SetSize(aNewSize); - pClonedMasterPage->CreateTitleAndLayout(sal_True); + pClonedMasterPage->CreateTitleAndLayout(true); } } @@ -443,8 +443,8 @@ void DocumentHelper::AssignMasterPageToPage ( (pPage->GetPageNum()-1)/2, rsBaseLayoutName, pDocument, - sal_False, - sal_False); + false, + false); } else { @@ -470,15 +470,15 @@ void DocumentHelper::AssignMasterPageToPage ( (pSlide->GetPageNum()-1)/2, rsBaseLayoutName, pDocument, - sal_False, - sal_False); + false, + false); } else { // 3. Replace the master page A by a copy of the given master // page B. pDocument->RemoveUnnecessaryMasterPages ( - pPage, sal_False); + pPage, false); } } } diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index ce71491687a6..7bd90a03ccaa 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -544,9 +544,9 @@ SfxRequest LayoutMenu::CreateRequest ( void LayoutMenu::Fill (void) { SvtLanguageOptions aLanguageOptions; - sal_Bool bVertical = aLanguageOptions.IsVerticalTextEnabled(); + bool bVertical = aLanguageOptions.IsVerticalTextEnabled(); SdDrawDocument* pDocument = mrBase.GetDocument(); - sal_Bool bRightToLeft = (pDocument!=NULL + bool bRightToLeft = (pDocument!=NULL && pDocument->GetDefaultWritingMode() == WritingMode_RL_TB); // Get URL of the view in the center pane. diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index 8c62476ef73d..594aaa2a7be9 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -305,7 +305,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const { case ATTR_PRESENT_ALL: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -316,14 +316,14 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const rPresSettings.mbAll = bVal; bValuesChanged = true; if( bVal ) - rPresSettings.mbCustomShow = sal_False; + rPresSettings.mbCustomShow = false; } } break; } case ATTR_PRESENT_CHANGE_PAGE: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -340,7 +340,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const case ATTR_PRESENT_ANIMATION_ALLOWED: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -363,7 +363,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const const OUString aShowName( aShow ); - SdCustomShowList* pCustomShowList = mpDoc->GetCustomShowList(sal_False); + SdCustomShowList* pCustomShowList = mpDoc->GetCustomShowList(false); if(pCustomShowList) { SdCustomShow* pCustomShow; @@ -373,7 +373,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const break; } - rPresSettings.mbCustomShow = sal_True; + rPresSettings.mbCustomShow = true; bValuesChanged = true; } } @@ -381,7 +381,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_ENDLESS: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -397,7 +397,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_FULLSCREEN: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -419,14 +419,14 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const { bValuesChanged = true; rPresSettings.maPresPage = getUiNameFromPageApiNameImpl(aPresPage); - rPresSettings.mbCustomShow = sal_False; - rPresSettings.mbAll = sal_False; + rPresSettings.mbCustomShow = false; + rPresSettings.mbAll = false; } break; } case ATTR_PRESENT_MANUEL: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -442,7 +442,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_MOUSE: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -457,7 +457,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_ALWAYS_ON_TOP: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -473,7 +473,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_NAVIGATOR: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -489,7 +489,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_PEN: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -519,7 +519,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const } case ATTR_PRESENT_SHOW_PAUSELOGO: { - sal_Bool bVal = sal_False; + bool bVal = false; if( aValue >>= bVal ) { @@ -576,14 +576,14 @@ Any SAL_CALL SlideShow::getPropertyValue( const OUString& PropertyName ) throw(U switch( pEntry ? pEntry->nWID : -1 ) { case ATTR_PRESENT_ALL: - return Any( (sal_Bool) ( !rPresSettings.mbCustomShow && rPresSettings.mbAll ) ); + return Any( !rPresSettings.mbCustomShow && rPresSettings.mbAll ); case ATTR_PRESENT_CHANGE_PAGE: - return Any( (sal_Bool) !rPresSettings.mbLockedPages ); + return Any( !rPresSettings.mbLockedPages ); case ATTR_PRESENT_ANIMATION_ALLOWED: return Any( rPresSettings.mbAnimationAllowed ); case ATTR_PRESENT_CUSTOMSHOW: { - SdCustomShowList* pList = mpDoc->GetCustomShowList(sal_False); + SdCustomShowList* pList = mpDoc->GetCustomShowList(false); SdCustomShow* pShow = (pList && rPresSettings.mbCustomShow) ? pList->GetCurObject() : NULL; OUString aShowName; @@ -1210,7 +1210,7 @@ void SlideShow::StartInPlacePresentation() if( mxController.is() ) { - sal_Bool bSuccess = sal_False; + bool bSuccess = false; if( mxCurrentSettings.get() && mxCurrentSettings->mbPreview ) { bSuccess = mxController->startPreview(mxCurrentSettings->mxStartPage, mxCurrentSettings->mxAnimationNode, mxCurrentSettings->mpParentWindow ); diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 1ee08c395f13..1c3556f557db 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -523,7 +523,7 @@ SlideshowImpl::SlideshowImpl( const Reference< XPresentation2 >& xPresentation, , mbIsPaused(false) , mbWasPaused(false) , mbInputFreeze(false) -, mbActive(sal_False) +, mbActive(false) , maPresSettings( pDoc->getPresentationSettings() ) , mnUserPaintColor( 0x80ff0000L ) , mbUsePen(false) @@ -748,7 +748,7 @@ void SAL_CALL SlideshowImpl::disposing() // restart the custom show dialog if he started us if( mpViewShell->IsStartShowWithDialog() && getDispatcher() ) { - mpViewShell->SetStartShowWithDialog( sal_False ); + mpViewShell->SetStartShowWithDialog( false ); getDispatcher()->Execute( SID_CUSTOMSHOW_DLG, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD ); } @@ -761,7 +761,7 @@ void SAL_CALL SlideshowImpl::disposing() mpShowWindow = 0; } - setActiveXToolbarsVisible( sal_True ); + setActiveXToolbarsVisible( true ); Application::DisableNoYieldMode(); Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener)); @@ -795,19 +795,19 @@ bool SlideshowImpl::startPreview( mxPreviewAnimationNode = xAnimationNode; meAnimationMode = ANIMATIONMODE_PREVIEW; - maPresSettings.mbAll = sal_False; - maPresSettings.mbEndless = sal_False; - maPresSettings.mbCustomShow = sal_False; - maPresSettings.mbManual = sal_False; - maPresSettings.mbMouseVisible = sal_False; - maPresSettings.mbMouseAsPen = sal_False; - maPresSettings.mbLockedPages = sal_False; - maPresSettings.mbAlwaysOnTop = sal_False; - maPresSettings.mbFullScreen = sal_False; - maPresSettings.mbAnimationAllowed = sal_True; + maPresSettings.mbAll = false; + maPresSettings.mbEndless = false; + maPresSettings.mbCustomShow = false; + maPresSettings.mbManual = false; + maPresSettings.mbMouseVisible = false; + maPresSettings.mbMouseAsPen = false; + maPresSettings.mbLockedPages = false; + maPresSettings.mbAlwaysOnTop = false; + maPresSettings.mbFullScreen = false; + maPresSettings.mbAnimationAllowed = true; maPresSettings.mnPauseTimeout = 0; - maPresSettings.mbShowPauseLogo = sal_False; - maPresSettings.mbStartWithNavigator = sal_False; + maPresSettings.mbShowPauseLogo = false; + maPresSettings.mbStartWithNavigator = false; Reference< XDrawPagesSupplier > xDrawPages( mpDoc->getUnoModel(), UNO_QUERY_THROW ); Reference< XIndexAccess > xSlides( xDrawPages->getDrawPages(), UNO_QUERY_THROW ); @@ -924,13 +924,13 @@ bool SlideshowImpl::startShow( PresentationSettingsEx* pPresSettings ) // times should be measured? if( mbRehearseTimings ) { - maPresSettings.mbEndless = sal_False; - maPresSettings.mbManual = sal_True; - maPresSettings.mbMouseVisible = sal_True; - maPresSettings.mbMouseAsPen = sal_False; + maPresSettings.mbEndless = false; + maPresSettings.mbManual = true; + maPresSettings.mbMouseVisible = true; + maPresSettings.mbMouseAsPen = false; maPresSettings.mnPauseTimeout = 0; - maPresSettings.mbShowPauseLogo = sal_False; - maPresSettings.mbStartWithNavigator = sal_False; + maPresSettings.mbShowPauseLogo = false; + maPresSettings.mbStartWithNavigator = false; } if( pStartPage ) @@ -1004,7 +1004,7 @@ bool SlideshowImpl::startShow( PresentationSettingsEx* pPresSettings ) // these Slots are forbiden in other views for this document if( mpDocSh ) { - mpDocSh->SetSlotFilter( sal_True, sizeof( pAllowed ) / sizeof( sal_uInt16 ), pAllowed ); + mpDocSh->SetSlotFilter( true, sizeof( pAllowed ) / sizeof( sal_uInt16 ), pAllowed ); mpDocSh->ApplySlotFilter(); } @@ -1058,24 +1058,24 @@ bool SlideshowImpl::startShow( PresentationSettingsEx* pPresSettings ) aProperties.push_back( beans::PropertyValue( "AdvanceOnClick" , - -1, Any( ! (maPresSettings.mbLockedPages != sal_False) ), + -1, Any( maPresSettings.mbLockedPages ), beans::PropertyState_DIRECT_VALUE ) ); aProperties.push_back( beans::PropertyValue( "ImageAnimationsAllowed" , - -1, Any( maPresSettings.mbAnimationAllowed != sal_False ), + -1, Any( maPresSettings.mbAnimationAllowed != false ), beans::PropertyState_DIRECT_VALUE ) ); - const sal_Bool bZOrderEnabled( + const bool bZOrderEnabled( SD_MOD()->GetSdOptions( mpDoc->GetDocumentType() )->IsSlideshowRespectZOrder() ); aProperties.push_back( beans::PropertyValue( "DisableAnimationZOrder" , - -1, Any( bZOrderEnabled == sal_False ), + -1, Any( bZOrderEnabled == false ), beans::PropertyState_DIRECT_VALUE ) ); aProperties.push_back( beans::PropertyValue( "ForceManualAdvance" , - -1, Any( maPresSettings.mbManual != sal_False ), + -1, Any( maPresSettings.mbManual != false ), beans::PropertyState_DIRECT_VALUE ) ); if( mbUsePen ) @@ -1104,7 +1104,7 @@ bool SlideshowImpl::startShow( PresentationSettingsEx* pPresSettings ) } - setActiveXToolbarsVisible( sal_False ); + setActiveXToolbarsVisible( false ); } catch( Exception& ) { @@ -1669,7 +1669,7 @@ void SlideshowImpl::click( const Reference< XShape >& xShape, const ::com::sun:: sal_Int32 SlideshowImpl::getSlideNumberForBookmark( const OUString& rStrBookmark ) { - sal_Bool bIsMasterPage; + bool bIsMasterPage; OUString aBookmark = getUiNameFromPageApiNameImpl( rStrBookmark ); sal_uInt16 nPgNum = mpDoc->GetPageByName( aBookmark, bIsMasterPage ); @@ -1681,7 +1681,7 @@ sal_Int32 SlideshowImpl::getSlideNumberForBookmark( const OUString& rStrBookmark if( pObj ) { nPgNum = pObj->GetPage()->GetPageNum(); - bIsMasterPage = (sal_Bool)pObj->GetPage()->IsMasterPage(); + bIsMasterPage = pObj->GetPage()->IsMasterPage(); } } @@ -2507,7 +2507,7 @@ void SlideshowImpl::createSlideList( bool bAll, const OUString& rPresSlide ) if( !rPresSlide.isEmpty() ) { sal_Int32 nSlide; - sal_Bool bTakeNextAvailable = sal_False; + bool bTakeNextAvailable = false; for( nSlide = 0, nFirstVisibleSlide = -1; ( nSlide < nSlideCount ) && ( -1 == nFirstVisibleSlide ); nSlide++ ) @@ -2517,7 +2517,7 @@ void SlideshowImpl::createSlideList( bool bAll, const OUString& rPresSlide ) if( pTestSlide->GetName() == rPresSlide ) { if( pTestSlide->IsExcluded() ) - bTakeNextAvailable = sal_True; + bTakeNextAvailable = true; else nFirstVisibleSlide = nSlide; } @@ -2683,7 +2683,7 @@ void SlideshowImpl::resize( const Size& rSize ) -void SlideshowImpl::setActiveXToolbarsVisible( sal_Bool bVisible ) +void SlideshowImpl::setActiveXToolbarsVisible( bool bVisible ) { // in case of ActiveX control the toolbars should not be visible if slide show runs in window mode // actually it runs always in window mode in case of ActiveX control @@ -2725,7 +2725,7 @@ void SAL_CALL SlideshowImpl::activate() throw (RuntimeException, std::exception) if( !mbActive && mxShow.is() ) { - mbActive = sal_True; + mbActive = true; if( ANIMATIONMODE_SHOW == meAnimationMode ) { @@ -2774,7 +2774,7 @@ IMPL_LINK_NOARG(SlideshowImpl, deactivateHdl) { if( mbActive && mxShow.is() ) { - mbActive = sal_False; + mbActive = false; pause(); @@ -2831,8 +2831,8 @@ void SlideshowImpl::receiveRequest(SfxRequest& rReq) const OUString aTarget( ((SfxStringItem&) pArgs->Get(SID_NAVIGATOR_OBJECT)).GetValue() ); // is the bookmark a Slide? - sal_Bool bIsMasterPage; - sal_uInt16 nPgNum = mpDoc->GetPageByName( aTarget, bIsMasterPage ); + bool bIsMasterPage; + sal_uInt16 nPgNum = mpDoc->GetPageByName( aTarget, bIsMasterPage ); SdrObject* pObj = NULL; if( nPgNum == SDRPAGE_NOTFOUND ) @@ -2950,7 +2950,7 @@ sal_Bool SAL_CALL SlideshowImpl::getAlwaysOnTop() throw (RuntimeException, std:: void SAL_CALL SlideshowImpl::setAlwaysOnTop( sal_Bool bAlways ) throw (RuntimeException, std::exception) { SolarMutexGuard aSolarGuard; - if( maPresSettings.mbAlwaysOnTop != bAlways ) + if( (maPresSettings.mbAlwaysOnTop ? 1 : 0) != bAlways ) { maPresSettings.mbAlwaysOnTop = bAlways; // todo, can this be changed while running? @@ -2978,7 +2978,7 @@ sal_Bool SAL_CALL SlideshowImpl::getMouseVisible() throw (RuntimeException, std: void SAL_CALL SlideshowImpl::setMouseVisible( sal_Bool bVisible ) throw (RuntimeException, std::exception) { SolarMutexGuard aSolarGuard; - if( maPresSettings.mbMouseVisible != bVisible ) + if( (maPresSettings.mbMouseVisible ? 1 : 0) != bVisible ) { maPresSettings.mbMouseVisible = bVisible; if( mpShowWindow ) @@ -3517,8 +3517,8 @@ PresentationSettingsEx::PresentationSettingsEx( const PresentationSettingsEx& r PresentationSettingsEx::PresentationSettingsEx( PresentationSettings& r ) : PresentationSettings( r ) -, mbRehearseTimings(sal_False) -, mbPreview(sal_False) +, mbRehearseTimings(false) +, mbPreview(false) , mpParentWindow(0) { } @@ -3572,8 +3572,8 @@ void PresentationSettingsEx::SetPropertyValue( const OUString& rProperty, const if( rValue >>= aPresPage ) { maPresPage = getUiNameFromPageApiNameImpl(aPresPage); - mbCustomShow = sal_False; - mbAll = sal_False; + mbCustomShow = false; + mbAll = false; return; } else diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx index 603df30f6bf2..73a481e1d8ce 100644 --- a/sd/source/ui/slideshow/slideshowimpl.hxx +++ b/sd/source/ui/slideshow/slideshowimpl.hxx @@ -91,8 +91,8 @@ class PaneHider; struct PresentationSettingsEx : public PresentationSettings { - sal_Bool mbRehearseTimings; - sal_Bool mbPreview; + bool mbRehearseTimings; + bool mbPreview; ::Window* mpParentWindow; css::uno::Reference< css::drawing::XDrawPage > mxStartPage; css::uno::Reference< css::animations::XAnimationNode > mxAnimationNode; @@ -285,7 +285,7 @@ private: void resize( const Size& rSize ); - void setActiveXToolbarsVisible( sal_Bool bVisible ); + void setActiveXToolbarsVisible( bool bVisible ); DECL_LINK(updateHdl, void *); DECL_LINK( PostYieldListener, void* ); @@ -375,7 +375,7 @@ private: bool mbIsPaused; bool mbWasPaused; // used to cache pause state during context menu bool mbInputFreeze; - sal_Bool mbActive; + bool mbActive; PresentationSettings maPresSettings; sal_Int32 mnUserPaintColor; diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx index c7927e939d76..6b148395d886 100644 --- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx +++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx @@ -344,14 +344,14 @@ sal_Int32 Clipboard::PasteTransferable (sal_Int32 nInsertPosition) rModel.GetDocument()->InsertBookmarkAsPage( rBookmarkList, NULL, - sal_False, - sal_False, + false, + false, nInsertIndex, - sal_False, + false, pClipTransferable->GetPageDocShell(), - sal_True, + true, bMergeMasterPages, - sal_False); + false); } else { @@ -369,14 +369,14 @@ sal_Int32 Clipboard::PasteTransferable (sal_Int32 nInsertPosition) rModel.GetDocument()->InsertBookmarkAsPage( std::vector<OUString>(), NULL, - sal_False, - sal_False, + false, + false, nInsertIndex, - sal_False, + false, pDataDocSh, - sal_True, + true, bMergeMasterPages, - sal_False); + false); } } mrController.HandleModelChange(); @@ -457,7 +457,7 @@ void Clipboard::CreateSlideTransferable ( SdTransferable* pTransferable = TransferableData::CreateTransferable ( pDocument, NULL, - sal_False, + false, dynamic_cast<SlideSorterViewShell*>(mrSlideSorter.GetViewShell()), aRepresentatives); @@ -544,7 +544,7 @@ void Clipboard::CreateSlideTransferable ( SdDrawDocument* pTransferableDocument = rSlideSorter.GetModel().GetDocument(); if (pTransferableDocument == NULL) break; - sal_Bool bIsMasterPage = sal_False; + bool bIsMasterPage = false; const sal_uInt16 nPageIndex (pTransferableDocument->GetPageByName(sBookmark, bIsMasterPage)); if (nPageIndex == SDRPAGE_NOTFOUND) break; diff --git a/sd/source/ui/slidesorter/controller/SlsListener.cxx b/sd/source/ui/slidesorter/controller/SlsListener.cxx index 3721ed278b51..af387f3c7928 100644 --- a/sd/source/ui/slidesorter/controller/SlsListener.cxx +++ b/sd/source/ui/slidesorter/controller/SlsListener.cxx @@ -520,7 +520,7 @@ void SAL_CALL Listener::propertyChange ( } else if (rEvent.PropertyName.equals (sEditModePropertyName)) { - sal_Bool bIsMasterPageMode = sal_False; + bool bIsMasterPageMode = false; rEvent.NewValue >>= bIsMasterPageMode; mrController.ChangeEditMode ( bIsMasterPageMode ? EM_MASTERPAGE : EM_PAGE); diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx index 8207c9e301ea..8d51190da1d9 100644 --- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx @@ -364,7 +364,7 @@ rtl::Reference<FuPoor> SelectionFunction::Create( -sal_Bool SelectionFunction::MouseButtonDown (const MouseEvent& rEvent) +bool SelectionFunction::MouseButtonDown (const MouseEvent& rEvent) { // remember button state for creation of own MouseEvents SetMouseButtonCode (rEvent.GetButtons()); @@ -375,22 +375,22 @@ sal_Bool SelectionFunction::MouseButtonDown (const MouseEvent& rEvent) ProcessMouseEvent(BUTTON_DOWN, rEvent); - return sal_True; + return true; } -sal_Bool SelectionFunction::MouseMove (const MouseEvent& rEvent) +bool SelectionFunction::MouseMove (const MouseEvent& rEvent) { ProcessMouseEvent(MOUSE_MOTION, rEvent); - return sal_True; + return true; } -sal_Bool SelectionFunction::MouseButtonUp (const MouseEvent& rEvent) +bool SelectionFunction::MouseButtonUp (const MouseEvent& rEvent) { mrController.GetScrollBarManager().StopAutoScroll (); @@ -399,7 +399,7 @@ sal_Bool SelectionFunction::MouseButtonUp (const MouseEvent& rEvent) mbProcessingMouseButtonDown = false; // mpWindow->ReleaseMouse(); - return sal_True; + return true; } @@ -413,13 +413,13 @@ void SelectionFunction::NotifyDragFinished (void) -sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) +bool SelectionFunction::KeyInput (const KeyEvent& rEvent) { view::SlideSorterView::DrawLock aDrawLock (mrSlideSorter); PageSelector::BroadcastLock aBroadcastLock (mrSlideSorter); PageSelector::UpdateLock aLock (mrSlideSorter); FocusManager& rFocusManager (mrController.GetFocusManager()); - sal_Bool bResult = sal_False; + bool bResult = false; const KeyCode& rCode (rEvent.GetKeyCode()); switch (rCode.GetCode()) @@ -444,7 +444,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) SID_INSERTPAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); } - bResult = sal_True; + bResult = true; } break; } @@ -453,7 +453,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) if ( ! rFocusManager.IsFocusShowing()) { rFocusManager.ShowFocus(); - bResult = sal_True; + bResult = true; } break; @@ -462,7 +462,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) // operation then stop that. mpModeHandler->Abort(); SwitchToNormalMode(); - bResult = sal_True; + bResult = true; break; case KEY_SPACE: @@ -476,7 +476,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) else mrController.GetPageSelector().SelectPage(pDescriptor); } - bResult = sal_True; + bResult = true; } break; @@ -484,47 +484,47 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) // Move the focus indicator left. case KEY_LEFT: MoveFocus(FocusManager::FMD_LEFT, rCode.IsShift(), rCode.IsMod1()); - bResult = sal_True; + bResult = true; break; // Move the focus indicator right. case KEY_RIGHT: MoveFocus(FocusManager::FMD_RIGHT, rCode.IsShift(), rCode.IsMod1()); - bResult = sal_True; + bResult = true; break; // Move the focus indicator up. case KEY_UP: MoveFocus(FocusManager::FMD_UP, rCode.IsShift(), rCode.IsMod1()); - bResult = sal_True; + bResult = true; break; // Move the focus indicator down. case KEY_DOWN: MoveFocus(FocusManager::FMD_DOWN, rCode.IsShift(), rCode.IsMod1()); - bResult = sal_True; + bResult = true; break; // Go to previous page. No wrap around. case KEY_PAGEUP: GotoNextPage(-1); - bResult = sal_True; + bResult = true; break; // Go to next page. No wrap around.. case KEY_PAGEDOWN: GotoNextPage(+1); - bResult = sal_True; + bResult = true; break; case KEY_HOME: GotoPage(0); - bResult = sal_True; + bResult = true; break; case KEY_END: GotoPage(mrSlideSorter.GetModel().GetPageCount()-1); - bResult = sal_True; + bResult = true; break; case KEY_DELETE: @@ -536,7 +536,7 @@ sal_Bool SelectionFunction::KeyInput (const KeyEvent& rEvent) mrController.GetSelectionManager()->DeleteSelectedPages(rCode.GetCode()==KEY_DELETE); mnShiftKeySelectionAnchor = -1; - bResult = sal_True; + bResult = true; } break; @@ -1137,7 +1137,7 @@ void SelectionFunction::ModeHandler::SwitchView (const model::SharedPageDescript { if (rpDescriptor.get()!=NULL && rpDescriptor->GetPage()!=NULL) { - mrSlideSorter.GetModel().GetDocument()->SetSelected(rpDescriptor->GetPage(), sal_True); + mrSlideSorter.GetModel().GetDocument()->SetSelected(rpDescriptor->GetPage(), true); pViewShell->GetFrameView()->SetSelectedPage( (rpDescriptor->GetPage()->GetPageNum()-1)/2); } diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index 68b85dda2b0a..599917511f66 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -412,7 +412,7 @@ void SlotManager::FuSupport (SfxRequest& rRequest) SlideSorterController::ModelChangeLock aModelLock (mrSlideSorter.GetController()); PageSelector::UpdateLock aUpdateLock (mrSlideSorter); SelectionObserver::Context aContext (mrSlideSorter); - pViewShell->ImpSidUndo (sal_False, rRequest); + pViewShell->ImpSidUndo (false, rRequest); } break; } @@ -427,7 +427,7 @@ void SlotManager::FuSupport (SfxRequest& rRequest) SlideSorterController::ModelChangeLock aModelLock (mrSlideSorter.GetController()); PageSelector::UpdateLock aUpdateLock (mrSlideSorter); SelectionObserver::Context aContext (mrSlideSorter); - pViewShell->ImpSidRedo (sal_False, rRequest); + pViewShell->ImpSidRedo (false, rRequest); } break; } @@ -625,7 +625,7 @@ void SlotManager::GetMenuState (SfxItemSet& rSet) if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) || SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_REHEARSE_TIMINGS ) ) { - sal_Bool bDisable = sal_True; + bool bDisable = true; model::PageEnumeration aAllPages ( model::PageEnumerationProvider::CreateAllPagesEnumeration(mrSlideSorter.GetModel())); while (aAllPages.HasMoreElements()) @@ -633,7 +633,7 @@ void SlotManager::GetMenuState (SfxItemSet& rSet) SdPage* pPage = aAllPages.GetNextElement()->GetPage(); if( !pPage->IsExcluded() ) - bDisable = sal_False; + bDisable = false; } if( bDisable || pDocShell->IsPreview()) { @@ -970,7 +970,7 @@ IMPL_LINK(SlotManager, RenameSlideHdl, AbstractSvxNameDialog*, pDialog) bool SlotManager::RenameSlideFromDrawViewShell( sal_uInt16 nPageId, const OUString & rName ) { - sal_Bool bOutDummy; + bool bOutDummy; SdDrawDocument* pDocument = mrSlideSorter.GetModel().GetDocument(); if( pDocument->GetPageByName( rName, bOutDummy ) != SDRPAGE_NOTFOUND ) return false; @@ -1102,7 +1102,7 @@ void SlotManager::InsertSlide (SfxRequest& rRequest) // Create shapes for the default layout. pNewPage = pDocument->GetMasterSdPage( (sal_uInt16)(nInsertionIndex+1), PK_STANDARD); - pNewPage->CreateTitleAndLayout (sal_True,sal_True); + pNewPage->CreateTitleAndLayout (true,true); } } } @@ -1279,7 +1279,7 @@ namespace { SlideExclusionState GetSlideExclusionState (model::PageEnumeration& rPageSet) { SlideExclusionState eState (UNDEFINED); - sal_Bool bState; + bool bState; // Get toggle state of the selected pages. while (rPageSet.HasMoreElements() && eState!=MIXED) diff --git a/sd/source/ui/slidesorter/controller/SlsTransferableData.cxx b/sd/source/ui/slidesorter/controller/SlsTransferableData.cxx index 485198965534..c1d55ca1a998 100644 --- a/sd/source/ui/slidesorter/controller/SlsTransferableData.cxx +++ b/sd/source/ui/slidesorter/controller/SlsTransferableData.cxx @@ -28,7 +28,7 @@ namespace sd { namespace slidesorter { namespace controller { SdTransferable* TransferableData::CreateTransferable ( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, - sal_Bool bInitOnGetData, + bool bInitOnGetData, SlideSorterViewShell* pViewShell, const ::std::vector<Representative>& rRepresentatives) { diff --git a/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx b/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx index 1feda829ac17..b400dff8f041 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsSelectionFunction.hxx @@ -47,10 +47,10 @@ public: static rtl::Reference<FuPoor> Create( SlideSorter& rSlideSorter, SfxRequest& rRequest ); // Mouse- & Key-Events - virtual sal_Bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; - virtual sal_Bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; - virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool KeyInput(const KeyEvent& rKEvt) SAL_OVERRIDE; + virtual bool MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE; + virtual bool MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE; virtual void Activate() SAL_OVERRIDE; virtual void Deactivate() SAL_OVERRIDE; diff --git a/sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx b/sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx index 043618301f53..ed756d864d2b 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx @@ -58,7 +58,7 @@ public: static SdTransferable* CreateTransferable ( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, - sal_Bool bInitOnGetData, + bool bInitOnGetData, SlideSorterViewShell* pViewShell, const ::std::vector<TransferableData::Representative>& rRepresentatives); diff --git a/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx b/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx index 68413f84ab33..ecaf10c4b6c9 100644 --- a/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx +++ b/sd/source/ui/slidesorter/model/SlsPageDescriptor.cxx @@ -219,7 +219,7 @@ bool PageDescriptor::SetState (const State eState, const bool bNewStateValue) // This is a state of the page and has to be handled differently // from the view-only states. if (mpPage != NULL) - if (bNewStateValue != (mpPage->IsExcluded()==sal_True)) + if (bNewStateValue != mpPage->IsExcluded()) { mpPage->SetExcluded(bNewStateValue); bModified = true; @@ -245,7 +245,7 @@ VisualState& PageDescriptor::GetVisualState (void) bool PageDescriptor::GetCoreSelection (void) { - if (mpPage!=NULL && (mpPage->IsSelected()==sal_True) != mbIsSelected) + if (mpPage!=NULL && mpPage->IsSelected() != mbIsSelected) return SetState(ST_Selected, !mbIsSelected); else return false; @@ -258,9 +258,9 @@ void PageDescriptor::SetCoreSelection (void) { if (mpPage != NULL) if (HasState(ST_Selected)) - mpPage->SetSelected(sal_True); + mpPage->SetSelected(true); else - mpPage->SetSelected(sal_False); + mpPage->SetSelected(false); else { OSL_ASSERT(mpPage!=NULL); diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index c0211b62b5a7..d1c6f868caed 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -408,7 +408,7 @@ void TableDesignWidget::updateControls() for (sal_uInt16 i = CB_HEADER_ROW; i <= CB_BANDED_COLUMNS; ++i) { - sal_Bool bUse = gDefaults[i]; + bool bUse = gDefaults[i]; if( bHasTable ) try { mxSelectedTable->getPropertyValue( *pPropNames++ ) >>= bUse; @@ -793,7 +793,7 @@ void TableDesignWidget::FillDesignPreviewControl() aSettings.mbUseColumnBanding = m_aCheckBoxes[CB_BANDED_COLUMNS]->IsChecked(); } - sal_Bool bIsPageDark = sal_False; + bool bIsPageDark = false; if( mxView.is() ) { Reference< XPropertySet > xPageSet( mxView->getCurrentPage(), UNO_QUERY ); diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index fa7c7d2b5b4a..a4cd1c4a1fc0 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -814,7 +814,7 @@ sal_Bool SAL_CALL DrawController::isFormDesignMode( ) throw (uno::RuntimeExcept { SolarMutexGuard aGuard; - sal_Bool bIsDesignMode = sal_True; + bool bIsDesignMode = true; FmFormShell* pFormShell = mpBase->GetFormShellManager()->GetFormShell(); if ( pFormShell ) @@ -857,7 +857,7 @@ sal_Bool DrawController::convertFastPropertyValue ( const Any& rValue) throw ( com::sun::star::lang::IllegalArgumentException) { - sal_Bool bResult = sal_False; + bool bResult = false; if (nHandle == PROPERTY_SUB_CONTROLLER) { diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx index 1b5747e8b9dd..f167cc3e35c1 100644 --- a/sd/source/ui/unoidl/SdUnoDrawView.cxx +++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx @@ -72,7 +72,7 @@ SdUnoDrawView::~SdUnoDrawView() throw() -sal_Bool SdUnoDrawView::getMasterPageMode(void) const throw() +bool SdUnoDrawView::getMasterPageMode(void) const throw() { return (mrDrawViewShell.GetEditMode() == EM_MASTERPAGE); } @@ -93,7 +93,7 @@ void SdUnoDrawView::setMasterPageMode (bool bMasterPageMode) throw() -sal_Bool SdUnoDrawView::getLayerMode(void) const throw() +bool SdUnoDrawView::getLayerMode(void) const throw() { return mrDrawViewShell.IsLayerModeActive(); } @@ -101,9 +101,9 @@ sal_Bool SdUnoDrawView::getLayerMode(void) const throw() -void SdUnoDrawView::setLayerMode (sal_Bool bLayerMode) throw() +void SdUnoDrawView::setLayerMode (bool bLayerMode) throw() { - if (mrDrawViewShell.IsLayerModeActive() != (bLayerMode==sal_True)) + if (mrDrawViewShell.IsLayerModeActive() != bLayerMode) { mrDrawViewShell.ChangeEditMode ( mrDrawViewShell.GetEditMode(), @@ -368,7 +368,7 @@ void SdUnoDrawView::setFastPropertyValue ( case DrawController::PROPERTY_MASTERPAGEMODE: { - sal_Bool bValue = sal_False; + bool bValue = false; rValue >>= bValue; setMasterPageMode( bValue ); } @@ -376,7 +376,7 @@ void SdUnoDrawView::setFastPropertyValue ( case DrawController::PROPERTY_LAYERMODE: { - sal_Bool bValue = sal_False; + bool bValue = false; rValue >>= bValue; setLayerMode( bValue ); } diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 2bc55c066be5..b8fbd1b50ac0 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -146,7 +146,7 @@ enum SdDocumentSettingsPropertyHandles #define MID_PRINTER 1 - PropertySetInfo * createSettingsInfoImpl( sal_Bool bIsDraw ) + PropertySetInfo * createSettingsInfoImpl( bool bIsDraw ) { static PropertyMapEntry const aImpressSettingsInfoMap[] = { @@ -405,12 +405,12 @@ throw (UnknownPropertyException, PropertyVetoException, static_cast<OWeakObject *>(this)); } - sal_Bool bValue = sal_False; + bool bValue = false; bool bOk, bChanged = false, bOptionsChanged = false; SdOptionsPrintItem aOptionsPrintItem( ATTR_OPTIONS_PRINT ); - SfxPrinter* pPrinter = pDocSh->GetPrinter( sal_False ); + SfxPrinter* pPrinter = pDocSh->GetPrinter( false ); if( pPrinter ) { SdOptionsPrintItem* pPrinterOptions = NULL; @@ -723,7 +723,7 @@ throw (UnknownPropertyException, PropertyVetoException, bOk = true; if( !aPrinterName.isEmpty() && pDocSh->GetCreateMode() != SFX_CREATE_MODE_EMBEDDED ) { - SfxPrinter *pTempPrinter = pDocSh->GetPrinter( sal_True ); + SfxPrinter *pTempPrinter = pDocSh->GetPrinter( true ); if (pTempPrinter) { SfxPrinter *pNewPrinter = new SfxPrinter( pTempPrinter->GetOptions().Clone(), aPrinterName ); @@ -775,7 +775,7 @@ throw (UnknownPropertyException, PropertyVetoException, case HANDLE_PARAGRAPHSUMMATION : { - sal_Bool bIsSummationOfParagraphs = sal_False; + bool bIsSummationOfParagraphs = false; if ( *pValues >>= bIsSummationOfParagraphs ) { bOk = true; @@ -790,13 +790,13 @@ throw (UnknownPropertyException, PropertyVetoException, SdrOutliner& rOutl = pDocument->GetDrawOutliner(); nCntrl = rOutl.GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; rOutl.SetControlWord( nCntrl | nSum ); - ::sd::Outliner* pOutl = pDocument->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) { nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; pOutl->SetControlWord( nCntrl | nSum ); } - pOutl = pDocument->GetInternalOutliner( sal_False ); + pOutl = pDocument->GetInternalOutliner( false ); if( pOutl ) { nCntrl = pOutl->GetControlWord() &~ EE_CNTRL_ULSPACESUMMATION; @@ -818,12 +818,12 @@ throw (UnknownPropertyException, PropertyVetoException, SdDrawDocument* pDocument = pDocSh->GetDoc(); SdrOutliner& rOutl = pDocument->GetDrawOutliner(); rOutl.SetAsianCompressionMode( (sal_uInt16)nCharCompressType ); - ::sd::Outliner* pOutl = pDocument->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) { pOutl->SetAsianCompressionMode( (sal_uInt16)nCharCompressType ); } - pOutl = pDocument->GetInternalOutliner( sal_False ); + pOutl = pDocument->GetInternalOutliner( false ); if( pOutl ) { pOutl->SetAsianCompressionMode( (sal_uInt16)nCharCompressType ); @@ -834,7 +834,7 @@ throw (UnknownPropertyException, PropertyVetoException, } case HANDLE_ASIANPUNCT: { - sal_Bool bAsianPunct = sal_False; + bool bAsianPunct = false; if( *pValues >>= bAsianPunct ) { bOk = true; @@ -843,12 +843,12 @@ throw (UnknownPropertyException, PropertyVetoException, SdDrawDocument* pDocument = pDocSh->GetDoc(); SdrOutliner& rOutl = pDocument->GetDrawOutliner(); rOutl.SetKernAsianPunctuation( bAsianPunct ); - ::sd::Outliner* pOutl = pDocument->GetOutliner( sal_False ); + ::sd::Outliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) { pOutl->SetKernAsianPunctuation( bAsianPunct ); } - pOutl = pDocument->GetInternalOutliner( sal_False ); + pOutl = pDocument->GetInternalOutliner( false ); if( pOutl ) { pOutl->SetKernAsianPunctuation( bAsianPunct ); @@ -934,14 +934,14 @@ throw (UnknownPropertyException, PropertyVetoException, if( bOptionsChanged ) { if( !pPrinter ) - pPrinter = pDocSh->GetPrinter( sal_True ); + pPrinter = pDocSh->GetPrinter( true ); SfxItemSet aNewOptions( pPrinter->GetOptions() ); aNewOptions.Put( aOptionsPrintItem ); pPrinter->SetOptions( aNewOptions ); } if( bChanged || bOptionsChanged ) - mxModel->SetModified( sal_True ); + mxModel->SetModified( true ); } void DocumentSettings::ExtractURL( XPropertyListType t, Any* pValue ) @@ -974,7 +974,7 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException) SdOptionsPrintItem aOptionsPrintItem( ATTR_OPTIONS_PRINT ); - SfxPrinter* pPrinter = pDocSh->GetPrinter( sal_False ); + SfxPrinter* pPrinter = pDocSh->GetPrinter( false ); if( pPrinter ) { SdOptionsPrintItem* pPrinterOptions = NULL; @@ -1016,49 +1016,49 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException) *pValue <<= pDocSh->IsUseUserData(); break; case HANDLE_PRINTDRAWING: - *pValue <<= (sal_Bool)aPrintOpts.IsDraw(); + *pValue <<= aPrintOpts.IsDraw(); break; case HANDLE_PRINTNOTES: - *pValue <<= (sal_Bool)aPrintOpts.IsNotes(); + *pValue <<= aPrintOpts.IsNotes(); break; case HANDLE_PRINTHANDOUT: - *pValue <<= (sal_Bool)aPrintOpts.IsHandout(); + *pValue <<= aPrintOpts.IsHandout(); break; case HANDLE_PRINTOUTLINE: - *pValue <<= (sal_Bool)aPrintOpts.IsOutline(); + *pValue <<= aPrintOpts.IsOutline(); break; case HANDLE_SLIDESPERHANDOUT: *pValue <<= (sal_Int16)aPrintOpts.GetHandoutPages(); break; case HANDLE_HANDOUTHORIZONTAL: - *pValue <<= (sal_Bool)aPrintOpts.IsHandoutHorizontal(); + *pValue <<= aPrintOpts.IsHandoutHorizontal(); break; case HANDLE_PRINTPAGENAME: - *pValue <<= (sal_Bool)aPrintOpts.IsPagename(); + *pValue <<= aPrintOpts.IsPagename(); break; case HANDLE_PRINTDATE: - *pValue <<= (sal_Bool)aPrintOpts.IsDate(); + *pValue <<= aPrintOpts.IsDate(); break; case HANDLE_PRINTTIME: - *pValue <<= (sal_Bool)aPrintOpts.IsTime(); + *pValue <<= aPrintOpts.IsTime(); break; case HANDLE_PRINTHIDENPAGES: - *pValue <<= (sal_Bool)aPrintOpts.IsHiddenPages(); + *pValue <<= aPrintOpts.IsHiddenPages(); break; case HANDLE_PRINTFITPAGE: - *pValue <<= (sal_Bool)aPrintOpts.IsPagesize(); + *pValue <<= aPrintOpts.IsPagesize(); break; case HANDLE_PRINTTILEPAGE: - *pValue <<= (sal_Bool)aPrintOpts.IsPagetile(); + *pValue <<= aPrintOpts.IsPagetile(); break; case HANDLE_PRINTBOOKLET: - *pValue <<= (sal_Bool)aPrintOpts.IsBooklet(); + *pValue <<= aPrintOpts.IsBooklet(); break; case HANDLE_PRINTBOOKLETFRONT: - *pValue <<= (sal_Bool)aPrintOpts.IsFrontPage(); + *pValue <<= aPrintOpts.IsFrontPage(); break; case HANDLE_PRINTBOOKLETBACK: - *pValue <<= (sal_Bool)aPrintOpts.IsBackPage(); + *pValue <<= aPrintOpts.IsBackPage(); break; case HANDLE_PRINTQUALITY: *pValue <<= (sal_Int32)aPrintOpts.GetOutputQuality(); @@ -1084,13 +1084,13 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException) break; case HANDLE_PRINTERNAME: { - SfxPrinter *pTempPrinter = pDocSh->GetPrinter( sal_False ); + SfxPrinter *pTempPrinter = pDocSh->GetPrinter( false ); *pValue <<= pTempPrinter ? OUString ( pTempPrinter->GetName()) : OUString(); } break; case HANDLE_PRINTERJOB: { - SfxPrinter *pTempPrinter = pDocSh->GetPrinter( sal_False ); + SfxPrinter *pTempPrinter = pDocSh->GetPrinter( false ); if (pTempPrinter) { SvMemoryStream aStream; @@ -1112,7 +1112,7 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException) case HANDLE_PARAGRAPHSUMMATION : { - sal_Bool bIsSummationOfParagraphs = pDoc->IsSummationOfParagraphs(); + bool bIsSummationOfParagraphs = pDoc->IsSummationOfParagraphs(); *pValue <<= bIsSummationOfParagraphs; } break; @@ -1125,7 +1125,7 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException) case HANDLE_ASIANPUNCT: { - *pValue <<= (sal_Bool)pDoc->IsKernAsianPunctuation(); + *pValue <<= pDoc->IsKernAsianPunctuation(); break; } diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index a2451abbbf78..40a1ebc4d49e 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -148,7 +148,7 @@ private: Any maBegin, maDuration, maEnd, maEndSync, maRepeatCount, maRepeatDuration, maTarget; sal_Int16 mnFill, mnFillDefault, mnRestart, mnRestartDefault; double mfAcceleration, mfDecelerate; - sal_Bool mbAutoReverse; + bool mbAutoReverse; Sequence< NamedValue > maUserData; Reference< XAnimate > mxFirstNode; @@ -231,7 +231,7 @@ void RandomAnimationNode::init( sal_Int16 nPresetClass ) mnRestartDefault = AnimationRestart::INHERIT; mfAcceleration = 0.0; mfDecelerate = 0.0; - mbAutoReverse = sal_False; + mbAutoReverse = false; } diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index fa3cdaed6e54..706bd8aba0e0 100644 --- a/sd/source/ui/unoidl/sddetect.cxx +++ b/sd/source/ui/unoidl/sddetect.cxx @@ -118,11 +118,11 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes // opening as template is done when a parameter tells to do so and a template filter can be detected // (otherwise no valid filter would be found) or if the detected filter is a template filter and // there is no parameter that forbids to open as template - sal_Bool bOpenAsTemplate = sal_False; - sal_Bool bWasReadOnly = sal_False, bReadOnly = sal_False; + bool bOpenAsTemplate = false; + bool bWasReadOnly = false, bReadOnly = false; - sal_Bool bRepairPackage = sal_False; - sal_Bool bRepairAllowed = sal_False; + bool bRepairPackage = false; + bool bRepairAllowed = false; bool bDeepDetection = false; // now some parameters that can already be in the array, but may be overwritten or new inserted here @@ -486,7 +486,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes lDescriptor[nPropertyCount].Value <<= bRepairAllowed; nPropertyCount++; - bOpenAsTemplate = sal_True; + bOpenAsTemplate = true; // TODO/LATER: set progress bar that should be used } diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx index dd813c5f236d..a9078a84518e 100644 --- a/sd/source/ui/unoidl/unocpres.cxx +++ b/sd/source/ui/unoidl/unocpres.cxx @@ -47,14 +47,14 @@ uno::Reference< uno::XInterface > createUnoCustomShow( SdCustomShow* pShow ) SdXCustomPresentation::SdXCustomPresentation() throw() : mpSdCustomShow(NULL), mpModel(NULL), aDisposeListeners( aDisposeContainerMutex ), - bDisposing( sal_False ) + bDisposing( false ) { } SdXCustomPresentation::SdXCustomPresentation( SdCustomShow* pShow, SdXImpressDocument* pMyModel) throw() : mpSdCustomShow(pShow), mpModel(pMyModel), aDisposeListeners( aDisposeContainerMutex ), - bDisposing( sal_False ) + bDisposing( false ) { } @@ -251,7 +251,7 @@ void SAL_CALL SdXCustomPresentation::dispose() throw(uno::RuntimeException, std: if( bDisposing ) return; // catched a recursion - bDisposing = sal_True; + bDisposing = true; uno::Reference< uno::XInterface > xSource( (cppu::OWeakObject*)this ); @@ -337,7 +337,7 @@ void SAL_CALL SdXCustomPresentationAccess::insertByName( const OUString& aName, // get the documents custom show list SdCustomShowList* pList = 0; if(mrModel.GetDoc()) - pList = mrModel.GetDoc()->GetCustomShowList(sal_True); + pList = mrModel.GetDoc()->GetCustomShowList(true); // no list, no cookies if( NULL == pList) diff --git a/sd/source/ui/unoidl/unocpres.hxx b/sd/source/ui/unoidl/unocpres.hxx index 7cb75bb3a778..d5fcb35b4016 100644 --- a/sd/source/ui/unoidl/unocpres.hxx +++ b/sd/source/ui/unoidl/unocpres.hxx @@ -48,7 +48,7 @@ private: // for xComponent ::osl::Mutex aDisposeContainerMutex; ::cppu::OInterfaceContainerHelper aDisposeListeners; - sal_Bool bDisposing; + bool bDisposing; public: SdXCustomPresentation() throw(); @@ -149,7 +149,7 @@ public: inline SdCustomShowList* SdXCustomPresentationAccess::GetCustomShowList() const throw() { if(mrModel.GetDoc()) - return mrModel.GetDoc()->GetCustomShowList(sal_False); + return mrModel.GetDoc()->GetCustomShowList(false); else return NULL; }; diff --git a/sd/source/ui/unoidl/unodoc.cxx b/sd/source/ui/unoidl/unodoc.cxx index e6ff30967a79..7dc7a3ea2e2e 100644 --- a/sd/source/ui/unoidl/unodoc.cxx +++ b/sd/source/ui/unoidl/unodoc.cxx @@ -56,7 +56,7 @@ uno::Reference< uno::XInterface > SAL_CALL SdDrawingDocument_createInstance( SfxObjectShell* pShell = new ::sd::GraphicDocShell( - _nCreationFlags, sal_False, DOCUMENT_TYPE_DRAW ); + _nCreationFlags, false, DOCUMENT_TYPE_DRAW ); return uno::Reference< uno::XInterface >( pShell->GetModel() ); } @@ -85,7 +85,7 @@ uno::Reference< uno::XInterface > SAL_CALL SdPresentationDocument_createInstance SfxObjectShell* pShell = new ::sd::DrawDocShell( - _nCreationFlags, sal_False, DOCUMENT_TYPE_IMPRESS ); + _nCreationFlags, false, DOCUMENT_TYPE_IMPRESS ); return uno::Reference< uno::XInterface >( pShell->GetModel() ); } diff --git a/sd/source/ui/unoidl/unohelp.hxx b/sd/source/ui/unoidl/unohelp.hxx index 0b54151c6265..5afa24d9d7c9 100644 --- a/sd/source/ui/unoidl/unohelp.hxx +++ b/sd/source/ui/unoidl/unohelp.hxx @@ -19,7 +19,7 @@ namespace sd { -inline sal_Bool any2bool( const ::com::sun::star::uno::Any& rAny, sal_Bool& rBool ) +inline bool any2bool( const ::com::sun::star::uno::Any& rAny, bool& rBool ) { if( rAny.getValueType() == ::getCppuBooleanType() ) { @@ -29,14 +29,14 @@ inline sal_Bool any2bool( const ::com::sun::star::uno::Any& rAny, sal_Bool& rBoo { sal_Int32 nValue = 0; if(!(rAny >>= nValue)) - return sal_False; + return false; rBool = nValue != 0; } - return sal_True; + return true; } -inline void bool2any( sal_Bool bBool, ::com::sun::star::uno::Any& rAny ) +inline void bool2any( bool bBool, ::com::sun::star::uno::Any& rAny ) { rAny.setValue( &bBool, ::getCppuBooleanType() ); } diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index a0d18fc9c91c..405251d520e5 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -192,7 +192,7 @@ void SAL_CALL SdLayer::setPropertyValue( const OUString& aPropertyName, const un { case WID_LAYER_LOCKED: { - sal_Bool bValue = sal_False; + bool bValue = false; if(!sd::any2bool( aValue, bValue )) throw lang::IllegalArgumentException(); set( LOCKED, bValue ); @@ -200,7 +200,7 @@ void SAL_CALL SdLayer::setPropertyValue( const OUString& aPropertyName, const un } case WID_LAYER_PRINTABLE: { - sal_Bool bValue = sal_False; + bool bValue = false; if(!sd::any2bool( aValue, bValue )) throw lang::IllegalArgumentException(); set( PRINTABLE, bValue ); @@ -208,7 +208,7 @@ void SAL_CALL SdLayer::setPropertyValue( const OUString& aPropertyName, const un } case WID_LAYER_VISIBLE: { - sal_Bool bValue = sal_False; + bool bValue = false; if(!sd::any2bool( aValue, bValue )) throw lang::IllegalArgumentException(); set( VISIBLE, bValue ); @@ -300,7 +300,7 @@ void SAL_CALL SdLayer::removePropertyChangeListener( const OUString& , const uno void SAL_CALL SdLayer::addVetoableChangeListener( const OUString& , const uno::Reference< beans::XVetoableChangeListener >& ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) {} void SAL_CALL SdLayer::removeVetoableChangeListener( const OUString& , const uno::Reference< beans::XVetoableChangeListener >& ) throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) {} -sal_Bool SdLayer::get( LayerAttribute what ) throw() +bool SdLayer::get( LayerAttribute what ) throw() { if(pLayer&&pLayerManager) { @@ -334,10 +334,10 @@ sal_Bool SdLayer::get( LayerAttribute what ) throw() } } } - return sal_False; //TODO: uno::Exception? + return false; //TODO: uno::Exception? } -void SdLayer::set( LayerAttribute what, sal_Bool flag ) throw() +void SdLayer::set( LayerAttribute what, bool flag ) throw() { if(pLayer&&pLayerManager) { @@ -708,7 +708,7 @@ sal_Bool SAL_CALL SdLayerManager::hasElements() throw(uno::RuntimeException, std * If something was changed at the layers, this methods takes care that the * changes are made visible in sdbcx::View. */ -void SdLayerManager::UpdateLayerView( sal_Bool modify ) const throw() +void SdLayerManager::UpdateLayerView( bool modify ) const throw() { if(mpModel->mpDocShell) { @@ -717,7 +717,7 @@ void SdLayerManager::UpdateLayerView( sal_Bool modify ) const throw() if(pDrViewSh) { - sal_Bool bLayerMode = pDrViewSh->IsLayerModeActive(); + bool bLayerMode = pDrViewSh->IsLayerModeActive(); pDrViewSh->ChangeEditMode(pDrViewSh->GetEditMode(), !bLayerMode); pDrViewSh->ChangeEditMode(pDrViewSh->GetEditMode(), bLayerMode); } @@ -753,7 +753,7 @@ namespace @return Return </True> if both pointers point to the same object. */ -sal_Bool compare_layers (uno::WeakReference<uno::XInterface> xRef, void* pSearchData) +bool compare_layers (uno::WeakReference<uno::XInterface> xRef, void* pSearchData) { uno::Reference<uno::XInterface> xLayer (xRef); if (xLayer.is()) @@ -763,10 +763,10 @@ sal_Bool compare_layers (uno::WeakReference<uno::XInterface> xRef, void* pSearch { SdrLayer* pSdrLayer = pSdLayer->GetSdrLayer (); if (pSdrLayer == static_cast<SdrLayer*>(pSearchData)) - return sal_True; + return true; } } - return sal_False; + return false; } } diff --git a/sd/source/ui/unoidl/unolayer.hxx b/sd/source/ui/unoidl/unolayer.hxx index 612d2d045950..1c1dd5b7d7e5 100644 --- a/sd/source/ui/unoidl/unolayer.hxx +++ b/sd/source/ui/unoidl/unolayer.hxx @@ -97,8 +97,8 @@ private: SdrLayer* pLayer; const SvxItemPropertySet* pPropSet; - sal_Bool get( LayerAttribute what ) throw(); - void set( LayerAttribute what, sal_Bool flag ) throw(); + bool get( LayerAttribute what ) throw(); + void set( LayerAttribute what, bool flag ) throw(); }; @@ -173,7 +173,7 @@ private: ::sd::View* GetView() const throw(); ::sd::DrawDocShell* GetDocShell() const throw() { return mpModel->mpDocShell; } - void UpdateLayerView( sal_Bool modify = sal_True ) const throw(); + void UpdateLayerView( bool modify = true ) const throw(); }; #endif diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index aa911339b30b..52ef73300ed7 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -439,7 +439,7 @@ void SdXImpressDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) /****************************************************************************** * * ******************************************************************************/ -SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate ) throw() +SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, bool bDuplicate ) throw() { sal_uInt16 nPageCount = mpDoc->GetSdPageCount( PK_STANDARD ); SdrLayerAdmin& rLayerAdmin = mpDoc->GetLayerAdmin(); @@ -462,8 +462,8 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate // here we determine the page after which we should insert SdPage* pPreviousStandardPage = mpDoc->GetSdPage( std::min( (sal_uInt16)(nPageCount - 1), nPage ), PK_STANDARD ); SetOfByte aVisibleLayers = pPreviousStandardPage->TRG_GetMasterPageVisibleLayers(); - sal_Bool bIsPageBack = aVisibleLayers.IsSet( aBckgrnd ); - sal_Bool bIsPageObj = aVisibleLayers.IsSet( aBckgrndObj ); + bool bIsPageBack = aVisibleLayers.IsSet( aBckgrnd ); + bool bIsPageObj = aVisibleLayers.IsSet( aBckgrndObj ); // AutoLayouts must be ready mpDoc->StopWorkStartupDelay(); @@ -502,7 +502,7 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate // use MasterPage of the current page pStandardPage->TRG_SetMasterPage(pPreviousStandardPage->TRG_GetMasterPage()); pStandardPage->SetLayoutName( pPreviousStandardPage->GetLayoutName() ); - pStandardPage->SetAutoLayout(AUTOLAYOUT_NONE, sal_True ); + pStandardPage->SetAutoLayout(AUTOLAYOUT_NONE, true ); } aBckgrnd = rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRND), false); @@ -538,7 +538,7 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate // use MasterPage of the current page pNotesPage->TRG_SetMasterPage(pPreviousNotesPage->TRG_GetMasterPage()); pNotesPage->SetLayoutName( pPreviousNotesPage->GetLayoutName() ); - pNotesPage->SetAutoLayout(AUTOLAYOUT_NOTES, sal_True ); + pNotesPage->SetAutoLayout(AUTOLAYOUT_NOTES, true ); } } @@ -547,7 +547,7 @@ SdPage* SdXImpressDocument::InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate return( pStandardPage ); } -void SdXImpressDocument::SetModified( sal_Bool bModified /* = sal_True */ ) throw() +void SdXImpressDocument::SetModified( bool bModified /* = sal_True */ ) throw() { if( mpDoc ) mpDoc->SetChanged( bModified ); @@ -680,7 +680,7 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdXImpressDocument::duplicate( con SdPage* pPage = (SdPage*) pSvxPage->GetSdrPage(); sal_uInt16 nPos = pPage->GetPageNum(); nPos = ( nPos - 1 ) / 2; - pPage = InsertSdPage( nPos, sal_True ); + pPage = InsertSdPage( nPos, true ); if( pPage ) { uno::Reference< drawing::XDrawPage > xDrawPage( pPage->getUnoPage(), uno::UNO_QUERY ); @@ -1245,7 +1245,7 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam break; case WID_MODEL_CONTFOCUS: { - sal_Bool bFocus = sal_False; + bool bFocus = false; if( !(aValue >>= bFocus ) ) throw lang::IllegalArgumentException(); mpDoc->SetAutoControlFocus( bFocus ); @@ -1253,7 +1253,7 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam break; case WID_MODEL_DSGNMODE: { - sal_Bool bMode = sal_False; + bool bMode = false; if( !(aValue >>= bMode ) ) throw lang::IllegalArgumentException(); mpDoc->SetOpenInDesignMode( bMode ); @@ -1328,7 +1328,7 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property } break; case WID_MODEL_CONTFOCUS: - aAny <<= (sal_Bool)mpDoc->GetAutoControlFocus(); + aAny <<= mpDoc->GetAutoControlFocus(); break; case WID_MODEL_DSGNMODE: aAny <<= mpDoc->GetOpenInDesignMode(); @@ -1484,7 +1484,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SdXImpressDocument::getRenderer( if( NULL == mpDoc ) throw lang::DisposedException(); - sal_Bool bExportNotesPages = sal_False; + bool bExportNotesPages = false; for( sal_Int32 nProperty = 0, nPropertyCount = rxOptions.getLength(); nProperty < nPropertyCount; ++nProperty ) { if ( rxOptions[ nProperty ].Name == "ExportNotesPages" ) @@ -1521,8 +1521,8 @@ class ImplRenderPaintProc : public ::sdr::contact::ViewObjectContactRedirector vcl::PDFWriter::StructElement ImplBegStructureTag( SdrObject& rObject ); public: - sal_Bool IsVisible ( const SdrObject* pObj ) const; - sal_Bool IsPrintable( const SdrObject* pObj ) const; + bool IsVisible ( const SdrObject* pObj ) const; + bool IsPrintable( const SdrObject* pObj ) const; ImplRenderPaintProc( const SdrLayerAdmin& rLA, SdrPageView* pView, vcl::PDFExtOutDevData* pData ); virtual ~ImplRenderPaintProc(); @@ -1559,8 +1559,8 @@ sal_Int32 ImplPDFGetBookmarkPage( const OUString& rBookmark, SdDrawDocument& rDo aBookmark = rBookmark.copy( 1 ); // is the bookmark a page ? - sal_Bool bIsMasterPage; - sal_uInt16 nPgNum = rDoc.GetPageByName( aBookmark, bIsMasterPage ); + bool bIsMasterPage; + sal_uInt16 nPgNum = rDoc.GetPageByName( aBookmark, bIsMasterPage ); SdrObject* pObj = NULL; if ( nPgNum == SDRPAGE_NOTFOUND ) @@ -1743,7 +1743,7 @@ vcl::PDFWriter::StructElement ImplRenderPaintProc::ImplBegStructureTag( SdrObjec { sal_uInt32 nInventor = rObject.GetObjInventor(); sal_uInt16 nIdentifier = rObject.GetObjIdentifier(); - sal_Bool bIsTextObj = rObject.ISA( SdrTextObj ); + bool bIsTextObj = rObject.ISA( SdrTextObj ); if ( nInventor == SdrInventor ) { @@ -1802,9 +1802,9 @@ drawinglayer::primitive2d::Primitive2DSequence ImplRenderPaintProc::createRedire } } -sal_Bool ImplRenderPaintProc::IsVisible( const SdrObject* pObj ) const +bool ImplRenderPaintProc::IsVisible( const SdrObject* pObj ) const { - sal_Bool bVisible = sal_True; + bool bVisible = true; SdrLayerID nLayerId = pObj->GetLayer(); if( pSdrPageView ) { @@ -1817,9 +1817,9 @@ sal_Bool ImplRenderPaintProc::IsVisible( const SdrObject* pObj ) const } return bVisible; } -sal_Bool ImplRenderPaintProc::IsPrintable( const SdrObject* pObj ) const +bool ImplRenderPaintProc::IsPrintable( const SdrObject* pObj ) const { - sal_Bool bPrintable = sal_True; + bool bPrintable = true; SdrLayerID nLayerId = pObj->GetLayer(); if( pSdrPageView ) { @@ -1847,7 +1847,7 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r uno::Reference< awt::XDevice > xRenderDevice; const sal_Int32 nPageNumber = nRenderer + 1; PageKind ePageKind = PK_STANDARD; - sal_Bool bExportNotesPages = sal_False; + bool bExportNotesPages = false; for( sal_Int32 nProperty = 0, nPropertyCount = rxOptions.getLength(); nProperty < nPropertyCount; ++nProperty ) { @@ -1958,7 +1958,7 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r // exporting object interactions to pdf // if necessary, the master page interactions will be exported first - sal_Bool bIsBackgroundObjectsVisible = sal_False; // #i39428# IsBackgroundObjectsVisible not available for Draw + bool bIsBackgroundObjectsVisible = false; // #i39428# IsBackgroundObjectsVisible not available for Draw if ( mbImpressDoc && xPagePropSet->getPropertySetInfo()->hasPropertyByName( "IsBackgroundObjectsVisible" ) ) xPagePropSet->getPropertyValue( "IsBackgroundObjectsVisible" ) >>= bIsBackgroundObjectsVisible; if ( bIsBackgroundObjectsVisible && !pPDFExtOutDevData->GetIsExportNotesPages() ) @@ -2687,17 +2687,17 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn const OUString aStdPrefix( SdResId(STR_LAYOUT_DEFAULT_NAME) ); OUString aPrefix( aStdPrefix ); - sal_Bool bUnique = sal_True; + bool bUnique = true; sal_Int32 i = 0; do { - bUnique = sal_True; + bUnique = true; for( sal_Int32 nMaster = 1; nMaster < nMPageCount; nMaster++ ) { SdPage* pPage = (SdPage*)mpDoc->GetMasterPage((sal_uInt16)nMaster); if( pPage && pPage->GetName() == aPrefix ) { - bUnique = sal_False; + bUnique = false; break; } } @@ -2748,7 +2748,7 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn pRefNotesPage->GetLwrBorder() ); pMNotesPage->SetLayoutName( aLayoutName ); mpDoc->InsertMasterPage(pMNotesPage, (sal_uInt16)nInsertPos + 1); - pMNotesPage->SetAutoLayout(AUTOLAYOUT_NOTES, sal_True, sal_True); + pMNotesPage->SetAutoLayout(AUTOLAYOUT_NOTES, true, true); mpModel->SetModified(); } diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index eac1f29d8024..f11c7660b4c6 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -201,7 +201,7 @@ static SdTypesCache gImplTypesCache; }; return aDraw_SdXShapePropertyGraphicMap_Impl; } - static const SfxItemPropertyMapEntry* lcl_ImplGetShapePropertyMap( sal_Bool bImpress, sal_Bool bGraphicObj ) + static const SfxItemPropertyMapEntry* lcl_ImplGetShapePropertyMap( bool bImpress, bool bGraphicObj ) { const SfxItemPropertyMapEntry* pRet = 0; if( bImpress ) @@ -221,7 +221,7 @@ static SdTypesCache gImplTypesCache; return pRet; } - static const SvxItemPropertySet* lcl_ImplGetShapePropertySet( sal_Bool bImpress, sal_Bool bGraphicObj ) + static const SvxItemPropertySet* lcl_ImplGetShapePropertySet( bool bImpress, bool bGraphicObj ) { const SvxItemPropertySet* pRet = 0; if( bImpress ) @@ -532,7 +532,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : } case WID_ISANIMATION: { - sal_Bool bIsAnimation(sal_False); + bool bIsAnimation(false); if(!(aValue >>= bIsAnimation)) { @@ -615,7 +615,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : } case WID_DIMHIDE: { - sal_Bool bDimHide = sal_False; + bool bDimHide = false; if( !(aValue >>= bDimHide) ) lang::IllegalArgumentException(); @@ -624,7 +624,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : } case WID_DIMPREV: { - sal_Bool bDimPrevious = sal_False; + bool bDimPrevious = false; if( !(aValue >>= bDimPrevious) ) lang::IllegalArgumentException(); @@ -738,7 +738,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : if( pEntry && mpShape->GetSdrObject() ) { - SdAnimationInfo* pInfo = GetAnimationInfo(sal_False); + SdAnimationInfo* pInfo = GetAnimationInfo(false); switch(pEntry->nWID) { @@ -755,19 +755,19 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : aRet <<= EffectMigration::GetTextAnimationEffect( mpShape ); break; case WID_ISPRESOBJ: - aRet <<= (sal_Bool)IsPresObj(); + aRet <<= IsPresObj(); break; case WID_ISEMPTYPRESOBJ: - aRet <<= (sal_Bool)IsEmptyPresObj(); + aRet <<= IsEmptyPresObj(); break; case WID_MASTERDEPEND: - aRet <<= (sal_Bool)IsMasterDepend(); + aRet <<= IsMasterDepend(); break; case WID_SPEED: aRet <<= EffectMigration::GetAnimationSpeed( mpShape ); break; case WID_ISANIMATION: - aRet <<= (sal_Bool)( pInfo && pInfo->mbIsMovie); + aRet <<= (pInfo && pInfo->mbIsMovie); break; case WID_PLACEHOLDERTEXT: aRet <<= GetPlaceholderText(); @@ -779,7 +779,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : { SdDrawDocument* pDoc = mpModel?mpModel->GetDoc():NULL; // is the bookmark a page? - sal_Bool bIsMasterPage; + bool bIsMasterPage; if(pDoc->GetPageByName( pInfo->GetBookmark(), bIsMasterPage ) != SDRPAGE_NOTFOUND) { aString = SdDrawPage::getPageApiNameFromUiName( pInfo->GetBookmark() ); @@ -808,7 +808,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : aRet = ::cppu::enum2any< presentation::ClickAction >( pInfo?pInfo->meClickAction:presentation::ClickAction_NONE ); break; case WID_PLAYFULL: - aRet <<= (sal_Bool)( pInfo && pInfo->mbPlayFull ); + aRet <<= ( pInfo && pInfo->mbPlayFull ); break; case WID_SOUNDFILE: aRet <<= EffectMigration::GetSoundFile( mpShape ); @@ -885,7 +885,7 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const : } /** */ -SdAnimationInfo* SdXShape::GetAnimationInfo( sal_Bool bCreate ) const +SdAnimationInfo* SdXShape::GetAnimationInfo( bool bCreate ) const throw (std::exception) { SdAnimationInfo* pInfo = NULL; @@ -923,7 +923,7 @@ uno::Sequence< OUString > SAL_CALL SdXShape::getSupportedServiceNames() throw(:: /** checks if this is a presentation object */ -sal_Bool SdXShape::IsPresObj() const +bool SdXShape::IsPresObj() const throw (std::exception) { SdrObject* pObj = mpShape->GetSdrObject(); @@ -933,7 +933,7 @@ sal_Bool SdXShape::IsPresObj() const if(pPage) return pPage->GetPresObjKind(pObj) != PRESOBJ_NONE; } - return sal_False; + return false; } /** checks if this presentation object is empty @@ -998,7 +998,7 @@ void SdXShape::SetEmptyPresObj(bool bEmpty) if(!bEmpty) { OutlinerParaObject* pOutlinerParaObject = pObj->GetOutlinerParaObject(); - const sal_Bool bVertical = pOutlinerParaObject ? pOutlinerParaObject->IsVertical() : sal_False; + const bool bVertical = pOutlinerParaObject ? pOutlinerParaObject->IsVertical() : sal_False; // really delete SdrOutlinerObj at pObj pObj->NbcSetOutlinerParaObject(0L); @@ -1044,7 +1044,7 @@ void SdXShape::SetEmptyPresObj(bool bEmpty) OutlinerParaObject* pOutlinerParaObject = pObj->GetOutlinerParaObject(); pOutliner->SetText( *pOutlinerParaObject ); - const sal_Bool bVertical = pOutliner->IsVertical(); + const bool bVertical = pOutliner->IsVertical(); pOutliner->Clear(); pOutliner->SetVertical( bVertical ); @@ -1061,13 +1061,13 @@ void SdXShape::SetEmptyPresObj(bool bEmpty) } } -sal_Bool SdXShape::IsMasterDepend() const throw() +bool SdXShape::IsMasterDepend() const throw() { SdrObject* pObj = mpShape->GetSdrObject(); return pObj && pObj->GetUserCall() != NULL; } -void SdXShape::SetMasterDepend( sal_Bool bDepend ) throw() +void SdXShape::SetMasterDepend( bool bDepend ) throw() { if( IsMasterDepend() != bDepend ) { @@ -1214,8 +1214,8 @@ SdUnoEventsAccess::SdUnoEventsAccess( SdXShape* pShape ) throw() static void clearEventsInAnimationInfo( SdAnimationInfo* pInfo ) { pInfo->SetBookmark( "" ); - pInfo->mbSecondSoundOn = sal_False; - pInfo->mbSecondPlayFull = sal_False; + pInfo->mbSecondSoundOn = false; + pInfo->mbSecondPlayFull = false; pInfo->meClickAction = presentation::ClickAction_NONE; pInfo->meSecondEffect = presentation::AnimationEffect_NONE; pInfo->meSecondSpeed = presentation::AnimationSpeed_MEDIUM; @@ -1241,7 +1241,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno presentation::AnimationEffect eEffect = presentation::AnimationEffect_NONE; presentation::AnimationSpeed eSpeed = presentation::AnimationSpeed_MEDIUM; OUString aStrSoundURL; - sal_Bool bPlayFull = sal_False; + bool bPlayFull = false; sal_Int32 nVerb = 0; OUString aStrMacro; OUString aStrLibrary; @@ -1335,7 +1335,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno throw lang::IllegalArgumentException(); } - sal_Bool bOk = sal_False; + bool bOk = false; do { if( ( nFound & FOUND_EVENTTYPE ) == 0 ) @@ -1346,15 +1346,15 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno if( ( nFound & FOUND_CLICKACTION ) == 0 ) break; - SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( sal_False ); + SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( false ); if( presentation::ClickAction_NONE == eClickAction && NULL == pInfo ) { - bOk = sal_True; + bOk = true; break; } if( NULL == pInfo ) - pInfo = mpShape->GetAnimationInfo( sal_True ); + pInfo = mpShape->GetAnimationInfo( true ); DBG_ASSERT( pInfo, "shape animation info could not be created!" ); if( NULL == pInfo ) @@ -1373,7 +1373,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno case presentation::ClickAction_INVISIBLE: case presentation::ClickAction_STOPPRESENTATION: { - bOk = sal_True; + bOk = true; } break; @@ -1398,7 +1398,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno } pInfo->SetBookmark( aStrBookmark ); - bOk = sal_True; + bOk = true; } break; @@ -1406,7 +1406,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno if( nFound & FOUND_MACRO ) { pInfo->SetBookmark( aStrMacro ); - bOk = sal_True; + bOk = true; } break; @@ -1414,7 +1414,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno if( nFound & FOUND_VERB ) { pInfo->mnVerb = (sal_uInt16)nVerb; - bOk = sal_True; + bOk = true; } break; @@ -1425,7 +1425,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno pInfo->meSecondEffect = eEffect; pInfo->meSecondSpeed = nFound & FOUND_SPEED ? eSpeed : presentation::AnimationSpeed_MEDIUM; - bOk = sal_True; + bOk = true; // NOTE: No break here!!! @@ -1437,7 +1437,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno pInfo->mbSecondSoundOn = !aStrSoundURL.isEmpty(); pInfo->mbSecondPlayFull = nFound & FOUND_PLAYFULL ? bPlayFull : sal_False; - bOk = sal_True; + bOk = true; } break; case presentation::ClickAction_MAKE_FIXED_SIZE: @@ -1446,7 +1446,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno } else { - SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( sal_True ); + SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( true ); DBG_ASSERT( pInfo, "shape animation info could not be created!" ); if( NULL == pInfo ) @@ -1486,7 +1486,7 @@ void SAL_CALL SdUnoEventsAccess::replaceByName( const OUString& aName, const uno pInfo->SetBookmark( sBuffer.makeStringAndClear() ); } - bOk = sal_True; + bOk = true; } } while(false); @@ -1502,7 +1502,7 @@ uno::Any SAL_CALL SdUnoEventsAccess::getByName( const OUString& aName ) if( mpShape == NULL || aName != maStrOnClick ) throw container::NoSuchElementException(); - SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( sal_False ); + SdAnimationInfo* pInfo = mpShape->GetAnimationInfo( false ); presentation::ClickAction eClickAction = presentation::ClickAction_NONE; if( pInfo ) diff --git a/sd/source/ui/unoidl/unoobj.hxx b/sd/source/ui/unoidl/unoobj.hxx index 19b906335dd4..097e866078dd 100644 --- a/sd/source/ui/unoidl/unoobj.hxx +++ b/sd/source/ui/unoidl/unoobj.hxx @@ -51,18 +51,18 @@ private: ::com::sun::star::uno::Any GetStyleSheet() const throw( ::com::sun::star::beans::UnknownPropertyException ); // Intern - SdAnimationInfo* GetAnimationInfo( sal_Bool bCreate = sal_False ) const + SdAnimationInfo* GetAnimationInfo( bool bCreate = false ) const throw (std::exception); - sal_Bool IsPresObj() const + bool IsPresObj() const throw (std::exception); - void SetPresObj( sal_Bool bPresObj ) throw(); + void SetPresObj( bool bPresObj ) throw(); bool IsEmptyPresObj() const throw(); void SetEmptyPresObj(bool bEmpty) throw (std::exception); - sal_Bool IsMasterDepend() const throw(); - void SetMasterDepend( sal_Bool bDepend ) throw(); + bool IsMasterDepend() const throw(); + void SetMasterDepend( bool bDepend ) throw(); SdrObject* GetSdrObject() const throw(); OUString GetPlaceholderText() const; diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 75ed1d3c9266..1228c06f6a94 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -101,7 +101,7 @@ enum WID_PAGE static sal_Char const sEmptyPageName[sizeof("page")] = "page"; // this function stores the property maps for draw pages in impress and draw -const SvxItemPropertySet* ImplGetDrawPagePropertySet( sal_Bool bImpress, PageKind ePageKind ) +const SvxItemPropertySet* ImplGetDrawPagePropertySet( bool bImpress, PageKind ePageKind ) { static const SfxItemPropertyMapEntry aDrawPagePropertyMap_Impl[] = { @@ -503,7 +503,7 @@ SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShap } else { - pPresObj = GetPage()->CreatePresObj( eObjKind, sal_False, aRect, sal_True ); + pPresObj = GetPage()->CreatePresObj( eObjKind, false, aRect, true ); } if( pPresObj ) @@ -604,7 +604,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName GetPage()->SetPresChange( (PresChange)nValue ); break; case WID_PAGE_LAYOUT: - GetPage()->SetAutoLayout( (AutoLayout)nValue, sal_True ); + GetPage()->SetAutoLayout( (AutoLayout)nValue, true ); break; case WID_PAGE_DURATION: GetPage()->SetTime((sal_Int32)nValue); @@ -692,10 +692,10 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_VISIBLE : { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); - GetPage()->SetExcluded( bVisible == sal_False ); + GetPage()->SetExcluded( bVisible == false ); break; } case WID_PAGE_SOUNDFILE : @@ -709,7 +709,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } else { - sal_Bool bStopSound = sal_False; + bool bStopSound = false; if( aValue >>= bStopSound ) { GetPage()->SetStopSound( bStopSound ? true : false ); @@ -722,7 +722,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_LOOP_SOUND: { - sal_Bool bLoop = sal_False; + bool bLoop = false; if( ! (aValue >>= bLoop) ) throw lang::IllegalArgumentException(); @@ -731,7 +731,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_BACKFULL: { - sal_Bool bFullSize = sal_False; + bool bFullSize = false; if( ! ( aValue >>= bFullSize ) ) throw lang::IllegalArgumentException(); GetPage()->SetBackgroundFullSize( bFullSize ); @@ -739,7 +739,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_BACKVIS: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -759,7 +759,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_BACKOBJVIS: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -810,7 +810,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName { case WID_PAGE_HEADERVISIBLE: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -828,7 +828,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_FOOTERVISIBLE: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -846,7 +846,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_PAGENUMBERVISIBLE: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -855,7 +855,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_DATETIMEVISIBLE: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -864,7 +864,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName } case WID_PAGE_DATETIMEFIXED: { - sal_Bool bVisible = sal_False; + bool bVisible = false; if( ! ( aValue >>= bVisible ) ) throw lang::IllegalArgumentException(); @@ -934,7 +934,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName case WID_TRANSITION_DIRECTION: { - sal_Bool bValue = sal_False; + bool bValue = false; if( ! ( aValue >>= bValue ) ) throw lang::IllegalArgumentException(); @@ -1128,8 +1128,8 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) case WID_PAGE_VISIBLE : { - sal_Bool bVisible = GetPage()->IsExcluded() == sal_False; - aAny <<= Any( &bVisible, ::getBooleanCppuType() ); + bool bVisible = GetPage()->IsExcluded() == false; + aAny <<= bVisible; break; } @@ -1137,7 +1137,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) { if( GetPage()->IsStopSound() ) { - aAny <<= sal_True; + aAny <<= true; } else { @@ -1150,13 +1150,13 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) } case WID_LOOP_SOUND: { - aAny <<= (sal_Bool)GetPage()->IsLoopSound(); + aAny <<= GetPage()->IsLoopSound(); break; } case WID_PAGE_BACKFULL: { - sal_Bool bFullSize = GetPage()->IsBackgroundFullSize(); - aAny = Any( &bFullSize, ::getBooleanCppuType() ); + bool bFullSize = GetPage()->IsBackgroundFullSize(); + aAny <<= bFullSize; break; } case WID_PAGE_BACKVIS: @@ -1169,11 +1169,11 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) { SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin(); SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers(); - aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRND), false)); + aAny <<= aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRND), false)); } else { - aAny <<= (sal_Bool)sal_False; + aAny <<= false; } } break; @@ -1188,11 +1188,11 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) { SdrLayerAdmin& rLayerAdmin = pDoc->GetLayerAdmin(); SetOfByte aVisibleLayers = pPage->TRG_GetMasterPageVisibleLayers(); - aAny <<= (sal_Bool)aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRNDOBJ), false)); + aAny <<= aVisibleLayers.IsSet(rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRNDOBJ), false)); } else { - aAny <<= (sal_Bool)sal_False; + aAny <<= false; } } break; @@ -1209,11 +1209,11 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) } case WID_PAGE_ISDARK: { - aAny <<= (sal_Bool)GetPage()->GetPageBackgroundColor().IsDark(); + aAny <<= GetPage()->GetPageBackgroundColor().IsDark(); break; } case WID_PAGE_HEADERVISIBLE: - aAny <<= (sal_Bool)GetPage()->getHeaderFooterSettings().mbHeaderVisible; + aAny <<= GetPage()->getHeaderFooterSettings().mbHeaderVisible; break; case WID_PAGE_HEADERTEXT: { @@ -1222,7 +1222,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) } break; case WID_PAGE_FOOTERVISIBLE: - aAny <<= (sal_Bool)GetPage()->getHeaderFooterSettings().mbFooterVisible; + aAny <<= GetPage()->getHeaderFooterSettings().mbFooterVisible; break; case WID_PAGE_FOOTERTEXT: { @@ -1231,13 +1231,13 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) } break; case WID_PAGE_PAGENUMBERVISIBLE: - aAny <<= (sal_Bool)GetPage()->getHeaderFooterSettings().mbSlideNumberVisible; + aAny <<= GetPage()->getHeaderFooterSettings().mbSlideNumberVisible; break; case WID_PAGE_DATETIMEVISIBLE: - aAny <<= (sal_Bool)GetPage()->getHeaderFooterSettings().mbDateTimeVisible; + aAny <<= GetPage()->getHeaderFooterSettings().mbDateTimeVisible; break; case WID_PAGE_DATETIMEFIXED: - aAny <<= (sal_Bool)GetPage()->getHeaderFooterSettings().mbDateTimeIsFixed; + aAny <<= GetPage()->getHeaderFooterSettings().mbDateTimeIsFixed; break; case WID_PAGE_DATETIMETEXT: { @@ -1770,7 +1770,7 @@ static void refreshpage( SdDrawDocument* pDoc, const PageKind ePageKind ) pDoc->SetMaxObjSize(aViewSize); - pViewSh->InitWindows(aPageOrg, aViewSize, Point(-1, -1), sal_True); + pViewSh->InitWindows(aPageOrg, aViewSize, Point(-1, -1), true); pViewSh->UpdateScrollBars(); } @@ -2076,7 +2076,7 @@ Sequence< uno::Type > SAL_CALL SdDrawPage::getTypes() throw(uno::RuntimeExceptio if( maTypeSequence.getLength() == 0 ) { const PageKind ePageKind = GetPage() ? GetPage()->GetPageKind() : PK_STANDARD; - sal_Bool bPresPage = mbIsImpressDocument && ePageKind != PK_HANDOUT; + bool bPresPage = mbIsImpressDocument && ePageKind != PK_HANDOUT; // Collect the types of this class. ::std::vector<uno::Type> aTypes; @@ -2310,7 +2310,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName ) EditMode eMode = pDrawViewSh->GetEditMode(); if( eMode == EM_PAGE ) { - sal_Bool bLayer = pDrawViewSh->IsLayerModeActive(); + bool bLayer = pDrawViewSh->IsLayerModeActive(); pDrawViewSh->ChangeEditMode( eMode, !bLayer ); pDrawViewSh->ChangeEditMode( eMode, bLayer ); @@ -2722,7 +2722,7 @@ Sequence< uno::Type > SAL_CALL SdMasterPage::getTypes() throw(uno::RuntimeExcept if( maTypeSequence.getLength() == 0 ) { const PageKind ePageKind = GetPage() ? GetPage()->GetPageKind() : PK_STANDARD; - sal_Bool bPresPage = mbIsImpressDocument && SvxFmDrawPage::mpPage && ePageKind != PK_HANDOUT; + bool bPresPage = mbIsImpressDocument && SvxFmDrawPage::mpPage && ePageKind != PK_HANDOUT; // Collect the types of this class. ::std::vector<uno::Type> aTypes; @@ -3006,7 +3006,7 @@ void SAL_CALL SdMasterPage::setName( const OUString& rName ) if(SvxFmDrawPage::mpPage && GetPage()->GetPageKind() != PK_NOTES) { SdDrawDocument* pDoc = GetModel()->GetDoc(); - sal_Bool bOutDummy; + bool bOutDummy; OUString aNewName( rName ); // Slide Name has to be unique @@ -3029,7 +3029,7 @@ void SAL_CALL SdMasterPage::setName( const OUString& rName ) EditMode eMode = pDrawViewSh->GetEditMode(); if( eMode == EM_MASTERPAGE ) { - sal_Bool bLayer = pDrawViewSh->IsLayerModeActive(); + bool bLayer = pDrawViewSh->IsLayerModeActive(); pDrawViewSh->ChangeEditMode( eMode, !bLayer ); pDrawViewSh->ChangeEditMode( eMode, bLayer ); diff --git a/sd/source/ui/unoidl/unopage.hxx b/sd/source/ui/unoidl/unopage.hxx index 92bf1014fa6c..e2712b021e09 100644 --- a/sd/source/ui/unoidl/unopage.hxx +++ b/sd/source/ui/unoidl/unopage.hxx @@ -95,7 +95,7 @@ public: virtual ~SdGenericDrawPage() throw(); // intern - sal_Bool isValid() { return (SvxDrawPage::mpPage != NULL) && (mpModel != NULL); } + bool isValid() { return (SvxDrawPage::mpPage != NULL) && (mpModel != NULL); } SdPage* GetPage() const { return (SdPage*)SvxDrawPage::mpPage; } SdXImpressDocument* GetModel() const; diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index 99b058af89fe..65804c20701d 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -101,7 +101,7 @@ SdUnoSearchReplaceShape::~SdUnoSearchReplaceShape() throw() uno::Reference< util::XReplaceDescriptor > SAL_CALL SdUnoSearchReplaceShape::createReplaceDescriptor() throw( uno::RuntimeException, std::exception ) { - return new SdUnoSearchReplaceDescriptor(sal_True); + return new SdUnoSearchReplaceDescriptor(true); } sal_Int32 SAL_CALL SdUnoSearchReplaceShape::replaceAll( const uno::Reference< util::XSearchDescriptor >& xDesc ) @@ -199,7 +199,7 @@ sal_Int32 SAL_CALL SdUnoSearchReplaceShape::replaceAll( const uno::Reference< ut uno::Reference< ::com::sun::star::util::XSearchDescriptor > SAL_CALL SdUnoSearchReplaceShape::createSearchDescriptor( ) throw(::com::sun::star::uno::RuntimeException, std::exception) { - return new SdUnoSearchReplaceDescriptor(sal_False); + return new SdUnoSearchReplaceDescriptor(false); } uno::Reference< ::com::sun::star::container::XIndexAccess > SAL_CALL SdUnoSearchReplaceShape::findAll( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor >& xDesc ) @@ -627,7 +627,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( uno::Refere return uno::Reference< text::XTextRange > ( xFound, uno::UNO_QUERY ); } -sal_Bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nStartPos, sal_Int32& nEndPos, SdUnoSearchReplaceDescriptor* pDescr ) throw() +bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nStartPos, sal_Int32& nEndPos, SdUnoSearchReplaceDescriptor* pDescr ) throw() { OUString aSearchStr( pDescr->getSearchString() ); OUString aText( rText ); @@ -654,10 +654,10 @@ sal_Bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nSta } } - return sal_True; + return true; } else - return sal_False; + return false; } ESelection SdUnoSearchReplaceShape::GetSelection( uno::Reference< text::XTextRange > xTextRange ) throw() @@ -706,13 +706,13 @@ uno::Reference< drawing::XShape > SdUnoSearchReplaceShape::GetShape( uno::Refer UNO3_GETIMPLEMENTATION_IMPL( SdUnoSearchReplaceDescriptor ); -SdUnoSearchReplaceDescriptor::SdUnoSearchReplaceDescriptor( sal_Bool bReplace ) throw() +SdUnoSearchReplaceDescriptor::SdUnoSearchReplaceDescriptor( bool bReplace ) throw() { mpPropSet = new SvxItemPropertySet(ImplGetSearchPropertyMap(), SdrObject::GetGlobalDrawObjectItemPool()); - mbBackwards = sal_False; - mbCaseSensitive = sal_False; - mbWords = sal_False; + mbBackwards = false; + mbCaseSensitive = false; + mbWords = false; mbReplace = bReplace; } @@ -763,7 +763,7 @@ void SAL_CALL SdUnoSearchReplaceDescriptor::setPropertyValue( const OUString& aP const SfxItemPropertySimpleEntry* pEntry = mpPropSet->getPropertyMapEntry(aPropertyName); - sal_Bool bOk = sal_False; + bool bOk = false; switch( pEntry ? pEntry->nWID : -1 ) { @@ -796,13 +796,13 @@ uno::Any SAL_CALL SdUnoSearchReplaceDescriptor::getPropertyValue( const OUString switch( pEntry ? pEntry->nWID : -1 ) { case WID_SEARCH_BACKWARDS: - aAny <<= (sal_Bool)mbBackwards; + aAny <<= mbBackwards; break; case WID_SEARCH_CASE: - aAny <<= (sal_Bool)mbCaseSensitive; + aAny <<= mbCaseSensitive; break; case WID_SEARCH_WORDS: - aAny <<= (sal_Bool)mbWords; + aAny <<= mbWords; break; default: throw beans::UnknownPropertyException(); diff --git a/sd/source/ui/unoidl/unowcntr.cxx b/sd/source/ui/unoidl/unowcntr.cxx index 7264d70f6df5..2099a94c7c25 100644 --- a/sd/source/ui/unoidl/unowcntr.cxx +++ b/sd/source/ui/unoidl/unowcntr.cxx @@ -60,7 +60,7 @@ void SvUnoWeakContainer::insert( uno::WeakReference< uno::XInterface > xRef ) th /** searches the container for a ref that returns true on the given search function */ -sal_Bool SvUnoWeakContainer::findRef( +bool SvUnoWeakContainer::findRef( uno::WeakReference< uno::XInterface >& rRef, void* pSearchData, weakref_searchfunc pSearchFunc @@ -80,12 +80,12 @@ sal_Bool SvUnoWeakContainer::findRef( if( (*pSearchFunc)( *pRef, pSearchData ) ) { rRef = *pRef; - return sal_True; + return true; } ++it; } } - return sal_False; + return false; } void SvUnoWeakContainer::dispose() diff --git a/sd/source/ui/unoidl/unowcntr.hxx b/sd/source/ui/unoidl/unowcntr.hxx index 93b93e684eaf..f78ca1743f39 100644 --- a/sd/source/ui/unoidl/unowcntr.hxx +++ b/sd/source/ui/unoidl/unowcntr.hxx @@ -23,7 +23,7 @@ #include <cppuhelper/weakref.hxx> #include <list> -typedef sal_Bool (*weakref_searchfunc)( ::com::sun::star::uno::WeakReference< ::com::sun::star::uno::XInterface > xRef, void* pSearchData ); +typedef bool (*weakref_searchfunc)( ::com::sun::star::uno::WeakReference< ::com::sun::star::uno::XInterface > xRef, void* pSearchData ); typedef ::std::list< ::com::sun::star::uno::WeakReference< ::com::sun::star::uno::XInterface >* > WeakRefList; @@ -42,7 +42,7 @@ public: /** searches the container for a ref that returns true on the given search function */ - sal_Bool findRef( ::com::sun::star::uno::WeakReference< ::com::sun::star::uno::XInterface >& rRef, void* pSearchData, weakref_searchfunc pSearchFunc ); + bool findRef( ::com::sun::star::uno::WeakReference< ::com::sun::star::uno::XInterface >& rRef, void* pSearchData, weakref_searchfunc pSearchFunc ); void dispose(); }; diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 6dc349df77f0..59106a7454e7 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -228,7 +228,7 @@ namespace { const sal_Char* pName, const bool bDefaultValue = false) const { - sal_Bool bValue = mrProperties.getBoolValue( pName, bDefaultValue ); + bool bValue = mrProperties.getBoolValue( pName, bDefaultValue ); return bValue; } @@ -1137,7 +1137,7 @@ namespace { const Rectangle aOutRect (rPrinter.GetPageOffset(), rPrinter.GetOutputSize()); Outliner* pOutliner = rDocument.GetInternalOutliner(); const sal_uInt16 nSavedOutlMode (pOutliner->GetMode()); - const sal_Bool bSavedUpdateMode (pOutliner->GetUpdateMode()); + const bool bSavedUpdateMode (pOutliner->GetUpdateMode()); const Size aSavedPaperSize (pOutliner->GetPaperSize()); pOutliner->Init(OUTLINERMODE_OUTLINEVIEW); @@ -1472,7 +1472,7 @@ private: // When in outline view then apply all pending changes to the model. if (pShell->ISA(OutlineViewShell)) - static_cast<OutlineViewShell*>(pShell)->PrepareClose (sal_False); + static_cast<OutlineViewShell*>(pShell)->PrepareClose (false); // Collect some frequently used data. if (mpOptions->IsDate()) @@ -1659,7 +1659,7 @@ private: Outliner* pOutliner = mrBase.GetDocument()->GetInternalOutliner(); pOutliner->Init(OUTLINERMODE_OUTLINEVIEW); const sal_uInt16 nSavedOutlMode (pOutliner->GetMode()); - const sal_Bool bSavedUpdateMode (pOutliner->GetUpdateMode()); + const bool bSavedUpdateMode (pOutliner->GetUpdateMode()); const Size aSavedPaperSize (pOutliner->GetPaperSize()); const MapMode aSavedMapMode (pOutliner->GetRefMapMode()); pOutliner->SetPaperSize(aOutRect.GetSize()); diff --git a/sd/source/ui/view/GraphicObjectBar.cxx b/sd/source/ui/view/GraphicObjectBar.cxx index 8248808dbd70..e66ad9863782 100644 --- a/sd/source/ui/view/GraphicObjectBar.cxx +++ b/sd/source/ui/view/GraphicObjectBar.cxx @@ -114,14 +114,14 @@ void GraphicObjectBar::Execute( SfxRequest& rReq ) void GraphicObjectBar::GetFilterState( SfxItemSet& rSet ) { const SdrMarkList& rMarkList = mpView->GetMarkedObjectList(); - sal_Bool bEnable = sal_False; + bool bEnable = false; if( rMarkList.GetMarkCount() == 1 ) { SdrObject* pObj = rMarkList.GetMark( 0 )->GetMarkedSdrObj(); if( pObj && pObj->ISA( SdrGrafObj ) && ( ( (SdrGrafObj*) pObj )->GetGraphicType() == GRAPHIC_BITMAP ) ) - bEnable = sal_True; + bEnable = true; } if( !bEnable ) diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 1c7104aec8dd..d7beaabd06b4 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -180,7 +180,7 @@ Outliner::Outliner( SdDrawDocument* pDoc, sal_uInt16 nMode ) nCntrl |= EE_CNTRL_MARKFIELDS; nCntrl |= EE_CNTRL_AUTOCORRECT; - sal_Bool bOnlineSpell = false; + bool bOnlineSpell = false; DrawDocShell* pDocSh = mpDrawDocument->GetDocSh(); @@ -322,7 +322,7 @@ void Outliner::EndSpelling (void) // When in <member>PrepareSpelling()</member> a new outline view has // been created then delete it here. - sal_Bool bViewIsDrawViewShell(pViewShell && pViewShell->ISA(DrawViewShell)); + bool bViewIsDrawViewShell(pViewShell && pViewShell->ISA(DrawViewShell)); if (bViewIsDrawViewShell) { SetStatusEventHdl(Link()); @@ -351,7 +351,7 @@ void Outliner::EndSpelling (void) if(IsModified()) { if(mpView && mpView->ISA(OutlineView)) - static_cast<OutlineView*>(mpView)->PrepareClose(sal_False); + static_cast<OutlineView*>(mpView)->PrepareClose(false); if(mpDrawDocument && !mpDrawDocument->IsChanged()) mpDrawDocument->SetChanged(true); } @@ -386,7 +386,7 @@ bool Outliner::SpellNextDocument (void) else { if (mpView->ISA(OutlineView)) - ((OutlineView*)mpView)->PrepareClose(sal_False); + ((OutlineView*)mpView)->PrepareClose(false); mpDrawDocument->GetDocSh()->SetWaitCursor( true ); Initialize (true); @@ -458,7 +458,7 @@ bool Outliner::SpellNextDocument (void) */ bool Outliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem) { - sal_Bool bEndOfSearch = sal_True; + bool bEndOfSearch = true; mpDrawDocument->GetDocSh()->SetWaitCursor( true ); if (mbPrepareSpellingPending) @@ -1143,7 +1143,7 @@ bool Outliner::ShowWrapArroundDialog (void) if (bShowDialog) { // The question text depends on the search direction. - sal_Bool bImpress = mpDrawDocument!=NULL + bool bImpress = mpDrawDocument!=NULL && mpDrawDocument->GetDocumentType() == DOCUMENT_TYPE_IMPRESS; sal_uInt16 nStringId; if (mbDirectionIsForward) @@ -1235,7 +1235,7 @@ void Outliner::PrepareSpellCheck (void) } } - EnterEditMode( sal_False ); + EnterEditMode( false ); } } @@ -1349,7 +1349,7 @@ void Outliner::SetPage (EditMode eEditMode, sal_uInt16 nPageIndex) -void Outliner::EnterEditMode (sal_Bool bGrabFocus) +void Outliner::EnterEditMode (bool bGrabFocus) { OutlinerView* pOutlinerView = mpImpl->GetOutlinerView(); if (pOutlinerView != NULL) @@ -1546,10 +1546,10 @@ void Outliner::HandleChangedSelection (void) void Outliner::StartConversion( sal_Int16 nSourceLanguage, sal_Int16 nTargetLanguage, - const Font *pTargetFont, sal_Int32 nOptions, sal_Bool bIsInteractive ) + const Font *pTargetFont, sal_Int32 nOptions, bool bIsInteractive ) { ::boost::shared_ptr<ViewShell> pViewShell (mpWeakViewShell.lock()); - sal_Bool bMultiDoc = pViewShell->ISA(DrawViewShell); + bool bMultiDoc = pViewShell->ISA(DrawViewShell); meMode = TEXT_CONVERSION; mbDirectionIsForward = true; diff --git a/sd/source/ui/view/ViewClipboard.cxx b/sd/source/ui/view/ViewClipboard.cxx index f7aea48e6b83..38af3dd9eecf 100644 --- a/sd/source/ui/view/ViewClipboard.cxx +++ b/sd/source/ui/view/ViewClipboard.cxx @@ -91,7 +91,7 @@ SdPage* ViewClipboard::GetFirstMasterPage (const SdTransferable& rTransferable) for ( pIter = rBookmarks.begin(); pIter != rBookmarks.end(); ++pIter ) { OUString sName (*pIter); - sal_Bool bIsMasterPage; + bool bIsMasterPage; // SdPage* GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind); // sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const; @@ -164,8 +164,8 @@ void ViewClipboard::AssignMasterPage ( pPage->GetPageNum() / 2, sLayoutName, pSourceDocument, - sal_False, // Exchange the master page of only the target page. - sal_False // Keep unused master pages. + false, // Exchange the master page of only the target page. + false // Keep unused master pages. ); } @@ -202,7 +202,7 @@ sal_uInt16 ViewClipboard::InsertSlides ( SdDrawDocument& rDoc = mrView.GetDoc(); sal_uInt16 nInsertPgCnt = 0; - sal_Bool bMergeMasterPages = !rTransferable.HasSourceDoc( &rDoc ); + bool bMergeMasterPages = !rTransferable.HasSourceDoc( &rDoc ); // Prepare the insertion. const std::vector<OUString> *pBookmarkList = NULL; @@ -230,7 +230,7 @@ sal_uInt16 ViewClipboard::InsertSlides ( { const SolarMutexGuard aGuard; ::sd::Window* pWin = mrView.GetViewShell()->GetActiveWindow(); - const sal_Bool bWait = pWin && pWin->IsWait(); + const bool bWait = pWin && pWin->IsWait(); if( bWait ) pWin->LeaveWait(); @@ -238,14 +238,14 @@ sal_uInt16 ViewClipboard::InsertSlides ( rDoc.InsertBookmarkAsPage( pBookmarkList ? *pBookmarkList : std::vector<OUString>(), NULL, - sal_False, - sal_False, + false, + false, nInsertPosition, (&rTransferable == SD_MOD()->pTransferDrag), pDataDocSh, - sal_True, + true, bMergeMasterPages, - sal_False); + false); if( bWait ) pWin->EnterWait(); diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 833c12aedf81..96c15633a346 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -585,7 +585,7 @@ sal_uInt16 ViewShellBase::SetPrinter ( pNewPrinter->SetMapMode(aMap); Size aNewSize = pNewPrinter->GetOutputSize(); - sal_Bool bScaleAll = sal_False; + bool bScaleAll = false; if ( bIsAPI ) { WarningBox aWarnBox ( @@ -1292,7 +1292,7 @@ void ViewShellBase::Implementation::SetPaneVisibility ( // Determine the new visibility state. const SfxItemSet* pArguments = rRequest.GetArgs(); - sal_Bool bShowChildWindow; + bool bShowChildWindow; sal_uInt16 nSlotId = rRequest.GetSlot(); if (pArguments != NULL) bShowChildWindow = static_cast<const SfxBoolItem&>( diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx index 203f1a57854a..f1111833cf22 100644 --- a/sd/source/ui/view/ViewShellImplementation.cxx +++ b/sd/source/ui/view/ViewShellImplementation.cxx @@ -102,14 +102,14 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( sal_uInt8 aBckgrnd = rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRND), false); sal_uInt8 aBckgrndObj = rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRNDOBJ), false); SetOfByte aVisibleLayers; - sal_Bool bHandoutMode = sal_False; + bool bHandoutMode = false; SdPage* pHandoutMPage = NULL; OUString aNewName; AutoLayout aNewAutoLayout; - sal_Bool bBVisible; - sal_Bool bBObjsVisible; + bool bBVisible; + bool bBObjsVisible; const SfxItemSet* pArgs = rRequest.GetArgs(); if (pCurrentPage != NULL && pCurrentPage->TRG_HasMasterPage()) @@ -156,7 +156,7 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( } if (ePageKind == PK_HANDOUT) { - bHandoutMode = sal_True; + bHandoutMode = true; pHandoutMPage = pDocument->GetMasterSdPage(0, PK_HANDOUT); } } @@ -202,7 +202,7 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( } } - pCurrentPage->SetAutoLayout(aNewAutoLayout, sal_True); + pCurrentPage->SetAutoLayout(aNewAutoLayout, true); aBckgrnd = rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRND), false); aBckgrndObj = rLayerAdmin.GetLayerID(SD_RESSTR(STR_LAYER_BCKGRNDOBJ), false); @@ -212,17 +212,17 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( } else { - pHandoutMPage->SetAutoLayout(aNewAutoLayout, sal_True); + pHandoutMPage->SetAutoLayout(aNewAutoLayout, true); } mrViewShell.GetViewFrame()->GetDispatcher()->Execute(SID_SWITCHPAGE, SFX_CALLMODE_ASYNCHRON | SFX_CALLMODE_RECORD); - sal_Bool bSetModified = sal_True; + bool bSetModified = true; if (pArgs && pArgs->Count() == 1) { - bSetModified = (sal_Bool) ((SfxBoolItem&) pArgs->Get(SID_MODIFYPAGE)).GetValue(); + bSetModified = ((SfxBoolItem&) pArgs->Get(SID_MODIFYPAGE)).GetValue(); } pUndoManager->AddUndoAction( new UndoAutoLayoutPosAndSize( *pUndoPage ) ); diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index 1fa6374a3ebd..af9f4de67806 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -128,10 +128,10 @@ void DrawView::ModelHasChanged() * rectangle of a masterpage into templates, otherwise pass on baseclass. */ -sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, - sal_Bool bReplaceAll) +bool DrawView::SetAttributes(const SfxItemSet& rSet, + bool bReplaceAll) { - sal_Bool bOk = sal_False; + bool bOk = false; // is there a masterpage edit? if ( mpDrawViewShell && mpDrawViewShell->GetEditMode() == EM_MASTERPAGE ) @@ -168,7 +168,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, pSheet->GetItemSet().Put(aTempSet); pSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED)); - bOk = sal_True; + bOk = true; } else if (eObjKind == OBJ_OUTLINETEXT) { @@ -241,7 +241,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, mpDocSh->GetUndoManager()->LeaveListAction(); - bOk = sal_True; + bOk = true; } else { @@ -281,7 +281,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, pSheet->GetItemSet().Put(aTempSet,false); pSheet->Broadcast(SfxSimpleHint(SFX_HINT_DATACHANGED)); - bOk = sal_True; + bOk = true; } else if (eObjKind == OBJ_OUTLINETEXT) { @@ -336,7 +336,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, nWhich = aWhichIter.NextWhich(); } - bOk = sal_True; + bOk = true; } } } @@ -395,7 +395,7 @@ void DrawView::Notify(SfxBroadcaster& rBC, const SfxHint& rHint) * Lock/Unlock PageOrderChangedHint */ -void DrawView::BlockPageOrderChangedHint(sal_Bool bBlock) +void DrawView::BlockPageOrderChangedHint(bool bBlock) { if (bBlock) mnPOCHSmph++; @@ -411,19 +411,19 @@ void DrawView::BlockPageOrderChangedHint(sal_Bool bBlock) * masterpage. */ -sal_Bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr) +bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr) { - sal_Bool bResult = sal_True; + bool bResult = true; // is there a masterpage edit? if (mpDrawViewShell && mpDrawViewShell->GetEditMode() == EM_MASTERPAGE) { - if (IsPresObjSelected(sal_False, sal_True)) + if (IsPresObjSelected(false, true)) { InfoBox(mpDrawViewShell->GetActiveWindow(), SD_RESSTR(STR_ACTION_NOTPOSSIBLE)).Execute(); - bResult = sal_False; + bResult = false; } else { @@ -449,7 +449,7 @@ void DrawView::CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::co mpVDev = NULL; } - sal_Bool bStandardPaint = sal_True; + bool bStandardPaint = true; SdDrawDocument* pDoc = mpDocShell->GetDoc(); if( pDoc && pDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) @@ -462,7 +462,7 @@ void DrawView::CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::co { if( pShowWindow == pOutDev ) PresPaint(rReg); - bStandardPaint = sal_False; + bStandardPaint = false; } } } diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx index 13b1def5845b..73852d01f7ac 100644 --- a/sd/source/ui/view/drtxtob.cxx +++ b/sd/source/ui/view/drtxtob.cxx @@ -155,8 +155,8 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) sal_uInt16 nWhich = aIter.FirstWhich(); SfxItemSet aAttrSet( mpView->GetDoc().GetPool() ); SvtLanguageOptions aLangOpt; - sal_Bool bDisableParagraphTextDirection = !aLangOpt.IsCTLFontEnabled(); - sal_Bool bDisableVerticalText = !aLangOpt.IsVerticalTextEnabled(); + bool bDisableParagraphTextDirection = !aLangOpt.IsCTLFontEnabled(); + bool bDisableVerticalText = !aLangOpt.IsVerticalTextEnabled(); mpView->GetAttributes( aAttrSet ); @@ -249,10 +249,10 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) case SID_OUTLINE_UP: case SID_OUTLINE_DOWN: { - sal_Bool bDisableLeft = sal_True; - sal_Bool bDisableRight = sal_True; - sal_Bool bDisableUp = sal_True; - sal_Bool bDisableDown = sal_True; + bool bDisableLeft = true; + bool bDisableRight = true; + bool bDisableUp = true; + bool bDisableDown = true; OutlinerView* pOLV = mpView->GetTextEditOutlinerView(); if (mpView->ISA(OutlineView)) @@ -261,7 +261,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) mpViewShell->GetActiveWindow()); } - sal_Bool bOutlineViewSh = mpViewShell->ISA(OutlineViewShell); + bool bOutlineViewSh = mpViewShell->ISA(OutlineViewShell); if (pOLV && ( pOLV->GetOutliner()->GetMode() == OUTLINERMODE_OUTLINEOBJECT || bOutlineViewSh ) ) @@ -274,7 +274,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) Paragraph* pPara = aSelList.empty() ? NULL : *(aSelList.begin()); // find out if we are a OutlineView - sal_Bool bIsOutlineView(OUTLINERMODE_OUTLINEVIEW == pOLV->GetOutliner()->GetMode()); + bool bIsOutlineView(OUTLINERMODE_OUTLINEVIEW == pOLV->GetOutliner()->GetMode()); // This is ONLY for OutlineViews if(bIsOutlineView) @@ -284,7 +284,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) if(pOutl->GetAbsPos(pPara) > 1 || ( pOutl->HasParaFlag(pPara,PARAFLAG_ISPAGE) && pOutl->GetAbsPos(pPara) > 0 ) ) { // not at top - bDisableUp = sal_False; + bDisableUp = false; } } else @@ -293,7 +293,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) if(pOutl->GetAbsPos(pPara) > 0) { // not at top - bDisableUp = sal_False; + bDisableUp = false; } } @@ -306,14 +306,14 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) if (nDepth > 0 || (bOutlineViewSh && (nDepth <= 0) && !pOutl->HasParaFlag( pPara, PARAFLAG_ISPAGE )) ) { // not minimum depth - bDisableLeft = sal_False; + bDisableLeft = false; } if( (nDepth < pOLV->GetOutliner()->GetMaxDepth() && ( !bOutlineViewSh || pOutl->GetAbsPos(pPara) != 0 )) || (bOutlineViewSh && (nDepth <= 0) && pOutl->HasParaFlag( pPara, PARAFLAG_ISPAGE ) && pOutl->GetAbsPos(pPara) != 0) ) { // not maximum depth and not at top - bDisableRight = sal_False; + bDisableRight = false; } } @@ -321,7 +321,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) ( pOutl->GetParagraphCount() > 1 || !bOutlineViewSh) ) { // not last paragraph - bDisableDown = sal_False; + bDisableDown = false; } // disable when first para and 2nd is not a title @@ -334,7 +334,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) && !pOutl->HasParaFlag( pOutl->GetParagraph(1), PARAFLAG_ISPAGE ) ) { // Needs to be disabled - bDisableDown = sal_True; + bDisableDown = true; } } @@ -359,13 +359,13 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) } else { - sal_Bool bLeftToRight = sal_True; + bool bLeftToRight = true; SdrOutliner* pOutl = mpView->GetTextEditOutliner(); if( pOutl ) { if( pOutl->IsVertical() ) - bLeftToRight = sal_False; + bLeftToRight = false; } else bLeftToRight = ( (const SvxWritingModeItem&) aAttrSet.Get( SDRATTR_TEXTDIRECTION ) ).GetValue() == com::sun::star::text::WritingMode_LR_TB; @@ -374,7 +374,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( SID_TEXTDIRECTION_TOP_TO_BOTTOM, !bLeftToRight ) ); if( !bLeftToRight ) - bDisableParagraphTextDirection = sal_True; + bDisableParagraphTextDirection = true; } } break; @@ -532,12 +532,12 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) { SdDrawDocument& rDoc = mpView->GetDoc(); ::com::sun::star::text::WritingMode eMode = rDoc.GetDefaultWritingMode(); - sal_Bool bIsLeftToRight(sal_False); + bool bIsLeftToRight(false); if(::com::sun::star::text::WritingMode_LR_TB == eMode || ::com::sun::star::text::WritingMode_TB_RL == eMode) { - bIsLeftToRight = sal_True; + bIsLeftToRight = true; } rSet.Put( SfxBoolItem( SID_ATTR_PARA_LEFT_TO_RIGHT, bIsLeftToRight ) ); diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 9008f55f840f..322e7563d7b3 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -541,7 +541,7 @@ void TextObjectBar::Execute( SfxRequest &rReq ) else if ( nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT || nSlot == SID_ATTR_PARA_RIGHT_TO_LEFT ) { - sal_Bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT; + bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT; sal_uInt16 nAdjust = SVX_ADJUST_LEFT; if( SFX_ITEM_ON == aEditAttr.GetItemState(EE_PARA_JUST, true, &pPoolItem ) ) diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 55c6fcc3fd3b..6ceeca8a4cb3 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -257,7 +257,7 @@ void DrawViewShell::SelectionHasChanged (void) // Invalidate for every subshell GetViewShellBase().GetViewShellManager()->InvalidateAllSubShells(this); - mpDrawView->UpdateSelectionClipboard( sal_False ); + mpDrawView->UpdateSelectionClipboard( false ); GetViewShellBase().GetDrawController().FireSelectionChangeListener(); } @@ -269,7 +269,7 @@ void DrawViewShell::SetZoom( long nZoom ) { // Make sure that the zoom factor will not be recalculated on // following window resizings. - mbZoomOnPage = sal_False; + mbZoomOnPage = false; ViewShell::SetZoom( nZoom ); GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOM ); GetViewFrame()->GetBindings().Invalidate( SID_ATTR_ZOOMSLIDER ); @@ -293,7 +293,7 @@ void DrawViewShell::SetZoomRect( const Rectangle& rZoomRect ) * discover an refreshed text objext. */ -bool DrawViewShell::PrepareClose( sal_Bool bUI ) +bool DrawViewShell::PrepareClose( bool bUI ) { if ( !ViewShell::PrepareClose(bUI) ) return false; @@ -481,7 +481,7 @@ bool DrawViewShell::IsLayerModeActive (void) const * Generate horizontal ruler */ -SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, sal_Bool bIsFirst) +SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, bool bIsFirst) { Ruler* pRuler; WinBits aWBits; @@ -733,9 +733,9 @@ ErrCode DrawViewShell::DoVerb(long nVerb) * Activate OLE-object */ -sal_Bool DrawViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) +bool DrawViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) { - sal_Bool bActivated = sal_False; + bool bActivated = false; if ( !GetDocSh()->IsUIActive() ) { @@ -759,7 +759,7 @@ sal_Bool DrawViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) void LclResetFlag (bool& rbFlag) {rbFlag = false;} -sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) +bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) { /** Under some circumstances there are nested calls to SwitchPage() and may crash the application (activation of form controls when the @@ -768,7 +768,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) would jump to the wrong page anyway.) */ if (mbIsInSwitchPage) - return sal_False; + return false; mbIsInSwitchPage = true; comphelper::ScopeGuard aGuard (::boost::bind(LclResetFlag, ::boost::ref(mbIsInSwitchPage))); @@ -780,10 +780,10 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) ::std::mem_fun(&DrawViewShell::SwitchPage), this, nSelectedPage)); - return sal_False; + return false; } - sal_Bool bOK = sal_False; + bool bOK = false; // With the current implementation of FuSlideShow there is a problem // when it dsplays the show in a window: When the show is stopped it @@ -812,7 +812,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) { ModifyGuard aGuard2( GetDoc() ); - bOK = sal_True; + bOK = true; if (mpActualPage) { @@ -835,7 +835,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) && sPageText == maTabControl.GetPageText(nSelectedPage+1)) { // this slide is already visible - return sal_True; + return true; } } } @@ -857,7 +857,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) && maTabControl.GetPageText(nSelectedPage+1).equals(pNewPage->GetName())) { // this slide is already visible - return sal_True; + return true; } } } @@ -906,7 +906,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) for (sal_uInt16 i = 0; i < GetDoc()->GetSdPageCount(mePageKind); i++) { // deselect all pages - GetDoc()->SetSelected( GetDoc()->GetSdPage(i, mePageKind), sal_False); + GetDoc()->SetSelected( GetDoc()->GetSdPage(i, mePageKind), false); } if (!mpActualPage) @@ -917,7 +917,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) // also select this page (mpActualPage always points at a drawing page, // never at a masterpage) - GetDoc()->SetSelected(mpActualPage, sal_True); + GetDoc()->SetSelected(mpActualPage, true); rtl::Reference< sd::SlideShow > xSlideshow( SlideShow::GetSlideShow( GetDoc() ) ); if( !xSlideshow.is() || !xSlideshow->isRunning() || ( xSlideshow->getAnimationMode() != ANIMATIONMODE_SHOW ) ) @@ -934,7 +934,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) /********************************************************************** * PAGEMODE **********************************************************************/ - GetDoc()->SetSelected(mpActualPage, sal_True); + GetDoc()->SetSelected(mpActualPage, true); SdrPageView* pPageView = mpDrawView->GetSdrPageView(); @@ -1110,7 +1110,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) * Check if page change is allowed */ -sal_Bool DrawViewShell::IsSwitchPageAllowed() const +bool DrawViewShell::IsSwitchPageAllowed() const { bool bOK = true; diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index f6a0f293de8a..7a6c14f7c935 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -331,7 +331,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) if( pItem ) { SfxItemSet aSet( GetPool(), EE_PARA_HYPHENATE, EE_PARA_HYPHENATE ); - sal_Bool bValue = ( (const SfxBoolItem*) pItem)->GetValue(); + bool bValue = ( (const SfxBoolItem*) pItem)->GetValue(); aSet.Put( SfxBoolItem( EE_PARA_HYPHENATE, bValue ) ); mpDrawView->SetAttributes( aSet ); } @@ -339,7 +339,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) { OSL_FAIL(" no value for hyphenation!"); SfxItemSet aSet( GetPool(), EE_PARA_HYPHENATE, EE_PARA_HYPHENATE ); - sal_Bool bValue = sal_True; + bool bValue = true; aSet.Put( SfxBoolItem( EE_PARA_HYPHENATE, bValue ) ); mpDrawView->SetAttributes( aSet ); } @@ -379,7 +379,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) // Create shapes for the default layout. SdPage* pMasterPage = GetDoc()->GetMasterSdPage( nIndex, PK_STANDARD); - pMasterPage->CreateTitleAndLayout (sal_True,sal_True); + pMasterPage->CreateTitleAndLayout (true,true); } } @@ -505,7 +505,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) Size aSize (pWidth->GetValue (), pHeight->GetValue ()); - SetupPage (aSize, 0, 0, 0, 0, sal_True, sal_False, pScaleAll->GetValue ()); + SetupPage (aSize, 0, 0, 0, 0, true, false, pScaleAll->GetValue ()); rReq.Ignore (); break; } @@ -533,7 +533,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) SetupPage (aEmptySize, pLeft->GetValue (), pRight->GetValue (), pUpper->GetValue (), pLower->GetValue (), - sal_False, sal_True, pScaleAll->GetValue ()); + false, true, pScaleAll->GetValue ()); rReq.Ignore (); break; } @@ -602,7 +602,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_ATTR_ZOOM: { const SfxItemSet* pArgs = rReq.GetArgs(); - mbZoomOnPage = sal_False; + mbZoomOnPage = false; if ( pArgs ) { @@ -834,7 +834,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } pSet = new SfxItemSet( GetPool(), EE_ITEMS_START, EE_ITEMS_END ); - mpDrawView->SetAttributes( *pSet, sal_True ); + mpDrawView->SetAttributes( *pSet, true ); } else { @@ -862,7 +862,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } pSet = new SfxItemSet( GetPool() ); - mpDrawView->SetAttributes( *pSet, sal_True ); + mpDrawView->SetAttributes( *pSet, true ); sal_uLong j = 0; @@ -933,7 +933,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) FuPoor::HITPIX, 0 ) ).Width(); sal_uInt16 nHelpLine; - mbMousePosFreezed = sal_False; + mbMousePosFreezed = false; if( mpDrawView->PickHelpLine( aMPos, nHitLog, *GetActiveWindow(), nHelpLine, pPV) ) { @@ -1180,7 +1180,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_COPYOBJECTS: { - if ( mpDrawView->IsPresObjSelected(sal_False, sal_True) ) + if ( mpDrawView->IsPresObjSelected(false, true) ) { ::sd::Window* pWindow = GetActiveWindow(); InfoBox(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE)).Execute(); @@ -1223,7 +1223,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_ZOOM_OUT: case SID_ZOOM_PANNING: { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; SetCurrentFunction( FuZoom::Create(this, GetActiveWindow(), mpDrawView, GetDoc(), rReq) ); // finishes itself, no Cancel() needed! Invalidate( SID_ZOOM_TOOLBOX ); @@ -1317,7 +1317,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_CONNECTION_NEW_ROUTING: { SfxItemSet aDefAttr( GetPool(), SDRATTR_EDGELINE1DELTA, SDRATTR_EDGELINE3DELTA ); - GetView()->SetAttributes( aDefAttr, sal_True ); // (ReplaceAll) + GetView()->SetAttributes( aDefAttr, true ); // (ReplaceAll) Cancel(); rReq.Done(); @@ -1351,7 +1351,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_TWAIN_TRANSFER: { - sal_Bool bDone = sal_False; + bool bDone = false; if( mxScannerManager.is() ) { @@ -1362,7 +1362,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) if( aContexts.getLength() ) { mxScannerManager->startScan( aContexts.getConstArray()[ 0 ], mxScannerListener ); - bDone = sal_True; + bDone = true; } } catch( ... ) @@ -1419,9 +1419,9 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) sal_uInt16 nLayer = nLayerCnt - 2 + 1; OUString aLayerName = SD_RESSTR(STR_LAYER) + OUString::number(nLayer); OUString aLayerTitle, aLayerDesc; - sal_Bool bIsVisible = sal_False; - sal_Bool bIsLocked = sal_False; - sal_Bool bIsPrintable = sal_False; + bool bIsVisible = false; + bool bIsLocked = false; + bool bIsPrintable = false; const SfxItemSet* pArgs = rReq.GetArgs(); @@ -1444,7 +1444,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) pDlg->SetHelpId( SD_MOD()->GetSlotPool()->GetSlot( SID_INSERTLAYER )->GetCommand() ); // test for already existing names - sal_Bool bLoop = sal_True; + bool bLoop = true; while( bLoop && pDlg->Execute() == RET_OK ) { pDlg->GetAttr( aNewAttr ); @@ -1461,7 +1461,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) aWarningBox.Execute(); } else - bLoop = sal_False; + bLoop = false; } if( bLoop ) // was canceled { @@ -1574,10 +1574,10 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) OUString aOldLayerTitle(aLayerTitle); OUString aOldLayerDesc(aLayerDesc); - sal_Bool bIsVisible, bIsLocked, bIsPrintable; - sal_Bool bOldIsVisible = bIsVisible = mpDrawView->IsLayerVisible(aLayerName); - sal_Bool bOldIsLocked = bIsLocked = mpDrawView->IsLayerLocked(aLayerName); - sal_Bool bOldIsPrintable = bIsPrintable = mpDrawView->IsLayerPrintable(aLayerName); + bool bIsVisible, bIsLocked, bIsPrintable; + bool bOldIsVisible = bIsVisible = mpDrawView->IsLayerVisible(aLayerName); + bool bOldIsLocked = bIsLocked = mpDrawView->IsLayerLocked(aLayerName); + bool bOldIsPrintable = bIsPrintable = mpDrawView->IsLayerPrintable(aLayerName); const SfxItemSet* pArgs = rReq.GetArgs(); @@ -1616,7 +1616,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) pDlg->SetHelpId( SD_MOD()->GetSlotPool()->GetSlot( SID_MODIFYLAYER )->GetCommand() ); // test for already existing names - sal_Bool bLoop = sal_True; + bool bLoop = true; sal_uInt16 nRet = 0; while( bLoop && ( (nRet = pDlg->Execute()) == RET_OK ) ) { @@ -1634,7 +1634,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) aWarningBox.Execute(); } else - bLoop = sal_False; + bLoop = false; } switch (nRet) { @@ -1971,7 +1971,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) // it is necessary to split the actions here SvxFieldData* pField = pDlg->GetField(); ESelection aSel = pOLV->GetSelection(); - sal_Bool bSelectionWasModified(sal_False); + bool bSelectionWasModified(false); if( pField ) { @@ -1979,7 +1979,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) if( aSel.nStartPos == aSel.nEndPos ) { - bSelectionWasModified = sal_True; + bSelectionWasModified = true; aSel.nEndPos++; pOLV->SetSelection( aSel ); } @@ -2041,7 +2041,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) case SID_GROUP: // BASIC { - if ( mpDrawView->IsPresObjSelected( sal_True, sal_True, sal_True ) ) + if ( mpDrawView->IsPresObjSelected( true, true, true ) ) { ::sd::Window* pWindow = GetActiveWindow(); InfoBox(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE)).Execute(); @@ -3170,7 +3170,7 @@ void DrawViewShell::GetStatePropPanelAttr(SfxItemSet& rSet) case SID_TABLE_VERT_NONE: case SID_TABLE_VERT_CENTER: case SID_TABLE_VERT_BOTTOM: - sal_Bool bContour = sal_False; + bool bContour = false; SfxItemState eConState = aAttrs.GetItemState( SDRATTR_TEXT_CONTOURFRAME ); if( eConState != SFX_ITEM_DONTCARE ) { @@ -3185,7 +3185,7 @@ void DrawViewShell::GetStatePropPanelAttr(SfxItemSet& rSet) if(SFX_ITEM_DONTCARE != eVState) { SdrTextVertAdjust eTVA = (SdrTextVertAdjust)((const SdrTextVertAdjustItem&)aAttrs.Get(SDRATTR_TEXT_VERTADJUST)).GetValue(); - sal_Bool bSet = (nSlotId == SID_TABLE_VERT_NONE && eTVA == SDRTEXTVERTADJUST_TOP) || + bool bSet = (nSlotId == SID_TABLE_VERT_NONE && eTVA == SDRTEXTVERTADJUST_TOP) || (nSlotId == SID_TABLE_VERT_CENTER && eTVA == SDRTEXTVERTADJUST_CENTER) || (nSlotId == SID_TABLE_VERT_BOTTOM && eTVA == SDRTEXTVERTADJUST_BOTTOM); rSet.Put(SfxBoolItem(nSlotId, bSet)); diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index 9b076ed89541..885011dca050 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -894,7 +894,7 @@ void DrawViewShell::GetRulerState(SfxItemSet& rSet) maMarkRect = mpDrawView->GetAllMarkedRect(); - const sal_Bool bRTL = GetDoc() && GetDoc()->GetDefaultWritingMode() == ::com::sun::star::text::WritingMode_RL_TB; + const bool bRTL = GetDoc() && GetDoc()->GetDefaultWritingMode() == ::com::sun::star::text::WritingMode_RL_TB; rSet.Put(SfxBoolItem(SID_RULER_TEXT_RIGHT_TO_LEFT, bRTL)); if( mpDrawView->AreObjectsMarked() ) diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index 14cffd325869..8289adeba1b4 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -124,9 +124,9 @@ void DrawViewShell::DeleteActualLayer() -sal_Bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, ::sd::Window* pWin) +bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, ::sd::Window* pWin) { - sal_Bool bRet = sal_False; + bool bRet = false; if ( !IsInputLocked() || ( rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE ) ) { @@ -151,7 +151,7 @@ sal_Bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, ::sd::Window* pWin) // look for a new candidate, a successor of pOldObj SdrObjListIter aIter(*pActualPage, IM_DEEPNOGROUPS); - sal_Bool bDidVisitOldObject(sal_False); + bool bDidVisitOldObject(false); while(aIter.IsMore() && !pCandidate) { @@ -171,7 +171,7 @@ sal_Bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, ::sd::Window* pWin) if(pObj == pOldObj) { - bDidVisitOldObject = sal_True; + bDidVisitOldObject = true; } } } @@ -222,7 +222,7 @@ void DrawViewShell::StartRulerDrag ( if ( rRuler.GetExtraRect().IsInside(rMEvt.GetPosPixel()) ) { mpDrawView->BegSetPageOrg(aWPos); - mbIsRulerDrag = sal_True; + mbIsRulerDrag = true; } else { @@ -240,7 +240,7 @@ void DrawViewShell::StartRulerDrag ( eKind = SDRHELPLINE_VERTICAL; mpDrawView->BegDragHelpLine(aWPos, eKind); - mbIsRulerDrag = sal_True; + mbIsRulerDrag = true; } } @@ -280,7 +280,7 @@ void DrawViewShell::MouseButtonDown(const MouseEvent& rMEvt, // the contex menu is closed by VCL asynchronously which in the end // would work on deleted objects or the context menu has no parent anymore) SfxInPlaceClient* pIPClient = GetViewShell()->GetIPClient(); - sal_Bool bIsOleActive = ( pIPClient && pIPClient->IsObjectInPlaceActive() ); + bool bIsOleActive = ( pIPClient && pIPClient->IsObjectInPlaceActive() ); if ( bIsOleActive && PopupMenu::IsInExecute() ) return; @@ -309,7 +309,7 @@ void DrawViewShell::MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin) if ( !aOutputArea.IsInside(rMEvt.GetPosPixel()) ) { - sal_Bool bInsideOtherWindow = sal_False; + bool bInsideOtherWindow = false; if (mpContentWindow.get() != NULL) { @@ -318,7 +318,7 @@ void DrawViewShell::MouseMove(const MouseEvent& rMEvt, ::sd::Window* pWin) Point aPos = mpContentWindow->GetPointerPosPixel(); if ( aOutputArea.IsInside(aPos) ) - bInsideOtherWindow = sal_True; + bInsideOtherWindow = true; } if (! GetActiveWindow()->HasFocus ()) @@ -439,7 +439,7 @@ void DrawViewShell::MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) } GetActiveWindow()->ReleaseMouse(); - mbIsRulerDrag = sal_False; + mbIsRulerDrag = false; } else ViewShell::MouseButtonUp(rMEvt, pWin); @@ -457,7 +457,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) // deactivate the inplace client without any problem regarding parent // windows and code on the stack. SfxInPlaceClient* pIPClient = GetViewShell()->GetIPClient(); - sal_Bool bIsOleActive = ( pIPClient && pIPClient->IsObjectInPlaceActive() ); + bool bIsOleActive = ( pIPClient && pIPClient->IsObjectInPlaceActive() ); if ( bIsOleActive && ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU )) { // Deactivate OLE object @@ -485,7 +485,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) if( GetActiveWindow() ) aPos = GetActiveWindow()->PixelToLogic( rCEvt.GetMousePosPixel() ); - if( !mpDrawView->InsertData( aDataHelper, aPos, nDnDAction, sal_False ) ) + if( !mpDrawView->InsertData( aDataHelper, aPos, nDnDAction, false ) ) { INetBookmark aINetBookmark( aEmptyStr, aEmptyStr ); @@ -505,7 +505,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) pWin != NULL && !mpDrawView->IsAction() && !SD_MOD()->GetWaterCan() ) { sal_uInt16 nSdResId = 0; // ResourceID for popup menu - sal_Bool bGraphicShell = this->ISA(GraphicViewShell); + bool bGraphicShell = this->ISA(GraphicViewShell); // is there a snap object under the cursor? SdrPageView* pPV; @@ -564,10 +564,10 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) SvxFieldItem aFieldItem( *pField, EE_FEATURE_FIELD ); // select field, so that it will be deleted on insert ESelection aSel = pOLV->GetSelection(); - sal_Bool bSel = sal_True; + bool bSel = true; if( aSel.nStartPos == aSel.nEndPos ) { - bSel = sal_False; + bSel = false; aSel.nEndPos++; } pOLV->SetSelection( aSel ); @@ -794,7 +794,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) //open context menu at that point GetViewFrame()->GetDispatcher()->ExecutePopup(SdResId(nSdResId),GetActiveWindow(),&aMenuPos); } - mbMousePosFreezed = sal_False; + mbMousePosFreezed = false; } } else diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index ea3623b578d9..2e98ec506d2b 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -127,11 +127,11 @@ void DrawViewShell::ArrangeGUIElements (void) OSL_ASSERT (GetViewShell()!=NULL); Client* pIPClient = static_cast<Client*>(GetViewShell()->GetIPClient()); - sal_Bool bClientActive = sal_False; + bool bClientActive = false; if ( pIPClient && pIPClient->IsObjectInPlaceActive() ) - bClientActive = sal_True; + bClientActive = true; - sal_Bool bInPlaceActive = GetViewFrame()->GetFrame().IsInPlace(); + bool bInPlaceActive = GetViewFrame()->GetFrame().IsInPlace(); if ( mbZoomOnPage && !bInPlaceActive && !bClientActive ) { @@ -235,7 +235,7 @@ void DrawViewShell::ReadFrameViewData(FrameView* pView) if (mpDrawView->IsSolidDragging() != pView->IsSolidDragging() ) mpDrawView->SetSolidDragging( pView->IsSolidDragging() ); - if ((mpDrawView->IsQuickTextEditMode() ? 1 : 0) != pView->IsQuickEdit()) + if (mpDrawView->IsQuickTextEditMode() != pView->IsQuickEdit()) mpDrawView->SetQuickTextEditMode( pView->IsQuickEdit() ); // #i26631# @@ -288,7 +288,7 @@ void DrawViewShell::ReadFrameViewData(FrameView* pView) } EditMode eNewEditMode = pView->GetViewShEditMode(mePageKind); - sal_Bool bNewLayerMode = pView->IsLayerMode(); + bool bNewLayerMode = pView->IsLayerMode(); if(IsLayerModeActive() && bNewLayerMode) { @@ -456,7 +456,7 @@ void DrawViewShell::Paint(const Rectangle& rRect, ::sd::Window* pWin) void DrawViewShell::SetZoomFactor(const Fraction& rZoomX, const Fraction& rZoomY) { ViewShell::SetZoomFactor(rZoomX, rZoomY); - mbZoomOnPage = sal_False; + mbZoomOnPage = false; Point aOrigin = GetActiveWindow()->GetViewOrigin(); GetActiveWindow()->SetWinViewPos(aOrigin); } @@ -471,7 +471,7 @@ void DrawViewShell::HidePage() -void DrawViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse ) +void DrawViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, bool bBrowse ) { WriteFrameViewData(); @@ -480,10 +480,10 @@ void DrawViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < :: const sal_Int32 nIndex = rSequence.getLength(); rSequence.realloc( nIndex + 1 ); rSequence[nIndex].Name = sUNO_View_ZoomOnPage ; - rSequence[nIndex].Value <<= (sal_Bool)mbZoomOnPage; + rSequence[nIndex].Value <<= mbZoomOnPage; } -void DrawViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse ) +void DrawViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, bool bBrowse ) { WriteFrameViewData(); @@ -495,7 +495,7 @@ void DrawViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence { if ( pValue->Name == sUNO_View_ZoomOnPage ) { - sal_Bool bZoomPage = sal_False; + bool bZoomPage = false; if( pValue->Value >>= bZoomPage ) { mbZoomOnPage = bZoomPage; diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx index 723bb2d4cec9..04b83a16764a 100644 --- a/sd/source/ui/view/drviews6.cxx +++ b/sd/source/ui/view/drviews6.cxx @@ -354,7 +354,7 @@ void DrawViewShell::GetBmpMaskState( SfxItemSet& rSet ) const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); const SdrObject* pObj = NULL; sal_uInt16 nId = SvxBmpMaskChildWindow::GetChildWindowId(); - sal_Bool bEnable = sal_False; + bool bEnable = false; if ( GetViewFrame()->HasChildWindow( nId ) ) { @@ -372,7 +372,7 @@ void DrawViewShell::GetBmpMaskState( SfxItemSet& rSet ) !((SdrGrafObj*) pObj)->IsEPS() && !mpDrawView->IsTextEdit() ) { - bEnable = sal_True; + bEnable = true; } // put value diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 651a37774bcc..749a0cb07889 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -220,7 +220,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) } ViewShell::GetMenuState(rSet); - sal_Bool bDisableVerticalText = !SvtLanguageOptions().IsVerticalTextEnabled(); + bool bDisableVerticalText = !SvtLanguageOptions().IsVerticalTextEnabled(); if ( bDisableVerticalText ) { @@ -242,7 +242,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) SetChildWindowState( rSet ); // map images of toolboxes (only zoom) - UpdateToolboxImages( rSet, sal_False ); + UpdateToolboxImages( rSet, false ); if(HasCurrentFunction()) { @@ -393,7 +393,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) || SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_REHEARSE_TIMINGS ) ) { - sal_Bool bDisable = sal_True; + bool bDisable = true; sal_uInt16 nCount = GetDoc()->GetSdPageCount( PK_STANDARD ); for( sal_uInt16 i = 0; i < nCount && bDisable; i++ ) @@ -401,7 +401,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD); if( !pPage->IsExcluded() ) - bDisable = sal_False; + bDisable = false; } if( bDisable || GetDocSh()->IsPreview()) @@ -622,7 +622,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) mbPastePossible = ( aDataHelper.GetFormatCount() != 0 ); } else - mbPastePossible = sal_False; + mbPastePossible = false; } if( !mbPastePossible ) @@ -754,7 +754,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) rSet.GetItemState(SID_TITLE_MASTERPAGE) == SFX_ITEM_AVAILABLE) { // Is there a page with the AutoLayout "Title"? - sal_Bool bDisable = sal_True; + bool bDisable = true; sal_uInt16 i = 0; sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD); @@ -764,7 +764,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if (pPage->GetAutoLayout() == AUTOLAYOUT_TITLE) { - bDisable = sal_False; + bDisable = false; } i++; @@ -805,8 +805,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if (rSet.GetItemState(SID_TITLE_MASTERPAGE) == SFX_ITEM_AVAILABLE) { - sal_Bool bCheck = sal_False; - sal_Bool bDisable = sal_True; + bool bCheck = false; + bool bDisable = true; if( pPageView ) { SdPage* pMPage = dynamic_cast< SdPage* >( pPageView->GetPage() ); @@ -824,7 +824,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if (pPage->GetAutoLayout() == AUTOLAYOUT_TITLE) { // a page does have a AutoLayout "Title" - bDisable = sal_False; + bDisable = false; SdPage& rRefMPage = (SdPage&)(pPage->TRG_GetMasterPage()); @@ -832,7 +832,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) { // a page with the AutoLayout "Title" does reference // the current master page - bCheck = sal_True; + bCheck = true; } } @@ -926,8 +926,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) // special treatment of for SID_OUTLINE_BULLET if objects with different // kinds of NumBullets are marked - sal_Bool bHasOutliner = sal_False; - sal_Bool bHasOther = sal_False; + bool bHasOutliner = false; + bool bHasOther = false; for(sal_uLong nNum = 0; nNum < nMarkCount; nNum++) { SdrObject* pObj = rMarkList.GetMark(nNum)->GetMarkedSdrObj(); @@ -935,13 +935,13 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) { if( pObj->GetObjIdentifier() == OBJ_OUTLINETEXT ) { - bHasOutliner = sal_True; + bHasOutliner = true; if(bHasOther) break; } else { - bHasOther = sal_True; + bHasOther = true; if(bHasOutliner) break; } @@ -1393,12 +1393,12 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) // get marklist SdrMarkList aMarkList = mpDrawView->GetMarkedObjectList(); - sal_Bool bFoundBitmap = sal_False; - sal_Bool bFoundMetafile = sal_False; - sal_Bool bFoundObjNoLine = sal_False; - sal_Bool bFoundObjNoArea = sal_False; - sal_Bool bFoundNoGraphicObj = sal_False; - sal_Bool bFoundAny = sal_False; + bool bFoundBitmap = false; + bool bFoundMetafile = false; + bool bFoundObjNoLine = false; + bool bFoundObjNoArea = false; + bool bFoundNoGraphicObj = false; + bool bFoundAny = false; bool bFoundTable = false; // const int nMarkCount = (int) aMarkList.GetMarkCount(); @@ -1419,8 +1419,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) case OBJ_FREELINE : case OBJ_EDGE: case OBJ_CARC : - bFoundObjNoArea = sal_True; - bFoundNoGraphicObj = sal_True; + bFoundObjNoArea = true; + bFoundNoGraphicObj = true; break; case OBJ_OLE2 : // #i118485# #i118525# Allow Line, Area and Graphic (Metafile, Bitmap) @@ -1435,14 +1435,14 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) switch(pSdrGrafObj->GetGraphicType()) { case GRAPHIC_BITMAP : - bFoundBitmap = sal_True; + bFoundBitmap = true; if(pSdrGrafObj->isEmbeddedSvg()) { bFoundMetafile = true; } break; case GRAPHIC_GDIMETAFILE : - bFoundMetafile = sal_True; + bFoundMetafile = true; break; default: break; @@ -1453,13 +1453,13 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) bFoundTable = true; break; default : - bFoundAny = sal_True; + bFoundAny = true; } } else if(nInv == E3dInventor) { // 3D objects - bFoundAny = sal_True; + bFoundAny = true; } } @@ -1498,7 +1498,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) // Menuoption: Edit->Hyperlink // Disable, if there is no hyperlink - sal_Bool bDisableEditHyperlink = sal_True; + bool bDisableEditHyperlink = true; if( mpDrawView->AreObjectsMarked() && ( mpDrawView->GetMarkedObjectList().GetMarkCount() == 1 ) ) { if( mpDrawView->IsTextEdit() ) @@ -1514,7 +1514,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) { const SvxFieldData* pField = pFieldItem->GetField(); if ( pField->ISA(SvxURLField) ) - bDisableEditHyperlink = sal_False; + bDisableEditHyperlink = false; } } } @@ -1534,7 +1534,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) uno::Reference< beans::XPropertySetInfo > xPropInfo( xPropSet->getPropertySetInfo() ); if( xPropInfo.is() && xPropInfo->hasPropertyByName( "TargetURL") ) { - bDisableEditHyperlink = sal_False; + bDisableEditHyperlink = false; } } } diff --git a/sd/source/ui/view/drviews8.cxx b/sd/source/ui/view/drviews8.cxx index 39b245033f84..70b858c2b118 100644 --- a/sd/source/ui/view/drviews8.cxx +++ b/sd/source/ui/view/drviews8.cxx @@ -100,7 +100,7 @@ void DrawViewShell::ScannerEvent( const ::com::sun::star::lang::EventObject& ) aPnt += Point( pPage->GetLftBorder(), pPage->GetUppBorder() ); Rectangle aRect( aPnt, aBmpSize ); SdrGrafObj* pGrafObj = NULL; - sal_Bool bInsertNewObject = sal_True; + bool bInsertNewObject = true; if( GetView()->AreObjectsMarked() ) { @@ -117,7 +117,7 @@ void DrawViewShell::ScannerEvent( const ::com::sun::star::lang::EventObject& ) if( pGrafObj->IsEmptyPresObj() ) { - bInsertNewObject = sal_False; + bInsertNewObject = false; pGrafObj->SetEmptyPresObj(false); pGrafObj->SetOutlinerParaObject(NULL); pGrafObj->SetGraphic( Graphic( aScanBmp ) ); diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx index 597a3dd22adf..1d3c7986731d 100644 --- a/sd/source/ui/view/drviews9.cxx +++ b/sd/source/ui/view/drviews9.cxx @@ -128,7 +128,7 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq) SdrGrafObj* pGrafObj = NULL; - sal_Bool bInsertNewObject = sal_True; + bool bInsertNewObject = true; if ( mpDrawView->AreObjectsMarked() ) { @@ -147,7 +147,7 @@ void DrawViewShell::ExecGallery(SfxRequest& rReq) if( pGrafObj->IsEmptyPresObj() ) { // the empty graphic object gets a new graphic - bInsertNewObject = sal_False; + bInsertNewObject = false; SdrGrafObj* pNewGrafObj = (SdrGrafObj*) pGrafObj->Clone(); pNewGrafObj->SetEmptyPresObj(false); diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index e76c243e8841..5cc9d321aac1 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -77,7 +77,7 @@ using sfx2::sidebar::EnumContext; namespace sd { -sal_Bool DrawViewShell::mbPipette = sal_False; +bool DrawViewShell::mbPipette = false; // - ScannerEventListener - @@ -179,11 +179,11 @@ DrawViewShell::~DrawViewShell() if (pPage == mpActualPage) { - GetDoc()->SetSelected(pPage, sal_True); + GetDoc()->SetSelected(pPage, true); } else { - GetDoc()->SetSelected(pPage, sal_False); + GetDoc()->SetSelected(pPage, false); } } @@ -209,11 +209,11 @@ DrawViewShell::~DrawViewShell() void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { mpActualPage = 0; - mbMousePosFreezed = sal_False; + mbMousePosFreezed = false; mbReadOnly = GetDocSh()->IsReadOnly(); mpSlotArray = 0; mpClipEvtLstnr = 0; - mbPastePossible = sal_False; + mbPastePossible = false; mbIsLayerModeActive = false; mpFrameView->Connect(); @@ -355,14 +355,14 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) if (pDocSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED) { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; } else { - mbZoomOnPage = sal_True; + mbZoomOnPage = true; } - mbIsRulerDrag = sal_False; + mbIsRulerDrag = false; OUString aName( "DrawViewShell" ); SetName (aName); @@ -478,9 +478,9 @@ void DrawViewShell::SetupPage (Size &rSize, long nRight, long nUpper, long nLower, - sal_Bool bSize, - sal_Bool bMargin, - sal_Bool bScaleAll) + bool bSize, + bool bMargin, + bool bScaleAll) { sal_uInt16 nPageCnt = GetDoc()->GetMasterSdPageCount(mePageKind); sal_uInt16 i; @@ -552,7 +552,7 @@ void DrawViewShell::SetupPage (Size &rSize, if ( mePageKind == PK_STANDARD ) { SdPage* pHandoutPage = GetDoc()->GetSdPage(0, PK_HANDOUT); - pHandoutPage->CreateTitleAndLayout(sal_True); + pHandoutPage->CreateTitleAndLayout(true); } long nWidth = mpActualPage->GetSize().Width(); @@ -561,7 +561,7 @@ void DrawViewShell::SetupPage (Size &rSize, Point aPageOrg(nWidth, nHeight / 2); Size aSize( nWidth * 3, nHeight * 2); - InitWindows(aPageOrg, aSize, Point(-1, -1), sal_True); + InitWindows(aPageOrg, aSize, Point(-1, -1), true); Point aVisAreaPos; @@ -796,7 +796,7 @@ void DrawViewShell::Notify (SfxBroadcaster&, const SfxHint& rHint) } // Turn on design mode when document is not read-only. - if ((GetDocSh()->IsReadOnly() ? 1 : 0) != mbReadOnly ) + if (GetDocSh()->IsReadOnly() != mbReadOnly ) { mbReadOnly = GetDocSh()->IsReadOnly(); diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx index eeb5b7dcb3e8..cc6383e7215b 100644 --- a/sd/source/ui/view/drviewsb.cxx +++ b/sd/source/ui/view/drviewsb.cxx @@ -67,7 +67,7 @@ namespace sd { bool DrawViewShell::RenameSlide( sal_uInt16 nPageId, const OUString & rName ) { - sal_Bool bOutDummy; + bool bOutDummy; if( GetDoc()->GetPageByName( rName, bOutDummy ) != SDRPAGE_NOTFOUND ) return false; diff --git a/sd/source/ui/view/drviewsc.cxx b/sd/source/ui/view/drviewsc.cxx index 1d38edc577ff..7b3094b15cc4 100644 --- a/sd/source/ui/view/drviewsc.cxx +++ b/sd/source/ui/view/drviewsc.cxx @@ -264,7 +264,7 @@ void DrawViewShell::MapSlot( sal_uInt16 nSId ) /** * Allows a ImageMapping via SlotArray */ -void DrawViewShell::UpdateToolboxImages( SfxItemSet &rSet, sal_Bool bPermanent ) +void DrawViewShell::UpdateToolboxImages( SfxItemSet &rSet, bool bPermanent ) { if( !bPermanent ) { diff --git a/sd/source/ui/view/drviewsd.cxx b/sd/source/ui/view/drviewsd.cxx index f89f6e318862..6ae24c353b78 100644 --- a/sd/source/ui/view/drviewsd.cxx +++ b/sd/source/ui/view/drviewsd.cxx @@ -166,7 +166,7 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet ) sal_uInt16 nCurrentPage = 0; sal_uInt16 nFirstPage = 0; sal_uInt16 nLastPage; - sal_Bool bEndless = sal_False; + bool bEndless = false; OUString aPageName; rtl::Reference< SlideShow > xSlideshow( SlideShow::GetSlideShow( GetViewShellBase() ) ); diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index fa2ef547b534..cd643b026980 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -156,7 +156,7 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) if( pFuText ) { - pFuText->SetPermanent(sal_True); + pFuText->SetPermanent(true); xFunc->ReceiveRequest( rReq ); MapSlot( nSId ); @@ -176,7 +176,7 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) CheckLineTo (rReq); sal_uInt16 nOldSId = 0; - sal_Bool bPermanent = sal_False; + bool bPermanent = false; if( !mpDrawView ) return; @@ -214,7 +214,7 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) (nSId == SID_TEXTEDIT || nSId == SID_ATTR_CHAR || nSId == SID_TEXT_FITTOSIZE || nSId == SID_ATTR_CHAR_VERTICAL || nSId == SID_TEXT_FITTOSIZE_VERTICAL ))) { - bPermanent = sal_True; + bPermanent = true; } GetCurrentFunction()->Deactivate(); @@ -348,13 +348,13 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) sal_uLong i = 0; const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); sal_uLong nMarkCnt = rMarkList.GetMarkCount(); - sal_Bool b3DObjMarked = sal_False; + bool b3DObjMarked = false; while (i < nMarkCnt && !b3DObjMarked) { if (rMarkList.GetMark(i)->GetMarkedSdrObj()->ISA(E3dObject)) { - b3DObjMarked = sal_True; + b3DObjMarked = true; } else { @@ -739,7 +739,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_CUT: { - if ( mpDrawView->IsPresObjSelected(sal_False, sal_True, sal_False, sal_True) ) + if ( mpDrawView->IsPresObjSelected(false, true, false, true) ) { ::sd::Window* pWindow = GetActiveWindow(); InfoBox(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE) ).Execute(); @@ -761,7 +761,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_COPY: { - if ( mpDrawView->IsPresObjSelected(sal_False, sal_True, sal_False, sal_True) ) + if ( mpDrawView->IsPresObjSelected(false, true, false, true) ) { ::sd::Window* pWindow = GetActiveWindow(); InfoBox(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE) ).Execute(); @@ -814,7 +814,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) { mpDrawView->InsertData( aDataHelper, GetActiveWindow()->PixelToLogic( Rectangle( Point(), GetActiveWindow()->GetOutputSizePixel() ).Center() ), - nAction, sal_False, FORMAT_STRING); + nAction, false, FORMAT_STRING); } } @@ -842,7 +842,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) if( !mpDrawView->InsertData( aDataHelper, GetActiveWindow()->PixelToLogic( Rectangle( Point(), GetActiveWindow()->GetOutputSizePixel() ).Center() ), - nAction, sal_False, nFormat ) ) + nAction, false, nFormat ) ) { INetBookmark aINetBookmark( aEmptyStr, aEmptyStr ); @@ -873,7 +873,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) pOLV->PostKeyEvent(aKEvt); } } - else if ( mpDrawView->IsPresObjSelected(sal_False, sal_True, sal_False, sal_True) ) + else if ( mpDrawView->IsPresObjSelected(false, true, false, true) ) { ::sd::Window* pWindow = GetActiveWindow(); InfoBox(pWindow, SD_RESSTR(STR_ACTION_NOTPOSSIBLE) ).Execute(); @@ -941,7 +941,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) nSId == SID_SLIDE_MASTERPAGE) { // Is there a page with the AutoLayout "Title"? - sal_Bool bFound = sal_False; + bool bFound = false; sal_uInt16 i = 0; sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD); @@ -951,12 +951,12 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) if (nSId == SID_TITLE_MASTERPAGE && pPage->GetAutoLayout() == AUTOLAYOUT_TITLE) { - bFound = sal_True; + bFound = true; SwitchPage((pPage->GetPageNum() - 1) / 2); } else if (nSId == SID_SLIDE_MASTERPAGE && pPage->GetAutoLayout() != AUTOLAYOUT_TITLE) { - bFound = sal_True; + bFound = true; SwitchPage((pPage->GetPageNum() - 1) / 2); } @@ -1045,7 +1045,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) const SfxItemSet* pReqArgs = rReq.GetArgs(); // Remember old ruler state - sal_Bool bOldHasRuler(HasRuler()); + bool bOldHasRuler(HasRuler()); if ( pReqArgs ) { @@ -1055,7 +1055,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) else SetRuler (!HasRuler()); // Did ruler state change? Tell that to SdOptions, too. - sal_Bool bHasRuler(HasRuler()); + bool bHasRuler(HasRuler()); if(bOldHasRuler != bHasRuler) { @@ -1119,7 +1119,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_SIZE_REAL: // BASIC { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; SetZoom( 100 ); Rectangle aVisAreaWin = GetActiveWindow()->PixelToLogic( Rectangle( Point(0,0), GetActiveWindow()->GetOutputSizePixel()) ); @@ -1134,7 +1134,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_ZOOM_IN: // BASIC { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; SetZoom( std::max( (long) ( GetActiveWindow()->GetZoom() / 2 ), (long) GetActiveWindow()->GetMinZoom() ) ); Rectangle aVisAreaWin = GetActiveWindow()->PixelToLogic( Rectangle( Point(0,0), GetActiveWindow()->GetOutputSizePixel()) ); @@ -1154,7 +1154,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) if (aVisAreaSize.Height()!=0 && aVisAreaSize.Width()!=0) { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; SetZoomRect(aVisArea); Invalidate( SID_ZOOM_IN ); Invalidate( SID_ZOOM_OUT ); @@ -1169,7 +1169,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) // --> Is offered as object zoom in program case SID_SIZE_OPTIMAL: // BASIC { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; if ( mpDrawView->AreObjectsMarked() ) { maMarkRect = mpDrawView->GetAllMarkedRect(); @@ -1199,7 +1199,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) // --> Is offered as optimal in program case SID_SIZE_ALL: // BASIC { - mbZoomOnPage = sal_False; + mbZoomOnPage = false; SdrPageView* pPageView = mpDrawView->GetSdrPageView(); if( pPageView ) @@ -1298,7 +1298,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_AUTOSPELL_CHECK: { - sal_Bool bOnlineSpell = !GetDoc()->GetOnlineSpell(); + bool bOnlineSpell = !GetDoc()->GetOnlineSpell(); GetDoc()->SetOnlineSpell(bOnlineSpell); ::Outliner* pOL = mpDrawView->GetTextEditOutliner(); @@ -1460,13 +1460,13 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_UNDO : { // moved implementation to BaseClass - ImpSidUndo(sal_True, rReq); + ImpSidUndo(true, rReq); } break; case SID_REDO : { // moved implementation to BaseClass - ImpSidRedo(sal_True, rReq); + ImpSidRedo(true, rReq); } break; @@ -1556,7 +1556,7 @@ void DrawViewShell::InsertURLField(const OUString& rURL, const OUString& rText, void DrawViewShell::InsertURLButton(const OUString& rURL, const OUString& rText, const OUString& rTarget, const Point* pPos) { - sal_Bool bNewObj = sal_True; + bool bNewObj = true; const OUString sTargetURL( ::URIHelper::SmartRel2Abs( INetURLObject( GetDocSh()->GetMedium()->GetBaseURL() ), rURL, URIHelper::GetMaybeFileHdl(), true, false, INetURLObject::WAS_ENCODED, @@ -1569,7 +1569,7 @@ void DrawViewShell::InsertURLButton(const OUString& rURL, const OUString& rText, // change first marked object if( (FmFormInventor == pMarkedObj->GetObjInventor() && pMarkedObj->GetObjIdentifier() == OBJ_FM_BUTTON) ) { - bNewObj = sal_False; + bNewObj = false; SdrUnoObj* pUnoCtrl = static_cast< SdrUnoObj* >( pMarkedObj ); @@ -1591,7 +1591,7 @@ void DrawViewShell::InsertURLButton(const OUString& rURL, const OUString& rText, else { // add url as interaction for first selected shape - bNewObj = sal_False; + bNewObj = false; SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pMarkedObj, true); pInfo->meClickAction = presentation::ClickAction_DOCUMENT; diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx index 421a50b6457a..ea10bdf6bb04 100644 --- a/sd/source/ui/view/drviewsf.cxx +++ b/sd/source/ui/view/drviewsf.cxx @@ -276,7 +276,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SfxWhichIter aIter( rSet ); sal_uInt16 nWhich = aIter.FirstWhich(); - sal_Bool bAttr = sal_False; + bool bAttr = false; SfxAllItemSet aAllSet( *rSet.GetPool() ); while ( nWhich ) @@ -298,7 +298,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_LEFT, true ) ); } - bAttr = sal_True; + bAttr = true; Invalidate(nSlotId); } @@ -315,7 +315,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_CENTER, true ) ); } - bAttr = sal_True; + bAttr = true; Invalidate(nSlotId); } @@ -332,7 +332,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_RIGHT, true ) ); } - bAttr = sal_True; + bAttr = true; Invalidate(nSlotId); } @@ -349,7 +349,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_BLOCK, true ) ); } - bAttr = sal_True; + bAttr = true; Invalidate(nSlotId); } @@ -361,7 +361,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxLRSpaceItem aLRSpace = ( (const SvxLRSpaceItem&) aAttrs.Get( EE_PARA_LRSPACE ) ); aLRSpace.SetWhich(SID_ATTR_PARA_LRSPACE); rSet.Put(aLRSpace); - bAttr = sal_True; + bAttr = true; Invalidate(SID_ATTR_PARA_LRSPACE); } break; @@ -371,7 +371,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) mpDrawView->GetAttributes( aAttrs ); SvxLineSpacingItem aLineLR = ( (const SvxLineSpacingItem&) aAttrs.Get( EE_PARA_SBL ) ); rSet.Put(aLineLR); - bAttr = sal_True; + bAttr = true; Invalidate(SID_ATTR_PARA_LINESPACE); } break; @@ -382,7 +382,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxULSpaceItem aULSP = ( (const SvxULSpaceItem&) aAttrs.Get( EE_PARA_ULSPACE ) ); aULSP.SetWhich(SID_ATTR_PARA_ULSPACE); rSet.Put(aULSP); - bAttr = sal_True; + bAttr = true; Invalidate(SID_ATTR_PARA_ULSPACE); } break; @@ -414,7 +414,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) case SID_SET_SUB_SCRIPT: case SID_SET_SUPER_SCRIPT: { - bAttr = sal_True; + bAttr = true; } break; @@ -424,7 +424,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) mpDrawView->GetAttributes( aAttrs ); if( aAttrs.GetItemState( EE_PARA_HYPHENATE ) >= SFX_ITEM_AVAILABLE ) { - sal_Bool bValue = ( (const SfxBoolItem&) aAttrs.Get( EE_PARA_HYPHENATE ) ).GetValue(); + bool bValue = ( (const SfxBoolItem&) aAttrs.Get( EE_PARA_HYPHENATE ) ).GetValue(); rSet.Put( SfxBoolItem( SID_HYPHENATION, bValue ) ); } } @@ -590,7 +590,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) } if ( nCount == 1 ) { - sal_Bool bBullets = sal_False; + bool bBullets = false; const SvxNumberFormat* pNumFmt = pNumRule->Get(nCurLevel); if ( pNumFmt ) { @@ -598,11 +598,11 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) { case SVX_NUM_CHAR_SPECIAL: case SVX_NUM_BITMAP: - bBullets = sal_True; + bBullets = true; break; default: - bBullets = sal_False; + bBullets = false; } rSet.Put(SfxUInt16Item(FN_BUL_NUM_RULE_INDEX,(sal_uInt16)0xFFFF)); @@ -635,7 +635,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) case FN_NUM_BULLET_ON: case FN_NUM_NUMBERING_ON: { - sal_Bool bEnable = sal_False; + bool bEnable = false; const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); const sal_uInt32 nMarkCount = rMarkList.GetMarkCount(); for (sal_uInt32 nIndex = 0; nIndex < nMarkCount; nIndex++) @@ -645,7 +645,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) { if (pTextObj->GetObjIdentifier() != OBJ_OLE2) { - bEnable = sal_True; + bEnable = true; break; } } @@ -766,9 +766,9 @@ OUString DrawViewShell::GetSelectionText(bool bCompleteWords) } -sal_Bool DrawViewShell::HasSelection(sal_Bool bText) const +bool DrawViewShell::HasSelection(bool bText) const { - sal_Bool bReturn = sal_False; + bool bReturn = false; if (bText) { @@ -776,12 +776,12 @@ sal_Bool DrawViewShell::HasSelection(sal_Bool bText) const if (pOlView && !pOlView->GetSelected().isEmpty()) { - bReturn = sal_True; + bReturn = true; } } else if (mpDrawView->GetMarkedObjectList().GetMarkCount() != 0) { - bReturn = sal_True; + bReturn = true; } return bReturn; diff --git a/sd/source/ui/view/drviewsg.cxx b/sd/source/ui/view/drviewsg.cxx index bb83db6737c8..fd6398a1ad3f 100644 --- a/sd/source/ui/view/drviewsg.cxx +++ b/sd/source/ui/view/drviewsg.cxx @@ -76,7 +76,7 @@ void DrawViewShell::ExecIMap( SfxRequest& rReq ) void DrawViewShell::GetIMapState( SfxItemSet& rSet ) { - sal_Bool bDisable = sal_True; + bool bDisable = true; if( GetViewFrame()->HasChildWindow( SvxIMapDlgChildWindow::GetChildWindowId() ) ) { @@ -92,7 +92,7 @@ void DrawViewShell::GetIMapState( SfxItemSet& rSet ) && pImageMapDialog!=NULL && ( pImageMapDialog->GetEditingObject() == (void*) pObj ) ) { - bDisable = sal_False; + bDisable = false; } } } @@ -107,7 +107,7 @@ void DrawViewShell::ExecOptionsBar( SfxRequest& rReq ) if(HasCurrentFunction(SID_PRESENTATION)) return; - sal_Bool bDefault = sal_False; + bool bDefault = false; sal_uInt16 nSlot = rReq.GetSlot(); SdOptions* pOptions = SD_MOD()->GetSdOptions(GetDoc()->GetDocumentType()); @@ -196,7 +196,7 @@ void DrawViewShell::ExecOptionsBar( SfxRequest& rReq ) break; default: - bDefault = sal_True; + bDefault = true; break; } diff --git a/sd/source/ui/view/drviewsh.cxx b/sd/source/ui/view/drviewsh.cxx index 8164a2897c55..c8e1e631ad35 100644 --- a/sd/source/ui/view/drviewsh.cxx +++ b/sd/source/ui/view/drviewsh.cxx @@ -43,9 +43,9 @@ namespace sd { -sal_Bool DrawViewShell::GotoBookmark(const OUString& rBookmark) +bool DrawViewShell::GotoBookmark(const OUString& rBookmark) { - sal_Bool bRet = sal_False; + bool bRet = false; ::sd::DrawDocShell* pDocSh = GetDocSh(); if( pDocSh ) { diff --git a/sd/source/ui/view/drviewsj.cxx b/sd/source/ui/view/drviewsj.cxx index a1bc9686f033..9b0717619ea3 100644 --- a/sd/source/ui/view/drviewsj.cxx +++ b/sd/source/ui/view/drviewsj.cxx @@ -198,7 +198,7 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) rSet.DisableItem( SID_CONNECTION_DLG ); else { - sal_Bool bDisable = sal_True; + bool bDisable = true; SfxItemSet aAttrSet( GetDoc()->GetPool() ); GetView()->GetAttributes( aAttrSet ); @@ -211,7 +211,7 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) long nVal3 = ( ( const SdrEdgeLine3DeltaItem& ) aAttrSet.Get( SDRATTR_EDGELINE3DELTA ) ).GetValue(); { if( nVal1 != 0 || nVal2 != 0 || nVal3 != 0 ) - bDisable = sal_False; + bDisable = false; } } if( bDisable ) @@ -309,16 +309,16 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) rSet.DisableItem( SID_MODIFY_FIELD ); { - sal_Bool bText = sal_False; - sal_Bool bLine = sal_False; - sal_Bool bGroup = sal_False; - sal_Bool bGraf = sal_False; - sal_Bool bDrawObj = sal_False; - sal_Bool b3dObj = sal_False; + bool bText = false; + bool bLine = false; + bool bGroup = false; + bool bGraf = false; + bool bDrawObj = false; + bool b3dObj = false; bool bTable = false; - sal_Bool bMeasureObj = sal_False; - sal_Bool bEdgeObj = sal_False; // Connector - sal_Bool bE3dCompoundObject = sal_False; + bool bMeasureObj = false; + bool bEdgeObj = false; // Connector + bool bE3dCompoundObject = false; for( sal_uLong i = 0; i < nMarkCount && !bText && i < 50; @@ -332,13 +332,13 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) { switch (nId) { - case OBJ_TEXT: bText = sal_True; break; + case OBJ_TEXT: bText = true; break; - case OBJ_LINE: bLine = sal_True; break; + case OBJ_LINE: bLine = true; break; - case OBJ_EDGE: bEdgeObj = sal_True; break; + case OBJ_EDGE: bEdgeObj = true; break; - case OBJ_MEASURE: bMeasureObj = sal_True; break; + case OBJ_MEASURE: bMeasureObj = true; break; case OBJ_RECT: case OBJ_CIRC: @@ -348,11 +348,11 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) case OBJ_PATHLINE: case OBJ_SECT: case OBJ_CARC: - case OBJ_CCUT: bDrawObj = sal_True; break; + case OBJ_CCUT: bDrawObj = true; break; - case OBJ_GRUP: bGroup = sal_True; break; + case OBJ_GRUP: bGroup = true; break; - case OBJ_GRAF: bGraf = sal_True; break; + case OBJ_GRAF: bGraf = true; break; case OBJ_TABLE: bTable = true; break; } @@ -360,9 +360,9 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) else if (nInv == E3dInventor) { if(pObj->ISA(E3dScene)) - b3dObj = sal_True; + b3dObj = true; else if(pObj->ISA(E3dCompoundObject)) - bE3dCompoundObject = sal_True; + bE3dCompoundObject = true; } } if( bLine && !bText && !bDrawObj &&!b3dObj) diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index 855d91d5d1d7..3121d6478d5a 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -207,8 +207,8 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK * SetGridCoarse( Size( 1000, 1000 ) ); SetSnapGridWidth(Fraction(1000, 1), Fraction(1000, 1)); SetActiveLayer( SD_RESSTR(STR_LAYER_LAYOUT) ); - mbNoColors = sal_True; - mbNoAttribs = sal_False; + mbNoColors = true; + mbNoAttribs = false; maVisArea = Rectangle( Point(), Size(0, 0) ); mePageKind = PK_STANDARD; mePageKindOnLoad = PK_STANDARD; @@ -218,10 +218,10 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK * meNotesEditMode = EM_PAGE; meHandoutEditMode = EM_MASTERPAGE; SetViewShEditModeOnLoad(EM_PAGE); - mbLayerMode = sal_False; + mbLayerMode = false; SetEliminatePolyPoints(false); - mbDoubleClickTextEdit = sal_False; - mbClickChangeRotation = sal_False; + mbDoubleClickTextEdit = false; + mbClickChangeRotation = false; mnSlidesPerRow = 4; { @@ -234,15 +234,15 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK * SetViewShellTypeOnLoad (ViewShell::ST_IMPRESS); // get default for design mode - sal_Bool bInitDesignMode = pDrawDoc->GetOpenInDesignMode(); + bool bInitDesignMode = pDrawDoc->GetOpenInDesignMode(); if( pDrawDoc->OpenInDesignModeIsDefaulted() ) { - bInitDesignMode = sal_True; + bInitDesignMode = true; } SfxObjectShell* pObjShell = pDrawDoc->GetObjectShell(); if( pObjShell && pObjShell->IsReadOnly() ) - bInitDesignMode = sal_False; + bInitDesignMode = false; SetDesignMode( bInitDesignMode ); Update( SD_MOD()->GetSdOptions(pDrawDoc->GetDocumentType()) ); @@ -427,19 +427,19 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com: { std::vector< std::pair< OUString, Any > > aUserData; - aUserData.addValue( sUNO_View_GridIsVisible, makeAny( (sal_Bool)IsGridVisible() ) ); - aUserData.addValue( sUNO_View_GridIsFront, makeAny( (sal_Bool)IsGridFront() ) ); - aUserData.addValue( sUNO_View_IsSnapToGrid, makeAny( (sal_Bool)IsGridSnap() ) ); - aUserData.addValue( sUNO_View_IsSnapToPageMargins, makeAny( (sal_Bool)IsBordSnap() ) ); - aUserData.addValue( sUNO_View_IsSnapToSnapLines, makeAny( (sal_Bool)IsHlplSnap() ) ); - aUserData.addValue( sUNO_View_IsSnapToObjectFrame, makeAny( (sal_Bool)IsOFrmSnap() ) ); - aUserData.addValue( sUNO_View_IsSnapToObjectPoints, makeAny( (sal_Bool)IsOPntSnap() ) ); + aUserData.addValue( sUNO_View_GridIsVisible, makeAny( IsGridVisible() ) ); + aUserData.addValue( sUNO_View_GridIsFront, makeAny( IsGridFront() ) ); + aUserData.addValue( sUNO_View_IsSnapToGrid, makeAny( IsGridSnap() ) ); + aUserData.addValue( sUNO_View_IsSnapToPageMargins, makeAny( IsBordSnap() ) ); + aUserData.addValue( sUNO_View_IsSnapToSnapLines, makeAny( IsHlplSnap() ) ); + aUserData.addValue( sUNO_View_IsSnapToObjectFrame, makeAny( IsOFrmSnap() ) ); + aUserData.addValue( sUNO_View_IsSnapToObjectPoints, makeAny( IsOPntSnap() ) ); - aUserData.addValue( sUNO_View_IsPlusHandlesAlwaysVisible, makeAny( (sal_Bool)IsPlusHandlesAlwaysVisible() ) ); - aUserData.addValue( sUNO_View_IsFrameDragSingles, makeAny( (sal_Bool)IsFrameDragSingles() ) ); + aUserData.addValue( sUNO_View_IsPlusHandlesAlwaysVisible, makeAny( IsPlusHandlesAlwaysVisible() ) ); + aUserData.addValue( sUNO_View_IsFrameDragSingles, makeAny( IsFrameDragSingles() ) ); aUserData.addValue( sUNO_View_EliminatePolyPointLimitAngle, makeAny( (sal_Int32)GetEliminatePolyPointLimitAngle() ) ); - aUserData.addValue( sUNO_View_IsEliminatePolyPoints, makeAny( (sal_Bool)IsEliminatePolyPoints() ) ); + aUserData.addValue( sUNO_View_IsEliminatePolyPoints, makeAny( IsEliminatePolyPoints() ) ); Any aAny; GetVisibleLayers().QueryValue( aAny ); @@ -451,8 +451,8 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com: GetLockedLayers().QueryValue( aAny ); aUserData.addValue( sUNO_View_LockedLayers, aAny ); - aUserData.addValue( sUNO_View_NoAttribs, makeAny( (sal_Bool)IsNoAttribs() ) ); - aUserData.addValue( sUNO_View_NoColors, makeAny( (sal_Bool)IsNoColors() ) ); + aUserData.addValue( sUNO_View_NoAttribs, makeAny( IsNoAttribs() ) ); + aUserData.addValue( sUNO_View_NoColors, makeAny( IsNoColors() ) ); if( GetStandardHelpLines().GetCount() ) aUserData.addValue( sUNO_View_SnapLinesDrawing, makeAny( createHelpLinesString( GetStandardHelpLines() ) ) ); @@ -463,13 +463,13 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com: if( GetHandoutHelpLines().GetCount() ) aUserData.addValue( sUNO_View_SnapLinesHandout, makeAny( createHelpLinesString( GetHandoutHelpLines() ) ) ); - aUserData.addValue( sUNO_View_RulerIsVisible, makeAny( (sal_Bool)HasRuler() ) ); + aUserData.addValue( sUNO_View_RulerIsVisible, makeAny( HasRuler() ) ); aUserData.addValue( sUNO_View_PageKind, makeAny( (sal_Int16)GetPageKind() ) ); aUserData.addValue( sUNO_View_SelectedPage, makeAny( (sal_Int16)GetSelectedPage() ) ); - aUserData.addValue( sUNO_View_IsLayerMode, makeAny( (sal_Bool)IsLayerMode() ) ); + aUserData.addValue( sUNO_View_IsLayerMode, makeAny( IsLayerMode() ) ); - aUserData.addValue( sUNO_View_IsDoubleClickTextEdit, makeAny( (sal_Bool)IsDoubleClickTextEdit() ) ); - aUserData.addValue( sUNO_View_IsClickChangeRotation, makeAny( (sal_Bool)IsClickChangeRotation() ) ); + aUserData.addValue( sUNO_View_IsDoubleClickTextEdit, makeAny( IsDoubleClickTextEdit() ) ); + aUserData.addValue( sUNO_View_IsClickChangeRotation, makeAny( IsClickChangeRotation() ) ); aUserData.addValue( sUNO_View_SlidesPerRow, makeAny( (sal_Int16)GetSlidesPerRow() ) ); aUserData.addValue( sUNO_View_EditModeStandard, makeAny( (sal_Int32)GetViewShEditMode( PK_STANDARD ) ) ); @@ -493,7 +493,7 @@ void FrameView::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com: aUserData.addValue( sUNO_View_GridSnapWidthXDenominator, makeAny( (sal_Int32)GetSnapGridWidthX().GetDenominator() ) ); aUserData.addValue( sUNO_View_GridSnapWidthYNumerator, makeAny( (sal_Int32)GetSnapGridWidthY().GetNumerator() ) ); aUserData.addValue( sUNO_View_GridSnapWidthYDenominator, makeAny( (sal_Int32)GetSnapGridWidthY().GetDenominator() ) ); - aUserData.addValue( sUNO_View_IsAngleSnapEnabled, makeAny( (sal_Bool)IsAngleSnapEnabled() ) ); + aUserData.addValue( sUNO_View_IsAngleSnapEnabled, makeAny( IsAngleSnapEnabled() ) ); aUserData.addValue( sUNO_View_SnapAngle, makeAny( (sal_Int32)GetSnapAngle() ) ); const sal_Int32 nOldLength = rValues.getLength(); @@ -580,7 +580,7 @@ void FrameView::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < : { const bool bImpress = dynamic_cast< SdDrawDocument* >(GetModel())->GetDocumentType() == DOCUMENT_TYPE_IMPRESS; - sal_Bool bBool = sal_False; + bool bBool = false; sal_Int32 nInt32 = 0; sal_Int16 nInt16 = 0; OUString aString; diff --git a/sd/source/ui/view/outlnvs2.cxx b/sd/source/ui/view/outlnvs2.cxx index 305b71cabd7e..9b88288176ad 100644 --- a/sd/source/ui/view/outlnvs2.cxx +++ b/sd/source/ui/view/outlnvs2.cxx @@ -573,10 +573,10 @@ void OutlineViewShell::FuTemporaryModify(SfxRequest &rReq) //pOLV->DeleteSelected(); <-- unfortunately missing! // select field, so it gets deleted on Insert ESelection aSel = pOutlinerView->GetSelection(); - sal_Bool bSel = sal_True; + bool bSel = true; if( aSel.nStartPos == aSel.nEndPos ) { - bSel = sal_False; + bSel = false; aSel.nEndPos++; } pOutlinerView->SetSelection( aSel ); diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index f8d61b0f7757..515e013dbe8a 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -132,7 +132,7 @@ TYPEINIT1( OutlineViewShell, ViewShell ); */ void OutlineViewShell::Construct(DrawDocShell* ) { - sal_Bool bModified = GetDoc()->IsChanged(); + bool bModified = GetDoc()->IsChanged(); meShellType = ST_OUTLINE; Size aSize(29700, 21000); @@ -459,7 +459,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) if( rReq.GetSlot() == SID_STYLE_FAMILY && rReq.GetArgs()) GetDocSh()->SetStyleFamily(((SfxUInt16Item&)rReq.GetArgs()->Get( SID_STYLE_FAMILY )).GetValue()); - sal_Bool bPreviewState = sal_False; + bool bPreviewState = false; sal_uLong nSlot = rReq.GetSlot(); boost::scoped_ptr< OutlineViewModelChangeGuard > aGuard; @@ -494,7 +494,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) pOlView->DoCut(); } rReq.Done(); - bPreviewState = sal_True; + bPreviewState = true; } break; @@ -509,7 +509,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) pOlView->DoCopy(); } rReq.Done(); - bPreviewState = sal_True; + bPreviewState = true; } break; @@ -526,7 +526,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) pOlView->DoPaste(); } rReq.Done(); - bPreviewState = sal_True; + bPreviewState = true; } break; @@ -546,7 +546,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) { pOlView->InsertData( aDataHelper, GetActiveWindow()->PixelToLogic( Rectangle( Point(), GetActiveWindow()->GetOutputSizePixel() ).Center() ), - nAction, sal_False, FORMAT_STRING); + nAction, false, FORMAT_STRING); } } @@ -573,7 +573,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) } } rReq.Done(); - bPreviewState = sal_True; + bPreviewState = true; } break; @@ -672,7 +672,7 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) } rReq.Done(); - bPreviewState = sal_True; + bPreviewState = true; } break; @@ -680,13 +680,13 @@ void OutlineViewShell::FuSupport(SfxRequest &rReq) case SID_UNDO : { OutlineViewPageChangesGuard aGuard2(pOlView); - ImpSidUndo(sal_False, rReq); + ImpSidUndo(false, rReq); } break; case SID_REDO : { OutlineViewPageChangesGuard aGuard2(pOlView); - ImpSidRedo(sal_False, rReq); + ImpSidRedo(false, rReq); } break; @@ -805,13 +805,13 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_SELECTALL ) ) { sal_Int32 nParaCount = pOutl->GetParagraphCount(); - sal_Bool bDisable = nParaCount == 0; + bool bDisable = nParaCount == 0; if (!bDisable && nParaCount == 1) { OUString aTest = pOutl->GetText(pOutl->GetParagraph(0)); if (aTest.isEmpty()) { - bDisable = sal_True; + bDisable = true; } } if (bDisable) @@ -830,18 +830,18 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) { // Enable color view? sal_uLong nCntrl = pOutl->GetControlWord(); - sal_Bool bNoColor = sal_False; + bool bNoColor = false; if (nCntrl & EE_CNTRL_NOCOLORS) - bNoColor = sal_True; + bNoColor = true; rSet.Put( SfxBoolItem( SID_COLORVIEW, bNoColor ) ); } // Buttons of toolbar // first the selection dependent ones: COLLAPSE, EXPAND - sal_Bool bDisableCollapse = sal_True; - sal_Bool bDisableExpand = sal_True; - sal_Bool bUnique = sal_True; + bool bDisableCollapse = true; + bool bDisableExpand = true; + bool bUnique = true; OutlinerView* pOutlinerView = pOlView->GetViewByWindow(GetActiveWindow()); std::vector<Paragraph*> aSelList; @@ -863,14 +863,14 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) nDepth = pOutl->GetDepth( pOutl->GetAbsPos( pPara ) ); if( nDepth != nTmpDepth || bPage != pOutl->HasParaFlag( pPara, PARAFLAG_ISPAGE )) - bUnique = sal_False; + bUnique = false; if (pOutl->HasChildren(pPara)) { if (!pOutl->IsExpanded(pPara)) - bDisableExpand = sal_False; + bDisableExpand = false; else - bDisableCollapse = sal_False; + bDisableCollapse = false; } ++iter; @@ -889,7 +889,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) OUString aTest = ((SfxStringItem&)aSet.Get(SID_STATUS_LAYOUT)).GetValue(); if (aTest.isEmpty()) { - bUnique = sal_False; + bUnique = false; rSet.DisableItem(SID_PRESENTATION_TEMPLATES); } @@ -897,14 +897,14 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) rSet.DisableItem( SID_PRESENTATIONOBJECT ); // now the selection independent ones: COLLAPSE_ALL, EXPAND_ALL - sal_Bool bDisableCollapseAll = sal_True; - sal_Bool bDisableExpandAll = sal_True; + bool bDisableCollapseAll = true; + bool bDisableExpandAll = true; // does the selection contain something collapsable/expandable? if (!bDisableCollapse) - bDisableCollapseAll = sal_False; + bDisableCollapseAll = false; if (!bDisableExpand) - bDisableExpandAll = sal_False; + bDisableExpandAll = false; // otherwise look through all paragraphs if (bDisableCollapseAll || bDisableExpandAll) @@ -914,10 +914,10 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) while (pPara && (bDisableCollapseAll || bDisableExpandAll)) { if (!pOutl->IsExpanded(pPara) && pOutl->HasChildren(pPara)) - bDisableExpandAll = sal_False; + bDisableExpandAll = false; if (pOutl->IsExpanded(pPara) && pOutl->HasChildren(pPara)) - bDisableCollapseAll = sal_False; + bDisableCollapseAll = false; pPara = pOutl->GetParagraph( ++nParaPos ); } @@ -1000,7 +1000,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_EXPAND_PAGE)) { - sal_Bool bDisable = sal_True; + bool bDisable = true; sal_uInt16 i = 0; sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD); pOlView->SetSelectedPages(); @@ -1047,7 +1047,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_SUMMARY_PAGE)) { - sal_Bool bDisable = sal_True; + bool bDisable = true; sal_uInt16 i = 0; sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD); pOlView->SetSelectedPages(); @@ -1062,7 +1062,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) if (pObj && !pObj->IsEmptyPresObj()) { - bDisable = sal_False; + bDisable = false; } } @@ -1094,7 +1094,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) // is starting the presentation possible? if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_PRESENTATION ) ) { - sal_Bool bDisable = sal_True; + bool bDisable = true; sal_uInt16 nCount = GetDoc()->GetSdPageCount( PK_STANDARD ); for( sal_uInt16 i = 0; i < nCount && bDisable; i++ ) @@ -1102,7 +1102,7 @@ void OutlineViewShell::GetMenuState( SfxItemSet &rSet ) SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD); if( !pPage->IsExcluded() ) - bDisable = sal_False; + bDisable = false; } if( bDisable || GetDocSh()->IsPreview()) { @@ -1170,7 +1170,7 @@ long OutlineViewShell::VirtVScrollHdl(ScrollBar* pVScroll) * PrepareClose, gets called when the Shell shall be destroyed. * Forwards the invocation to the View */ -bool OutlineViewShell::PrepareClose( sal_Bool bUI ) +bool OutlineViewShell::PrepareClose( bool bUI ) { if( !ViewShell::PrepareClose(bUI) ) return false; @@ -1301,9 +1301,9 @@ void OutlineViewShell::WriteFrameViewData() ::Outliner* pOutl = pOlView->GetOutliner(); sal_uLong nCntrl = pOutl->GetControlWord(); - sal_Bool bNoColor = sal_False; + bool bNoColor = false; if (nCntrl & EE_CNTRL_NOCOLORS) - bNoColor = sal_True; + bNoColor = true; mpFrameView->SetNoColors(bNoColor); mpFrameView->SetNoAttribs( pOutl->IsFlatMode() ); SdPage* pActualPage = pOlView->GetActualPage(); @@ -1457,9 +1457,9 @@ void OutlineViewShell::Command( const CommandEvent& rCEvt, ::sd::Window* pWin ) -sal_Bool OutlineViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) +bool OutlineViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) { - sal_Bool bReturn = sal_False; + bool bReturn = false; OutlineViewPageChangesGuard aGuard(pOlView); if (pWin == NULL && HasCurrentFunction()) @@ -1528,9 +1528,9 @@ OUString OutlineViewShell::GetSelectionText(bool bCompleteWords) /** * Is something selected? */ -sal_Bool OutlineViewShell::HasSelection(sal_Bool bText) const +bool OutlineViewShell::HasSelection(bool bText) const { - sal_Bool bReturn = sal_False; + bool bReturn = false; if (bText) { @@ -1538,7 +1538,7 @@ sal_Bool OutlineViewShell::HasSelection(sal_Bool bText) const if (pOutlinerView && !pOutlinerView->GetSelected().isEmpty()) { - bReturn = sal_True; + bReturn = true; } } @@ -1685,7 +1685,7 @@ SdPage* OutlineViewShell::GetActualPage() return pOlView->GetActualPage(); } -void OutlineViewShell::UpdatePreview( SdPage* pPage, sal_Bool ) +void OutlineViewShell::UpdatePreview( SdPage* pPage, bool ) { const bool bNewPage = pPage != pLastPage; pLastPage = pPage; @@ -1791,7 +1791,7 @@ bool OutlineViewShell::UpdateOutlineObject( SdPage* pPage, Paragraph* pPara ) OutlinerParaObject* pOPO = NULL; SdrTextObj* pTO = NULL; - sal_Bool bNewObject = sal_False; + bool bNewObject = false; sal_uInt16 eOutlinerMode = OUTLINERMODE_TITLEOBJECT; pTO = (SdrTextObj*)pPage->GetPresObj( PRESOBJ_TEXT ); @@ -1826,7 +1826,7 @@ bool OutlineViewShell::UpdateOutlineObject( SdPage* pPage, Paragraph* pPara ) if( !pTO ) { pTO = pOlView->CreateOutlineTextObject( pPage ); - bNewObject = sal_True; + bNewObject = true; } // page object, outline text in Outliner: @@ -1947,14 +1947,14 @@ sal_uLong OutlineViewShell::Read(SvStream& rInput, const OUString& rBaseURL, sal return( bRet ); } -void OutlineViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse ) +void OutlineViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, bool bBrowse ) { WriteFrameViewData(); ViewShell::WriteUserDataSequence( rSequence, bBrowse ); } -void OutlineViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse ) +void OutlineViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, bool bBrowse ) { WriteFrameViewData(); @@ -2032,8 +2032,8 @@ void OutlineViewShell::SetCurrentPage (SdPage* pPage) for (sal_uInt16 i=0; i<GetDoc()->GetSdPageCount(PK_STANDARD); i++) GetDoc()->SetSelected( GetDoc()->GetSdPage(i, PK_STANDARD), - sal_False); - GetDoc()->SetSelected (pPage, sal_True); + false); + GetDoc()->SetSelected (pPage, true); DrawController& rController(GetViewShellBase().GetDrawController()); rController.FireSelectionChangeListener(); diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 692a70e76554..4436bdd07003 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -90,20 +90,20 @@ TYPEINIT1( OutlineView, ::sd::View ); OutlineView::OutlineView( DrawDocShell& rDocSh, ::Window* pWindow, OutlineViewShell& rOutlineViewShell) : ::sd::View(*rDocSh.GetDoc(), pWindow, &rOutlineViewShell) , mrOutlineViewShell(rOutlineViewShell) -, mrOutliner(*mrDoc.GetOutliner(sal_True)) +, mrOutliner(*mrDoc.GetOutliner(true)) , mnPagesToProcess(0) , mnPagesProcessed(0) -, mbFirstPaint(sal_True) +, mbFirstPaint(true) , mpProgress(NULL) , maDocColor( COL_WHITE ) , maLRSpaceItem( 0, 0, 2000, 0, EE_PARA_OUTLLRSPACE ) { - sal_Bool bInitOutliner = sal_False; + bool bInitOutliner = false; if (mrOutliner.GetViewCount() == 0) { // initialize Outliner: set Reference Device - bInitOutliner = sal_True; + bInitOutliner = true; mrOutliner.Init( OUTLINERMODE_OUTLINEVIEW ); mrOutliner.SetRefDevice( SD_MOD()->GetRefDevice( rDocSh ) ); //viewsize without the width of the image and number in front @@ -225,7 +225,7 @@ void OutlineView::Paint(const Rectangle& rRect, ::sd::Window* pWin) pOlView->ShowCursor(mbFirstPaint); - mbFirstPaint = sal_False; + mbFirstPaint = false; } } @@ -242,8 +242,8 @@ void OutlineView::AdjustPosSizePixel(const Point &,const Size &,::sd::Window*) void OutlineView::AddWindowToPaintView(OutputDevice* pWin) { - sal_Bool bAdded = sal_False; - sal_Bool bValidArea = sal_False; + bool bAdded = false; + bool bValidArea = false; Rectangle aOutputArea; const Color aWhiteColor( COL_WHITE ); sal_uInt16 nView = 0; @@ -255,7 +255,7 @@ void OutlineView::AddWindowToPaintView(OutputDevice* pWin) mpOutlinerView[nView] = new OutlinerView(&mrOutliner, dynamic_cast< ::sd::Window* >(pWin)); mpOutlinerView[nView]->SetBackgroundColor( aWhiteColor ); mrOutliner.InsertView(mpOutlinerView[nView], EE_APPEND); - bAdded = sal_True; + bAdded = true; if (bValidArea) { @@ -265,7 +265,7 @@ void OutlineView::AddWindowToPaintView(OutputDevice* pWin) else if (!bValidArea) { aOutputArea = mpOutlinerView[nView]->GetOutputArea(); - bValidArea = sal_True; + bValidArea = true; } nView++; @@ -279,7 +279,7 @@ void OutlineView::AddWindowToPaintView(OutputDevice* pWin) void OutlineView::DeleteWindowFromPaintView(OutputDevice* pWin) { - sal_Bool bRemoved = sal_False; + bool bRemoved = false; sal_uInt16 nView = 0; ::Window* pWindow; @@ -294,7 +294,7 @@ void OutlineView::DeleteWindowFromPaintView(OutputDevice* pWin) mrOutliner.RemoveView( mpOutlinerView[nView] ); delete mpOutlinerView[nView]; mpOutlinerView[nView] = NULL; - bRemoved = sal_True; + bRemoved = true; } } @@ -467,11 +467,11 @@ SdPage* OutlineView::InsertSlideForParagraph( Paragraph* pPara ) if (eAutoLayout == AUTOLAYOUT_TITLE || eAutoLayout == AUTOLAYOUT_ONLY_TITLE) { - pPage->SetAutoLayout(AUTOLAYOUT_ENUM, sal_True); + pPage->SetAutoLayout(AUTOLAYOUT_ENUM, true); } else { - pPage->SetAutoLayout(pExample->GetAutoLayout(), sal_True); + pPage->SetAutoLayout(pExample->GetAutoLayout(), true); } /********************************************************************** @@ -500,7 +500,7 @@ SdPage* OutlineView::InsertSlideForParagraph( Paragraph* pPara ) pExample->GetLwrBorder() ); // create presentation objects - pNotesPage->SetAutoLayout(pExample->GetAutoLayout(), sal_True); + pNotesPage->SetAutoLayout(pExample->GetAutoLayout(), true); mrOutliner.UpdateFields(); @@ -928,7 +928,7 @@ IMPL_LINK( OutlineView, EndMovingHdl, ::Outliner *, pOutliner ) while (nPageCount) { SdPage* pPage = mrDoc.GetSdPage(nPosNewOrder, PK_STANDARD); - pPage->SetSelected(sal_False); + pPage->SetSelected(false); nPosNewOrder++; nPageCount--; } @@ -1048,7 +1048,7 @@ sal_uLong OutlineView::GetPaperWidth() } /** updates draw model with all changes from outliner model */ -sal_Bool OutlineView::PrepareClose(sal_Bool) +bool OutlineView::PrepareClose(bool) { ::sd::UndoManager* pDocUndoMgr = dynamic_cast<sd::UndoManager*>(mpDocSh->GetUndoManager()); if (pDocUndoMgr != NULL) @@ -1059,23 +1059,23 @@ sal_Bool OutlineView::PrepareClose(sal_Bool) BegUndo(SD_RESSTR(STR_UNDO_CHANGE_TITLE_AND_LAYOUT)); UpdateDocument(); EndUndo(); - mrDoc.SetSelected(GetActualPage(), sal_True); - return sal_True; + mrDoc.SetSelected(GetActualPage(), true); + return true; } /** * Set attributes of the selected text */ -sal_Bool OutlineView::SetAttributes(const SfxItemSet& rSet, sal_Bool ) +bool OutlineView::SetAttributes(const SfxItemSet& rSet, bool ) { - sal_Bool bOk = sal_False; + bool bOk = false; OutlinerView* pOlView = GetViewByWindow(mrOutlineViewShell.GetActiveWindow()); if (pOlView) { pOlView->SetAttribs(rSet); - bOk = sal_True; + bOk = true; } mrOutlineViewShell.Invalidate (SID_PREVIEW_STATE); @@ -1086,14 +1086,14 @@ sal_Bool OutlineView::SetAttributes(const SfxItemSet& rSet, sal_Bool ) /** * Get attributes of the selected text */ -sal_Bool OutlineView::GetAttributes( SfxItemSet& rTargetSet, sal_Bool ) const +bool OutlineView::GetAttributes( SfxItemSet& rTargetSet, bool ) const { OutlinerView* pOlView = GetViewByWindow( mrOutlineViewShell.GetActiveWindow()); DBG_ASSERT(pOlView, "keine OutlinerView gefunden"); rTargetSet.Put( pOlView->GetAttribs(), false ); - return sal_True; + return true; } /** creates outliner model from draw model */ @@ -1120,7 +1120,7 @@ void OutlineView::FillOutliner() OutlinerParaObject* pOPO = pTO->GetOutlinerParaObject(); if (pOPO) { - sal_Bool bVertical = pOPO->IsVertical(); + bool bVertical = pOPO->IsVertical(); pOPO->SetVertical( false ); mrOutliner.AddText(*pOPO); pOPO->SetVertical( bVertical ); @@ -1163,7 +1163,7 @@ void OutlineView::FillOutliner() if (pOPO) { sal_Int32 nParaCount1 = mrOutliner.GetParagraphCount(); - sal_Bool bVertical = pOPO->IsVertical(); + bool bVertical = pOPO->IsVertical(); pOPO->SetVertical( false ); mrOutliner.AddText(*pOPO); pOPO->SetVertical( bVertical ); @@ -1550,7 +1550,7 @@ void OutlineView::UpdateDocument() for (nPage = 0; nPage < nPageCount; nPage++) { SdPage* pPage = mrDoc.GetSdPage( (sal_uInt16)nPage, PK_STANDARD); - mrDoc.SetSelected(pPage, sal_False); + mrDoc.SetSelected(pPage, false); mrOutlineViewShell.UpdateTitleObject( pPage, pPara ); mrOutlineViewShell.UpdateOutlineObject( pPage, pPara ); @@ -1563,7 +1563,7 @@ void OutlineView::UpdateDocument() while( pPara ) { SdPage* pPage = InsertSlideForParagraph( pPara ); - mrDoc.SetSelected(pPage, sal_False); + mrDoc.SetSelected(pPage, false); mrOutlineViewShell.UpdateTitleObject( pPage, pPara ); mrOutlineViewShell.UpdateOutlineObject( pPage, pPara ); diff --git a/sd/source/ui/view/presvish.cxx b/sd/source/ui/view/presvish.cxx index b81af442b771..b9e01ef458c9 100644 --- a/sd/source/ui/view/presvish.cxx +++ b/sd/source/ui/view/presvish.cxx @@ -110,7 +110,7 @@ void PresentationViewShell::FinishInitialization( FrameView* pFrameView ) } -SvxRuler* PresentationViewShell::CreateHRuler(::sd::Window*, sal_Bool) +SvxRuler* PresentationViewShell::CreateHRuler(::sd::Window*, bool) { return NULL; } diff --git a/sd/source/ui/view/sdruler.cxx b/sd/source/ui/view/sdruler.cxx index 3a7ebd3b9ea2..e39bf32d3847 100644 --- a/sd/source/ui/view/sdruler.cxx +++ b/sd/source/ui/view/sdruler.cxx @@ -84,12 +84,12 @@ Ruler::Ruler( DrawViewShell& rViewSh, ::Window* pParent, ::sd::Window* pWin, sal if ( nWinStyle & WB_HSCROLL ) { - bHorz = sal_True; + bHorz = true; SetHelpId( HID_SD_RULER_HORIZONTAL ); } else { - bHorz = sal_False; + bHorz = false; SetHelpId( HID_SD_RULER_VERTICAL ); } } diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 4a7f344aa813..53e48a550ee3 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -160,7 +160,7 @@ View::~View() maSmartTags.Dispose(); // release content of selection clipboard, if we own the content - UpdateSelectionClipboard( sal_True ); + UpdateSelectionClipboard( true ); maDropErrorTimer.Stop(); maDropInsertFileTimer.Stop(); @@ -527,14 +527,14 @@ void View::MarkListHasChanged() } -sal_Bool View::SetAttributes(const SfxItemSet& rSet, sal_Bool bReplaceAll) +bool View::SetAttributes(const SfxItemSet& rSet, bool bReplaceAll) { - sal_Bool bOk = FmFormView::SetAttributes(rSet, bReplaceAll); + bool bOk = FmFormView::SetAttributes(rSet, bReplaceAll); return (bOk); } -sal_Bool View::GetAttributes( SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr ) const +bool View::GetAttributes( SfxItemSet& rTargetSet, bool bOnlyHardAttr ) const { return( FmFormView::GetAttributes( rTargetSet, bOnlyHardAttr ) ); } @@ -543,7 +543,7 @@ sal_Bool View::GetAttributes( SfxItemSet& rTargetSet, sal_Bool bOnlyHardAttr ) c /** * Is a presentation object selected? */ -sal_Bool View::IsPresObjSelected(sal_Bool bOnPage, sal_Bool bOnMasterPage, sal_Bool bCheckPresObjListOnly, sal_Bool bCheckLayoutOnly) const +bool View::IsPresObjSelected(bool bOnPage, bool bOnMasterPage, bool bCheckPresObjListOnly, bool bCheckLayoutOnly) const { SdrMarkList* pMarkList; @@ -565,8 +565,8 @@ sal_Bool View::IsPresObjSelected(sal_Bool bOnPage, sal_Bool bOnMasterPage, sal_B SdPage* pPage; SdrObject* pObj; - sal_Bool bSelected = sal_False; - sal_Bool bMasterPage = sal_False; + bool bSelected = false; + bool bMasterPage = false; long nMark; long nMarkMax = long(pMarkList->GetMarkCount()) - 1; @@ -590,11 +590,11 @@ sal_Bool View::IsPresObjSelected(sal_Bool bOnPage, sal_Bool bOnMasterPage, sal_B PresObjKind eKind = pPage->GetPresObjKind(pObj); if((eKind != PRESOBJ_FOOTER) && (eKind != PRESOBJ_HEADER) && (eKind != PRESOBJ_DATETIME) && (eKind != PRESOBJ_SLIDENUMBER) ) - bSelected = sal_True; + bSelected = true; } else { - bSelected = sal_True; + bSelected = true; } } } @@ -633,7 +633,7 @@ void View::ModelHasChanged() } -sal_Bool View::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr) +bool View::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr) { // forward to SdrView return FmFormView::SetStyleSheet(pStyleSheet, bDontRemoveHardAttr); @@ -645,7 +645,7 @@ sal_Bool View::SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHar */ static void SetSpellOptions( const SdDrawDocument& rDoc, sal_uLong& rCntrl ) { - sal_Bool bOnlineSpell = rDoc.GetOnlineSpell(); + bool bOnlineSpell = rDoc.GetOnlineSpell(); if( bOnlineSpell ) rCntrl |= EE_CNTRL_ONLINESPELLING; @@ -695,7 +695,7 @@ bool View::SdrBeginTextEdit( pOutl->SetDefaultLanguage( Application::GetSettings().GetLanguageTag().getLanguageType() ); } - sal_Bool bReturn = FmFormView::SdrBeginTextEdit( + bool bReturn = FmFormView::SdrBeginTextEdit( pObj, pPV, pWin, bIsNewObj, pOutl, pGivenOutlinerView, bDontDeleteOutliner, bOnlyOneView, bGrabFocus); @@ -739,7 +739,7 @@ SdrEndTextEditKind View::SdrEndTextEdit(bool bDontDeleteReally ) { SdrObjectWeakRef xObj( GetTextEditObject() ); - sal_Bool bDefaultTextRestored = RestoreDefaultText( dynamic_cast< SdrTextObj* >( GetTextEditObject() ) ); + bool bDefaultTextRestored = RestoreDefaultText( dynamic_cast< SdrTextObj* >( GetTextEditObject() ) ); SdrEndTextEditKind eKind = FmFormView::SdrEndTextEdit(bDontDeleteReally); @@ -823,7 +823,7 @@ void View::SetMarkedOriginalSize() { SdrUndoGroup* pUndoGroup = new SdrUndoGroup(mrDoc); sal_uLong nCount = GetMarkedObjectCount(); - sal_Bool bOK = sal_False; + bool bOK = false; for( sal_uInt32 i = 0; i < nCount; i++ ) { @@ -845,7 +845,7 @@ void View::SetMarkedOriginalSize() { MapMode aMap100( MAP_100TH_MM ); aOleSize = ((SdrOle2Obj*)pObj)->GetOrigObjSize( &aMap100 ); - bOK = sal_True; + bOK = true; } else { @@ -854,7 +854,7 @@ void View::SetMarkedOriginalSize() { awt::Size aSz = xObj->getVisualAreaSize( nAspect ); aOleSize = OutputDevice::LogicToLogic( Size( aSz.Width, aSz.Height ), aUnit, MAP_100TH_MM ); - bOK = sal_True; + bOK = true; } catch( embed::NoVisualAreaSizeException& ) {} @@ -889,7 +889,7 @@ void View::SetMarkedOriginalSize() aRect.SetSize( aSize ); pObj->SetLogicRect( aRect ); - bOK = sal_True; + bOK = true; } } } @@ -943,10 +943,10 @@ void View::DoConnect(SdrOle2Obj* pObj) } } -sal_Bool View::IsMorphingAllowed() const +bool View::IsMorphingAllowed() const { const SdrMarkList& rMarkList = GetMarkedObjectList(); - sal_Bool bRet = sal_False; + bool bRet = false; if ( rMarkList.GetMarkCount() == 2 ) { @@ -982,17 +982,17 @@ sal_Bool View::IsMorphingAllowed() const if( ( eFillStyle1 == XFILL_NONE || eFillStyle1 == XFILL_SOLID ) && ( eFillStyle2 == XFILL_NONE || eFillStyle2 == XFILL_SOLID ) ) - bRet = sal_True; + bRet = true; } } return bRet; } -sal_Bool View::IsVectorizeAllowed() const +bool View::IsVectorizeAllowed() const { const SdrMarkList& rMarkList = GetMarkedObjectList(); - sal_Bool bRet = sal_False; + bool bRet = false; if( rMarkList.GetMarkCount() == 1 ) { @@ -1002,7 +1002,7 @@ sal_Bool View::IsVectorizeAllowed() const { if(GRAPHIC_BITMAP == pObj->GetGraphicType() && !pObj->isEmbeddedSvg()) { - bRet = sal_True; + bRet = true; } } } @@ -1161,7 +1161,7 @@ bool View::MarkPoint(SdrHdl& rHdl, bool bUnmark ) return FmFormView::MarkPoint( rHdl, bUnmark ); } -sal_Bool View::MarkPoints(const Rectangle* pRect, sal_Bool bUnmark) +bool View::MarkPoints(const Rectangle* pRect, bool bUnmark) { if( maSmartTags.MarkPoints( pRect, bUnmark ) ) return true; @@ -1246,7 +1246,7 @@ bool View::ShouldToggleOn( if (!pSdrModel) return false; - sal_Bool bToggleOn = sal_False; + bool bToggleOn = false; SdrOutliner* pOutliner = SdrMakeOutliner(OUTLINERMODE_TEXTOBJECT, pSdrModel); sal_uInt32 nMarkCount = GetMarkedObjectCount(); for (sal_uInt32 nIndex = 0; nIndex < nMarkCount && !bToggleOn; nIndex++) diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index 8300a2415fec..8b7eae3cd50e 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -101,7 +101,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent { // since SdTransferable::CopyToClipboard is called, this // dynamically created object ist destroyed automatically - SdTransferable* pTransferable = new SdTransferable( &mrDoc, NULL, sal_False ); + SdTransferable* pTransferable = new SdTransferable( &mrDoc, NULL, false ); ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xRet( pTransferable ); SD_MOD()->pTransferClip = pTransferable; @@ -166,7 +166,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > View::CreateDragDataObject( View* pWorkView, ::Window& rWindow, const Point& rDragPos ) { - SdTransferable* pTransferable = new SdTransferable( &mrDoc, pWorkView, sal_False ); + SdTransferable* pTransferable = new SdTransferable( &mrDoc, pWorkView, false ); ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xRet( pTransferable ); SD_MOD()->pTransferDrag = pTransferable; @@ -217,7 +217,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > View::CreateSelectionDataObject( View* pWorkView, ::Window& rWindow ) { - SdTransferable* pTransferable = new SdTransferable( &mrDoc, pWorkView, sal_True ); + SdTransferable* pTransferable = new SdTransferable( &mrDoc, pWorkView, true ); ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xRet( pTransferable ); TransferableObjectDescriptor aObjDesc; const Rectangle aMarkRect( GetAllMarkedRect() ); @@ -242,7 +242,7 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent -void View::UpdateSelectionClipboard( sal_Bool bForceDeselect ) +void View::UpdateSelectionClipboard( bool bForceDeselect ) { if( mpViewSh && mpViewSh->GetActiveWindow() ) { @@ -315,7 +315,7 @@ void View::DoPaste (::Window* pWindow) // remove all hard linebreaks from the title if( pOutliner && pOutliner->GetParagraphCount() > 1 ) { - sal_Bool bOldUpdateMode = pOutliner->GetUpdateMode(); + bool bOldUpdateMode = pOutliner->GetUpdateMode(); pOutliner->SetUpdateMode( false ); @@ -353,7 +353,7 @@ void View::DoPaste (::Window* pWindow) if (pDrViewSh != NULL) { - if( !InsertData( aDataHelper, aPos, nDnDAction, sal_False ) ) + if( !InsertData( aDataHelper, aPos, nDnDAction, false ) ) { INetBookmark aINetBookmark( aEmptyStr, aEmptyStr ); @@ -459,7 +459,7 @@ void View::DragFinished( sal_Int8 nDropAction ) } if( pDragTransferable ) - pDragTransferable->SetInternalMove( sal_False ); + pDragTransferable->SetInternalMove( false ); if( bUndo ) EndUndo(); @@ -487,7 +487,7 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge if( mbIsDropAllowed && !pPV->IsLayerLocked( aLayerName ) && pPV->IsLayerVisible( aLayerName ) ) { const OutlinerView* pOLV = GetTextEditOutlinerView(); - sal_Bool bIsInsideOutlinerView = sal_False; + bool bIsInsideOutlinerView = false; if( pOLV ) { @@ -502,7 +502,7 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge if( aRect.IsInside( pOLV->GetWindow()->PixelToLogic( rEvt.maPosPixel ) ) ) { - bIsInsideOutlinerView = sal_True; + bIsInsideOutlinerView = true; } } @@ -535,12 +535,12 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge } else { - const sal_Bool bDrawing = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_DRAWING ); - const sal_Bool bGraphic = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_SVXB ); - const sal_Bool bMtf = rTargetHelper.IsDropFormatSupported( FORMAT_GDIMETAFILE ); - const sal_Bool bBitmap = rTargetHelper.IsDropFormatSupported( FORMAT_BITMAP ); - sal_Bool bBookmark = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK ); - sal_Bool bXFillExchange = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_XFA ); + const bool bDrawing = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_DRAWING ); + const bool bGraphic = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_SVXB ); + const bool bMtf = rTargetHelper.IsDropFormatSupported( FORMAT_GDIMETAFILE ); + const bool bBitmap = rTargetHelper.IsDropFormatSupported( FORMAT_BITMAP ); + bool bBookmark = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK ); + bool bXFillExchange = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_XFA ); // check handle insert if( !nRet && ( (bXFillExchange && ( SDRDRAG_GRADIENT == GetDragMode() )) || ( SDRDRAG_TRANSPARENCE == GetDragMode() ) ) ) @@ -573,8 +573,8 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge SdrPageView* pPageView = NULL; ::sd::Window* pWindow = mpViewSh->GetActiveWindow(); Point aPos( pWindow->PixelToLogic( rEvt.maPosPixel ) ); - const sal_Bool bHasPickObj = PickObj( aPos, getHitTolLog(), pPickObj, pPageView ); - sal_Bool bIsPresTarget = sal_False; + const bool bHasPickObj = PickObj( aPos, getHitTolLog(), pPickObj, pPageView ); + bool bIsPresTarget = false; if( bHasPickObj && pPickObj && ( pPickObj->IsEmptyPresObj() || pPickObj->GetUserCall() ) ) { @@ -601,18 +601,18 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge nRet = nDropAction; } else - bXFillExchange = sal_False; + bXFillExchange = false; } // check normal insert if( !nRet ) { - const sal_Bool bSBAFormat = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH ); - const sal_Bool bEditEngine = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_EDITENGINE ); - const sal_Bool bString = rTargetHelper.IsDropFormatSupported( FORMAT_STRING ); - const sal_Bool bRTF = rTargetHelper.IsDropFormatSupported( FORMAT_RTF ); - const sal_Bool bFile = rTargetHelper.IsDropFormatSupported( FORMAT_FILE ); - const sal_Bool bFileList = rTargetHelper.IsDropFormatSupported( FORMAT_FILE_LIST ); + const bool bSBAFormat = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH ); + const bool bEditEngine = rTargetHelper.IsDropFormatSupported( SOT_FORMATSTR_ID_EDITENGINE ); + const bool bString = rTargetHelper.IsDropFormatSupported( FORMAT_STRING ); + const bool bRTF = rTargetHelper.IsDropFormatSupported( FORMAT_RTF ); + const bool bFile = rTargetHelper.IsDropFormatSupported( FORMAT_FILE ); + const bool bFileList = rTargetHelper.IsDropFormatSupported( FORMAT_FILE_LIST ); if( mpDropMarker ) { @@ -621,7 +621,7 @@ sal_Int8 View::AcceptDrop( const AcceptDropEvent& rEvt, DropTargetHelper& rTarge } if( bBookmark && bFile && ( nDropAction & DND_ACTION_MOVE ) && mpViewSh && SlideShow::IsRunning(mpViewSh->GetViewShellBase()) ) - bBookmark = sal_False; + bBookmark = false; if( bDrawing || bGraphic || bMtf || bBitmap || bBookmark || bFile || bFileList || bXFillExchange || bSBAFormat || bEditEngine || bString || bRTF ) nRet = nDropAction; @@ -669,7 +669,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar if( !pPV->IsLayerLocked( aActiveLayer ) ) { const OutlinerView* pOLV = GetTextEditOutlinerView(); - sal_Bool bIsInsideOutlinerView = sal_False; + bool bIsInsideOutlinerView = false; if( pOLV ) { @@ -686,7 +686,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar if( aRect.IsInside( aPos ) ) { - bIsInsideOutlinerView = sal_True; + bIsInsideOutlinerView = true; } } @@ -728,7 +728,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar } // standard insert? - if( !nRet && InsertData( aDataHelper, aPos, nDropAction, sal_True, 0, nPage, nLayer ) ) + if( !nRet && InsertData( aDataHelper, aPos, nDropAction, true, 0, nPage, nLayer ) ) nRet = nDropAction; // special insert? @@ -763,7 +763,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar // insert as clip action => jump OUString aBookmark( aINetBookmark.GetURL() ); SdAnimationInfo* pInfo = mrDoc.GetAnimationInfo( pPickObj ); - sal_Bool bCreated = sal_False; + bool bCreated = false; if( !aBookmark.isEmpty() ) { @@ -785,7 +785,7 @@ sal_Int8 View::ExecuteDrop( const ExecuteDropEvent& rEvt, DropTargetHelper& rTar if( !pInfo ) { pInfo = SdDrawDocument::GetShapeUserData( *pPickObj, true ); - bCreated = sal_True; + bCreated = true; } // create undo action with old and new sizes @@ -871,9 +871,9 @@ IMPL_LINK( View, ExecuteNavigatorDrop, SdNavigatorDropEvent*, pSdNavigatorDropEv /* In order t ensure unique page names, we test the ones we want to insert. If necessary. we put them into and replacement list (bNameOK == sal_False -> User canceled). */ - sal_Bool bLink = ( NAVIGATOR_DRAGTYPE_LINK == pPageObjsTransferable->GetDragType() ? sal_True : sal_False ); - sal_Bool bNameOK = GetExchangeList( aExchangeList, aBookmarkList, 2 ); - sal_Bool bReplace = sal_False; + bool bLink = ( NAVIGATOR_DRAGTYPE_LINK == pPageObjsTransferable->GetDragType() ? sal_True : sal_False ); + bool bNameOK = GetExchangeList( aExchangeList, aBookmarkList, 2 ); + bool bReplace = false; /* Since we don't know the type (page or object), we fill a list with pages and objects. @@ -882,9 +882,9 @@ IMPL_LINK( View, ExecuteNavigatorDrop, SdNavigatorDropEvent*, pSdNavigatorDropEv if( bNameOK ) { mrDoc.InsertBookmark( aBookmarkList, aExchangeList, - bLink, bReplace, nPgPos, sal_False, + bLink, bReplace, nPgPos, false, &pPageObjsTransferable->GetDocShell(), - sal_True, &aPos ); + true, &aPos ); } } @@ -959,9 +959,9 @@ typedef std::vector< SdrObject* > SdrObjectVector; void ImplProcessObjectList(SdrObject* pObj, SdrObjectVector& rVector ) { - sal_Bool bIsGroup(pObj->IsGroupObject()); + bool bIsGroup(pObj->IsGroupObject()); if(bIsGroup && pObj->ISA(E3dObject) && !pObj->ISA(E3dScene)) - bIsGroup = sal_False; + bIsGroup = false; rVector.push_back( pObj ); diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index f588d9f32180..cd95616977a3 100644 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -254,8 +254,8 @@ bool View::InsertMetaFile( TransferableDataHelper& rDataHelper, const Point& rPo return true; } -sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, - const Point& rPos, sal_Int8& rDnDAction, sal_Bool bDrag, +bool View::InsertData( const TransferableDataHelper& rDataHelper, + const Point& rPos, sal_Int8& rDnDAction, bool bDrag, sal_uLong nFormat, sal_uInt16 nPage, sal_uInt16 nLayer ) { maDropPos = rPos; @@ -267,8 +267,8 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, SdPage* pPage = NULL; ImageMap* pImageMap = NULL; bool bReturn = false; - sal_Bool bLink = ( ( mnAction & DND_ACTION_LINK ) != 0 ); - sal_Bool bCopy = ( ( ( mnAction & DND_ACTION_COPY ) != 0 ) || bLink ); + bool bLink = ( ( mnAction & DND_ACTION_LINK ) != 0 ); + bool bCopy = ( ( ( mnAction & DND_ACTION_COPY ) != 0 ) || bLink ); sal_uLong nPasteOptions = SDRINSERT_SETDEFLAYER; if (mpViewSh != NULL) @@ -377,7 +377,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, if( !pPV->IsLayerLocked( aLayer ) ) { - pOwnData->SetInternalMove( sal_True ); + pOwnData->SetInternalMove( true ); SortMarkedObjects(); for( sal_uLong nM = 0; nM < GetMarkedObjectCount(); nM++ ) @@ -405,12 +405,12 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, else { SdrPageView* pPV = GetSdrPageView(); - sal_Bool bDropOnTabBar = sal_True; + bool bDropOnTabBar = true; if( !pPage && pPV->GetPage()->GetPageNum() != mnDragSrcPgNum ) { pPage = (SdPage*) pPV->GetPage(); - bDropOnTabBar = sal_False; + bDropOnTabBar = false; } if( pPage ) @@ -586,7 +586,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, } else { - pOwnData->SetInternalMove( sal_True ); + pOwnData->SetInternalMove( true ); MoveAllMarked( Size( maDropPos.X() - pOwnData->GetStartPos().X(), maDropPos.Y() - pOwnData->GetStartPos().Y() ), bCopy ); bReturn = true; @@ -611,7 +611,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, sal_Int32 nPos = aLayout.indexOf(SD_LT_SEPARATOR); if (nPos != -1) aLayout = aLayout.copy(0, nPos); - pPage->SetPresentationLayout( aLayout, sal_False, sal_False ); + pPage->SetPresentationLayout( aLayout, false, false ); pSourceDoc->CreatingDataObj( NULL ); } else @@ -652,7 +652,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, sal_Int32 nPos = aLayout.indexOf(SD_LT_SEPARATOR); if (nPos != -1) aLayout = aLayout.copy(0, nPos); - pPage->SetPresentationLayout( aLayout, sal_False, sal_False ); + pPage->SetPresentationLayout( aLayout, false, false ); } } @@ -662,7 +662,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, if( aDataHelper.GetSotStorageStream( SOT_FORMATSTR_ID_DRAWING, xStm ) ) { - sal_Bool bChanged = sal_False; + bool bChanged = false; DrawDocShellRef xShell = new DrawDocShell(SFX_CREATE_MODE_INTERNAL); xShell->DoInitNew(0); @@ -731,7 +731,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, { SdrObject::Free(pPickObj2 ); } - bChanged = sal_True; + bChanged = true; mnAction = DND_ACTION_COPY; } else if( ( mnAction & DND_ACTION_LINK ) && pPickObj && pObj && !pPickObj->ISA( SdrGrafObj ) && !pPickObj->ISA( SdrOle2Obj ) ) @@ -782,7 +782,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, if( bUndo ) EndUndo(); - bChanged = sal_True; + bChanged = true; } } } @@ -850,7 +850,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, if( mrDoc.GetDocSh() && ( mrDoc.GetDocSh()->GetClassName() == aObjDesc.maClassName ) ) { uno::Reference < embed::XStorage > xStore( ::comphelper::OStorageHelper::GetStorageFromInputStream( xStm ) ); - ::sd::DrawDocShellRef xDocShRef( new ::sd::DrawDocShell( SFX_CREATE_MODE_EMBEDDED, sal_True, mrDoc.GetDocumentType() ) ); + ::sd::DrawDocShellRef xDocShRef( new ::sd::DrawDocShell( SFX_CREATE_MODE_EMBEDDED, true, mrDoc.GetDocumentType() ) ); // mba: BaseURL doesn't make sense for clipboard functionality SfxMedium *pMedium = new SfxMedium( xStore, OUString() ); @@ -888,7 +888,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, sal_Int32 nPos = aLayout.indexOf(SD_LT_SEPARATOR); if (nPos != -1) aLayout = aLayout.copy(0, nPos); - pPage->SetPresentationLayout( aLayout, sal_False, sal_False ); + pPage->SetPresentationLayout( aLayout, false, false ); } xDocShRef->DoClose(); @@ -1313,7 +1313,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, Color aColor( rColItem.GetColorValue() ); OUString aName( rColItem.GetName() ); SfxItemSet aSet( mrDoc.GetPool() ); - sal_Bool bClosed = pPickObj->IsClosedObj(); + bool bClosed = pPickObj->IsClosedObj(); ::sd::Window* pWin = mpViewSh->GetActiveWindow(); sal_uInt16 nHitLog = (sal_uInt16) pWin->PixelToLogic( Size(FuPoor::HITPIX, 0 ) ).Width(); diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 04a3c8595ce1..2802435f4a03 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -196,7 +196,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, pNewGrafObj->AdjustToMaxRect( Rectangle( Point(), aPageSize ), true ); sal_uLong nOptions = SDRINSERT_SETDEFLAYER; - sal_Bool bIsPresTarget = sal_False; + bool bIsPresTarget = false; if ((mpViewSh && mpViewSh->GetViewShell()!=NULL @@ -404,7 +404,7 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl) { OUString aCurrentDropFile( *aIter ); INetURLObject aURL( aCurrentDropFile ); - sal_Bool bOK = sal_False; + bool bOK = false; if( aURL.GetProtocol() == INET_PROT_NOT_VALID ) { @@ -434,7 +434,7 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl) if( aIter == maDropFileVector.begin() ) mnAction = nTempAction; - bOK = sal_True; + bOK = true; } if( !bOK ) { @@ -469,7 +469,7 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl) aReq.AppendItem( aItem1 ); aReq.AppendItem( aItem2 ); FuInsertFile::Create( mpViewSh, pWin, this, &mrDoc, aReq ); - bOK = sal_True; + bOK = true; } } } diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index a23c31c840be..3f0dca33cc0e 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -594,9 +594,9 @@ void Window::SetMinZoomAutoCalc (bool bAuto) * If aWinPos.X()/Y() == -1, then we center the corresponding position (e.g. for * initialization). */ -void Window::UpdateMapOrigin(sal_Bool bInvalidate) +void Window::UpdateMapOrigin(bool bInvalidate) { - sal_Bool bChanged = sal_False; + bool bChanged = false; const Size aWinSize = PixelToLogic(GetOutputSizePixel()); if ( mbCenterAllowed ) @@ -607,28 +607,28 @@ void Window::UpdateMapOrigin(sal_Bool bInvalidate) // resizes maWinPos.X() -= (aWinSize.Width() - maPrevSize.Width()) / 2; maWinPos.Y() -= (aWinSize.Height() - maPrevSize.Height()) / 2; - bChanged = sal_True; + bChanged = true; } if ( maWinPos.X() > maViewSize.Width() - aWinSize.Width() ) { maWinPos.X() = maViewSize.Width() - aWinSize.Width(); - bChanged = sal_True; + bChanged = true; } if ( maWinPos.Y() > maViewSize.Height() - aWinSize.Height() ) { maWinPos.Y() = maViewSize.Height() - aWinSize.Height(); - bChanged = sal_True; + bChanged = true; } if ( aWinSize.Width() > maViewSize.Width() || maWinPos.X() < 0 ) { maWinPos.X() = maViewSize.Width() / 2 - aWinSize.Width() / 2; - bChanged = sal_True; + bChanged = true; } if ( aWinSize.Height() > maViewSize.Height() || maWinPos.Y() < 0 ) { maWinPos.Y() = maViewSize.Height() / 2 - aWinSize.Height() / 2; - bChanged = sal_True; + bChanged = true; } } @@ -718,7 +718,7 @@ void Window::SetVisibleXY(double fX, double fY) maWinPos.X() = (long) (fX * maViewSize.Width()); if ( fY >= 0 ) maWinPos.Y() = (long) (fY * maViewSize.Height()); - UpdateMapOrigin(sal_False); + UpdateMapOrigin(false); Scroll(nOldX - maWinPos.X(), nOldY - maWinPos.Y(), SCROLL_CHILDREN); Update(); } @@ -916,7 +916,7 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt ) { DrawDocShell* pDocSh = mpViewShell->GetDocSh(); if( pDocSh ) - pDocSh->SetPrinter( pDocSh->GetPrinter( sal_True ) ); + pDocSh->SetPrinter( pDocSh->GetPrinter( true ) ); } } @@ -931,7 +931,7 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt ) { DrawDocShell* pDocSh = mpViewShell->GetDocSh(); if( pDocSh ) - pDocSh->SetPrinter( pDocSh->GetPrinter( sal_True ) ); + pDocSh->SetPrinter( pDocSh->GetPrinter( true ) ); } } diff --git a/sd/source/ui/view/tabcontr.cxx b/sd/source/ui/view/tabcontr.cxx index 77cccb63dc79..97c76b6d1932 100644 --- a/sd/source/ui/view/tabcontr.cxx +++ b/sd/source/ui/view/tabcontr.cxx @@ -81,7 +81,7 @@ TabControl::TabControl(DrawViewShell* pViewSh, Window* pParent) : DropTargetHelper( this ), RrePageID(1), pDrViewSh(pViewSh), - bInternalMove(sal_False) + bInternalMove(false) { EnableEditMode(); SetSizePixel(Size(0, 0)); @@ -164,7 +164,7 @@ void TabControl::DoubleClick() void TabControl::StartDrag( sal_Int8, const Point& ) { - bInternalMove = sal_True; + bInternalMove = true; // object is delete by reference mechanismn ( new TabControl::TabControlTransferable( *this ) )->StartDrag( this, DND_ACTION_COPYMOVE ); @@ -173,7 +173,7 @@ void TabControl::StartDrag( sal_Int8, const Point& ) void TabControl::DragFinished( sal_Int8 ) { - bInternalMove = sal_False; + bInternalMove = false; } @@ -299,7 +299,7 @@ void TabControl::Command(const CommandEvent& rCEvt) if ( nCmd == COMMAND_CONTEXTMENU ) { - sal_Bool bGraphicShell = pDrViewSh->ISA(GraphicViewShell); + bool bGraphicShell = pDrViewSh->ISA(GraphicViewShell); sal_uInt16 nResId = bGraphicShell ? RID_GRAPHIC_PAGETAB_POPUP : RID_DRAW_PAGETAB_POPUP; SfxDispatcher* pDispatcher = pDrViewSh->GetViewFrame()->GetDispatcher(); @@ -309,11 +309,11 @@ void TabControl::Command(const CommandEvent& rCEvt) long TabControl::StartRenaming() { - sal_Bool bOK = sal_False; + bool bOK = false; if (pDrViewSh->GetPageKind() == PK_STANDARD) { - bOK = sal_True; + bOK = true; ::sd::View* pView = pDrViewSh->GetView(); @@ -321,12 +321,12 @@ long TabControl::StartRenaming() pView->SdrEndTextEdit(); } - return( bOK ); + return bOK ? 1 : 0; } long TabControl::AllowRenaming() { - sal_Bool bOK = sal_True; + bool bOK = true; OUString aNewName( GetEditText() ); OUString aCompareName( GetPageText( GetEditPageId() ) ); @@ -341,10 +341,10 @@ long TabControl::AllowRenaming() } else { - bOK = sal_False; + bOK = false; } } - return( bOK ); + return bOK ? 1 : 0; } void TabControl::EndRenaming() @@ -365,7 +365,7 @@ void TabControl::ActivatePage() long TabControl::DeactivatePage() { - return pDrViewSh->IsSwitchPageAllowed(); + return pDrViewSh->IsSwitchPageAllowed() ? 1 : 0; } diff --git a/sd/source/ui/view/unmodpg.cxx b/sd/source/ui/view/unmodpg.cxx index 7775201c2c76..e7af9b07c20e 100644 --- a/sd/source/ui/view/unmodpg.cxx +++ b/sd/source/ui/view/unmodpg.cxx @@ -41,8 +41,8 @@ ModifyPageUndoAction::ModifyPageUndoAction( SdPage* pThePage, const OUString& aTheNewName, AutoLayout eTheNewAutoLayout, - sal_Bool bTheNewBckgrndVisible, - sal_Bool bTheNewBckgrndObjsVisible) + bool bTheNewBckgrndVisible, + bool bTheNewBckgrndObjsVisible) : SdUndoAction(pTheDoc) { DBG_ASSERT(pThePage, "Undo without a page???"); diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx index 7c319ba9944c..5f98d68ba8f4 100644 --- a/sd/source/ui/view/viewshe2.cxx +++ b/sd/source/ui/view/viewshe2.cxx @@ -250,7 +250,7 @@ long ViewShell::VirtVScrollHdl(ScrollBar* pVScroll) return 0; } -SvxRuler* ViewShell::CreateHRuler(::sd::Window* , sal_Bool ) +SvxRuler* ViewShell::CreateHRuler(::sd::Window* , bool ) { return NULL; } @@ -413,7 +413,7 @@ void ViewShell::SetZoomRect(const Rectangle& rZoomRect) * Initialize imaging parameters for all split windows. */ void ViewShell::InitWindows(const Point& rViewOrigin, const Size& rViewSize, - const Point& rWinPos, sal_Bool bUpdate) + const Point& rWinPos, bool bUpdate) { if (mpContentWindow.get() != NULL) { @@ -462,9 +462,9 @@ void ViewShell::DrawMarkRect(const Rectangle& rRect) const void ViewShell::SetPageSizeAndBorder(PageKind ePageKind, const Size& rNewSize, long nLeft, long nRight, - long nUpper, long nLower, sal_Bool bScaleAll, + long nUpper, long nLower, bool bScaleAll, Orientation eOrientation, sal_uInt16 nPaperBin, - sal_Bool bBackgroundFullSize) + bool bBackgroundFullSize) { SdPage* pPage = 0; SdUndoGroup* pUndoGroup = NULL; @@ -577,7 +577,7 @@ void ViewShell::SetPageSizeAndBorder(PageKind ePageKind, const Size& rNewSize, // adjust handout page to new format of the standard page if( (ePageKind == PK_STANDARD) || (ePageKind == PK_HANDOUT) ) - GetDoc()->GetSdPage(0, PK_HANDOUT)->CreateTitleAndLayout(sal_True); + GetDoc()->GetSdPage(0, PK_HANDOUT)->CreateTitleAndLayout(true); // handed over undo group to undo manager pViewShell->GetViewFrame()->GetObjectShell() @@ -589,7 +589,7 @@ void ViewShell::SetPageSizeAndBorder(PageKind ePageKind, const Size& rNewSize, Point aPageOrg = Point(nWidth, nHeight / 2); Size aViewSize = Size(nWidth * 3, nHeight * 2); - InitWindows(aPageOrg, aViewSize, Point(-1, -1), sal_True); + InitWindows(aPageOrg, aViewSize, Point(-1, -1), true); Point aVisAreaPos; @@ -669,9 +669,9 @@ void ViewShell::SetActiveWindow (::sd::Window* pWin) -sal_Bool ViewShell::RequestHelp(const HelpEvent& rHEvt, ::sd::Window*) +bool ViewShell::RequestHelp(const HelpEvent& rHEvt, ::sd::Window*) { - sal_Bool bReturn = sal_False; + bool bReturn = false; if (rHEvt.GetMode()) { @@ -730,12 +730,12 @@ void ViewShell::WriteFrameViewData() } -sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) +bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) { ErrCode aErrCode = 0; SfxErrorContext aEC(ERRCTX_SO_DOVERB, GetActiveWindow(), RID_SO_ERRCTX); - sal_Bool bAbort = sal_False; + bool bAbort = false; GetDocSh()->SetWaitCursor( true ); SfxViewShell* pViewShell = GetViewShell(); OSL_ASSERT (pViewShell!=NULL); @@ -786,7 +786,7 @@ sal_Bool ViewShell::ActivateObject(SdrOle2Obj* pObj, long nVerb) if (!xObj.is()) { - bAbort = sal_True; + bAbort = true; } } @@ -924,7 +924,7 @@ void ViewShell::WriteUserData(OUString&) /** * Switch ruler on/off */ -void ViewShell::SetRuler(sal_Bool bRuler) +void ViewShell::SetRuler(bool bRuler) { mbHasRulers = ( bRuler && !GetDocSh()->IsPreview() ); // no rulers on preview mode @@ -981,8 +981,7 @@ sal_Int8 ViewShell::ExecuteDrop ( return( pView ? pView->ExecuteDrop( rEvt, rTargetHelper, pTargetWindow, nPage, nLayer ) : DND_ACTION_NONE ); } -void ViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < - ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse) +void ViewShell::WriteUserDataSequence ( css::uno::Sequence < css::beans::PropertyValue >& rSequence, bool bBrowse) { const sal_Int32 nIndex = rSequence.getLength(); rSequence.realloc( nIndex + 1 ); @@ -1003,7 +1002,7 @@ void ViewShell::WriteUserDataSequence ( ::com::sun::star::uno::Sequence < } -void ViewShell::ReadUserDataSequence ( const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >& rSequence, sal_Bool bBrowse ) +void ViewShell::ReadUserDataSequence ( const css::uno::Sequence < css::beans::PropertyValue >& rSequence, bool bBrowse ) { mpFrameView->ReadUserDataSequence( rSequence, bBrowse ); } diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index 35e5751e9cf2..e5205c4c1b54 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -129,13 +129,13 @@ void ViewShell::GetMenuState( SfxItemSet &rSet ) if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_UNDO)) { ::svl::IUndoManager* pUndoManager = ImpGetUndoManager(); - sal_Bool bActivate(sal_False); + bool bActivate(false); if(pUndoManager) { if(pUndoManager->GetUndoActionCount() != 0) { - bActivate = sal_True; + bActivate = true; } } @@ -156,13 +156,13 @@ void ViewShell::GetMenuState( SfxItemSet &rSet ) if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_REDO)) { ::svl::IUndoManager* pUndoManager = ImpGetUndoManager(); - sal_Bool bActivate(sal_False); + bool bActivate(false); if(pUndoManager) { if(pUndoManager->GetRedoActionCount() != 0) { - bActivate = sal_True; + bActivate = true; } } @@ -216,8 +216,8 @@ SdPage* ViewShell::CreateOrDuplicatePage ( OUString aNotesPageName; AutoLayout eStandardLayout (AUTOLAYOUT_NONE); AutoLayout eNotesLayout (AUTOLAYOUT_NOTES); - sal_Bool bIsPageBack = aVisibleLayers.IsSet(aBckgrnd); - sal_Bool bIsPageObj = aVisibleLayers.IsSet(aBckgrndObj); + bool bIsPageBack = aVisibleLayers.IsSet(aBckgrnd); + bool bIsPageObj = aVisibleLayers.IsSet(aBckgrndObj); // 1. Process the arguments. const SfxItemSet* pArgs = rRequest.GetArgs(); diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index ca89e24e3774..eaa950385de2 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -113,7 +113,7 @@ private: namespace sd { -sal_Bool ViewShell::IsPageFlipMode(void) const +bool ViewShell::IsPageFlipMode(void) const { return this->ISA(DrawViewShell) && mpContentWindow.get() != NULL && mpContentWindow->GetVisibleHeight() >= 1.0; @@ -180,7 +180,7 @@ void ViewShell::construct(void) mpView = 0; mpFrameView = 0; mpZoomList = 0; - mbStartShowWithDialog = sal_False; + mbStartShowWithDialog = false; mnPrintedHandoutPageNum = 1; mnPrintedHandoutPageCount = 0; mpWindowUpdater.reset( new ::sd::WindowUpdater() ); @@ -222,7 +222,7 @@ void ViewShell::construct(void) OUString aName( "ViewShell" ); SetName (aName); - GetDoc()->StartOnlineSpelling(sal_False); + GetDoc()->StartOnlineSpelling(false); mpWindowUpdater->SetViewShell (*this); mpWindowUpdater->SetDocument (GetDoc()); @@ -341,7 +341,7 @@ void ViewShell::Activate(bool bIsMDIActivate) } if(!GetDocSh()->IsUIActive()) - UpdatePreview( GetActualPage(), sal_True ); + UpdatePreview( GetActualPage(), true ); } @@ -416,9 +416,9 @@ void ViewShell::Shutdown (void) -sal_Bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) +bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) { - sal_Bool bReturn(sal_False); + bool bReturn(false); if(pWin) { @@ -430,7 +430,7 @@ sal_Bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) // give key input first to SfxViewShell to give CTRL+Key // (e.g. CTRL+SHIFT+'+', to front) priority. OSL_ASSERT (GetViewShell()!=NULL); - bReturn = (sal_Bool)GetViewShell()->KeyInput(rKEvt); + bReturn = GetViewShell()->KeyInput(rKEvt); } sal_Int32 OriCount = GetView()->GetMarkedObjectList().GetMarkCount(); @@ -458,7 +458,7 @@ sal_Bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) } else { - bReturn = sal_True; + bReturn = true; } } } @@ -478,7 +478,7 @@ sal_Bool ViewShell::KeyInput(const KeyEvent& rKEvt, ::sd::Window* pWin) && aKeyCode.GetCode() == KEY_R) { InvalidateWindows(); - bReturn = sal_True; + bReturn = true; } } @@ -594,7 +594,7 @@ void ViewShell::MouseButtonUp(const MouseEvent& rMEvt, ::sd::Window* pWin) void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) { - sal_Bool bDone = HandleScrollCommand (rCEvt, pWin); + bool bDone = HandleScrollCommand (rCEvt, pWin); if( !bDone ) { @@ -736,7 +736,7 @@ void ViewShell::SetupRulers (void) } if ( mpHorizontalRuler.get() == NULL ) { - mpHorizontalRuler.reset(CreateHRuler(GetActiveWindow(), sal_True)); + mpHorizontalRuler.reset(CreateHRuler(GetActiveWindow(), true)); if ( mpHorizontalRuler.get() != NULL ) { mpHorizontalRuler->SetWinPos(nHRulerOfs); @@ -763,8 +763,8 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16& return pTmpItem; else { - sal_Bool bOutliner = sal_False; - sal_Bool bTitle = sal_False; + bool bOutliner = false; + bool bTitle = false; if( mpView ) { @@ -779,10 +779,10 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16& switch(pObj->GetObjIdentifier()) { case OBJ_TITLETEXT: - bTitle = sal_True; + bTitle = true; break; case OBJ_OUTLINETEXT: - bOutliner = sal_True; + bOutliner = true; break; } } @@ -828,7 +828,7 @@ const SfxPoolItem* ViewShell::GetNumBulletItem(SfxItemSet& aNewAttr, sal_uInt16& } -sal_Bool ViewShell::HasRuler (void) +bool ViewShell::HasRuler (void) { return mbHasRulers; } @@ -1032,7 +1032,7 @@ void ViewShell::SetDefTabHRuler( sal_uInt16 nDefTab ) /** Tell the FmFormShell that the view shell is closing. Give it the oportunity to prevent that. */ -bool ViewShell::PrepareClose (sal_Bool bUI) +bool ViewShell::PrepareClose (bool bUI) { bool nResult = true; @@ -1046,7 +1046,7 @@ bool ViewShell::PrepareClose (sal_Bool bUI) -void ViewShell::UpdatePreview (SdPage*, sal_Bool ) +void ViewShell::UpdatePreview (SdPage*, bool ) { // Do nothing. After the actual preview has been removed, // OutlineViewShell::UpdatePreview() is the place where something @@ -1151,7 +1151,7 @@ void ViewShell::ImpGetRedoStrings(SfxItemSet &rSet) const -void ViewShell::ImpSidUndo(sal_Bool, SfxRequest& rReq) +void ViewShell::ImpSidUndo(bool, SfxRequest& rReq) { ::svl::IUndoManager* pUndoManager = ImpGetUndoManager(); sal_uInt16 nNumber(1); @@ -1200,7 +1200,7 @@ void ViewShell::ImpSidUndo(sal_Bool, SfxRequest& rReq) -void ViewShell::ImpSidRedo(sal_Bool, SfxRequest& rReq) +void ViewShell::ImpSidRedo(bool, SfxRequest& rReq) { ::svl::IUndoManager* pUndoManager = ImpGetUndoManager(); sal_uInt16 nNumber(1); diff --git a/sd/source/ui/view/zoomlist.cxx b/sd/source/ui/view/zoomlist.cxx index 5a995ae7b3dc..d039977d405d 100644 --- a/sd/source/ui/view/zoomlist.cxx +++ b/sd/source/ui/view/zoomlist.cxx @@ -82,14 +82,14 @@ Rectangle ZoomList::GetPreviousZoomRect() return maRectangles[mnCurPos]; } -sal_Bool ZoomList::IsNextPossible() const +bool ZoomList::IsNextPossible() const { size_t nRectCount = maRectangles.size(); return nRectCount > 0 && mnCurPos < nRectCount - 1; } -sal_Bool ZoomList::IsPreviousPossible() const +bool ZoomList::IsPreviousPossible() const { return mnCurPos > 0; } |