Copy as Markdown
Other Tools
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0628 */
/* at Tue Jan 19 03:14:07 2038
*/
/* Compiler settings for ISimpleDOM.idl.tmp/ISimpleDOM.idl:
Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 8.01.0628
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __ISimpleDOM_h__
#define __ISimpleDOM_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#ifndef DECLSPEC_XFGVIRT
#if defined(_CONTROL_FLOW_GUARD_XFG)
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
#else
#define DECLSPEC_XFGVIRT(base, func)
#endif
#endif
/* Forward Declarations */
#ifndef __ISimpleDOMNode_FWD_DEFINED__
#define __ISimpleDOMNode_FWD_DEFINED__
typedef interface ISimpleDOMNode ISimpleDOMNode;
#endif /* __ISimpleDOMNode_FWD_DEFINED__ */
#ifndef __ISimpleDOMDocument_FWD_DEFINED__
#define __ISimpleDOMDocument_FWD_DEFINED__
typedef interface ISimpleDOMDocument ISimpleDOMDocument;
#endif /* __ISimpleDOMDocument_FWD_DEFINED__ */
#ifndef __ISimpleDOMText_FWD_DEFINED__
#define __ISimpleDOMText_FWD_DEFINED__
typedef interface ISimpleDOMText ISimpleDOMText;
#endif /* __ISimpleDOMText_FWD_DEFINED__ */
#ifndef __ISimpleDOMNode_FWD_DEFINED__
#define __ISimpleDOMNode_FWD_DEFINED__
typedef interface ISimpleDOMNode ISimpleDOMNode;
#endif /* __ISimpleDOMNode_FWD_DEFINED__ */
#ifndef __ISimpleDOMText_FWD_DEFINED__
#define __ISimpleDOMText_FWD_DEFINED__
typedef interface ISimpleDOMText ISimpleDOMText;
#endif /* __ISimpleDOMText_FWD_DEFINED__ */
#ifndef __ISimpleDOMDocument_FWD_DEFINED__
#define __ISimpleDOMDocument_FWD_DEFINED__
typedef interface ISimpleDOMDocument ISimpleDOMDocument;
#endif /* __ISimpleDOMDocument_FWD_DEFINED__ */
/* header files for imported files */
#include "objidl.h"
#include "oaidl.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_ISimpleDOM_0000_0000 */
/* [local] */
///////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ISimpleDOMNode
// ---------------------------------------------------------------------------------------------------=
// An interface that extends MSAA's IAccessible to provide readonly DOM node information via cross-process COM.
//
// get_nodeInfo(
// /* [out] */ BSTR *nodeName, // For elements, this is the tag name
// /* [out] */ short *nameSpaceID,
// /* [out] */ BSTR *nodeValue,
// /* [out] */ unsigned int *numChildren);
// /* [out] */ unsigned int *uniqueID; // In Win32 accessible events we generate, the target's childID matches to this
// /* [out] */ unsigned short *nodeType,
// ---------------------------------------------------------------------------------------------------=
// Get the basic information about a node.
// The namespace ID can be mapped to an URI using nsISimpleDOMDocument::get_nameSpaceURIForID()
//
// get_attributes(
// /* [in] */ unsigned short maxAttribs,
// /* [out] */ unsigned short *numAttribs,
// /* [out] */ BSTR *attribNames,
// /* [out] */ short *nameSpaceID,
// /* [out] */ BSTR *attribValues);
// ---------------------------------------------------------------------------------------------------=
// Returns 3 arrays - the attribute names and values, and a namespace ID for each
// If the namespace ID is 0, it's the same namespace as the node's namespace
//
// get_attributesForNames(
// /* [in] */ unsigned short numAttribs,
// /* [in] */ BSTR *attribNames,
// /* [in] */ short *nameSpaceID,
// /* [out] */ BSTR *attribValues);
// ---------------------------------------------------------------------------------------------------=
// Takes 2 arrays - the attribute names and namespace IDs, and returns an array of corresponding values
// If the namespace ID is 0, it's the same namespace as the node's namespace
//
// computedStyle(
// /* [in] */ unsigned short maxStyleProperties,
// /* [out] */ unsigned short *numStyleProperties,
// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
// /* [out] */ BSTR *styleProperties,
// /* [out] */ BSTR *styleValues);
// ---------------------------------------------------------------------------------------------------=
// Returns 2 arrays -- the style properties and their values
// useAlternateView=FALSE: gets properties for the default media type (usually screen)
// useAlternateView=TRUE: properties for media types set w/ nsIDOMSimpleDocument::set_alternateViewMediaTypes()
//
// computedStyleForProperties(
// /* [in] */ unsigned short numStyleProperties,
// /* [in] */ boolean useAlternateView, // If TRUE, returns properites for media as set in Document's set_alternateViewMediaTypes
// /* [in] */ BSTR *styleProperties,
// /* [out] */ BSTR *styleValues);
// ---------------------------------------------------------------------------------------------------=
// Scroll the current view so that this dom node is visible.
// placeTopLeft=TRUE: scroll until the top left corner of the dom node is at the top left corner of the view.
// placeTopLeft=FALSE: scroll minimally to make the dom node visible. Don't scroll at all if already visible.
//
// scrollTo(
// /* [in] */ boolean placeTopLeft);
// ---------------------------------------------------------------------------------------------------=
// Returns style property values for those properties in the styleProperties [in] array
// Returns 2 arrays -- the style properties and their values
// useAlternateView=FALSE: gets properties for the default media type (usually screen)
// useAlternateView=TRUE: properties for media types set w/ nsIDOMSimpleDocument::set_alternateViewMediaTypes()
//
// get_parentNode (/* [out] */ ISimpleDOMNode **newNodePtr);
// get_firstChild (/* [out] */ ISimpleDOMNode **newNodePtr);
// get_lastChild (/* [out] */ ISimpleDOMNode **newNodePtr);
// get_previousSibling(/* [out] */ ISimpleDOMNode **newNodePtr);
// get_nextSibling (/* [out] */ ISimpleDOMNode **newNodePtr);
// get_childAt (/* [in] */ unsigned childIndex, /* [out] */ ISimpleDOMNode **newNodePtr);
// ---------------------------------------------------------------------------------------------------=
// DOM navigation - get a different node.
//
// get_innerHTML(/* [out] */ BSTR *htmlText);
// ---------------------------------------------------------------------------------------------------=
// Returns HTML of this DOM node's subtree. Does not include the start and end tag for this node/element.
//
//
// get_localInterface(/* [out] */ void **localInterface);
// ---------------------------------------------------------------------------------------------------=
// Only available in Gecko's process
//
//
// get_language(/* [out] */ BSTR *htmlText);
// ---------------------------------------------------------------------------------------------------=
// Returns the computed language for this node, or empty string if unknown.
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////////
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0000_v0_0_s_ifspec;
#ifndef __ISimpleDOMNode_INTERFACE_DEFINED__
#define __ISimpleDOMNode_INTERFACE_DEFINED__
/* interface ISimpleDOMNode */
/* [uuid][object] */
#define NODETYPE_ELEMENT ( 1 )
#define NODETYPE_ATTRIBUTE ( 2 )
#define NODETYPE_TEXT ( 3 )
#define NODETYPE_CDATA_SECTION ( 4 )
#define NODETYPE_ENTITY_REFERENCE ( 5 )
#define NODETYPE_ENTITY ( 6 )
#define NODETYPE_PROCESSING_INSTRUCTION ( 7 )
#define NODETYPE_COMMENT ( 8 )
#define NODETYPE_DOCUMENT ( 9 )
#define NODETYPE_DOCUMENT_TYPE ( 10 )
#define NODETYPE_DOCUMENT_FRAGMENT ( 11 )
#define NODETYPE_NOTATION ( 12 )
EXTERN_C const IID IID_ISimpleDOMNode;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("1814ceeb-49e2-407f-af99-fa755a7d2607")
ISimpleDOMNode : public IUnknown
{
public:
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_nodeInfo(
/* [out] */ BSTR *nodeName,
/* [out] */ short *nameSpaceID,
/* [out] */ BSTR *nodeValue,
/* [out] */ unsigned int *numChildren,
/* [out] */ unsigned int *uniqueID,
/* [retval][out] */ unsigned short *nodeType) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_attributes(
/* [in] */ unsigned short maxAttribs,
/* [length_is][size_is][out] */ BSTR *attribNames,
/* [length_is][size_is][out] */ short *nameSpaceID,
/* [length_is][size_is][out] */ BSTR *attribValues,
/* [retval][out] */ unsigned short *numAttribs) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_attributesForNames(
/* [in] */ unsigned short numAttribs,
/* [length_is][size_is][in] */ BSTR *attribNames,
/* [length_is][size_is][in] */ short *nameSpaceID,
/* [length_is][size_is][retval][out] */ BSTR *attribValues) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_computedStyle(
/* [in] */ unsigned short maxStyleProperties,
/* [in] */ boolean useAlternateView,
/* [length_is][size_is][out] */ BSTR *styleProperties,
/* [length_is][size_is][out] */ BSTR *styleValues,
/* [retval][out] */ unsigned short *numStyleProperties) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_computedStyleForProperties(
/* [in] */ unsigned short numStyleProperties,
/* [in] */ boolean useAlternateView,
/* [length_is][size_is][in] */ BSTR *styleProperties,
/* [length_is][size_is][retval][out] */ BSTR *styleValues) = 0;
virtual HRESULT STDMETHODCALLTYPE scrollTo(
/* [in] */ boolean placeTopLeft) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_parentNode(
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_firstChild(
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_lastChild(
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_previousSibling(
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_nextSibling(
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_childAt(
/* [in] */ unsigned int childIndex,
/* [retval][out] */ ISimpleDOMNode **node) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_innerHTML(
/* [retval][out] */ BSTR *innerHTML) = 0;
virtual /* [local][propget] */ HRESULT STDMETHODCALLTYPE get_localInterface(
/* [retval][out] */ void **localInterface) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_language(
/* [retval][out] */ BSTR *language) = 0;
};
#else /* C style interface */
typedef struct ISimpleDOMNodeVtbl
{
BEGIN_INTERFACE
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ISimpleDOMNode * This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void **ppvObject);
DECLSPEC_XFGVIRT(IUnknown, AddRef)
ULONG ( STDMETHODCALLTYPE *AddRef )(
ISimpleDOMNode * This);
DECLSPEC_XFGVIRT(IUnknown, Release)
ULONG ( STDMETHODCALLTYPE *Release )(
ISimpleDOMNode * This);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_nodeInfo)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeInfo )(
ISimpleDOMNode * This,
/* [out] */ BSTR *nodeName,
/* [out] */ short *nameSpaceID,
/* [out] */ BSTR *nodeValue,
/* [out] */ unsigned int *numChildren,
/* [out] */ unsigned int *uniqueID,
/* [retval][out] */ unsigned short *nodeType);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_attributes)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )(
ISimpleDOMNode * This,
/* [in] */ unsigned short maxAttribs,
/* [length_is][size_is][out] */ BSTR *attribNames,
/* [length_is][size_is][out] */ short *nameSpaceID,
/* [length_is][size_is][out] */ BSTR *attribValues,
/* [retval][out] */ unsigned short *numAttribs);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_attributesForNames)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributesForNames )(
ISimpleDOMNode * This,
/* [in] */ unsigned short numAttribs,
/* [length_is][size_is][in] */ BSTR *attribNames,
/* [length_is][size_is][in] */ short *nameSpaceID,
/* [length_is][size_is][retval][out] */ BSTR *attribValues);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_computedStyle)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_computedStyle )(
ISimpleDOMNode * This,
/* [in] */ unsigned short maxStyleProperties,
/* [in] */ boolean useAlternateView,
/* [length_is][size_is][out] */ BSTR *styleProperties,
/* [length_is][size_is][out] */ BSTR *styleValues,
/* [retval][out] */ unsigned short *numStyleProperties);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_computedStyleForProperties)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_computedStyleForProperties )(
ISimpleDOMNode * This,
/* [in] */ unsigned short numStyleProperties,
/* [in] */ boolean useAlternateView,
/* [length_is][size_is][in] */ BSTR *styleProperties,
/* [length_is][size_is][retval][out] */ BSTR *styleValues);
DECLSPEC_XFGVIRT(ISimpleDOMNode, scrollTo)
HRESULT ( STDMETHODCALLTYPE *scrollTo )(
ISimpleDOMNode * This,
/* [in] */ boolean placeTopLeft);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_parentNode)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )(
ISimpleDOMNode * This,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_firstChild)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )(
ISimpleDOMNode * This,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_lastChild)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )(
ISimpleDOMNode * This,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_previousSibling)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )(
ISimpleDOMNode * This,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_nextSibling)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )(
ISimpleDOMNode * This,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_childAt)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_childAt )(
ISimpleDOMNode * This,
/* [in] */ unsigned int childIndex,
/* [retval][out] */ ISimpleDOMNode **node);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_innerHTML)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_innerHTML )(
ISimpleDOMNode * This,
/* [retval][out] */ BSTR *innerHTML);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_localInterface)
/* [local][propget] */ HRESULT ( STDMETHODCALLTYPE *get_localInterface )(
ISimpleDOMNode * This,
/* [retval][out] */ void **localInterface);
DECLSPEC_XFGVIRT(ISimpleDOMNode, get_language)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_language )(
ISimpleDOMNode * This,
/* [retval][out] */ BSTR *language);
END_INTERFACE
} ISimpleDOMNodeVtbl;
interface ISimpleDOMNode
{
CONST_VTBL struct ISimpleDOMNodeVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ISimpleDOMNode_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ISimpleDOMNode_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ISimpleDOMNode_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ISimpleDOMNode_get_nodeInfo(This,nodeName,nameSpaceID,nodeValue,numChildren,uniqueID,nodeType) \
( (This)->lpVtbl -> get_nodeInfo(This,nodeName,nameSpaceID,nodeValue,numChildren,uniqueID,nodeType) )
#define ISimpleDOMNode_get_attributes(This,maxAttribs,attribNames,nameSpaceID,attribValues,numAttribs) \
( (This)->lpVtbl -> get_attributes(This,maxAttribs,attribNames,nameSpaceID,attribValues,numAttribs) )
#define ISimpleDOMNode_get_attributesForNames(This,numAttribs,attribNames,nameSpaceID,attribValues) \
( (This)->lpVtbl -> get_attributesForNames(This,numAttribs,attribNames,nameSpaceID,attribValues) )
#define ISimpleDOMNode_get_computedStyle(This,maxStyleProperties,useAlternateView,styleProperties,styleValues,numStyleProperties) \
( (This)->lpVtbl -> get_computedStyle(This,maxStyleProperties,useAlternateView,styleProperties,styleValues,numStyleProperties) )
#define ISimpleDOMNode_get_computedStyleForProperties(This,numStyleProperties,useAlternateView,styleProperties,styleValues) \
( (This)->lpVtbl -> get_computedStyleForProperties(This,numStyleProperties,useAlternateView,styleProperties,styleValues) )
#define ISimpleDOMNode_scrollTo(This,placeTopLeft) \
( (This)->lpVtbl -> scrollTo(This,placeTopLeft) )
#define ISimpleDOMNode_get_parentNode(This,node) \
( (This)->lpVtbl -> get_parentNode(This,node) )
#define ISimpleDOMNode_get_firstChild(This,node) \
( (This)->lpVtbl -> get_firstChild(This,node) )
#define ISimpleDOMNode_get_lastChild(This,node) \
( (This)->lpVtbl -> get_lastChild(This,node) )
#define ISimpleDOMNode_get_previousSibling(This,node) \
( (This)->lpVtbl -> get_previousSibling(This,node) )
#define ISimpleDOMNode_get_nextSibling(This,node) \
( (This)->lpVtbl -> get_nextSibling(This,node) )
#define ISimpleDOMNode_get_childAt(This,childIndex,node) \
( (This)->lpVtbl -> get_childAt(This,childIndex,node) )
#define ISimpleDOMNode_get_innerHTML(This,innerHTML) \
( (This)->lpVtbl -> get_innerHTML(This,innerHTML) )
#define ISimpleDOMNode_get_localInterface(This,localInterface) \
( (This)->lpVtbl -> get_localInterface(This,localInterface) )
#define ISimpleDOMNode_get_language(This,language) \
( (This)->lpVtbl -> get_language(This,language) )
#endif /* COBJMACROS */
#endif /* C style interface */
/* [call_as][propget] */ HRESULT STDMETHODCALLTYPE ISimpleDOMNode_get_remoteLocalInterface_Proxy(
ISimpleDOMNode * This,
/* [retval][out] */ IUnknown **localInterface);
void __RPC_STUB ISimpleDOMNode_get_remoteLocalInterface_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase);
#endif /* __ISimpleDOMNode_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_ISimpleDOM_0000_0001 */
/* [local] */
///////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ISimpleDOMDocument
// ---------------------------------------------------------------------------------------------------=
//
// get_URL(out] BSTR *url)
// ---------------------------------------------------------------------------------------------------=
// Get the internet URL associated with this document.
//
// get_title([out BSTR *title
// ---------------------------------------------------------------------------------------------------=
// Get the document's title from the <TITLE> element
//
// get_mimeType([out BSTR *mimeType
// ---------------------------------------------------------------------------------------------------=
// Get the registered mime type, such as text/html
//
// get_docType([out] BSTR *docType
// ---------------------------------------------------------------------------------------------------=
// Get doctype associated with the <!DOCTYPE ..> element
//
// get_nameSpaceURIForID([in] short nameSpaceID, [out] BSTR *nameSpaceURI)
// ---------------------------------------------------------------------------------------------------=
// Some of the methods for ISimpleDOMNode return a nameSpaceID (-1,0,1,2,3,....)
// This method returns the associated namespace URI for each ID.
//
// set_alternateViewMediaTypes([in] BSTR *commaSeparatedMediaType)
// ---------------------------------------------------------------------------------------------------=
// For style property retrieval on nsISimpleDOMNode elements,
// set the additional alternate media types that properties are available for.
// [in] BSTR *commaSeparatedMediaTypes is a comma separate list, for example "aural, braille".
// The alternate media properties are requested with nsISimpleDOMNode::get_computedStyle.
// Note: setting this value on a document will increase memory overhead, and may create a small delay.
//
// W3C media Types:
// * all: Suitable for all devices.
// * aural: Intended for speech synthesizers. See the section on aural style sheets for details.
// * braille: Intended for braille tactile feedback devices.
// * embossed: Intended for paged braille printers.
// * handheld: Intended for handheld devices - typically small screen, monochrome, limited bandwidth.
// * print: Intended for paged, opaque material and for documents viewed on screen in print preview mode. Please consult the section on paged media for information about formatting issues that are specific to paged media.
// * projection: Intended for projected presentations, for example projectors or print to transparencies. Please consult the section on paged media for information about formatting issues that are specific to paged media.
// * screen: Intended primarily for color computer screens.
// * tty: intended for media using a fixed-pitch character grid, such as teletypes, terminals, or portable devices with limited display capabilities. Authors should not use pixel units with the tty media type.
// * tv: Intended for television-type devices - low resolution, color, limited-scrollability screens, sound
// * See latest W3C CSS specs for complete list of media types
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////////
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0001_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0001_v0_0_s_ifspec;
#ifndef __ISimpleDOMDocument_INTERFACE_DEFINED__
#define __ISimpleDOMDocument_INTERFACE_DEFINED__
/* interface ISimpleDOMDocument */
/* [uuid][object] */
EXTERN_C const IID IID_ISimpleDOMDocument;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("0D68D6D0-D93D-4d08-A30D-F00DD1F45B24")
ISimpleDOMDocument : public IUnknown
{
public:
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_URL(
/* [retval][out] */ BSTR *url) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_title(
/* [retval][out] */ BSTR *title) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_mimeType(
/* [retval][out] */ BSTR *mimeType) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_docType(
/* [retval][out] */ BSTR *docType) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_nameSpaceURIForID(
/* [in] */ short nameSpaceID,
/* [retval][out] */ BSTR *nameSpaceURI) = 0;
virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_alternateViewMediaTypes(
/* [in] */ BSTR *commaSeparatedMediaTypes) = 0;
};
#else /* C style interface */
typedef struct ISimpleDOMDocumentVtbl
{
BEGIN_INTERFACE
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ISimpleDOMDocument * This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void **ppvObject);
DECLSPEC_XFGVIRT(IUnknown, AddRef)
ULONG ( STDMETHODCALLTYPE *AddRef )(
ISimpleDOMDocument * This);
DECLSPEC_XFGVIRT(IUnknown, Release)
ULONG ( STDMETHODCALLTYPE *Release )(
ISimpleDOMDocument * This);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, get_URL)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )(
ISimpleDOMDocument * This,
/* [retval][out] */ BSTR *url);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, get_title)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_title )(
ISimpleDOMDocument * This,
/* [retval][out] */ BSTR *title);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, get_mimeType)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_mimeType )(
ISimpleDOMDocument * This,
/* [retval][out] */ BSTR *mimeType);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, get_docType)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_docType )(
ISimpleDOMDocument * This,
/* [retval][out] */ BSTR *docType);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, get_nameSpaceURIForID)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_nameSpaceURIForID )(
ISimpleDOMDocument * This,
/* [in] */ short nameSpaceID,
/* [retval][out] */ BSTR *nameSpaceURI);
DECLSPEC_XFGVIRT(ISimpleDOMDocument, put_alternateViewMediaTypes)
/* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_alternateViewMediaTypes )(
ISimpleDOMDocument * This,
/* [in] */ BSTR *commaSeparatedMediaTypes);
END_INTERFACE
} ISimpleDOMDocumentVtbl;
interface ISimpleDOMDocument
{
CONST_VTBL struct ISimpleDOMDocumentVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ISimpleDOMDocument_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ISimpleDOMDocument_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ISimpleDOMDocument_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ISimpleDOMDocument_get_URL(This,url) \
( (This)->lpVtbl -> get_URL(This,url) )
#define ISimpleDOMDocument_get_title(This,title) \
( (This)->lpVtbl -> get_title(This,title) )
#define ISimpleDOMDocument_get_mimeType(This,mimeType) \
( (This)->lpVtbl -> get_mimeType(This,mimeType) )
#define ISimpleDOMDocument_get_docType(This,docType) \
( (This)->lpVtbl -> get_docType(This,docType) )
#define ISimpleDOMDocument_get_nameSpaceURIForID(This,nameSpaceID,nameSpaceURI) \
( (This)->lpVtbl -> get_nameSpaceURIForID(This,nameSpaceID,nameSpaceURI) )
#define ISimpleDOMDocument_put_alternateViewMediaTypes(This,commaSeparatedMediaTypes) \
( (This)->lpVtbl -> put_alternateViewMediaTypes(This,commaSeparatedMediaTypes) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __ISimpleDOMDocument_INTERFACE_DEFINED__ */
/* interface __MIDL_itf_ISimpleDOM_0000_0002 */
/* [local] */
///////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ISimpleDOMText
// ---------------------------------------------------------------------------------------------------=
// An interface that extends MSAA's IAccessible to provide important additional capabilities on text nodes
//
// [propget] domText(/* out,retval */ BSTR *domText
// ---------------------------------------------------------------------------------------------------=
// Similar to IAccessible::get_accName, but does not strip out whitespace characters.
// Important for retrieving the correct start/end substring indices to use with other
// methods in ISimpleDOMText.
//
//
// get_[un]clippedSubstringBounds(
// /* [in] */ unsigned int startIndex,
// /* [in] */ unsigned int endIndex,
// /* [out] */ int *x,
// /* [out] */ int *y,
// /* [out] */ int *width,
// /* [out] */ int *height);
// ---------------------------------------------------------------------------------------------------=
// Both methods get_clippedSubstringBounds and get_unclippedSubstringBounds return the screen pixel
// coordinates of the given text substring. The in parameters for start and end indices refer
// to the string returned by ISimpleDOMText::get_domText().
//
//
// scrollToSubstring(
// /* [in] */ unsigned int startIndex,
// /* [in] */ unsigned int endIndex);
// ---------------------------------------------------------------------------------------------------=
// In scrollable views, scrolls to ensure that the specified substring is visible onscreen.
// The in parameters for start and end indices refer to the string returned
// by ISimpleDOMText::get_domText().
//
//
// [propget] fontFamily(/* out,retval */ BSTR *fontFamily);
// ---------------------------------------------------------------------------------------------------=
// Return a single computed font family name, which is better than the comma delineated list
// that is returned by the ISimpleDOMNode computed style methods for font-family.
// In other words, return something like 'Arial' instead of 'Arial, Helvetica, Sans-serif'.
///////////////////////////////////////////////////////////////////////////////////////////////////////
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0002_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_ISimpleDOM_0000_0002_v0_0_s_ifspec;
#ifndef __ISimpleDOMText_INTERFACE_DEFINED__
#define __ISimpleDOMText_INTERFACE_DEFINED__
/* interface ISimpleDOMText */
/* [uuid][object] */
EXTERN_C const IID IID_ISimpleDOMText;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("4e747be5-2052-4265-8af0-8ecad7aad1c0")
ISimpleDOMText : public IUnknown
{
public:
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_domText(
/* [retval][out] */ BSTR *domText) = 0;
virtual HRESULT STDMETHODCALLTYPE get_clippedSubstringBounds(
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex,
/* [out] */ int *x,
/* [out] */ int *y,
/* [out] */ int *width,
/* [out] */ int *height) = 0;
virtual HRESULT STDMETHODCALLTYPE get_unclippedSubstringBounds(
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex,
/* [out] */ int *x,
/* [out] */ int *y,
/* [out] */ int *width,
/* [out] */ int *height) = 0;
virtual HRESULT STDMETHODCALLTYPE scrollToSubstring(
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex) = 0;
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_fontFamily(
/* [retval][out] */ BSTR *fontFamily) = 0;
};
#else /* C style interface */
typedef struct ISimpleDOMTextVtbl
{
BEGIN_INTERFACE
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ISimpleDOMText * This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void **ppvObject);
DECLSPEC_XFGVIRT(IUnknown, AddRef)
ULONG ( STDMETHODCALLTYPE *AddRef )(
ISimpleDOMText * This);
DECLSPEC_XFGVIRT(IUnknown, Release)
ULONG ( STDMETHODCALLTYPE *Release )(
ISimpleDOMText * This);
DECLSPEC_XFGVIRT(ISimpleDOMText, get_domText)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_domText )(
ISimpleDOMText * This,
/* [retval][out] */ BSTR *domText);
DECLSPEC_XFGVIRT(ISimpleDOMText, get_clippedSubstringBounds)
HRESULT ( STDMETHODCALLTYPE *get_clippedSubstringBounds )(
ISimpleDOMText * This,
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex,
/* [out] */ int *x,
/* [out] */ int *y,
/* [out] */ int *width,
/* [out] */ int *height);
DECLSPEC_XFGVIRT(ISimpleDOMText, get_unclippedSubstringBounds)
HRESULT ( STDMETHODCALLTYPE *get_unclippedSubstringBounds )(
ISimpleDOMText * This,
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex,
/* [out] */ int *x,
/* [out] */ int *y,
/* [out] */ int *width,
/* [out] */ int *height);
DECLSPEC_XFGVIRT(ISimpleDOMText, scrollToSubstring)
HRESULT ( STDMETHODCALLTYPE *scrollToSubstring )(
ISimpleDOMText * This,
/* [in] */ unsigned int startIndex,
/* [in] */ unsigned int endIndex);
DECLSPEC_XFGVIRT(ISimpleDOMText, get_fontFamily)
/* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_fontFamily )(
ISimpleDOMText * This,
/* [retval][out] */ BSTR *fontFamily);
END_INTERFACE
} ISimpleDOMTextVtbl;
interface ISimpleDOMText
{
CONST_VTBL struct ISimpleDOMTextVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ISimpleDOMText_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ISimpleDOMText_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ISimpleDOMText_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ISimpleDOMText_get_domText(This,domText) \
( (This)->lpVtbl -> get_domText(This,domText) )
#define ISimpleDOMText_get_clippedSubstringBounds(This,startIndex,endIndex,x,y,width,height) \
( (This)->lpVtbl -> get_clippedSubstringBounds(This,startIndex,endIndex,x,y,width,height) )
#define ISimpleDOMText_get_unclippedSubstringBounds(This,startIndex,endIndex,x,y,width,height) \
( (This)->lpVtbl -> get_unclippedSubstringBounds(This,startIndex,endIndex,x,y,width,height) )
#define ISimpleDOMText_scrollToSubstring(This,startIndex,endIndex) \
( (This)->lpVtbl -> scrollToSubstring(This,startIndex,endIndex) )
#define ISimpleDOMText_get_fontFamily(This,fontFamily) \
( (This)->lpVtbl -> get_fontFamily(This,fontFamily) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __ISimpleDOMText_INTERFACE_DEFINED__ */
#ifndef __ISimpleDOM_LIBRARY_DEFINED__
#define __ISimpleDOM_LIBRARY_DEFINED__
/* library ISimpleDOM */
/* [helpstring][uuid] */
EXTERN_C const IID LIBID_ISimpleDOM;
#endif /* __ISimpleDOM_LIBRARY_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
/* [local][propget] */ HRESULT STDMETHODCALLTYPE ISimpleDOMNode_get_localInterface_Proxy(
ISimpleDOMNode * This,
/* [retval][out] */ void **localInterface);
/* [call_as][propget] */ HRESULT STDMETHODCALLTYPE ISimpleDOMNode_get_localInterface_Stub(
ISimpleDOMNode * This,
/* [retval][out] */ IUnknown **localInterface);
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif