office-gobmx/offapi/com/sun/star/accessibility
Michael Weghorn 92a36bbd4f [API CHANGE] a11y: Switch AccessibleRelationType to enum
Switch css::accessibility::AccessibleRelationType
from integer constants to an enum.

This provides more type safety and improves the debugging
experience, e.g. GDB now prints

    com::sun::accessibility::AccessibleRelationType::AccessibleRelationType_CONTENT_FLOWS_TO

instead of just "2" when printing the value of a
corresponding variable, so it's no longer necessary
to manually look up what constant has that integer
value to know what relation this refers to.

offapi/com/sun/star/accessibility/AccessibleRelationType.idl
had this comment:

> <p>We are using constants instead of a more typesafe enum.  The reason
> for this is that IDL enums may not be extended.  Therefore, in order to
> include future extensions to the set of roles we have to use constants
> here.</p>

However, the a11y UNO API is internal (not published),
so that shouldn't be a concern.

Change-Id: I44a7d56cb085dc24effb24fcd34bb222b78ef4cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176153
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-07 08:50:13 +01:00
..
Accessible.idl
AccessibleContext.idl
AccessibleEventId.idl
AccessibleEventObject.idl
AccessibleRelation.idl
AccessibleRelationType.idl
AccessibleRole.idl
AccessibleScrollType.idl
AccessibleStateType.idl
AccessibleTableModelChange.idl
AccessibleTableModelChangeType.idl
AccessibleTextType.idl
GetStandardAccessibleFactoryService.idl
IllegalAccessibleComponentStateException.idl
MSAAService.idl
TextSegment.idl
XAccessible.idl
XAccessibleAction.idl
XAccessibleComponent.idl
XAccessibleContext.idl
XAccessibleContext2.idl
XAccessibleContext3.idl
XAccessibleEditableText.idl
XAccessibleEventBroadcaster.idl
XAccessibleEventListener.idl
XAccessibleExtendedAttributes.idl
XAccessibleExtendedComponent.idl
XAccessibleGroupPosition.idl
XAccessibleHyperlink.idl
XAccessibleHypertext.idl
XAccessibleImage.idl
XAccessibleKeyBinding.idl
XAccessibleMultiLineText.idl
XAccessibleRelationSet.idl
XAccessibleSelection.idl
XAccessibleTable.idl
XAccessibleTableSelection.idl
XAccessibleText.idl
XAccessibleTextAttributes.idl
XAccessibleTextMarkup.idl
XAccessibleTextSelection.idl
XAccessibleValue.idl
XMSAAService.idl