Logo Search packages:      
Sourcecode: xulrunner version File versions

nsXFormsSelectableItemAccessible Class Reference

#include <nsXFormsAccessible.h>

Inheritance diagram for nsXFormsSelectableItemAccessible:

nsXFormsAccessible nsXFormsAccessibleBase nsHyperTextAccessible IAccessibleEditableText nsISupports IAccessibleHypertext nsIAccessibleHyperText nsAccessibleWrap nsXFormsItemCheckgroupAccessible nsXFormsItemComboboxAccessible nsXFormsItemRadiogroupAccessible

List of all members.

Detailed Description

The class is base for accessible objects for XForms item elements.

Definition at line 177 of file nsXFormsAccessible.h.

Public Member Functions

virtual HRESULT STDMETHODCALLTYPE accDoDefaultAction (VARIANT varChild)
virtual HRESULT STDMETHODCALLTYPE accHitTest (long xLeft, long yTop, VARIANT __RPC_FAR *pvarChild)
virtual HRESULT STDMETHODCALLTYPE accLocation (long __RPC_FAR *pxLeft, long __RPC_FAR *pyTop, long __RPC_FAR *pcxWidth, long __RPC_FAR *pcyHeight, VARIANT varChild)
virtual HRESULT STDMETHODCALLTYPE accNavigate (long navDir, VARIANT varStart, VARIANT __RPC_FAR *pvarEndUpAt)
virtual HRESULT STDMETHODCALLTYPE accSelect (long flagsSelect, VARIANT varChild)
void addChildToSelection (in long index)
virtual HRESULT STDMETHODCALLTYPE addSelection (long startOffset, long endOffset)
void addSelection (in long startOffset, in long endOffset)
void appendTextTo (out AString aString, in unsigned long aStartOffset, in unsigned long aLength)
void CacheChildren ()
void clearSelection ()
virtual HRESULT STDMETHODCALLTYPE copyText (long startOffset, long endOffset)
void copyText (in long startPos, in long endPos)
virtual HRESULT STDMETHODCALLTYPE cutText (long startOffset, long endOffset)
void cutText (in long startPos, in long endPos)
virtual HRESULT STDMETHODCALLTYPE deleteText (long startOffset, long endOffset)
void deleteText (in long startPos, in long endPos)
virtual HRESULT STDMETHODCALLTYPE doAction (long actionIndex)
void doAction (in PRUint8 index)
NS_IMETHOD DoAction (PRUint8 aIndex)
nsresult DOMPointToHypertextOffset (nsIDOMNode *aNode, PRInt32 aNodeOffset, PRInt32 *aHypertextOffset, nsIAccessible **aFinalAccessible=nsnull, PRBool aIsEndOffset=PR_FALSE)
void extendSelection ()
void fireAccessibleEvent (in nsIAccessibleEvent aAccEvent)
FireAccessibleEvent (nsIAccessibleEvent *aEvent)
void fireToolkitEvent (in unsigned long aEvent, in nsIAccessible aTarget)
virtual HRESULT STDMETHODCALLTYPE get_accChild (VARIANT varChild, IDispatch __RPC_FAR *__RPC_FAR *ppdispChild)
virtual HRESULT STDMETHODCALLTYPE get_accChildCount (long __RPC_FAR *pcountChildren)
virtual HRESULT STDMETHODCALLTYPE get_accDefaultAction (VARIANT varChild, BSTR __RPC_FAR *pszDefaultAction)
virtual HRESULT STDMETHODCALLTYPE get_accDescription (VARIANT varChild, BSTR __RPC_FAR *pszDescription)
virtual HRESULT STDMETHODCALLTYPE get_accHelp (VARIANT varChild, BSTR __RPC_FAR *pszHelp)
virtual HRESULT STDMETHODCALLTYPE get_accHelpTopic (BSTR __RPC_FAR *pszHelpFile, VARIANT varChild, long __RPC_FAR *pidTopic)
virtual HRESULT STDMETHODCALLTYPE get_accKeyboardShortcut (VARIANT varChild, BSTR __RPC_FAR *pszKeyboardShortcut)
virtual HRESULT STDMETHODCALLTYPE get_accName (VARIANT varChild, BSTR __RPC_FAR *pszName)
virtual HRESULT STDMETHODCALLTYPE get_accParent (IDispatch __RPC_FAR *__RPC_FAR *ppdispParent)
virtual HRESULT STDMETHODCALLTYPE get_accSelection (VARIANT __RPC_FAR *pvarChildren)
virtual HRESULT STDMETHODCALLTYPE get_accState (VARIANT varChild, VARIANT __RPC_FAR *pvarState)
virtual HRESULT STDMETHODCALLTYPE get_accValue (VARIANT varChild, BSTR __RPC_FAR *pszValue)
virtual HRESULT STDMETHODCALLTYPE get_anchor (long index, VARIANT *anchor)
virtual HRESULT STDMETHODCALLTYPE get_anchorTarget (long index, VARIANT *anchorTarget)
virtual HRESULT STDMETHODCALLTYPE get_attributes (long offset, long *startOffset, long *endOffset, BSTR *textAttributes)
virtual HRESULT STDMETHODCALLTYPE get_attributes (unsigned short maxAttribs, BSTR __RPC_FAR *attribNames, short __RPC_FAR *nameSpaceID, BSTR __RPC_FAR *attribValues, unsigned short __RPC_FAR *numAttribs)
virtual HRESULT STDMETHODCALLTYPE get_attributes (BSTR *attributes)
virtual HRESULT STDMETHODCALLTYPE get_attributesForNames (unsigned short maxAttribs, BSTR __RPC_FAR *attribNames, short __RPC_FAR *nameSpaceID, BSTR __RPC_FAR *attribValues)
virtual HRESULT STDMETHODCALLTYPE get_background (IA2Color *background)
virtual HRESULT STDMETHODCALLTYPE get_caretOffset (long *offset)
virtual HRESULT STDMETHODCALLTYPE get_characterExtents (long offset, enum IA2CoordinateType coordType, long *x, long *y, long *width, long *height)
virtual HRESULT STDMETHODCALLTYPE get_childAt (unsigned childIndex, ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_computedStyle (unsigned short maxStyleProperties, boolean useAlternateView, BSTR __RPC_FAR *styleProperties, BSTR __RPC_FAR *styleValues, unsigned short __RPC_FAR *numStyleProperties)
virtual HRESULT STDMETHODCALLTYPE get_computedStyleForProperties (unsigned short numStyleProperties, boolean useAlternateView, BSTR __RPC_FAR *styleProperties, BSTR __RPC_FAR *styleValues)
virtual HRESULT STDMETHODCALLTYPE get_currentValue (VARIANT *currentValue)
virtual HRESULT STDMETHODCALLTYPE get_description (long actionIndex, BSTR *description)
virtual HRESULT STDMETHODCALLTYPE get_endIndex (long *index)
virtual HRESULT STDMETHODCALLTYPE get_extendedRole (BSTR *extendedRole)
virtual HRESULT STDMETHODCALLTYPE get_extendedStates (long maxExtendedStates, BSTR **extendedStates, long *nExtendedStates)
virtual HRESULT STDMETHODCALLTYPE get_firstChild (ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_foreground (IA2Color *foreground)
virtual HRESULT STDMETHODCALLTYPE get_groupPosition (long *groupLevel, long *similarItemsInGroup, long *positionInGroup)
virtual HRESULT STDMETHODCALLTYPE get_hyperlink (long index, IAccessibleHyperlink **hyperlink)
virtual HRESULT STDMETHODCALLTYPE get_hyperlinkIndex (long charIndex, long *hyperlinkIndex)
virtual HRESULT STDMETHODCALLTYPE get_indexInParent (long *indexInParent)
virtual HRESULT STDMETHODCALLTYPE get_keyBinding (long actionIndex, long nMaxBinding, BSTR **keyBinding, long *nBinding)
virtual HRESULT STDMETHODCALLTYPE get_language (BSTR __RPC_FAR *language)
virtual HRESULT STDMETHODCALLTYPE get_lastChild (ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_locale (IA2Locale *locale)
virtual HRESULT STDMETHODCALLTYPE get_localInterface (void __RPC_FAR *__RPC_FAR *localInterface)
virtual HRESULT STDMETHODCALLTYPE get_localizedExtendedRole (BSTR *localizedExtendedRole)
virtual HRESULT STDMETHODCALLTYPE get_localizedExtendedStates (long maxLocalizedExtendedStates, BSTR **localizedExtendedStates, long *nLocalizedExtendedStates)
virtual HRESULT STDMETHODCALLTYPE get_localizedName (long actionIndex, BSTR *localizedName)
virtual HRESULT STDMETHODCALLTYPE get_locationInParent (long *x, long *y)
virtual HRESULT STDMETHODCALLTYPE get_maximumValue (VARIANT *maximumValue)
virtual HRESULT STDMETHODCALLTYPE get_minimumValue (VARIANT *minimumValue)
virtual HRESULT STDMETHODCALLTYPE get_name (long actionIndex, BSTR *name)
virtual HRESULT STDMETHODCALLTYPE get_nCharacters (long *nCharacters)
virtual HRESULT STDMETHODCALLTYPE get_newText (IA2TextSegment *newText)
virtual HRESULT STDMETHODCALLTYPE get_nExtendedStates (long *nExtendedStates)
virtual HRESULT STDMETHODCALLTYPE get_nextSibling (ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_nHyperlinks (long *hyperlinkCount)
virtual HRESULT STDMETHODCALLTYPE get_nodeInfo (BSTR __RPC_FAR *tagName, short __RPC_FAR *nameSpaceID, BSTR __RPC_FAR *nodeValue, unsigned int __RPC_FAR *numChildren, unsigned int __RPC_FAR *aUniqueID, unsigned short __RPC_FAR *nodeType)
virtual HRESULT STDMETHODCALLTYPE get_nRelations (long *nRelations)
virtual HRESULT STDMETHODCALLTYPE get_nSelections (long *nSelections)
virtual HRESULT STDMETHODCALLTYPE get_offsetAtPoint (long x, long y, enum IA2CoordinateType coordType, long *offset)
virtual HRESULT STDMETHODCALLTYPE get_oldText (IA2TextSegment *oldText)
virtual HRESULT STDMETHODCALLTYPE get_parentNode (ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_previousSibling (ISimpleDOMNode __RPC_FAR *__RPC_FAR *node)
virtual HRESULT STDMETHODCALLTYPE get_relation (long relationIndex, IAccessibleRelation **relation)
virtual HRESULT STDMETHODCALLTYPE get_relations (long maxRelations, IAccessibleRelation **relation, long *nRelations)
virtual HRESULT STDMETHODCALLTYPE get_selection (long selectionIndex, long *startOffset, long *endOffset)
virtual HRESULT STDMETHODCALLTYPE get_startIndex (long *index)
virtual HRESULT STDMETHODCALLTYPE get_states (AccessibleStates *states)
virtual HRESULT STDMETHODCALLTYPE get_text (long startOffset, long endOffset, BSTR *text)
virtual HRESULT STDMETHODCALLTYPE get_textAfterOffset (long offset, enum IA2TextBoundaryType boundaryType, long *startOffset, long *endOffset, BSTR *text)
virtual HRESULT STDMETHODCALLTYPE get_textAtOffset (long offset, enum IA2TextBoundaryType boundaryType, long *startOffset, long *endOffset, BSTR *text)
virtual HRESULT STDMETHODCALLTYPE get_textBeforeOffset (long offset, enum IA2TextBoundaryType boundaryType, long *startOffset, long *endOffset, BSTR *text)
virtual HRESULT STDMETHODCALLTYPE get_uniqueID (long *uniqueID)
virtual HRESULT STDMETHODCALLTYPE get_valid (boolean *valid)
virtual HRESULT STDMETHODCALLTYPE get_windowHandle (HWND *windowHandle)
nsIAccessible getAccessibleAbove ()
nsIAccessible getAccessibleBelow ()
nsIAccessible getAccessibleRelated (in unsigned long aRelationType)
nsIAccessible getAccessibleToLeft ()
nsIAccessible getAccessibleToRight ()
AString getActionDescription (in PRUint8 aIndex)
AString getActionName (in PRUint8 index)
NS_IMETHOD GetAllowsAnonChildAccessibles (PRBool *aAllowsAnonChildren)
nsIAccessible getAnchor (in long index)
void getARIAState (out unsigned long aState)
AtkObject * GetAtkObject (void)
nsIAccessible getAttributeRange (in long offset, out long rangeStartOffset, out long rangeEndOffset)
virtual nsresult GetAttributesInternal (nsIPersistentProperties *aAttributes)
void getBounds (out long x, out long y, out long width, out long height)
void getCachedFirstChild (out nsIAccessible aAccFirstChild)
void getCachedParent (out nsIAccessible aAccParent)
wchar getCharacterAtOffset (in long offset)
void getCharacterExtents (in long offset, out long x, out long y, out long width, out long height, in unsigned long coordType)
nsIAccessible getChildAt (in long aChildIndex)
nsIAccessible getChildAtPoint (in long x, in long y)
nsIAccessNode getChildNodeAt (in long childNum)
CLSID GetClassID () const
nsIDOMCSSPrimitiveValue getComputedStyleCSSValue (in DOMString pseudoElt, in DOMString propertyName)
DOMString getComputedStyleValue (in DOMString pseudoElt, in DOMString propertyName)
already_AddRefed< nsIDOMNodeGetCurrentFocus ()
NS_IMETHOD GetDescription (nsAString &aDescription)
void getFinalState (out unsigned long aState, out unsigned long aExtraState)
nsIFrame GetFrame ()
STDMETHODIMP GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
nsIDOMDOMStringList getKeyBindings (in PRUint8 aActionIndex)
nsIAccessibleHyperLink getLink (in long linkIndex)
long getLinkIndex (in long charIndex)
MaiHyperlink * GetMaiHyperlink (PRBool aCreate=PR_TRUE)
NS_IMETHOD GetName (nsAString &aName)
void getNativeInterface (out voidPtr aOutAccessible)
NS_IMETHOD GetNativeInterface (void **aOutAccessible)
NS_IMETHOD GetNativeInterface (void **aOutAccessible)
NS_IMETHOD GetNativeInterface (void **aOutAccessible)
virtual objc_class * GetNativeType ()
void GetNativeWindow (void **aOutNativeWindow)
NS_IMETHOD GetNumActions (PRUint8 *aCount)
long getOffsetAtPoint (in long x, in long y, in unsigned long coordType)
already_AddRefed< nsIAccessibleGetParent ()
void getRangeExtents (in long startOffset, in long endOffset, out long x, out long y, out long width, out long height, in unsigned long coordType)
nsIAccessibleRelation getRelation (in unsigned long index)
nsIArray getRelations ()
GetRole (PRUint32 *aRole)
< nsRootAccessible > 
GetRootAccessible ()
nsIArray GetSelectedChildren ()
void getSelectionBounds (in long selectionNum, out long startOffset, out long endOffset)
NS_IMETHOD GetState (PRUint32 *aState, PRUint32 *aExtraState)
AString getText (in long startOffset, in long endOffset)
AString getTextAfterOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
AString getTextAtOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
AString getTextBeforeOffset (in long offset, in nsAccessibleTextBoundary boundaryType, out long startOffset, out long endOffset)
STDMETHODIMP GetTypeInfo (UINT i, LCID lcid, ITypeInfo **ppti)
PRInt32 GetUnignoredChildCount (PRBool aDeepCount)
void GetUnignoredChildren (nsTArray< nsRefPtr< nsAccessibleWrap > > &aChildrenArray)
virtual already_AddRefed
< nsIAccessible
GetUnignoredParent ()
nsIURI getURI (in long index)
NS_IMETHOD GetValue (nsAString &aValue)
virtual void GetXPAccessibleFor (const VARIANT &aVarChild, nsIAccessible **aXPAccessible)
void groupPosition (out long aGroupLevel, out long aSimilarItemsInGroup, out long aPositionInGroup)
PRBool HasPopup ()
nsresult HypertextOffsetsToDOMRange (PRInt32 aStartHTOffset, PRInt32 aEndHTOffset, nsIDOMNode **aStartNode, PRInt32 *aStartOffset, nsIDOMNode **aEndNode, PRInt32 *aEndOffset)
void init ()
virtual HRESULT STDMETHODCALLTYPE insertText (long offset, BSTR *text)
void insertText (in AString text, in long position)
void invalidateChildren ()
virtual nsresult InvalidateChildren ()
STDMETHODIMP Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
boolean isChildSelected (in long index)
virtual PRBool IsDefunct ()
PRBool IsIgnored ()
PRBool IsValidObject ()
virtual HRESULT STDMETHODCALLTYPE nActions (long *nActions)
 nsXFormsSelectableItemAccessible (nsIDOMNode *aNode, nsIWeakReference *aShell)
virtual HRESULT STDMETHODCALLTYPE pasteText (long offset)
void pasteText (in long position)
virtual HRESULT STDMETHODCALLTYPE put_accName (VARIANT varChild, BSTR szName)
virtual HRESULT STDMETHODCALLTYPE put_accValue (VARIANT varChild, BSTR szValue)
STDMETHODIMP QueryInterface (REFIID, void **)
STDMETHODIMP QueryInterface (REFIID, void **)
STDMETHODIMP QueryInterface (REFIID, void **)
voidPtr queryNativeInterface ([const ] in MSCOMIIDRef aIID)
STDMETHODIMP QueryService (REFGUID guidService, REFIID riid, void **ppv)
nsIAccessible refSelection (in long index)
void removeChildFromSelection (in long index)
virtual HRESULT STDMETHODCALLTYPE removeSelection (long selectionIndex)
void removeSelection (in long selectionNum)
virtual HRESULT STDMETHODCALLTYPE replaceText (long startOffset, long endOffset, BSTR *text)
virtual HRESULT STDMETHODCALLTYPE role (long *role)
 Returns the role of an IAccessible2 object.
virtual HRESULT STDMETHODCALLTYPE scrollSubstringTo (long startIndex, long endIndex, enum IA2ScrollType scrollType)
void scrollSubstringTo (in long startIndex, in long endIndex, in unsigned long scrollType)
virtual HRESULT STDMETHODCALLTYPE scrollSubstringToPoint (long startIndex, long endIndex, enum IA2CoordinateType coordinateType, long x, long y)
void scrollSubstringToPoint (in long startIndex, in long endIndex, in unsigned long coordinateType, in long x, in long y)
void scrollTo (in unsigned long aScrollType)
virtual HRESULT STDMETHODCALLTYPE scrollTo (boolean scrollTopLeft)
virtual HRESULT STDMETHODCALLTYPE scrollTo (enum IA2ScrollType scrollType)
 Makes an object visible on the screen.
void scrollToPoint (in unsigned long aCoordinateType, in long aX, in long aY)
virtual HRESULT STDMETHODCALLTYPE scrollToPoint (enum IA2CoordinateType coordinateType, long x, long y)
 Moves the top left of an object to a specified location.
boolean selectAllSelection ()
virtual HRESULT STDMETHODCALLTYPE setAttributes (long startOffset, long endOffset, BSTR *attributes)
void setAttributes (in long startPos, in long endPos, in nsISupports attributes)
virtual HRESULT STDMETHODCALLTYPE setCaretOffset (long offset)
void setFirstChild (in nsIAccessible aAccFirstChild)
void SetMaiHyperlink (MaiHyperlink *aMaiHyperlink)
void setNextSibling (in nsIAccessible aAccNextSibling)
void setParent (in nsIAccessible aAccParent)
void setRoleMapEntry (in nsRoleMapEntryPtr aRoleMapEntry)
void setSelected (in boolean isSelected)
virtual HRESULT STDMETHODCALLTYPE setSelection (long selectionIndex, long startOffset, long endOffset)
void setSelectionBounds (in long selectionNum, in long startOffset, in long endOffset)
void setTextContents (in AString text)
void shutdown ()
virtual nsresult Shutdown ()
NS_IMETHOD Shutdown ()
void ShutdownAtkObject ()
void takeFocus ()
void takeSelection ()
void testChildCache (in nsIAccessible aCachedChild)
void UnattachIEnumVariant ()
void UpdateSystemCaret ()
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static STDMETHODIMP AccessibleObjectFromWindow (HWND hwnd, DWORD dwObjectID, REFIID riid, void **ppvObject)
static void ClearCache (nsAccessNodeHashtable &aCache)
static PLDHashOperator PR_CALLBACK ClearCacheEntry (const void *aKey, nsCOMPtr< nsIAccessNode > &aAccessNode, void *aUserArg)
static nsresult ContentToRenderedOffset (nsIFrame *aFrame, PRInt32 aContentOffset, PRUint32 *aRenderedOffset)
static void DoATSpecificProcessing ()
static int FilterA11yExceptions (unsigned int aCode, EXCEPTION_POINTERS *aExceptionInfo)
static nsIAccessibilityService * GetAccService ()
static already_AddRefed
< nsApplicationAccessibleWrap > 
GetApplicationAccessible ()
static AtkObject * GetAtkObject (nsIAccessible *acc)
static void GetCacheEntry (nsAccessNodeHashtable &aCache, void *aUniqueID, nsIAccessNode **aAccessNode)
static PRInt32 GetChildIDFor (nsIAccessible *aAccessible)
static void GetComputedStyleDeclaration (const nsAString &aPseudoElt, nsIDOMElement *aElement, nsIDOMCSSStyleDeclaration **aCssDecl)
static already_AddRefed
< nsIAccessibleDocument
GetDocAccessibleFor (nsIDOMNode *aNode)
static already_AddRefed
< nsIAccessibleDocument
GetDocAccessibleFor (nsIDocShellTreeItem *aContainer, PRBool aCanCreate=PR_FALSE)
static already_AddRefed
< nsIAccessibleDocument
GetDocAccessibleFor (nsIWeakReference *aWeakShell)
static already_AddRefed
< nsIAccessibleDocument
GetDocAccessibleFor (nsIDocument *aDocument)
static already_AddRefed
< nsIDOMNode
GetDOMNodeForContainer (nsISupports *aContainer)
static HWND GetHWNDFor (nsIAccessible *aAccessible)
static already_AddRefed
< nsIPresShell > 
GetPresShellFor (nsIDOMNode *aStartNode)
static nsIContentGetRoleContent (nsIDOMNode *aDOMNode)
static void InitAccessibility ()
static void InitAccessibility ()
static void InitAccessibility ()
static void InitAccessibility ()
InitXPAccessibility ()
static PRBool IsCorrectFrameType (nsIFrame *aFrame, nsIAtom *aAtom)
static PRBool IsEmbeddedObject (nsIAccessible *aAcc)
static PRBool IsLeaf (nsIAccessible *aAcc)
static PRBool IsNodeRelevant (nsIDOMNode *aNode)
static PRBool IsOnlyMsaaCompatibleJawsPresent ()
static PRBool IsText (nsIAccessible *aAcc)
static PRBool MustPrune (nsIAccessible *aAccessible)
static IDispatch * NativeAccessible (nsIAccessible *aXPAccessible)
static STDMETHODIMP NotifyWinEvent (DWORD event, HWND hwnd, LONG idObjectType, LONG idObject)
static void PutCacheEntry (nsAccessNodeHashtable &aCache, void *aUniqueID, nsIAccessNode *aAccessNode)
static nsresult RenderedToContentOffset (nsIFrame *aFrame, PRUint32 aRenderedOffset, PRInt32 *aContentOffset)
static const char * ReturnString (nsAString &aString)
static PRUint32 Role (nsIAccessible *aAcc)
static void ShutdownAccessibility ()
static void ShutdownAccessibility ()
static void ShutdownAccessibility ()
static void ShutdownAccessibility ()
static void ShutdownXPAccessibility ()
static PRUint32 State (nsIAccessible *aAcc)
static PRInt32 TextLength (nsIAccessible *aAccessible)

Public Attributes

readonly attribute
readonly attribute boolean allowsAnonChildAccessibles
readonly attribute long anchorCount
readonly attribute nsIEditor associatedEditor
readonly attribute
const nsAccessibleTextBoundary BOUNDARY_ATTRIBUTE_RANGE = 7
const nsAccessibleTextBoundary BOUNDARY_CHAR = 0
const nsAccessibleTextBoundary BOUNDARY_LINE_END = 6
const nsAccessibleTextBoundary BOUNDARY_LINE_START = 5
const nsAccessibleTextBoundary BOUNDARY_SENTENCE_END = 4
const nsAccessibleTextBoundary BOUNDARY_SENTENCE_START = 3
const nsAccessibleTextBoundary BOUNDARY_WORD_END = 2
const nsAccessibleTextBoundary BOUNDARY_WORD_START = 1
attribute long caretOffset
readonly attribute long characterCount
readonly attribute long childCount
readonly attribute nsIArray children
attribute double currentValue
readonly attribute AString defaultKeyBinding
readonly attribute AString description
readonly attribute nsIDOMNode DOMNode
readonly attribute long endIndex
const unsigned long eSelection_Add = 0
const unsigned long eSelection_GetState = 2
const unsigned long eSelection_Remove = 1
readonly attribute unsigned long finalRole
readonly attribute nsIAccessible firstChild
readonly attribute nsIAccessNode firstChildNode
readonly attribute nsIAccessible focusedChild
readonly attribute AString help
readonly attribute long indexInParent
readonly attribute DOMString innerHTML
readonly attribute AString keyboardShortcut
readonly attribute DOMString language
readonly attribute nsIAccessible lastChild
readonly attribute nsIAccessNode lastChildNode
readonly attribute long linkCount
readonly attribute double maximumValue
readonly attribute double minimumIncrement
readonly attribute double minimumValue
attribute AString name
readonly attribute nsIAccessible nextSibling
readonly attribute nsIAccessNode nextSiblingNode
const unsigned short NODETYPE_ATTRIBUTE = 2
const unsigned short NODETYPE_CDATA_SECTION = 4
const unsigned short NODETYPE_COMMENT = 8
const unsigned short NODETYPE_DOCUMENT = 9
const unsigned short NODETYPE_DOCUMENT_FRAGMENT = 11
const unsigned short NODETYPE_DOCUMENT_TYPE = 10
const unsigned short NODETYPE_ELEMENT = 1
const unsigned short NODETYPE_ENTITY = 6
const unsigned short NODETYPE_ENTITY_REFERENCE = 5
const unsigned short NODETYPE_NOTATION = 12
const unsigned short NODETYPE_TEXT = 3
readonly attribute PRUint8 numActions
readonly attribute long numChildren
readonly attribute voidPtr ownerWindow
readonly attribute nsIAccessible parent
readonly attribute nsIAccessNode parentNode
readonly attribute nsIAccessible previousSibling
readonly attribute nsIAccessNode previousSiblingNode
readonly attribute unsigned long relationsCount
readonly attribute unsigned long role
readonly attribute boolean selected
readonly attribute long selectionCount
readonly attribute long selectionCount
readonly attribute long startIndex
const PRInt32 TEXT_OFFSET_CARET = -2
readonly attribute voidPtr uniqueID
readonly attribute boolean valid
readonly attribute AString value

Static Public Attributes

static nsIDOMNodegLastFocusedNode = 0
gmAccessibleObjectFromWindow = nsnull
static HINSTANCE gmAccLib = nsnull
 the accessible library and cached methods
static LPFNGETGUITHREADINFO gmGetGUIThreadInfo = nsnull
static LPFNNOTIFYWINEVENT gmNotifyWinEvent = nsnull
static HINSTANCE gmUserLib = nsnull

Protected Types

enum  { eAction_Click = 0 }
enum  navRelations {

Protected Member Functions

PRBool AncestorIsFlat ()
nsresult AppendFlatStringFromContentNode (nsIContent *aContent, nsAString *aFlatString)
nsresult AppendFlatStringFromSubtree (nsIContent *aContent, nsAString *aFlatString)
nsresult AppendFlatStringFromSubtreeRecurse (nsIContent *aContent, nsAString *aFlatString)
nsresult AppendNameFromAccessibleFor (nsIContent *aContent, nsAString *aFlatString, PRBool aFromValue=PR_FALSE)
nsresult AppendStringWithSpaces (nsAString *aFlatString, const nsAString &textEquivalent)
void CacheSelectChildren (nsIDOMNode *aContainerNode=nsnull)
PRBool CheckVisibilityInParentChain (nsIDocument *aDocument, nsIView *aView)
nsresult DoCommand (nsIContent *aContent=nsnull)
nsresult FireAtkPropChangedEvent (nsIAccessibleEvent *aEvent, AtkObject *aObject)
nsresult FireAtkShowHideEvent (nsIAccessibleEvent *aEvent, AtkObject *aObject, PRBool aIsAdded)
nsresult FireAtkStateChangeEvent (nsIAccessibleEvent *aEvent, AtkObject *aObject)
nsresult FireAtkTextChangedEvent (nsIAccessibleEvent *aEvent, AtkObject *aObject)
void GetAccessibleFor (nsIDOMNode *node, nsIAccessible **newAcc)
HRESULT GetARGBValueFromCSSProperty (const nsAString &aPropName, IA2Color *aColorValue)
nsIDOMNodeGetAtomicRegion ()
nsresult GetAttrValue (nsIAtom *aAriaProperty, double *aValue)
nsresult GetBoundChildElementValue (const nsAString &aTagName, nsAString &aValue)
nsIntRect GetBoundsForString (nsIFrame *aFrame, PRUint32 aStartRenderedOffset, PRUint32 aEndRenderedOffset)
virtual nsIFrameGetBoundsFrame ()
virtual void GetBoundsRect (nsRect &aRect, nsIFrame **aRelativeFrame)
PRInt32 GetCaretLineNumber ()
< nsIAccessibleDocument
GetDocAccessible ()
nsresult GetDOMPointByFrameOffset (nsIFrame *aFrame, PRInt32 aOffset, nsIAccessible *aAccessible, nsIDOMNode **aNode, PRInt32 *aNodeOffset)
already_AddRefed< nsIAccessibleGetFirstAvailableAccessible (nsIDOMNode *aStartNode, PRBool aRequireLeaf=PR_FALSE)
nsresult GetHTMLName (nsAString &_retval, PRBool aCanAggregateSubtree=PR_TRUE)
virtual nsresult GetLinkOffset (PRInt32 *aStartOffset, PRInt32 *aEndOffset)
virtual nsresult GetModifiedText (PRBool aGetInsertedText, nsAString &aText, PRUint32 *aStartOffset, PRUint32 *aEndOffset)
already_AddRefed< nsIAccessibleGetNextWithState (nsIAccessible *aStart, PRUint32 matchState)
nsIFrameGetPosAndText (PRInt32 &aStartOffset, PRInt32 &aEndOffset, nsAString *aText=nsnull, nsIFrame **aEndFrame=nsnull, nsIntRect *aBoundsRect=nsnull, nsIAccessible **aStartAcc=nsnull, nsIAccessible **aEndAcc=nsnull)
nsPresContext * GetPresContext ()
already_AddRefed< nsIPresShell > GetPresShell ()
PRInt32 GetRelativeOffset (nsIPresShell *aPresShell, nsIFrame *aFromFrame, PRInt32 aFromOffset, nsIAccessible *aFromAccessible, nsSelectionAmount aAmount, nsDirection aDirection, PRBool aNeedsStart)
nsresult GetSelections (nsISelectionController **aSelCon, nsISelection **aDomSel=nsnull, nsCOMArray< nsIDOMRange > *aRanges=nsnull)
nsresult GetTextFromRelationID (nsIAtom *aIDProperty, nsString &aName)
nsresult GetTextHelper (EGetTextType aType, nsAccessibleTextBoundary aBoundaryType, PRInt32 aOffset, PRInt32 *aStartOffset, PRInt32 *aEndOffset, nsAString &aText)
nsresult GetXULName (nsAString &aName, PRBool aCanAggregateSubtree=PR_TRUE)
PRBool IsItemSelected ()
PRBool IsVisible (PRBool *aIsOffscreen)
void LastRelease ()
nsresult MakeAccessNode (nsIDOMNode *aNode, nsIAccessNode **aAccessNode)
ISimpleDOMNode * MakeAccessNode (nsIDOMNode *node)
PRBool MappedAttrState (nsIContent *aContent, PRUint32 *aStateInOut, nsStateMapEntry *aStateMapEntry)
nsIAccessibleNextChild (nsCOMPtr< nsIAccessible > &aAccessible)
nsresult SetSelectionRange (PRInt32 aStartPos, PRInt32 aEndPos)

Static Protected Member Functions

static void DoCommandCallback (nsITimer *aTimer, void *aClosure)
static nsresult GetFullKeyName (const nsAString &aModifierName, const nsAString &aKeyName, nsAString &aStringOut)
static nsIContentGetHTMLLabelContent (nsIContent *aForNode)
static nsIContentGetLabelContent (nsIContent *aForNode)
static already_AddRefed
< nsIAccessible
GetMultiSelectFor (nsIDOMNode *aNode)
static nsresult GetTranslatedString (const nsAString &aKey, nsAString &aStringOut)
static void NotifyA11yInitOrShutdown ()

Protected Attributes

PRInt32 mAccChildCount
AtkObject * mAtkObject
nsCOMPtr< nsIDOMNodemDOMNode
PRInt16 mEnumVARIANTPosition
AccessibleWrapper * mNativeWrapper
nsCOMPtr< nsIAccessiblemParent
nsRoleMapEntry * mRoleMapEntry
nsCOMPtr< nsIWeakReferencemWeakShell

Static Protected Attributes

static nsITimergDoCommandTimer = 0
static nsAccessNodeHashtable gGlobalDocAccessibleCache
static PRBool gIsAccessibilityActive = PR_FALSE
static PRBool gIsCacheDisabled = PR_FALSE
static PRBool gIsEnumVariantSupportDisabled = 0
static PRBool gIsFormFillEnabled = PR_FALSE
static PRBool gIsIA2Disabled = PR_FALSE
static PRBool gIsShuttingDownApp = PR_FALSE
static nsIStringBundle * gKeyStringBundle = 0
static nsIStringBundle * gStringBundle = 0
nsIAccessibleTextChangeEvent * 
gTextEvent = nsnull
static nsIXFormsUtilityServicesXFormsService = nsnull


VARIANT anchor ([in] long index) [get]
 Returns an object that represents the link anchor, as appropriate for the link at the specified index.
VARIANT anchorTarget ([in] long index) [get]
 Returns an object representing the target of the link, as appropriate for the link at the specified index.
BSTR attributes ([in] long offset,[out] long startOffset,[out] long endOffset) [get]
 Returns text attributes.
BSTR attributes [get]
 Returns the attributes specific to this IAccessible2 object, such as a cell's formula.
short attributes ([in] short maxAttribs,[out, size_is(maxAttribs), length_is(*numAttribs)] BSTR attribNames,[out, size_is(maxAttribs), length_is(*numAttribs)] short nameSpaceID,[out, size_is(maxAttribs), length_is(*numAttribs)] BSTR attribValues) [get]
BSTR attributesForNames ([in] short numAttribs,[in, size_is(numAttribs), length_is(numAttribs)] BSTR attribNames,[in, size_is(numAttribs), length_is(numAttribs)] short nameSpaceID) [get]
IA2Color background [get]
 Returns the background color of this object.
long caretOffset [get]
 Returns the position of the caret.
long characterExtents ([in] long offset,[in] IA2CoordinateType coordType,[out] long x,[out] long y,[out] long width) [get]
 Returns the bounding box of the specified position.
ISimpleDOMNode childAt ([in] unsigned childIndex) [get]
short computedStyle ([in] short maxStyleProperties,[in] boolean useAlternateView,[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR styleProperties,[out, size_is(maxStyleProperties), length_is(*numStyleProperties)] BSTR styleValues) [get]
BSTR computedStyleForProperties ([in] short numStyleProperties,[in] boolean useAlternateView,[in, size_is(numStyleProperties), length_is(numStyleProperties)] BSTR styleProperties) [get]
VARIANT currentValue [get]
 Returns the value of this object as a number.
BSTR description ([in] long actionIndex) [get]
 Returns a description of the specified action of the object.
long endIndex [get]
 Returns the index at which the textual rerpesentation of the hyperlink ends.
BSTR extendedRole [get]
 Returns the extended role.
long extendedStates ([in] long maxExtendedStates,[out, size_is(, maxExtendedStates), length_is(,*nExtendedStates)] BSTR extendedStates) [get]
 Returns the extended states (array of strings).
ISimpleDOMNode firstChild [get]
IA2Color foreground [get]
 Returns the foreground color of this object.
long groupPosition ([out] long groupLevel,[out] long similarItemsInGroup) [get]
 Returns grouping information.
IAccessibleHyperlink hyperlink ([in] long index) [get]
 Returns the specified link.
long hyperlinkIndex ([in] long charIndex) [get]
 Returns the index of the hyperlink that is associated with this character index.
long indexInParent [get]
 Returns the index of this object in its parent object.
BSTR innerHTML [get]
long keyBinding ([in] long actionIndex,[in] long nMaxBinding,[out, size_is(, nMaxBinding), length_is(,*nBinding)] BSTR keyBinding) [get]
 Returns an array of BSTRs describing one or more key bindings, if there are any, associated with the specified action.
BSTR language [get]
ISimpleDOMNode lastChild [get]
IA2Locale locale [get]
 Returns the IA2Locale of the accessible object.
void localInterface [get]
BSTR localizedExtendedRole [get]
 Returns the localized extended role.
long localizedExtendedStates ([in] long maxLocalizedExtendedStates,[out, size_is(, maxLocalizedExtendedStates), length_is(,*nLocalizedExtendedStates)] BSTR localizedExtendedStates) [get]
 Returns the localized extended states (array of strings).
BSTR localizedName ([in] long actionIndex) [get]
 Returns the localized name of specified action.
long locationInParent ([out] long x) [get]
 Returns the location of the upper left corner of the object's bounding box relative to the immediate parent object.
VARIANT maximumValue [get]
 Returns the maximal value that can be represented by this object.
VARIANT minimumValue [get]
 Returns the minimal value that can be represented by this object.
BSTR name ([in] long actionIndex) [get]
 Returns the non-localized name of specified action.
long nCharacters [get]
 Returns total number of characters.
IA2TextSegment newText [get]
 Returns any inserted text.
long nExtendedStates [get]
 Returns the number of extended states.
ISimpleDOMNode nextSibling [get]
long nHyperlinks [get]
 Returns the number of links and link groups contained within this hypertext paragraph.
short nodeInfo ([out] BSTR nodeName,[out] short nameSpaceID,[out] BSTR nodeValue,[out] int numChildren,[out] int uniqueID) [get]
long nRelations [get]
 Returns the number of accessible relations for this object.
long nSelections [get]
 Returns the number of active non-contiguous selections.
long offsetAtPoint ([in] long x,[in] long y,[in] IA2CoordinateType coordType) [get]
 Returns the text position for the specified screen position.
IA2TextSegment oldText [get]
 Returns any removed text.
ISimpleDOMNode parentNode [get]
ISimpleDOMNode previousSibling [get]
IAccessibleRelation relation ([in] long relationIndex) [get]
 Returns one accessible relation for this object.
long relations ([in] long maxRelations,[out, size_is(maxRelations), length_is(*nRelations)] IAccessibleRelation relation) [get]
 Returns multiple accessible relations for this object.
long selection ([in] long selectionIndex,[out] long startOffset) [get]
 Returns the character offsets of N-th active text selection.
long startIndex [get]
 Returns the index at which the textual representation of the hyperlink starts.
AccessibleStates states [get]
 Returns the bit strip containing any IAccessible2 states.
BSTR text ([in] long startOffset,[in] long endOffset) [get]
 Returns the substring between the two given indices.
BSTR textAfterOffset ([in] long offset,[in] IA2TextBoundaryType boundaryType,[out] long startOffset,[out] long endOffset) [get]
 Returns a text portion after the given position.
BSTR textAtOffset ([in] long offset,[in] IA2TextBoundaryType boundaryType,[out] long startOffset,[out] long endOffset) [get]
 Returns a text portion that spans the given position.
BSTR textBeforeOffset ([in] long offset,[in] IA2TextBoundaryType boundaryType,[out] long startOffset,[out] long endOffset) [get]
 Returns a text portion before the given position.
long uniqueID [get]
 Returns the unique ID.
boolean valid [get]
 Returns whether the target object referenced by this link is still valid.
HWND windowHandle [get]
 Returns the window handle for the parent window which contains this object.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index