michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: import "objidl.idl"; michael@0: import "oaidl.idl"; michael@0: michael@0: cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////") michael@0: cpp_quote("//") michael@0: cpp_quote("// ISimpleDOMText") michael@0: cpp_quote("// ---------------------------------------------------------------------------------------------------=") michael@0: cpp_quote("// An interface that extends MSAA's IAccessible to provide important additional capabilities on text nodes") michael@0: cpp_quote("//") michael@0: cpp_quote("// [propget] domText(/* out,retval */ BSTR *domText") michael@0: cpp_quote("// ---------------------------------------------------------------------------------------------------=") michael@0: cpp_quote("// Similar to IAccessible::get_accName, but does not strip out whitespace characters.") michael@0: cpp_quote("// Important for retrieving the correct start/end substring indices to use with other") michael@0: cpp_quote("// methods in ISimpleDOMText.") michael@0: cpp_quote("//") michael@0: cpp_quote("//") michael@0: cpp_quote("// get_[un]clippedSubstringBounds(") michael@0: cpp_quote("// /* [in] */ unsigned int startIndex,") michael@0: cpp_quote("// /* [in] */ unsigned int endIndex,") michael@0: cpp_quote("// /* [out] */ int *x,") michael@0: cpp_quote("// /* [out] */ int *y,") michael@0: cpp_quote("// /* [out] */ int *width,") michael@0: cpp_quote("// /* [out] */ int *height);") michael@0: cpp_quote("// ---------------------------------------------------------------------------------------------------=") michael@0: cpp_quote("// Both methods get_clippedSubstringBounds and get_unclippedSubstringBounds return the screen pixel") michael@0: cpp_quote("// coordinates of the given text substring. The in parameters for start and end indices refer") michael@0: cpp_quote("// to the string returned by ISimpleDOMText::get_domText().") michael@0: cpp_quote("//") michael@0: cpp_quote("//") michael@0: cpp_quote("// scrollToSubstring(") michael@0: cpp_quote("// /* [in] */ unsigned int startIndex,") michael@0: cpp_quote("// /* [in] */ unsigned int endIndex);") michael@0: cpp_quote("// ---------------------------------------------------------------------------------------------------=") michael@0: cpp_quote("// In scrollable views, scrolls to ensure that the specified substring is visible onscreen.") michael@0: cpp_quote("// The in parameters for start and end indices refer to the string returned") michael@0: cpp_quote("// by ISimpleDOMText::get_domText().") michael@0: cpp_quote("//") michael@0: cpp_quote("//") michael@0: cpp_quote("// [propget] fontFamily(/* out,retval */ BSTR *fontFamily);") michael@0: cpp_quote("// ---------------------------------------------------------------------------------------------------=") michael@0: cpp_quote("// Return a single computed font family name, which is better than the comma delineated list") michael@0: cpp_quote("// that is returned by the ISimpleDOMNode computed style methods for font-family.") michael@0: cpp_quote("// In other words, return something like 'Arial' instead of 'Arial, Helvetica, Sans-serif'.") michael@0: cpp_quote("///////////////////////////////////////////////////////////////////////////////////////////////////////") michael@0: cpp_quote("") michael@0: cpp_quote("") michael@0: michael@0: [object, uuid(4e747be5-2052-4265-8af0-8ecad7aad1c0)] michael@0: interface ISimpleDOMText: IUnknown michael@0: { michael@0: // Includes whitespace in DOM michael@0: [propget] HRESULT domText([out, retval] BSTR *domText); michael@0: michael@0: HRESULT get_clippedSubstringBounds([in] unsigned int startIndex, michael@0: [in] unsigned int endIndex, michael@0: [out] int *x, michael@0: [out] int *y, michael@0: [out] int *width, michael@0: [out] int *height); michael@0: michael@0: HRESULT get_unclippedSubstringBounds([in] unsigned int startIndex, michael@0: [in] unsigned int endIndex, michael@0: [out] int *x, michael@0: [out] int *y, michael@0: [out] int *width, michael@0: [out] int *height); michael@0: michael@0: HRESULT scrollToSubstring([in] unsigned int startIndex, michael@0: [in] unsigned int endIndex); michael@0: michael@0: [propget] HRESULT fontFamily([out, retval] BSTR *fontFamily); michael@0: }; michael@0: