New suite of CreateHTPane methods to take a variety of parameters.

This commit is contained in:
pinkerton%netscape.com 1998-08-05 02:55:38 +00:00
Родитель 069cc277a2
Коммит fd50ad0915
2 изменённых файлов: 27 добавлений и 1 удалений

Просмотреть файл

@ -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<char*>(inURL), notifyStruct, false, inCount,
inParamNames, inParamValues );
else
return NULL;
}
void
CRDFNotificationHandler::rdfNotifyProc(
HT_Notification notifyStruct,

Просмотреть файл

@ -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,