summaryrefslogtreecommitdiff
path: root/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/accessibility/AccessibleSlideSorterView.cxx')
-rwxr-xr-xsd/source/ui/accessibility/AccessibleSlideSorterView.cxx82
1 files changed, 41 insertions, 41 deletions
diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
index 6f3508d731a8..f7b901affe17 100755
--- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
+++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -208,7 +208,7 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getAccessibleChildCount (void)
}
Reference<XAccessible > SAL_CALL
- AccessibleSlideSorterView::getAccessibleChild (sal_Int32 nIndex)
+ AccessibleSlideSorterView::getAccessibleChild (sal_Int32 nIndex)
throw (lang::IndexOutOfBoundsException, RuntimeException)
{
ThrowIfDisposed();
@@ -220,7 +220,7 @@ Reference<XAccessible > SAL_CALL
return mpImpl->GetVisibleChild(nIndex);
}
-Reference<XAccessible > SAL_CALL AccessibleSlideSorterView::getAccessibleParent (void)
+Reference<XAccessible > SAL_CALL AccessibleSlideSorterView::getAccessibleParent (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -237,7 +237,7 @@ Reference<XAccessible > SAL_CALL AccessibleSlideSorterView::getAccessibleParent
return xParent;
}
-sal_Int32 SAL_CALL AccessibleSlideSorterView::getAccessibleIndexInParent (void)
+sal_Int32 SAL_CALL AccessibleSlideSorterView::getAccessibleIndexInParent (void)
throw (uno::RuntimeException)
{
OSL_ASSERT(getAccessibleParent().is());
@@ -245,27 +245,27 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getAccessibleIndexInParent (void)
const vos::OGuard aSolarGuard (Application::GetSolarMutex());
sal_Int32 nIndexInParent(-1);
-
+
Reference<XAccessibleContext> xParentContext (getAccessibleParent()->getAccessibleContext());
if (xParentContext.is())
{
sal_Int32 nChildCount (xParentContext->getAccessibleChildCount());
for (sal_Int32 i=0; i<nChildCount; ++i)
- if (xParentContext->getAccessibleChild(i).get()
+ if (xParentContext->getAccessibleChild(i).get()
== static_cast<XAccessible*>(this))
{
nIndexInParent = i;
break;
}
}
-
+
return nIndexInParent;
}
-sal_Int16 SAL_CALL AccessibleSlideSorterView::getAccessibleRole (void)
+sal_Int16 SAL_CALL AccessibleSlideSorterView::getAccessibleRole (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -276,7 +276,7 @@ sal_Int16 SAL_CALL AccessibleSlideSorterView::getAccessibleRole (void)
-::rtl::OUString SAL_CALL AccessibleSlideSorterView::getAccessibleDescription (void)
+::rtl::OUString SAL_CALL AccessibleSlideSorterView::getAccessibleDescription (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -288,7 +288,7 @@ sal_Int16 SAL_CALL AccessibleSlideSorterView::getAccessibleRole (void)
-::rtl::OUString SAL_CALL AccessibleSlideSorterView::getAccessibleName (void)
+::rtl::OUString SAL_CALL AccessibleSlideSorterView::getAccessibleName (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -301,7 +301,7 @@ sal_Int16 SAL_CALL AccessibleSlideSorterView::getAccessibleRole (void)
Reference<XAccessibleRelationSet> SAL_CALL
- AccessibleSlideSorterView::getAccessibleRelationSet (void)
+ AccessibleSlideSorterView::getAccessibleRelationSet (void)
throw (uno::RuntimeException)
{
return Reference<XAccessibleRelationSet>();
@@ -311,7 +311,7 @@ Reference<XAccessibleRelationSet> SAL_CALL
Reference<XAccessibleStateSet > SAL_CALL
- AccessibleSlideSorterView::getAccessibleStateSet (void)
+ AccessibleSlideSorterView::getAccessibleStateSet (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -338,7 +338,7 @@ Reference<XAccessibleStateSet > SAL_CALL
-lang::Locale SAL_CALL AccessibleSlideSorterView::getLocale (void)
+lang::Locale SAL_CALL AccessibleSlideSorterView::getLocale (void)
throw (IllegalAccessibleComponentStateException,
RuntimeException)
{
@@ -359,7 +359,7 @@ lang::Locale SAL_CALL AccessibleSlideSorterView::getLocale (void)
void SAL_CALL AccessibleSlideSorterView::addEventListener(
- const Reference<XAccessibleEventListener >& rxListener)
+ const Reference<XAccessibleEventListener >& rxListener)
throw (RuntimeException)
{
if (rxListener.is())
@@ -384,7 +384,7 @@ void SAL_CALL AccessibleSlideSorterView::addEventListener(
void SAL_CALL AccessibleSlideSorterView::removeEventListener(
- const Reference<XAccessibleEventListener >& rxListener)
+ const Reference<XAccessibleEventListener >& rxListener)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -414,7 +414,7 @@ void SAL_CALL AccessibleSlideSorterView::removeEventListener(
//===== XAccessibleComponent ==================================================
-sal_Bool SAL_CALL AccessibleSlideSorterView::containsPoint (const awt::Point& aPoint)
+sal_Bool SAL_CALL AccessibleSlideSorterView::containsPoint (const awt::Point& aPoint)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -429,27 +429,27 @@ sal_Bool SAL_CALL AccessibleSlideSorterView::containsPoint (const awt::Point& aP
Reference<XAccessible> SAL_CALL
- AccessibleSlideSorterView::getAccessibleAtPoint (const awt::Point& aPoint)
+ AccessibleSlideSorterView::getAccessibleAtPoint (const awt::Point& aPoint)
throw (RuntimeException)
{
ThrowIfDisposed();
Reference<XAccessible> xAccessible;
const vos::OGuard aSolarGuard (Application::GetSolarMutex());
- const Point aTestPoint (aPoint.X, aPoint.Y);
+ const Point aTestPoint (aPoint.X, aPoint.Y);
::sd::slidesorter::model::SharedPageDescriptor pHitDescriptor (
mrSlideSorter.GetController().GetPageAt(aTestPoint));
if (pHitDescriptor.get() != NULL)
xAccessible = mpImpl->GetAccessibleChild(
(pHitDescriptor->GetPage()->GetPageNum()-1)/2);
-
+
return xAccessible;
}
-awt::Rectangle SAL_CALL AccessibleSlideSorterView::getBounds (void)
+awt::Rectangle SAL_CALL AccessibleSlideSorterView::getBounds (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -460,25 +460,25 @@ awt::Rectangle SAL_CALL AccessibleSlideSorterView::getBounds (void)
{
const Point aPosition (mpContentWindow->GetPosPixel());
const Size aSize (mpContentWindow->GetOutputSizePixel());
-
+
aBBox.X = aPosition.X();
aBBox.Y = aPosition.Y();
aBBox.Width = aSize.Width();
aBBox.Height = aSize.Height();
}
-
+
return aBBox;
}
-awt::Point SAL_CALL AccessibleSlideSorterView::getLocation (void)
+awt::Point SAL_CALL AccessibleSlideSorterView::getLocation (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
awt::Point aLocation;
-
+
if (mpContentWindow != NULL)
{
const Point aPosition (mpContentWindow->GetPosPixel());
@@ -495,7 +495,7 @@ awt::Point SAL_CALL AccessibleSlideSorterView::getLocation (void)
/** Calculate the location on screen from the parent's location on screen
and our own relative location.
*/
-awt::Point SAL_CALL AccessibleSlideSorterView::getLocationOnScreen()
+awt::Point SAL_CALL AccessibleSlideSorterView::getLocationOnScreen()
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -510,7 +510,7 @@ awt::Point SAL_CALL AccessibleSlideSorterView::getLocationOnScreen()
if (xParentComponent.is())
aParentLocationOnScreen = xParentComponent->getLocationOnScreen();
}
-
+
awt::Point aLocationOnScreen (getLocation());
aLocationOnScreen.X += aParentLocationOnScreen.X;
aLocationOnScreen.Y += aParentLocationOnScreen.Y;
@@ -521,12 +521,12 @@ awt::Point SAL_CALL AccessibleSlideSorterView::getLocationOnScreen()
-awt::Size SAL_CALL AccessibleSlideSorterView::getSize (void)
+awt::Size SAL_CALL AccessibleSlideSorterView::getSize (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
awt::Size aSize;
-
+
if (mpContentWindow != NULL)
{
const Size aOutputSize (mpContentWindow->GetOutputSizePixel());
@@ -540,7 +540,7 @@ awt::Size SAL_CALL AccessibleSlideSorterView::getSize (void)
-void SAL_CALL AccessibleSlideSorterView::grabFocus (void)
+void SAL_CALL AccessibleSlideSorterView::grabFocus (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -565,7 +565,7 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getForeground (void)
-sal_Int32 SAL_CALL AccessibleSlideSorterView::getBackground (void)
+sal_Int32 SAL_CALL AccessibleSlideSorterView::getBackground (void)
throw (RuntimeException)
{
ThrowIfDisposed();
@@ -578,7 +578,7 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getBackground (void)
//===== XAccessibleSelection ==================================================
-void SAL_CALL AccessibleSlideSorterView::selectAccessibleChild (sal_Int32 nChildIndex)
+void SAL_CALL AccessibleSlideSorterView::selectAccessibleChild (sal_Int32 nChildIndex)
throw (lang::IndexOutOfBoundsException,
RuntimeException)
{
@@ -595,7 +595,7 @@ void SAL_CALL AccessibleSlideSorterView::selectAccessibleChild (sal_Int32 nChild
-sal_Bool SAL_CALL AccessibleSlideSorterView::isAccessibleChildSelected (sal_Int32 nChildIndex)
+sal_Bool SAL_CALL AccessibleSlideSorterView::isAccessibleChildSelected (sal_Int32 nChildIndex)
throw (lang::IndexOutOfBoundsException,
RuntimeException)
{
@@ -616,7 +616,7 @@ sal_Bool SAL_CALL AccessibleSlideSorterView::isAccessibleChildSelected (sal_Int3
-void SAL_CALL AccessibleSlideSorterView::clearAccessibleSelection (void)
+void SAL_CALL AccessibleSlideSorterView::clearAccessibleSelection (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed();
@@ -640,7 +640,7 @@ void SAL_CALL AccessibleSlideSorterView::selectAllAccessibleChildren (void)
-sal_Int32 SAL_CALL AccessibleSlideSorterView::getSelectedAccessibleChildCount (void)
+sal_Int32 SAL_CALL AccessibleSlideSorterView::getSelectedAccessibleChildCount (void)
throw (uno::RuntimeException)
{
ThrowIfDisposed ();
@@ -652,7 +652,7 @@ sal_Int32 SAL_CALL AccessibleSlideSorterView::getSelectedAccessibleChildCount (v
Reference<XAccessible > SAL_CALL
- AccessibleSlideSorterView::getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex )
+ AccessibleSlideSorterView::getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex )
throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
ThrowIfDisposed ();
@@ -674,7 +674,7 @@ Reference<XAccessible > SAL_CALL
++nSelectedCount;
}
-
+
if ( ! xChild.is() )
throw lang::IndexOutOfBoundsException();
@@ -684,7 +684,7 @@ Reference<XAccessible > SAL_CALL
-void SAL_CALL AccessibleSlideSorterView::deselectAccessibleChild (sal_Int32 nChildIndex)
+void SAL_CALL AccessibleSlideSorterView::deselectAccessibleChild (sal_Int32 nChildIndex)
throw (lang::IndexOutOfBoundsException,
RuntimeException)
{
@@ -899,14 +899,14 @@ AccessibleSlideSorterObject* AccessibleSlideSorterView::Implementation::GetAcces
}
}
-
+
pChild = maPageObjects[nIndex].get();
}
else
{
OSL_ASSERT(nIndex>=0 && (sal_uInt32)nIndex<maPageObjects.size());
}
-
+
return pChild;
}
@@ -947,7 +947,7 @@ void AccessibleSlideSorterView::Implementation::ReleaseListeners (void)
if (mpWindow != NULL)
mpWindow->RemoveEventListener(
LINK(this,AccessibleSlideSorterView::Implementation,WindowEventListener));
-
+
if (mbListeningToDocument)
{
if (mrSlideSorter.GetViewShell() != NULL)
@@ -1006,7 +1006,7 @@ IMPL_LINK(AccessibleSlideSorterView::Implementation, WindowEventListener, VclWin
case VCLEVENT_WINDOW_RESIZE:
UpdateChildren();
break;
-
+
case VCLEVENT_WINDOW_GETFOCUS:
case VCLEVENT_WINDOW_LOSEFOCUS:
mrAccessibleSlideSorter.FireAccessibleEvent(