Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
mozAutoDocUpdate Class Reference

Helper class to automatically handle batching of document updates. More...

#include <nsIDocument.h>

Collaboration diagram for mozAutoDocUpdate:
Collaboration graph

List of all members.

Public Member Functions

 mozAutoDocUpdate (nsIDocument *aDocument, nsUpdateType aUpdateType, PRBool aNotify)
 ~mozAutoDocUpdate ()

Private Attributes

nsCOMPtr< nsIDocumentmDocument
nsUpdateType mUpdateType

Detailed Description

Helper class to automatically handle batching of document updates.

This class will call BeginUpdate on construction and EndUpdate on destruction on the given document with the given update type. The document could be null, in which case no updates will be called. The constructor also takes a boolean that can be set to false to prevent notifications.

Definition at line 944 of file nsIDocument.h.

Constructor & Destructor Documentation

mozAutoDocUpdate::mozAutoDocUpdate ( nsIDocument aDocument,
nsUpdateType  aUpdateType,
PRBool  aNotify 
) [inline]

Definition at line 947 of file nsIDocument.h.

    mDocument(aNotify ? aDocument : nsnull),
    if (mDocument) {

Definition at line 957 of file nsIDocument.h.

    if (mDocument) {

Member Data Documentation

Definition at line 965 of file nsIDocument.h.

Definition at line 966 of file nsIDocument.h.

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