From 00bbc6904122904d8795c852b2ed3fcf2a5f2712 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 5 Aug 1998 02:55:38 +0000 Subject: [PATCH] New suite of CreateHTPane methods to take a variety of parameters. --- cmd/macfe/rdfui/CRDFNotificationHandler.cp | 22 ++++++++++++++++++++++ cmd/macfe/rdfui/CRDFNotificationHandler.h | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/cmd/macfe/rdfui/CRDFNotificationHandler.cp b/cmd/macfe/rdfui/CRDFNotificationHandler.cp index a5544dbc7ef3..69d20eca5b92 100644 --- a/cmd/macfe/rdfui/CRDFNotificationHandler.cp +++ b/cmd/macfe/rdfui/CRDFNotificationHandler.cp @@ -40,6 +40,28 @@ CRDFNotificationHandler::CreateHTPane() return NULL; } +HT_Pane +CRDFNotificationHandler::CreateHTPane ( HT_Resource inResource ) +{ + HT_Notification notifyStruct = CreateNotificationStruct(); + if (notifyStruct) + return HT_PaneFromResource(HT_GetRDFResource(inResource), notifyStruct, false, false, false); + else + return NULL; +} + +HT_Pane +CRDFNotificationHandler::CreateHTPane ( const char* inURL, unsigned int inCount, + char** inParamNames, char** inParamValues ) +{ + HT_Notification notifyStruct = CreateNotificationStruct(); + if (notifyStruct) + return HT_PaneFromURL ( const_cast(inURL), notifyStruct, false, inCount, + inParamNames, inParamValues ); + else + return NULL; +} + void CRDFNotificationHandler::rdfNotifyProc( HT_Notification notifyStruct, diff --git a/cmd/macfe/rdfui/CRDFNotificationHandler.h b/cmd/macfe/rdfui/CRDFNotificationHandler.h index 7bae3d9757b0..4f3ccd718091 100644 --- a/cmd/macfe/rdfui/CRDFNotificationHandler.h +++ b/cmd/macfe/rdfui/CRDFNotificationHandler.h @@ -31,10 +31,14 @@ class CRDFNotificationHandler { protected: - virtual HT_Notification CreateNotificationStruct(); + virtual HT_Pane CreateHTPane ( HT_Resource inResource ) ; + virtual HT_Pane CreateHTPane ( const char* inURL, unsigned int inCount, + char** inParamNames, char** inParamValues ) ; virtual HT_Pane CreateHTPane(); + virtual HT_Notification CreateNotificationStruct(); + virtual void HandleNotification( HT_Notification notifyStruct, HT_Resource node,