summaryrefslogtreecommitdiff
path: root/sd/source/ui/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-24 10:52:02 +0200
committerNoel Grandin <noel@peralex.com>2014-04-24 10:53:17 +0200
commitb45a12c37d2b671e54404afda5dee1b0947bd3ed (patch)
tree484fa50da87e5434970c774527a77e0dd079e1b9 /sd/source/ui/accessibility
parente4e654e40575300eaab429a6b94348bf43b9d7ce (diff)
sd: sal_Bool->bool
Change-Id: I3172a42f6b6abe434ffe0475d1201ff50b6c06ea
Diffstat (limited to 'sd/source/ui/accessibility')
-rw-r--r--sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx12
-rw-r--r--sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx2
-rw-r--r--sd/source/ui/accessibility/AccessibleSlideSorterView.cxx14
3 files changed, 14 insertions, 14 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;