diff options
Diffstat (limited to 'sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx')
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 6f27b177d1c3..1a157ca117e6 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -2,7 +2,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 @@ -59,7 +59,7 @@ using ::rtl::OUString; using namespace ::com::sun::star; -using namespace ::com::sun::star::accessibility; +using namespace ::com::sun::star::accessibility; using ::com::sun::star::uno::Reference; class SfxViewFrame; @@ -77,7 +77,7 @@ AccessibleDocumentViewBase::AccessibleDocumentViewBase ( mxController (rxController), mxModel (NULL), maViewForwarder ( - static_cast<SdrPaintView*>(pViewShell->GetView()), + static_cast<SdrPaintView*>(pViewShell->GetView()), *static_cast<OutputDevice*>(pSdWindow)) { if (mxController.is()) @@ -115,7 +115,7 @@ void AccessibleDocumentViewBase::Init (void) // Register as window listener to stay up to date with its size and // position. mxWindow->addWindowListener (this); - // Register as focus listener to + // Register as focus listener to mxWindow->addFocusListener (this); // Determine the list of shapes on the current page. @@ -156,7 +156,7 @@ void AccessibleDocumentViewBase::Init (void) for (sal_uInt16 i=0; i<nCount; i++) { Window* pChildWindow = pWindow->GetChild (i); - if (pChildWindow && + if (pChildWindow && (AccessibleRole::EMBEDDED_OBJECT ==pChildWindow->GetAccessibleRole())) { @@ -169,7 +169,7 @@ void AccessibleDocumentViewBase::Init (void) -IMPL_LINK(AccessibleDocumentViewBase, WindowChildEventListener, +IMPL_LINK(AccessibleDocumentViewBase, WindowChildEventListener, VclSimpleEvent*, pEvent) { OSL_ASSERT(pEvent!=NULL && pEvent->ISA(VclWindowEvent)); @@ -279,7 +279,7 @@ Reference<XAccessible> SAL_CALL if (mxAccessibleOLEObject.is()) if (nIndex == 0) return mxAccessibleOLEObject; - + throw lang::IndexOutOfBoundsException ( ::rtl::OUString::createFromAscii ("no child with index ") + rtl::OUString::valueOf(nIndex), @@ -295,9 +295,9 @@ Reference<XAccessible> SAL_CALL within one of their bounding boxes. Return the first child for which this is true. */ -uno::Reference<XAccessible > SAL_CALL +uno::Reference<XAccessible > SAL_CALL AccessibleDocumentViewBase::getAccessibleAtPoint ( - const awt::Point& aPoint) + const awt::Point& aPoint) throw (uno::RuntimeException) { ThrowIfDisposed (); @@ -314,7 +314,7 @@ uno::Reference<XAccessible > SAL_CALL Reference<XAccessibleComponent> xChildComponent ( xChild->getAccessibleContext(), uno::UNO_QUERY); if (xChildComponent.is()) - { + { awt::Rectangle aBBox (xChildComponent->getBounds()); if ( (aPoint.X >= aBBox.X) && (aPoint.Y >= aBBox.Y) @@ -336,7 +336,7 @@ uno::Reference<XAccessible > SAL_CALL -awt::Rectangle SAL_CALL +awt::Rectangle SAL_CALL AccessibleDocumentViewBase::getBounds (void) throw (::com::sun::star::uno::RuntimeException) { @@ -366,9 +366,9 @@ awt::Rectangle SAL_CALL } return awt::Rectangle ( - aPixelTopLeft.X() - aParentPosition.X, - aPixelTopLeft.Y() - aParentPosition.Y, - aPixelSize.X(), + aPixelTopLeft.X() - aParentPosition.X, + aPixelTopLeft.Y() - aParentPosition.Y, + aPixelSize.X(), aPixelSize.Y()); } @@ -376,7 +376,7 @@ awt::Rectangle SAL_CALL awt::Point SAL_CALL - AccessibleDocumentViewBase::getLocation (void) + AccessibleDocumentViewBase::getLocation (void) throw (uno::RuntimeException) { ThrowIfDisposed (); @@ -388,7 +388,7 @@ awt::Point SAL_CALL awt::Point SAL_CALL - AccessibleDocumentViewBase::getLocationOnScreen (void) + AccessibleDocumentViewBase::getLocationOnScreen (void) throw (uno::RuntimeException) { ThrowIfDisposed (); @@ -401,7 +401,7 @@ awt::Point SAL_CALL awt::Size SAL_CALL - AccessibleDocumentViewBase::getSize (void) + AccessibleDocumentViewBase::getSize (void) throw (uno::RuntimeException) { ThrowIfDisposed (); @@ -424,7 +424,7 @@ awt::Size SAL_CALL //===== XInterface ========================================================== - + uno::Any SAL_CALL AccessibleDocumentViewBase::queryInterface (const uno::Type & rType) throw (uno::RuntimeException) @@ -447,7 +447,7 @@ uno::Any SAL_CALL void SAL_CALL - AccessibleDocumentViewBase::acquire (void) + AccessibleDocumentViewBase::acquire (void) throw () { AccessibleContextBase::acquire (); @@ -462,13 +462,13 @@ void SAL_CALL { AccessibleContextBase::release (); } + + - - - + //===== XServiceInfo ======================================================== - -::rtl::OUString SAL_CALL + +::rtl::OUString SAL_CALL AccessibleDocumentViewBase::getImplementationName (void) throw (::com::sun::star::uno::RuntimeException) { @@ -487,11 +487,11 @@ void SAL_CALL } - - - + + + //===== XTypeProvider ======================================================= - + ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL AccessibleDocumentViewBase::getTypes (void) throw (::com::sun::star::uno::RuntimeException) @@ -505,27 +505,27 @@ void SAL_CALL // ...and add the additional type for the component, ... - const uno::Type aLangEventListenerType = + const uno::Type aLangEventListenerType = ::getCppuType((const uno::Reference<lang::XEventListener>*)0); - const uno::Type aPropertyChangeListenerType = + const uno::Type aPropertyChangeListenerType = ::getCppuType((const uno::Reference<beans::XPropertyChangeListener>*)0); - const uno::Type aWindowListenerType = + const uno::Type aWindowListenerType = ::getCppuType((const uno::Reference<awt::XWindowListener>*)0); - const uno::Type aFocusListenerType = + const uno::Type aFocusListenerType = ::getCppuType((const uno::Reference<awt::XFocusListener>*)0); - const uno::Type aEventBroadcaster = + const uno::Type aEventBroadcaster = ::getCppuType((const uno::Reference<XAccessibleEventBroadcaster>*)0); // ... and merge them all into one list. - sal_Int32 nTypeCount (aTypeList.getLength()), + sal_Int32 nTypeCount (aTypeList.getLength()), nComponentTypeCount (aComponentTypeList.getLength()), i; - + aTypeList.realloc (nTypeCount + nComponentTypeCount + 5); - + for (i=0; i<nComponentTypeCount; i++) aTypeList[nTypeCount + i] = aComponentTypeList[i]; - + aTypeList[nTypeCount + i++ ] = aLangEventListenerType; aTypeList[nTypeCount + i++] = aPropertyChangeListenerType; aTypeList[nTypeCount + i++] = aWindowListenerType; @@ -552,7 +552,7 @@ void AccessibleDocumentViewBase::impl_dispose() { DBG_ASSERT (pWindow, "AccessibleDocumentViewBase::disposing"); } - + // Unregister from window. if (mxWindow.is()) { @@ -581,7 +581,7 @@ void AccessibleDocumentViewBase::impl_dispose() // Propagate change of controller down the shape tree. maShapeTreeInfo.SetControllerBroadcaster (NULL); - + // Reset the model reference. mxModel = NULL; // Reset the model reference. @@ -627,60 +627,60 @@ void SAL_CALL AccessibleDocumentViewBase::propertyChange (const beans::PropertyC //===== XWindowListener ===================================================== -void SAL_CALL - AccessibleDocumentViewBase::windowResized (const ::com::sun::star::awt::WindowEvent& ) +void SAL_CALL + AccessibleDocumentViewBase::windowResized (const ::com::sun::star::awt::WindowEvent& ) throw (::com::sun::star::uno::RuntimeException) { if( IsDisposed() ) return; ViewForwarderChanged ( - IAccessibleViewForwarderListener::VISIBLE_AREA, + IAccessibleViewForwarderListener::VISIBLE_AREA, &maViewForwarder); } -void SAL_CALL - AccessibleDocumentViewBase::windowMoved (const ::com::sun::star::awt::WindowEvent& ) +void SAL_CALL + AccessibleDocumentViewBase::windowMoved (const ::com::sun::star::awt::WindowEvent& ) throw (::com::sun::star::uno::RuntimeException) { if( IsDisposed() ) return; ViewForwarderChanged ( - IAccessibleViewForwarderListener::VISIBLE_AREA, + IAccessibleViewForwarderListener::VISIBLE_AREA, &maViewForwarder); } -void SAL_CALL - AccessibleDocumentViewBase::windowShown (const ::com::sun::star::lang::EventObject& ) +void SAL_CALL + AccessibleDocumentViewBase::windowShown (const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) { if( IsDisposed() ) return; ViewForwarderChanged ( - IAccessibleViewForwarderListener::VISIBLE_AREA, + IAccessibleViewForwarderListener::VISIBLE_AREA, &maViewForwarder); } -void SAL_CALL - AccessibleDocumentViewBase::windowHidden (const ::com::sun::star::lang::EventObject& ) +void SAL_CALL + AccessibleDocumentViewBase::windowHidden (const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException) { if( IsDisposed() ) return; ViewForwarderChanged ( - IAccessibleViewForwarderListener::VISIBLE_AREA, + IAccessibleViewForwarderListener::VISIBLE_AREA, &maViewForwarder); } @@ -721,7 +721,7 @@ void SAL_CALL AccessibleDocumentViewBase::disposing (void) -/// Create a name for this view. +/// Create a name for this view. ::rtl::OUString AccessibleDocumentViewBase::CreateAccessibleName (void) throw (::com::sun::star::uno::RuntimeException) @@ -786,7 +786,7 @@ void AccessibleDocumentViewBase::SetAccessibleOLEObject ( if (mxAccessibleOLEObject != xOLEObject) if (mxAccessibleOLEObject.is()) CommitChange ( - AccessibleEventId::CHILD, + AccessibleEventId::CHILD, uno::Any(), uno::makeAny (mxAccessibleOLEObject)); @@ -800,7 +800,7 @@ void AccessibleDocumentViewBase::SetAccessibleOLEObject ( // Send child event about new accessible OLE object if necessary. if (mxAccessibleOLEObject.is()) CommitChange ( - AccessibleEventId::CHILD, + AccessibleEventId::CHILD, uno::makeAny (mxAccessibleOLEObject), uno::Any()); } @@ -811,23 +811,23 @@ void AccessibleDocumentViewBase::SetAccessibleOLEObject ( //===== methods from AccessibleSelectionBase ================================================== // return the member maMutex; -::osl::Mutex& +::osl::Mutex& AccessibleDocumentViewBase::implGetMutex() { return( maMutex ); } // return ourself as context in default case -uno::Reference< XAccessibleContext > - AccessibleDocumentViewBase::implGetAccessibleContext() +uno::Reference< XAccessibleContext > + AccessibleDocumentViewBase::implGetAccessibleContext() throw (uno::RuntimeException) { return( this ); } // return sal_False in default case -sal_Bool - AccessibleDocumentViewBase::implIsSelected( sal_Int32 ) +sal_Bool + AccessibleDocumentViewBase::implIsSelected( sal_Int32 ) throw (uno::RuntimeException) { return( sal_False ); @@ -835,7 +835,7 @@ sal_Bool // return nothing in default case void - AccessibleDocumentViewBase::implSelect( sal_Int32, sal_Bool ) + AccessibleDocumentViewBase::implSelect( sal_Int32, sal_Bool ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException) { } |