Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg
[wine-gecko.git] / accessible / public / nsIAccessibleDocument.idl
blobfdbd4b6360af76d4db91e843c9943a4f7b649101
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2002
20 * the Initial Developer. All Rights Reserved.
22 * Original Author: Aaron Leventhal (aaronl@netscape.com)
23 * Contributor(s): John Gaunt (jgaunt@netscape.com)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 #include "nsISupports.idl"
41 interface nsIAccessible;
42 interface nsIAccessNode;
43 interface nsIDOMDocument;
44 interface nsIDOMNode;
45 interface nsIDOMWindow;
47 /**
48 * An interface for in-process accessibility clients
49 * that wish to retrieve information about a document.
50 * When accessibility is turned on in Gecko,
51 * there is an nsIAccessibleDocument for each document
52 * whether it is XUL, HTML or whatever.
53 * You can QueryInterface to nsIAccessibleDocument from
54 * the nsIAccessible or nsIAccessNode for the root node
55 * of a document. You can also get one from
56 * nsIAccessNode::GetAccessibleDocument() or
57 * nsIAccessibleEvent::GetAccessibleDocument()
59 * @status UNDER_REVIEW
61 [scriptable, uuid(b7ae45bd-21e9-4ed5-a67e-86448b25d56b)]
62 interface nsIAccessibleDocument : nsISupports
64 /**
65 * The URL of the document
67 readonly attribute AString URL;
69 /**
70 * The title of the document, as specified in the document.
72 readonly attribute AString title;
74 /**
75 * The mime type of the document
77 readonly attribute AString mimeType;
79 /**
80 * The doc type of the document, as specified in the document.
82 readonly attribute AString docType;
84 /**
85 * The nsIDOMDocument interface associated with this document.
87 readonly attribute nsIDOMDocument document;
89 /**
90 * The nsIDOMWindow that the document resides in.
92 readonly attribute nsIDOMWindow window;
94 /**
95 * The namespace for each ID that is handed back.
97 AString getNameSpaceURIForID(in short nameSpaceID);
99 /**
100 * The window handle for the OS window the document is being displayed in.
101 * For example, in Windows you can static cast it to an HWND.
103 [noscript] readonly attribute voidPtr windowHandle;
106 * Returns the access node cached by this document
107 * @param aUniqueID The unique ID used to cache the node.
108 * This matches up with the uniqueID attribute on
109 * nsIAccessNode.
110 * @return The nsIAccessNode cached for this particular unique ID.
112 [noscript] nsIAccessNode getCachedAccessNode(in voidPtr aUniqueID);
115 * Returns the first accessible parent of a DOM node.
116 * Guaranteed not to return nsnull if the DOM node is in a document.
117 * @param aDOMNode The DOM node we need an accessible for.
118 * @param aCanCreate Can accessibles be created or must it be the first
119 * cached accessible in the parent chain?
120 * @return An first nsIAccessible found by crawling up the DOM node
121 * to the document root.
123 nsIAccessible getAccessibleInParentChain(in nsIDOMNode aDOMNode,
124 in boolean aCanCreate);