michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: #include "nsISupports.idl" michael@0: michael@0: interface nsIDOMElement; michael@0: michael@0: [scriptable, uuid(ce572460-b0f2-4650-a9e7-c53a99d3b6ad)] michael@0: interface nsIBoxObject : nsISupports michael@0: { michael@0: readonly attribute nsIDOMElement element; michael@0: michael@0: readonly attribute long x; michael@0: readonly attribute long y; michael@0: readonly attribute long screenX; michael@0: readonly attribute long screenY; michael@0: readonly attribute long width; michael@0: readonly attribute long height; michael@0: michael@0: nsISupports getPropertyAsSupports(in wstring propertyName); michael@0: void setPropertyAsSupports(in wstring propertyName, in nsISupports value); michael@0: wstring getProperty(in wstring propertyName); michael@0: void setProperty(in wstring propertyName, in wstring propertyValue); michael@0: void removeProperty(in wstring propertyName); michael@0: michael@0: // for stepping through content in the expanded dom with box-ordinal-group order michael@0: readonly attribute nsIDOMElement parentBox; michael@0: readonly attribute nsIDOMElement firstChild; michael@0: readonly attribute nsIDOMElement lastChild; michael@0: readonly attribute nsIDOMElement nextSibling; michael@0: readonly attribute nsIDOMElement previousSibling; michael@0: }; michael@0: michael@0: %{C++ michael@0: nsresult michael@0: NS_NewBoxObject(nsIBoxObject** aResult); michael@0: michael@0: %}