Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors of IAccessibleTextSelectionContainer #19

Conversation

michaelDCurran
Copy link
Contributor

@michaelDCurran michaelDCurran commented Mar 6, 2022

fixes #18

Issue

  • The IAccessible2 IDL files could not be compiled due to a syntax error. 'bool' does not exist.
  • IAccessibleTextSelectionContainer was missing from the resulting type library.

Fix

  • ia2TextSelection struct's startIsActive member used 'bool' as its data type. this does not exist in idl. This has been changed to 'boolean'.
  • IAccessibleTextSelectionContainer has been declaired in the type library section, ensuring that this interface is included in the type library.

Testing

Upgraded NVDA to include IAccessible2 with IAccessibleTextSelectionContainer. Ensured that IAccessibleTextSelectionContainer appeared in NVDA's COM interfaces.

Signed-off-by: Michael Curran [email protected]

* Include IAccessibleTextSelectionContainer in the type library.

Signed-off-by: Michael Curran <[email protected]>
@@ -87,6 +87,7 @@ library IAccessible2Lib
interface IAccessibleTableCell;
interface IAccessibleText;
interface IAccessibleText2;
IAccessibleTextSelectionContainer;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is not meant to be in the diff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a mistake. IAccessibleTextSelectionContainer should be included in the type library. I forgot to do that in #17

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it just says "IAccessibleTextSelectionContainer"; there's no "interface" statement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... right. It still compiled the type library fine. So I guess the keyword is not technically needed. However, I've added it in now. Yep, that was a mistake.

api/IA2TypeLibrary.idl Outdated Show resolved Hide resolved
Add missing interface keyword
@jcsteh jcsteh closed this in 77b27f7 Mar 31, 2022
@jcsteh
Copy link
Collaborator

jcsteh commented Mar 31, 2022

#20 included some other minor documentation and spacing fixes, so I merged that instead, but it is effectively the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Needs info: Should Accessible2_3.idl be included in build tools
2 participants