summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y/atkcomponent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk/a11y/atkcomponent.cxx')
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index 37ef152db3c9..8b6cd3b85114 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.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
@@ -51,17 +51,17 @@ static accessibility::XAccessibleComponent*
pWrap->mpComponent = reinterpret_cast< accessibility::XAccessibleComponent * > (any.pReserved);
pWrap->mpComponent->acquire();
}
-
+
return pWrap->mpComponent;
}
-
+
return NULL;
}
/*****************************************************************************/
static awt::Point
-translatePoint( accessibility::XAccessibleComponent *pComponent,
+translatePoint( accessibility::XAccessibleComponent *pComponent,
gint x, gint y, AtkCoordType t)
{
awt::Point aOrigin( 0, 0 );
@@ -69,7 +69,7 @@ translatePoint( accessibility::XAccessibleComponent *pComponent,
aOrigin = pComponent->getLocationOnScreen();
#ifdef ENABLE_TRACING
- fprintf(stderr, "coordinates ( %u, %u ) translated to: ( %u, %u )\n",
+ fprintf(stderr, "coordinates ( %u, %u ) translated to: ( %u, %u )\n",
x, y, x - aOrigin.X, y - aOrigin.Y);
#endif
@@ -96,7 +96,7 @@ component_wrapper_grab_focus (AtkComponent *component)
{
g_warning( "Exception in grabFocus()" );
}
-
+
return FALSE;
}
@@ -118,7 +118,7 @@ component_wrapper_contains (AtkComponent *component,
{
g_warning( "Exception in containsPoint()" );
}
-
+
return FALSE;
}
@@ -133,20 +133,20 @@ component_wrapper_ref_accessible_at_point (AtkComponent *component,
try
{
accessibility::XAccessibleComponent* pComponent = getComponent( component );
-
+
if( pComponent )
{
uno::Reference< accessibility::XAccessible > xAccessible;
xAccessible = pComponent->getAccessibleAtPoint(
translatePoint( pComponent, x, y, coord_type ) );
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getAccessibleAtPoint( %u, %u ) returned %p\n",
x, y, xAccessible.get());
-
+
uno::Reference< accessibility::XAccessibleComponent > xComponent(
xAccessible->getAccessibleContext(), uno::UNO_QUERY );
-
+
if( xComponent.is() )
{
awt::Rectangle rect = xComponent->getBounds();
@@ -158,11 +158,11 @@ component_wrapper_ref_accessible_at_point (AtkComponent *component,
return atk_object_wrapper_ref( xAccessible );
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getAccessibleAtPoint()" );
}
-
+
return NULL;
}
@@ -180,21 +180,21 @@ component_wrapper_get_position (AtkComponent *component,
if( pComponent )
{
awt::Point aPos;
-
+
if( coord_type == ATK_XY_SCREEN )
aPos = pComponent->getLocationOnScreen();
else
aPos = pComponent->getLocation();
-
+
*x = aPos.X;
*y = aPos.Y;
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getLocation[OnScreen]() returned: ( %u, %u )\n", *x, *y );
#endif
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getLocation[OnScreen]()" );
}
@@ -215,13 +215,13 @@ component_wrapper_get_size (AtkComponent *component,
awt::Size aSize = pComponent->getSize();
*width = aSize.Width;
*height = aSize.Height;
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getSize() returned: ( %u, %u )\n", *width, *height );
#endif
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getSize()" );
}
@@ -275,7 +275,7 @@ component_wrapper_get_layer (AtkComponent *component)
{
AtkRole role = atk_object_get_role( ATK_OBJECT( component ) );
AtkLayer layer = ATK_LAYER_WIDGET;
-
+
switch (role)
{
case ATK_ROLE_POPUP_MENU:
@@ -292,7 +292,7 @@ component_wrapper_get_layer (AtkComponent *component)
layer = ATK_LAYER_POPUP;
}
break;
-
+
case ATK_ROLE_LIST:
{
AtkObject * parent = atk_object_get_parent( ATK_OBJECT( component ) );
@@ -300,11 +300,11 @@ component_wrapper_get_layer (AtkComponent *component)
layer = ATK_LAYER_POPUP;
}
break;
-
+
default:
;
}
-
+
return layer;
}