diff options
Diffstat (limited to 'toolkit/test/accessibility/AccessibleRelationHandler.java')
-rw-r--r-- | toolkit/test/accessibility/AccessibleRelationHandler.java | 51 |
1 files changed, 6 insertions, 45 deletions
diff --git a/toolkit/test/accessibility/AccessibleRelationHandler.java b/toolkit/test/accessibility/AccessibleRelationHandler.java index ca6bdea6caab..1db63afd538b 100644 --- a/toolkit/test/accessibility/AccessibleRelationHandler.java +++ b/toolkit/test/accessibility/AccessibleRelationHandler.java @@ -1,10 +1,9 @@ - import com.sun.star.uno.UnoRuntime; -import drafts.com.sun.star.accessibility.XAccessible; -import drafts.com.sun.star.accessibility.XAccessibleContext; -import drafts.com.sun.star.accessibility.AccessibleRelation; -import drafts.com.sun.star.accessibility.XAccessibleRelationSet; -import drafts.com.sun.star.accessibility.AccessibleRelationType; +import com.sun.star.accessibility.XAccessible; +import com.sun.star.accessibility.XAccessibleContext; +import com.sun.star.accessibility.AccessibleRelation; +import com.sun.star.accessibility.XAccessibleRelationSet; +import com.sun.star.accessibility.AccessibleRelationType; import com.sun.star.lang.IndexOutOfBoundsException; @@ -58,45 +57,7 @@ class AccessibleRelationHandler AccessibleRelation aRelation = xRelation.getRelation( i ); StringBuffer aBuffer = new StringBuffer(); - switch( aRelation.RelationType ) - { - case AccessibleRelationType.INVALID: - aBuffer.append( "INVALID" ); - break; - case AccessibleRelationType.CONTROLLED_BY: - aBuffer.append( "CONTROLLED_BY" ); - break; - case AccessibleRelationType.CONTROLLED_BY_PROPERTY: - aBuffer.append( "CONTROLLED_BY_PROPERTY" ); - break; - case AccessibleRelationType.CONTROLLER_FOR: - aBuffer.append( "CONTROLLER_FOR" ); - break; - case AccessibleRelationType.CONTROLLER_FOR_PROPERTY: - aBuffer.append( "CONTROLLER_FOR_PROPERTY" ); - break; - case AccessibleRelationType.LABEL_FOR: - aBuffer.append( "LABEL_FOR" ); - break; - case AccessibleRelationType.LABEL_FOR_PROPERTY: - aBuffer.append( "LABEL_FOR_PROPERTY" ); - break; - case AccessibleRelationType.LABELED_BY: - aBuffer.append( "LABELED_BY" ); - break; - case AccessibleRelationType.LABELED_BY_PROPERTY: - aBuffer.append( "LABELED_BY_PROPERTY" ); - break; - case AccessibleRelationType.MEMBER_OF: - aBuffer.append( "MEMBER_OF" ); - break; - case AccessibleRelationType.MEMBER_OF_PROPERTY: - aBuffer.append( "MEMBER_OF_PROPERTY" ); - break; - default: - aBuffer.append( aRelation.RelationType ); - break; - } + aBuffer.append (NameProvider.getRelationName (aRelation.RelationType)); aBuffer.append( ": " ); for( int j = 0; j < aRelation.TargetSet.length; j++ ) |