#include <nsFrame.h>
Inheritance diagram for nsFrame:


Sets the NS_FRAME_SYNCHRONIZE_FRAME_AND_VIEW bit, so the default behavior is to keep the frame and view position and size in sync.
Definition at line 126 of file nsFrame.h.
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Reimplemented in nsSVGGlyphFrame, and nsSVGPathGeometryFrame. |
|
||||||||||||||||||||||||
|
Called to initialize the frame. This is called immediately after creating the frame. If the frame is a continuing frame, then aPrevInFlow indicates the previous frame (the frame that was split). You should connect the continuing frame to its prev-in-flow, e.g. by using the AppendToFlow() function If you want a view associated with your frame, you should create the view now.
Implements nsIFrame. Reimplemented in nsSVGGlyphFrame, and nsSVGPathGeometryFrame. |
|
||||||||||||||||
|
Called to set the initial list of frames. This happens after the frame has been initialized. This is only called once for a given child list, and won't be called at all for child lists with no initial list of frames.
Implements nsIFrame. |
|
||||||||||||||||||||
|
This method is responsible for appending frames to the frame list. The implementation should append the frames to the specified child list and then generate a reflow command.
Implements nsIFrame. |
|
||||||||||||||||||||||||
|
This method is responsible for inserting frames into the frame list. The implementation should insert the new frames into the specified child list and then generate a reflow command.
Implements nsIFrame. |
|
||||||||||||||||||||
|
This method is responsible for removing a frame in the frame list. The implementation should do something with the removed frame and then generate a reflow command. The implementation is responsible for destroying aOldFrame (the caller mustn't destroy aOldFrame).
Implements nsIFrame. |
|
||||||||||||||||||||||||
|
This method is responsible for replacing the old frame with the new frame. The old frame should be destroyed and the new frame inserted in its place in the specified child list.
Implements nsIFrame. |
|
|
Destroys this frame and each of its child frames (recursively calls Destroy() for each child) Implements nsIFrame. |
|
|
Implements nsIFrame. |
|
|
These methods are to access any additional style contexts that the frame may be holding. These are contexts that are children of the frame's primary context and are NOT used as style contexts for any child frames. These contexts also MUST NOT have any child contexts whatsoever. If you need to insert style contexts into the style tree, then you should create pseudo element frames to own them The indicies must be consecutive and implementations MUST return an NS_ERROR_INVALID_ARG if asked for an index that is out of range. Implements nsIFrame. |
|
||||||||||||
|
Implements nsIFrame. |
|
||||||||||||
|
Used to iterate the list of additional child list names. Returns the atom name for the additional child list at the specified 0-based index, or a NULL pointer if there are no more named child lists. Note that the list is only the additional named child lists and does not include the unnamed principal child list.
Implements nsIFrame. |
|
||||||||||||||||
|
Get the first child frame from the specified child list.
Implements nsIFrame. |
|
||||||||||||||||||||||||
|
Paint is responsible for painting the frame. The aWhichLayer argument indicates which layer of painting should be done during the call. Implements nsIFrame. |
|
||||||||||||||||
|
Event handling of GUI events.
Implements nsIFrame. |
|
||||||||||||||||
|
Implements nsIFrame. |
|
||||||||||||||||
|
Get the cursor for a given frame. Implements nsIFrame. |
|
||||||||||||||||||||
|
Get the frame that should receive events for a given point in the coordinate space of this frame's parent, if the frame is painted in the given paint layer. A frame should return itself if it should recieve the events. A successful return value indicates that a point was found. Implements nsIFrame. |
|
||||||||||||||||||||
|
Get a point (in the frame's coordinate space) given an offset into the content. This point should be on the baseline of text with the correct horizontal offset Implements nsIFrame. |
|
||||||||||||||||||||
|
Get the child frame of this frame which contains the given content offset. outChildFrame may be this frame, or nsnull on return. outContentOffset returns the content offset relative to the start of the returned node. You can also pass a hint which tells the method to stick to the end of the first found frame or the beginning of the next in case the offset falls on a boundary. Implements nsIFrame. |
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||
|
This call is invoked when content is changed in the content tree. The first frame that maps that content is asked to deal with the change by generating an incremental reflow command.
Implements nsIFrame. Reimplemented in nsSVGGlyphFrame. |
|
||||||||||||||||||||||||
|
This call is invoked when the value of a content objects's attribute is changed. The first frame that maps that content is asked to deal with the change by doing whatever is appropriate.
Implements nsIFrame. |
|
|
Return how your frame can be split. Implements nsIFrame. |
|
|
Flow member functions Implements nsIFrame. |
|
|
Implements nsIFrame. |
|
|
Implements nsIFrame. |
|
|
Implements nsIFrame. |
|
||||||||||||||||
|
Returns the offset from this frame to the closest geometric parent that has a view. Also returns the containing view or null in case of error Implements nsIFrame. |
|
||||||||||||||||
|
Returns the offset from this frame's upper left corner to the upper left corner of the view returned by a call to GetView(). aOffset will contain the offset to the view or (0,0) if the frame has no view. aView will contain a pointer to the view returned by GetView(). aView is optional, that is, you may pass null if you are not interested in getting a pointer to the view. Implements nsIFrame. |
|
|
Get the "type" of the frame. May return a NULL atom pointer
Implements nsIFrame. |
|
|
Is this frame a "containing block"? Implements nsIFrame. |
|
||||||||||||||||||||
|
Called to set the selection of the frame based on frame offsets. you can FORCE the frame to redraw event if aSelected == the frame selection with the last parameter. data in struct may be changed when passed in.
Implements nsIFrame. Reimplemented in nsSVGGlyphFrame. |
|
|
Implements nsIFrame. Reimplemented in nsSVGGlyphFrame. |
|
||||||||||||
|
called to discover where this frame, or a parent frame has user-select style applied, which affects that way that it is selected.
Implements nsIFrame. |
|
||||||||||||
|
Called to retrieve the SelectionController associated with the frame.
Implements nsIFrame. Referenced by nsSVGGlyphFrame::GetHighlight(). |
|
||||||||||||
|
called to find the previous/next character, word, or line returns the actual nsIFrame and the frame offset. THIS DOES NOT CHANGE SELECTION STATE uses frame's begin selection state to start. if no selection on this frame will return NS_ERROR_FAILURE
Implements nsIFrame. |
|
||||||||||||||||||||||||||||
|
called to see if the children of the frame are visible from indexstart to index end. this does not change any state. returns PR_TRUE only if the indexes are valid and any of the children are visible. for textframes this index is the character index. if aStart = aEnd result will be PR_FALSE
Implements nsIFrame. |
|
||||||||||||
|
|
|
||||||||||||
|
Get the offsets of the frame. most will be 0,0 Implements nsIFrame. |
|
||||||||||||
|
Called by a child frame on a parent frame to tell the parent frame that the child needs to be reflowed. The parent should either propagate the request to its parent frame or handle the request by generating a eReflowType_ReflowDirtyChildren reflow command. Implements nsIFrame. |
|
||||||||||||||||
|
Get the frame whose style context should be the parent of this frame's style context (i.e., provide the parent style context). This frame must either be an ancestor of this frame or a child. If this frame returns a child frame, then the child frame must be sure to return a grandparent or higher!
Implements nsIFrame. |
|
||||||||||||||||||||
|
Determines whether a frame is visible for painting this takes into account whether it is painting a selection or printing.
Implements nsIFrame. |
|
||||||||||||||||
|
Determine whether the frame is logically empty, i.e., whether the layout would be the same whether or not the frame is present. Placeholder frames should return true. Block frames should be considered empty whenever margins collapse through them, even though those margins are relevant. aIsPre should be ignored by frames to which the 'white-space' property applies. Implements nsIFrame. |
|
|
Pre-reflow hook. Before a frame is reflowed this method will be called. This call will always be invoked at least once before a subsequent Reflow and DidReflow call. It may be called more than once, In general you will receive on WillReflow notification before each Reflow request. XXX Is this really the semantics we want? Because we have the NS_FRAME_IN_REFLOW bit we can ensure we don't call it more than once... Implements nsIFrame. |
|
||||||||||||||||||||
|
The frame is given a maximum size and asked for its desired size. This is the frame's opportunity to reflow its children.
maxElementSize is an optional parameter for returning your maximum element size. If may be null in which case you don't have to compute a maximum element size. The maximum element size must be less than or equal to your desired size. For an incremental reflow you are responsible for invalidating any area within your frame that needs repainting (including borders). If your new desired size is different than your current size, then your parent frame is responsible for making sure that the difference between the two rects is repainted
Implements nsIFrame. |
|
||||||||||||||||
|
Post-reflow hook. After a frame is reflowed this method will be called informing the frame that this reflow process is complete, and telling the frame the status returned by the Reflow member function. This call may be invoked many times, while NS_FRAME_IN_REFLOW is set, before it is finally called once with a NS_FRAME_REFLOW_COMPLETE value. When called with a NS_FRAME_REFLOW_COMPLETE value the NS_FRAME_IN_REFLOW bit in the frame state will be cleared. XXX This doesn't make sense. If the frame is reflowed but not complete, then the status should be NS_FRAME_NOT_COMPLETE and not NS_FRAME_COMPLETE XXX Don't we want the semantics to dictate that we only call this once for a given reflow? Implements nsIFrame. |
|
|
Helper method used by block reflow to identify runs of text so that proper word-breaking can be done.
Implements nsIFrame. |
|
||||||||||||
|
Implements nsIFrame. |
|
||||||||||||||||
|
Implements nsIFrame. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
Implements nsIFrame. |
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
Create or retrieve the previously stored overflow area, if the frame does not overflow and no creation is required return nsnull.
Implements nsIFrame. |
|
||||||||||||
|
|
|
||||||||||||
|
Call to turn on/off mouseCapture at the view level. Needed by the ESM so it must be in the public interface.
Implements nsIFrame. |
|
|
|
|
||||||||||||||||
|
Implements nsIFrame. |
|
||||||||||||||||||||
|
Implements nsIFrame. |
|
|
Get the style data associated with this frame. This returns a const style struct pointer that should never be modified. See |nsIStyleContext::GetStyleData| for more information. The use of the typesafe functions below is preferred to direct use of this function. Implements nsIFrame. |
|
||||||||||||||||||||||||
|
To be called by |Paint| of this class or derived classes to paint the background, border, and outline, when in the correct layer to do so. |
|
||||||||||||
|
|
|
||||||||||||
|
|