Accessibility/TextAttributes: Difference between revisions

Line 13: Line 13:
{| summary="Method to get text attributes" border="1" cellspacing="1" cellpadding="1"
{| summary="Method to get text attributes" border="1" cellspacing="1" cellpadding="1"
! API
! API
! Attributes that apply to a range within the object
! Attributes for a text range
! Attributes that apply to the entire object
! Attributes for entire object
|-
|-
| Internal XPCOM
| Internal XPCOM
Line 30: Line 30:
|
|
<pre>
<pre>
HRESULT get_attributes(in long offset,   
HRESULT
                      long *rangeStartOffset,
  get_attributes(in long offset,   
                      long *rangeEndOFfset,
                long *rangeStartOffset,
                      BSTR *textAttributes);</pre>
                long *rangeEndOFfset,
                BSTR *textAttributes);</pre>
|
|
Since IA2 does not support default attributes, the IA2 implementation will combine the default attributes into the range attributes before exposing them via IA2::get_attributes to the AT.
Not supported:
 
For IA2 we will combine into the range attributes.


|-
|-
Line 41: Line 44:
|
|
<pre>
<pre>
string getAttributes(in long offset,
string
                    out long *rangeStartOffset,
  getAttributes(in long offset,
                    out long *rangeEndOffset);</pre>
                out long *rangeStartOffset,
                out long *rangeEndOffset);</pre>
|
|
<pre>string getDefaultAttributes();</pre>
<pre>string getDefaultAttributes();</pre>
346

edits