Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIHTMLAbsPosEditor Interface Reference

import "nsIHTMLAbsPosEditor.idl";

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

List of all members.

Public Member Functions

void absolutePositionSelection (in boolean aEnabled)
 extracts the selection from the normal flow of the document and positions it.
void relativeChangeZIndex (in long aChange)
 adds aChange to the z-index of the currently positioned element.
void absolutelyPositionElement (in nsIDOMElement aElement, in boolean aEnabled)
 extracts an element from the normal flow of the document and positions it, and puts it back in the normal flow.
void setElementPosition (in nsIDOMElement aElement, in long aX, in long aY)
 sets the position of an element; warning it does NOT check if the element is already positioned or not and that's on purpose.
long getElementZIndex (in nsIDOMElement aElement)
 returns the absolute z-index of a positioned element.
void setElementZIndex (in nsIDOMElement aElement, in long aZorder)
 sets the z-index of an element.
long relativeChangeElementZIndex (in nsIDOMElement aElement, in long aChange)
 adds aChange to the z-index of an arbitrary element.
void showGrabberOnElement (in nsIDOMElement aElement)
 shows a grabber attached to an arbitrary element.
void hideGrabber ()
 hide the grabber if it shown.
void refreshGrabber ()
 refreshes the grabber if it shown, possibly updating its position or even hiding it.

Public Attributes

readonly attribute boolean selectionContainerAbsolutelyPositioned
 true if the selection container is absolutely positioned
readonly attribute nsIDOMElement positionedElement
 this contains the absolutely positioned element currently edited or null
attribute boolean absolutePositioningEnabled
 true if Absolute Positioning handling is enabled in the editor
attribute boolean snapToGridEnabled
 true if Snap To Grid is enabled in the editor.
attribute unsigned long gridSize
 sets the grid size in pixels.
readonly attribute nsIDOMElement absolutelyPositionedSelectionContainer
 returns the deepest absolutely positioned container of the selection if it exists or null.

Detailed Description

Definition at line 44 of file nsIHTMLAbsPosEditor.idl.


Member Function Documentation

extracts an element from the normal flow of the document and positions it, and puts it back in the normal flow.

Parameters:
aElement[IN] the element
aEnabled[IN] true to absolutely position the element, false to put it back in the normal flow

extracts the selection from the normal flow of the document and positions it.

Parameters:
aEnabled[IN] true to absolutely position the selection, false to put it back in the normal flow

returns the absolute z-index of a positioned element.

Never returns 'auto'.

Returns:
the z-index of the element
Parameters:
aElement[IN] the element.

hide the grabber if it shown.

refreshes the grabber if it shown, possibly updating its position or even hiding it.

adds aChange to the z-index of an arbitrary element.

Returns:
the new z-index of the element
Parameters:
aElement[IN] the element
aChange[IN] relative change to apply to current z-index of the element

adds aChange to the z-index of the currently positioned element.

Parameters:
aChange[IN] relative change to apply to current z-index

sets the position of an element; warning it does NOT check if the element is already positioned or not and that's on purpose.

Parameters:
aElement[IN] the element
aX[IN] the x position in pixels.
aY[IN] the y position in pixels.

sets the z-index of an element.

Parameters:
aElement[IN] the element
aZorder[IN] the z-index

shows a grabber attached to an arbitrary element.

The grabber is an image positioned on the left hand side of the top border of the element. Dragging and dropping it allows to change the element's absolute position in the document. See chrome://editor/content/images/grabber.gif

Parameters:
aElement[IN] the element

Member Data Documentation

returns the deepest absolutely positioned container of the selection if it exists or null.

Definition at line 82 of file nsIHTMLAbsPosEditor.idl.

true if Absolute Positioning handling is enabled in the editor

Definition at line 60 of file nsIHTMLAbsPosEditor.idl.

sets the grid size in pixels.

Parameters:
aSizeInPixels[IN] the size of the grid in pixels

Definition at line 74 of file nsIHTMLAbsPosEditor.idl.

this contains the absolutely positioned element currently edited or null

Definition at line 55 of file nsIHTMLAbsPosEditor.idl.

true if the selection container is absolutely positioned

Definition at line 49 of file nsIHTMLAbsPosEditor.idl.

true if Snap To Grid is enabled in the editor.

Definition at line 68 of file nsIHTMLAbsPosEditor.idl.


The documentation for this interface was generated from the following file: