Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
MaiInterfaceHypertext Class Reference

#include <nsMaiInterfaceHypertext.h>

Inheritance diagram for MaiInterfaceHypertext:
Inheritance graph
[legend]
Collaboration diagram for MaiInterfaceHypertext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MaiInterfaceHypertext (nsAccessibleWrap *aAccWrap, nsIWeakReference *aShell)
virtual ~MaiInterfaceHypertext ()
virtual MaiInterfaceType GetType ()
virtual const GInterfaceInfo * GetInterfaceInfo ()
nsresult GetWeakShell (nsIWeakReference **aWeakShell)
GType GetAtkType ()

Private Attributes

nsCOMPtr< nsIWeakReferencemWeakShell

Detailed Description

Definition at line 49 of file nsMaiInterfaceHypertext.h.


Constructor & Destructor Documentation

Definition at line 57 of file nsMaiInterfaceHypertext.cpp.

                                                                      :
    MaiInterface(aAccWrap),
    mWeakShell(aShell)
{
}

Definition at line 64 of file nsMaiInterfaceHypertext.cpp.


Member Function Documentation

GType MaiInterface::GetAtkType ( ) [inherited]

Definition at line 55 of file nsMaiInterface.cpp.

{
    MaiInterfaceType type = GetType();
    GType atkType;
    switch (type) {
    case MAI_INTERFACE_COMPONENT:
        atkType = ATK_TYPE_COMPONENT;
        break;
    case MAI_INTERFACE_ACTION:
        atkType = ATK_TYPE_ACTION;
        break;
    case MAI_INTERFACE_VALUE:
        atkType = ATK_TYPE_VALUE;
        break;
    case MAI_INTERFACE_EDITABLE_TEXT:
        atkType = ATK_TYPE_EDITABLE_TEXT;
        break;
    case MAI_INTERFACE_HYPERLINK:
        atkType = ATK_TYPE_HYPERLINK;
        break;
    case MAI_INTERFACE_HYPERTEXT:
        atkType = ATK_TYPE_HYPERTEXT;
        break;
    case MAI_INTERFACE_SELECTION:
        atkType = ATK_TYPE_SELECTION;
        break;
    case MAI_INTERFACE_TABLE:
        atkType = ATK_TYPE_TABLE;
        break;
    case MAI_INTERFACE_TEXT:
        atkType = ATK_TYPE_TEXT;
        break;
    default:
        atkType = G_TYPE_INVALID;
    }
    return atkType;
}

Here is the call graph for this function:

const GInterfaceInfo * MaiInterfaceHypertext::GetInterfaceInfo ( ) [virtual]

Implements MaiInterface.

Definition at line 90 of file nsMaiInterfaceHypertext.cpp.

{
    static const GInterfaceInfo atk_if_hypertext_info = {
        (GInterfaceInitFunc)interfaceInitCB,
        (GInterfaceFinalizeFunc) NULL,
        NULL
    };
    return &atk_if_hypertext_info;
}

Here is the call graph for this function:

Implements MaiInterface.

Definition at line 70 of file nsMaiInterfaceHypertext.cpp.

Definition at line 76 of file nsMaiInterfaceHypertext.cpp.

{
    nsresult rv = NS_ERROR_FAILURE;
    if (mWeakShell) {
        *aWeakShell = mWeakShell;
        NS_IF_ADDREF(*aWeakShell);
        rv = NS_OK;
    }
    else
        *aWeakShell = nsnull;
    return rv;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file nsMaiInterfaceHypertext.h.


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