From 2eba8f268ffeddbd4f10ce4bb4b77cd8b40eb206 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Tue, 20 Oct 1998 02:40:45 +0000 Subject: [PATCH] Added new argument to getFormElementValue() . git-svn-id: svn://10.0.0.236/trunk@13177 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/qtfe/QtBrowserContext.h | 4 ++-- mozilla/cmd/qtfe/QtContext.h | 4 ++-- mozilla/cmd/qtfe/forms.cpp | 8 +++++--- mozilla/cmd/qtfe/qtbind.cpp | 6 +++--- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/mozilla/cmd/qtfe/QtBrowserContext.h b/mozilla/cmd/qtfe/QtBrowserContext.h index 21f7f2ee58e..61f8901d6c5 100644 --- a/mozilla/cmd/qtfe/QtBrowserContext.h +++ b/mozilla/cmd/qtfe/QtBrowserContext.h @@ -1,4 +1,4 @@ -/* $Id: QtBrowserContext.h,v 1.1 1998-09-25 18:01:28 ramiro%netscape.com Exp $ +/* $Id: QtBrowserContext.h,v 1.2 1998-10-20 02:40:45 cls%seawood.org Exp $ * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in @@ -78,7 +78,7 @@ public: virtual void displayFormElement(int iLocation, LO_FormElementStruct *form); virtual void getFormElementValue(LO_FormElementStruct *form, - bool delete_p); + bool delete_p, bool submit_p); public slots: virtual void cmdOpenBrowser(); diff --git a/mozilla/cmd/qtfe/QtContext.h b/mozilla/cmd/qtfe/QtContext.h index 6d5bb6bc708..78916cde56f 100644 --- a/mozilla/cmd/qtfe/QtContext.h +++ b/mozilla/cmd/qtfe/QtContext.h @@ -1,4 +1,4 @@ -/* $Id: QtContext.h,v 1.1 1998-09-25 18:01:29 ramiro%netscape.com Exp $ +/* $Id: QtContext.h,v 1.2 1998-10-20 02:40:45 cls%seawood.org Exp $ * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in @@ -154,7 +154,7 @@ public: void getFormElementInfo(LO_FormElementStruct *form); virtual void getFormElementValue(LO_FormElementStruct *form, - bool delete_p); + bool delete_p, bool submit_p); void resetFormElement(LO_FormElementStruct *form); diff --git a/mozilla/cmd/qtfe/forms.cpp b/mozilla/cmd/qtfe/forms.cpp index 4805b33f874..8950e1b0641 100644 --- a/mozilla/cmd/qtfe/forms.cpp +++ b/mozilla/cmd/qtfe/forms.cpp @@ -1,4 +1,4 @@ -/* $Id: forms.cpp,v 1.1 1998-09-25 18:01:33 ramiro%netscape.com Exp $ +/* $Id: forms.cpp,v 1.2 1998-10-20 02:40:45 cls%seawood.org Exp $ * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in @@ -1134,11 +1134,13 @@ void QtContext::getFormElementInfo(LO_FormElementStruct *form) } /* From ./forms.c: */ -void QtContext::getFormElementValue(LO_FormElementStruct *, bool) +void QtContext::getFormElementValue(LO_FormElementStruct *, bool, bool) { } + +/* XXX - wtf does submit_p do? */ void QtBrowserContext::getFormElementValue(LO_FormElementStruct *form, - bool delete_p) + bool delete_p, bool submit_p) { element(form)->getValue(); if ( delete_p ) { diff --git a/mozilla/cmd/qtfe/qtbind.cpp b/mozilla/cmd/qtfe/qtbind.cpp index efabf305886..2d3b83386e1 100644 --- a/mozilla/cmd/qtfe/qtbind.cpp +++ b/mozilla/cmd/qtfe/qtbind.cpp @@ -1,4 +1,4 @@ -/* $Id: qtbind.cpp,v 1.2 1998-10-12 07:18:21 jonas.utterstrom%vittran.norrnod.se Exp $ +/* $Id: qtbind.cpp,v 1.3 1998-10-20 02:40:44 cls%seawood.org Exp $ * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in @@ -509,9 +509,9 @@ QTFE_GetFormElementInfo(MWContext* context, LO_FormElementStruct *form) extern "C" void QTFE_GetFormElementValue(MWContext* context, LO_FormElementStruct *form, - XP_Bool delete_p) + XP_Bool delete_p, XP_Bool submit_p) { - QtContext::qt(context)->getFormElementValue(form, delete_p); + QtContext::qt(context)->getFormElementValue(form, delete_p, submit_p); }