Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsTextBoxFrame.cpp File Reference
#include "nsReadableUtils.h"
#include "nsTextBoxFrame.h"
#include "nsCOMPtr.h"
#include "nsIDeviceContext.h"
#include "nsIFontMetrics.h"
#include "nsHTMLAtoms.h"
#include "nsXULAtoms.h"
#include "nsPresContext.h"
#include "nsIRenderingContext.h"
#include "nsStyleContext.h"
#include "nsIContent.h"
#include "nsINameSpaceManager.h"
#include "nsBoxLayoutState.h"
#include "nsMenuBarListener.h"
#include "nsXPIDLString.h"
#include "nsIServiceManager.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMXULLabelElement.h"
#include "nsIEventStateManager.h"
#include "nsITheme.h"
#include "nsUnicharUtils.h"
#include "nsContentUtils.h"
#include "nsIReflowCallback.h"

Go to the source code of this file.

Classes

class  nsAccessKeyInfo
class  nsAsyncAccesskeyUpdate

Defines

#define ELLIPSIS   "..."
#define CROP_LEFT   "left"
#define CROP_RIGHT   "right"
#define CROP_CENTER   "center"
#define CROP_START   "start"
#define CROP_END   "end"
#define NS_STATE_NEED_LAYOUT   0x01000000

Functions

nsresult NS_NewTextBoxFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Class Documentation

class nsAccessKeyInfo

Definition at line 88 of file nsTextBoxFrame.cpp.

Class Members
PRInt32 mAccesskeyIndex
nscoord mAccessOffset
nscoord mAccessUnderlineSize
nscoord mAccessWidth
nscoord mBeforeWidth

Define Documentation

#define CROP_CENTER   "center"

Definition at line 82 of file nsTextBoxFrame.cpp.

#define CROP_END   "end"

Definition at line 84 of file nsTextBoxFrame.cpp.

#define CROP_LEFT   "left"

Definition at line 80 of file nsTextBoxFrame.cpp.

#define CROP_RIGHT   "right"

Definition at line 81 of file nsTextBoxFrame.cpp.

#define CROP_START   "start"

Definition at line 83 of file nsTextBoxFrame.cpp.

#define ELLIPSIS   "..."

Definition at line 78 of file nsTextBoxFrame.cpp.

#define NS_STATE_NEED_LAYOUT   0x01000000

Definition at line 86 of file nsTextBoxFrame.cpp.


Function Documentation

nsresult NS_NewTextBoxFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 107 of file nsTextBoxFrame.cpp.

{
    NS_PRECONDITION(aNewFrame, "null OUT ptr");
    if (nsnull == aNewFrame) {
        return NS_ERROR_NULL_POINTER;
    }
    nsTextBoxFrame* it = new (aPresShell) nsTextBoxFrame (aPresShell);
    if (nsnull == it)
        return NS_ERROR_OUT_OF_MEMORY;

    // it->SetFlags(aFlags);
    *aNewFrame = it;
    return NS_OK;

} // NS_NewTextFrame

Here is the caller graph for this function: