
E:\Work\Abi\7.7\abi.org\src\wp\ap\xp>C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\diff.exe -u -r -N -x CVS -x WIN32_20.1_i386_DBG --minimal ap_EditMethods.cpp E:\Work\Abi\7.7\abi\src\wp\ap\xp\ap_EditMethods.cpp 
--- ap_EditMethods.cpp	Wed Dec 29 19:22:39 1999
+++ E:\Work\Abi\7.7\abi\src\wp\ap\xp\ap_EditMethods.cpp	Thu Jan 06 14:12:01 2000
@@ -47,6 +47,7 @@
 #include "ap_Dialog_Paragraph.h"
 #include "ap_Dialog_Options.h"
 #include "ap_Dialog_Spell.h"
+#include "ap_Dialog_Insert_DateTime.h"
 
 #include "xap_DialogFactory.h"
 #include "xap_Dlg_About.h"
@@ -3766,6 +3767,41 @@
 }
 
 
+static UT_Bool s_doInsertDateTime(FV_View * pView)
+{
+	XAP_Frame * pFrame = (XAP_Frame *) pView->getParentData();
+  	UT_ASSERT(pFrame);
+
+  	pFrame->raise();
+
+  	XAP_DialogFactory * pDialogFactory
+    	= (XAP_DialogFactory *)(pFrame->getDialogFactory());
+
+  	AP_Dialog_Insert_DateTime * pDialog
+    	= (AP_Dialog_Insert_DateTime *)(pDialogFactory->requestDialog(AP_DIALOG_ID_INSERT_DATETIME));
+  	UT_ASSERT(pDialog);
+
+  	pDialog->runModal(pFrame);
+
+  	if (pDialog->getAnswer() == AP_Dialog_Insert_DateTime::a_OK)
+  	{
+      	UT_UCSChar *CurrentDateTime = NULL;
+      	UT_UCS_cloneString_char(&CurrentDateTime,pDialog->GetCurrentDateTime());
+      	pView->cmdCharInsert(CurrentDateTime,UT_UCS_strlen(CurrentDateTime));
+      	FREEP(CurrentDateTime);
+  	}
+
+  	pDialogFactory->releaseDialog(pDialog);
+
+  	return UT_TRUE;
+}
+
+Defun1(insDateTime)
+{
+	ABIWORD_VIEW;
+	return s_doInsertDateTime(pView);
+}
+
 /*****************************************************************/
 /*****************************************************************/
 
@@ -3781,15 +3817,6 @@
 	UT_ASSERT(pFrame);
 
 	s_TellNotImplemented(pFrame, "Insert page numbers dialog", __LINE__);
-	return UT_TRUE;
-}
-
-Defun1(insDateTime)
-{
-	XAP_Frame * pFrame = (XAP_Frame *) pAV_View->getParentData();
-	UT_ASSERT(pFrame);
-
-	s_TellNotImplemented(pFrame, "Insert date/time dialog", __LINE__);
 	return UT_TRUE;
 }
 
