aPresContext->IsPaginated(&suppressHandlers);
suppressHandlers = aPresContext->IsPaginated();
SuppressEventHandlers(nsIPresContext* aPresContext){  PRBool suppressHandlers = PR_FALSE;  if (aPresContext)  {    // Right now we only suppress event handlers and controller manipulation    // when in a print preview or print context!#ifdef USE_QI_IN_SUPPRESS_EVENT_HANDLERS    // Using QI to see if we're printing or print previewing is more    // accurate, but a bit more heavy weight then just checking    // the pagination bool, which will return the right answer to us    // with the current implementation.    nsCOMPtr<nsIPrintContext> printContext = do_QueryInterface(aPresContext);    if (printContext)      suppressHandlers = PR_TRUE;    else    {      nsCOMPtr<nsIPrintPreviewContext> printPreviewContext = do_QueryInterface(aPresContext);      if (printPreviewContext)        suppressHandlers = PR_TRUE;    }#else    // In the current implementation, we only paginate when    // printing or in print preview.    aPresContext->IsPaginated(&suppressHandlers);#endif  }  return suppressHandlers;}