6c5257b680
Changes:
* drop the optional `maxNum` param for the
constructor, it's never set to anything
different than the default value
* store negative number in member (renamed
from `max` to `m_nMin`) instead of storing
positive number and inverting that when returning
it in `ResIDGenerator::GenerateNewResID`
* Use -1 as the first resource ID instead of -2.
Also, add a comment that negative child IDs
are used because it's common to use such ones
to indicate unique resource IDs in
IAccessible2.
Quoting James Teh's comment on an NVDA
pull request of mine [1]:
> The use of negative child ids doesn't fit well into the IAccessible
> spec, but it has been done by IAccessible2 for a very long time and
> should be considered standard for all intents and purposes. A negative
> child id should be treated as a unique id, while a positive child id
> should be treated as a child index.
>
> That said, as noted in #13277 (comment), IAccessible2 elements are
> always full IAccessible objects, not "simple elements". Thus, anything
> that returns an accessible (including accSelection) really should return
> an object pointer. In the case of accSelection, this means VT_DISPATCH
> for a single selection or VT_UNKNOWN and iEnumVARIANT (with VT_DISPATCH
> elements) for multiple selection.
>
> In short, NVDA supporting negative child ids returned from accSelection
> isn't necessarily "wrong", but ideally, LibreOffice would be fixed to
> return full objects.
The latter (returning full objects) has already been addressed in
commit
|
||
---|---|---|
.. | ||
AccComponentEventListener.hxx | ||
AccContainerEventListener.hxx | ||
AccDescendantManagerEventListener.hxx | ||
AccDialogEventListener.hxx | ||
AccEventListener.hxx | ||
AccFrameEventListener.hxx | ||
accHelper.hxx | ||
AccListEventListener.hxx | ||
AccMenuEventListener.hxx | ||
AccObject.hxx | ||
AccObjectContainerEventListener.hxx | ||
AccObjectManagerAgent.hxx | ||
AccObjectWinManager.hxx | ||
AccParagraphEventListener.hxx | ||
AccTableEventListener.hxx | ||
AccTextComponentEventListener.hxx | ||
AccTopWindowListener.hxx | ||
AccTreeEventListener.hxx | ||
AccWindowEventListener.hxx | ||
ResIDGenerator.hxx | ||
UAccCOMdllapi.h | ||
unomsaaevent.hxx |