printf("DocumentViewerImpl::BindToDocument\n");
PRINTF("DocumentViewerImpl::BindToDocument\n");
DocumentViewerImpl::BindToDocument(nsISupports *aDoc, const char *aCommand){  NS_PRECONDITION(!mDocument, "Viewer is already bound to a document!");#ifdef NOISY_VIEWER  printf("DocumentViewerImpl::BindToDocument\n");#endif  nsresult rv;  mDocument = do_QueryInterface(aDoc,&rv);  return rv;}