Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsITextControlFrame Class Reference

#include <nsITextControlFrame.h>

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

List of all members.

Public Member Functions

NS_IMETHOD GetEditor (nsIEditor **aEditor)=0
NS_IMETHOD OwnsValue (PRBool *aOwnsValue)=0
 Tell whether the frame currently owns the value or the content does (for edge cases where the frame has just been created or is just going away).
NS_IMETHOD GetValue (nsAString &aValue, PRBool aIgnoreWrap)=0
 Get the current value, either from the editor or from the textarea.
NS_IMETHOD GetTextLength (PRInt32 *aTextLength)=0
NS_IMETHOD CheckFireOnChange ()=0
 Fire onChange if the value has changed since it was focused or since it was last fired.
NS_IMETHOD SetSelectionStart (PRInt32 aSelectionStart)=0
NS_IMETHOD SetSelectionEnd (PRInt32 aSelectionEnd)=0
NS_IMETHOD SetSelectionRange (PRInt32 aSelectionStart, PRInt32 aSelectionEnd)=0
NS_IMETHOD GetSelectionRange (PRInt32 *aSelectionStart, PRInt32 *aSelectionEnd)=0
NS_IMETHOD GetSelectionContr (nsISelectionController **aSelCon)=0
 NS_IMETHOD_ (PRInt32) GetFormControlType() const =0
NS_IMETHOD GetName (nsAString *aName)=0
virtual void SetFocus (PRBool aOn=PR_TRUE, PRBool aRepaint=PR_FALSE)=0
virtual void ScrollIntoView (nsPresContext *aPresContext)=0
NS_IMETHOD SetSuggestedSize (nscoord aWidth, nscoord aHeight)=0
 Set the suggested size for the form element.
NS_IMETHOD GetFormContent (nsIContent *&aContent) const =0
 Get the content object associated with this frame.
NS_IMETHOD SetProperty (nsPresContext *aPresContext, nsIAtom *aName, const nsAString &aValue)=0
 Set a property on the form control frame.
NS_IMETHOD GetProperty (nsIAtom *aName, nsAString &aValue)=0
 Get a property from the form control frame.
NS_IMETHOD OnContentReset ()=0
 Notification that the content has been reset.

Detailed Description

Definition at line 52 of file nsITextControlFrame.h.


Member Function Documentation

Fire onChange if the value has changed since it was focused or since it was last fired.

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::GetEditor ( nsIEditor **  aEditor) [pure virtual]

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsIFormControlFrame::GetFormContent ( nsIContent *&  aContent) const [pure virtual, inherited]

Get the content object associated with this frame.

Adds a reference to the content object so the caller must do a release.

See also:
nsISupports::Release()

Implemented in nsFormControlFrame, nsComboboxControlFrame, nsTextControlFrame, nsListControlFrame, nsHTMLButtonControlFrame, nsImageControlFrame, and nsFileControlFrame.

NS_IMETHOD nsIFormControlFrame::GetName ( nsAString *  aName) [pure virtual, inherited]
NS_IMETHOD nsIFormControlFrame::GetProperty ( nsIAtom aName,
nsAString &  aValue 
) [pure virtual, inherited]

Get a property from the form control frame.

Parameters:
aNamename of the property to get
aValuevalue of the property
Returns:
NS_OK if the property name is valid, otherwise an error code

Implemented in nsFormControlFrame, nsComboboxControlFrame, nsTextControlFrame, nsHTMLButtonControlFrame, nsListControlFrame, nsImageControlFrame, and nsFileControlFrame.

Here is the caller graph for this function:

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::GetSelectionRange ( PRInt32 aSelectionStart,
PRInt32 aSelectionEnd 
) [pure virtual]

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::GetTextLength ( PRInt32 aTextLength) [pure virtual]

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::GetValue ( nsAString &  aValue,
PRBool  aIgnoreWrap 
) [pure virtual]

Get the current value, either from the editor or from the textarea.

Parameters:
aValuethe value [out]
aIgnoreWrapwhether to ignore the wrap attribute when getting the value. If this is true, linebreaks will not be inserted even if wrap=hard.

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

nsIFormControlFrame::NS_IMETHOD_ ( PRInt32  ) const [pure virtual, inherited]
NS_IMETHOD nsIFormControlFrame::OnContentReset ( ) [pure virtual, inherited]

Notification that the content has been reset.

Implemented in nsComboboxControlFrame, nsTextControlFrame, nsListControlFrame, nsHTMLButtonControlFrame, nsImageControlFrame, nsGfxRadioControlFrame, nsGfxCheckboxControlFrame, and nsFileControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::OwnsValue ( PRBool aOwnsValue) [pure virtual]

Tell whether the frame currently owns the value or the content does (for edge cases where the frame has just been created or is just going away).

Parameters:
aOwnsValuewhether the frame owns the value [out]

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

virtual void nsIFormControlFrame::ScrollIntoView ( nsPresContext aPresContext) [pure virtual, inherited]
virtual void nsIFormControlFrame::SetFocus ( PRBool  aOn = PR_TRUE,
PRBool  aRepaint = PR_FALSE 
) [pure virtual, inherited]
NS_IMETHOD nsIFormControlFrame::SetProperty ( nsPresContext aPresContext,
nsIAtom aName,
const nsAString &  aValue 
) [pure virtual, inherited]

Set a property on the form control frame.

Parameters:
aNamename of the property to set
aValuevalue of the property
Returns:
NS_OK if the property name is valid, otherwise an error code

Implemented in nsFormControlFrame, nsComboboxControlFrame, nsTextControlFrame, nsHTMLButtonControlFrame, nsListControlFrame, nsImageControlFrame, and nsFileControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::SetSelectionEnd ( PRInt32  aSelectionEnd) [pure virtual]

Implemented in nsTextControlFrame.

NS_IMETHOD nsITextControlFrame::SetSelectionRange ( PRInt32  aSelectionStart,
PRInt32  aSelectionEnd 
) [pure virtual]

Implemented in nsTextControlFrame.

Here is the caller graph for this function:

NS_IMETHOD nsITextControlFrame::SetSelectionStart ( PRInt32  aSelectionStart) [pure virtual]

Implemented in nsTextControlFrame.

NS_IMETHOD nsIFormControlFrame::SetSuggestedSize ( nscoord  aWidth,
nscoord  aHeight 
) [pure virtual, inherited]

Set the suggested size for the form element.

This is used to control the size of the element during reflow if it hasn't had it's size explicitly set.

Parameters:
aWidthwidth of the form element
aHeightheight of the form element
Returns:
NS_OK

Implemented in nsFormControlFrame, nsListControlFrame, nsTextControlFrame, nsComboboxControlFrame, nsHTMLButtonControlFrame, nsImageControlFrame, nsFileControlFrame, and nsGfxButtonControlFrame.


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