summaryrefslogtreecommitdiff
path: root/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:11:31 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:11:31 +0200
commit4f30c816fa0fb66e650d4e85304292b5ec72b22d (patch)
tree2c6ae8d7c2f6eb55686bb306afe1b1fce5172be8 /sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx
parent2ebf6456709b2345fcd340137b10ff7bb47a3263 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit 40849a63d4ca6da479ef28e129b15109a42e8617 (tag: refs/tags/libreoffice-3.3.0.4, refs/remotes/origin/libreoffice-3-3-0) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:18 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit 2764d5adfcd646794593cda200fca9d4988d0d06 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:37 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
Notes: split repo tag: impress_libreoffice-3.3.0.4
Diffstat (limited to 'sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx')
-rw-r--r--sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx120
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)
{
}