This commit is contained in:
mcafee%netscape.com 1998-09-10 01:03:02 +00:00
Родитель b13a3d4315
Коммит 30a0b23215
5 изменённых файлов: 0 добавлений и 1021 удалений

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

@ -54,7 +54,6 @@ REQUIRES = \
CSRCS = \
main.c \
stubbm.c \
stubctxt.c \
stubdlgs.c \
stubedit.c \

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

@ -1,721 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
stubctxt.c --- stub fe handling of MWContext initialization.
*/
#include "structs.h"
#include "ntypes.h"
#include "xpassert.h"
#include "proto.h"
#include "fe_proto.h"
#include "stubform.h"
static MWContext*
STUBFE_CreateNewDocWindow(MWContext *calling_context,
URL_Struct *URL)
{
return NULL;
}
static void
STUBFE_LayoutNewDocument(MWContext *context,
URL_Struct *url_struct,
int32 *iWidth,
int32 *iHeight,
int32 *mWidth,
int32 *mHeight)
{
}
static void
STUBFE_SetDocTitle (MWContext * context,
char * title)
{
}
static void
STUBFE_FinishedLayout (MWContext *context)
{
}
static char*
STUBFE_TranslateISOText (MWContext * context,
int charset,
char *ISO_Text)
{
return NULL;
}
static int
STUBFE_GetTextInfo (MWContext * context,
LO_TextStruct *text,
LO_TextInfo *text_info)
{
return -1;
}
static void
STUBFE_GetEmbedSize (MWContext * context,
LO_EmbedStruct *embed_struct,
NET_ReloadMethod force_reload)
{
}
static void
STUBFE_GetJavaAppSize (MWContext * context,
LO_JavaAppStruct *java_struct,
NET_ReloadMethod force_reload)
{
}
static void
STUBFE_FreeEmbedElement (MWContext *context,
LO_EmbedStruct *embed)
{
}
static void
STUBFE_CreateEmbedWindow (MWContext *context,
NPEmbeddedApp *app)
{
}
static void
STUBFE_SaveEmbedWindow (MWContext *context,
NPEmbeddedApp *app)
{
}
static void
STUBFE_RestoreEmbedWindow (MWContext *context,
NPEmbeddedApp *app)
{
}
static void
STUBFE_DestroyEmbedWindow (MWContext *context,
NPEmbeddedApp *app)
{
}
static void
STUBFE_FreeBuiltinElement(MWContext *context,
LO_BuiltinStruct *embed)
{
}
static void
STUBFE_FreeJavaAppElement (MWContext *context,
struct LJAppletData *appletData)
{
}
static void
STUBFE_HideJavaAppElement (MWContext *context,
struct LJAppletData *java_app)
{
}
static void
STUBFE_FreeEdgeElement (MWContext *context,
LO_EdgeStruct *edge)
{
}
static void
STUBFE_FormTextIsSubmit (MWContext * context,
LO_FormElementStruct * form_element)
{
}
static void
STUBFE_DisplaySubtext (MWContext * context,
int iLocation,
LO_TextStruct *text,
int32 start_pos,
int32 end_pos,
XP_Bool need_bg)
{
}
static void
STUBFE_DisplayText (MWContext * context,
int iLocation,
LO_TextStruct *text,
XP_Bool need_bg)
{
}
static void
STUBFE_DisplayEmbed (MWContext * context,
int iLocation,
LO_EmbedStruct *embed_struct)
{
}
static void
STUBFE_DisplayBuiltin (MWContext * context,
int iLocation,
LO_BuiltinStruct *builtin_struct)
{
}
static void
STUBFE_DisplayJavaApp (MWContext * context,
int iLocation,
LO_JavaAppStruct *java_struct)
{
}
static void
STUBFE_DisplayEdge (MWContext * context,
int iLocation,
LO_EdgeStruct *edge_struct)
{
}
static void
STUBFE_DisplayTable (MWContext * context,
int iLocation,
LO_TableStruct *table_struct)
{
}
static void
STUBFE_DisplayCell (MWContext * context,
int iLocation,
LO_CellStruct *cell_struct)
{
}
static void
STUBFE_DisplaySubDoc (MWContext * context,
int iLocation,
LO_SubDocStruct *subdoc_struct)
{
}
static void
STUBFE_DisplayLineFeed (MWContext * context,
int iLocation ,
LO_LinefeedStruct *line_feed,
XP_Bool need_bg)
{
}
static void
STUBFE_DisplayHR (MWContext * context,
int iLocation ,
LO_HorizRuleStruct *HR_struct)
{
}
static void
STUBFE_DisplayBullet (MWContext *context,
int iLocation,
LO_BullettStruct *bullet)
{
}
static void
STUBFE_DisplayFormElement (MWContext * context,
int iLocation,
LO_FormElementStruct * form_element)
{
}
static void
STUBFE_DisplayBorder (MWContext *context,
int iLocation,
int x,
int y,
int width,
int height,
int bw,
LO_Color *color,
LO_LineStyle style)
{
}
static void
STUBFE_DisplayFeedback (MWContext *context,
int iLocation,
LO_Element *element)
{
}
static void
STUBFE_ClearView (MWContext * context,
int which)
{
}
static void
STUBFE_SetDocDimension (MWContext *context,
int iLocation,
int32 iWidth,
int32 iLength)
{
}
static void
STUBFE_SetDocPosition (MWContext *context,
int iLocation,
int32 iX,
int32 iY)
{
}
static void
STUBFE_GetDocPosition (MWContext *context,
int iLocation,
int32 *iX,
int32 *iY)
{
}
static void
STUBFE_BeginPreSection (MWContext *context)
{
}
static void
STUBFE_EndPreSection (MWContext *context)
{
}
static void
STUBFE_Progress(MWContext *context,
const char *msg)
{
}
static void
STUBFE_SetProgressBarPercent (MWContext *context,
int32 percent)
{
}
static void
STUBFE_SetBackgroundColor (MWContext *context,
uint8 red,
uint8 green,
uint8 blue)
{
}
static void
STUBFE_SetCallNetlibAllTheTime (MWContext * win_id)
{
}
static void
STUBFE_ClearCallNetlibAllTheTime (MWContext * win_id)
{
}
static void
STUBFE_GraphProgressInit (MWContext *context,
URL_Struct *URL_s,
int32 content_length)
{
}
static void
STUBFE_GraphProgressDestroy (MWContext *context,
URL_Struct *URL_s,
int32 content_length,
int32 total_bytes_read)
{
}
static void
STUBFE_GraphProgress (MWContext *context,
URL_Struct *URL_s,
int32 bytes_received,
int32 bytes_since_last_time,
int32 content_length)
{
}
static XP_Bool
STUBFE_UseFancyFTP (MWContext * window_id)
{
return FALSE;
}
static XP_Bool
STUBFE_UseFancyNewsgroupListing (MWContext *window_id)
{
return FALSE;
}
static int
STUBFE_FileSortMethod (MWContext * window_id)
{
return -1;
}
static XP_Bool
STUBFE_ShowAllNewsArticles (MWContext *window_id)
{
return FALSE;
}
static void
STUBFE_Alert(MWContext *context,
const char *msg)
{
}
static XP_Bool
STUBFE_Confirm(MWContext * context,
const char * Msg)
{
return FALSE;
}
static XP_Bool
STUBFE_CheckConfirm(MWContext *pContext,
const char *pConfirmMessage,
const char *pCheckMessage,
const char *pOKMessage,
const char *pCancelMessage,
XP_Bool *pChecked)
{
return FALSE;
}
static XP_Bool
STUBFE_SelectDialog(MWContext *pContext,
const char *pMessage,
const char **pList,
int16 *pCount)
{
return FALSE;
}
static char*
STUBFE_Prompt(MWContext * context,
const char * Msg,
const char * dflt)
{
return NULL;
}
static char*
STUBFE_PromptWithCaption(MWContext * context,
const char *caption,
const char * Msg,
const char * dflt)
{
return NULL;
}
static XP_Bool
STUBFE_PromptUsernameAndPassword (MWContext *context,
const char * message,
char **username,
char **password)
{
return FALSE;
}
static char*
STUBFE_PromptPassword(MWContext * context,
const char * Msg)
{
return NULL;
}
static void
STUBFE_EnableClicking(MWContext* context)
{
}
static void
STUBFE_AllConnectionsComplete(MWContext * context)
{
}
static void
STUBFE_EraseBackground (MWContext * context,
int iLocation,
int32 x,
int32 y,
uint32 width,
uint32 height,
LO_Color *bg)
{
}
static void
STUBFE_SetDrawable (MWContext *context,
CL_Drawable *drawable)
{
}
static void
STUBFE_GetTextFrame (MWContext *context,
LO_TextStruct *text,
int32 start,
int32 end,
XP_Rect *frame)
{
}
/* these functions are to allow dealyed native window applet creation and transparent applet */
static void
STUBFE_HandleClippingView (MWContext *pContext,
struct LJAppletData *appletD,
int x,
int y,
int width,
int height)
{
}
static void
STUBFE_DrawJavaApp (MWContext *pContext,
int iLocation,
LO_JavaAppStruct *pJava)
{
}
static ContextFuncs _stubfe_funcs = {
#define FE_DEFINE(func, returns, args) STUBFE##_##func,
#include "mk_cx_fn.h"
};
MWContext*
STUBFE_CreateMWContext()
{
MWContext *context = XP_NewContext();
XP_ASSERT(context);
if (!context) return NULL;
context->funcs = &_stubfe_funcs;
return context;
}
int32
FE_GetContextID(MWContext *window_id)
{
}
MWContext*
FE_GetInitContext()
{
}
MWContext*
FE_MakeNewWindow(MWContext *old_context,
URL_Struct *url,
char *window_name,
Chrome *chrome)
{
}
void
FE_DestroyWindow(MWContext *context)
{
}
void
FE_UpdateStopState(MWContext *context)
{
}
void
FE_UpdateChrome(MWContext *window,
Chrome *chrome)
{
}
void
FE_QueryChrome(MWContext *window,
Chrome *chrome)
{
}
void
FE_BackCommand(MWContext *context)
{
}
void
FE_ForwardCommand(MWContext *context)
{
}
void
FE_HomeCommand(MWContext *context)
{
}
void
FE_PrintCommand(MWContext *context)
{
}
XP_Bool
FE_FindCommand(MWContext *context,
char *text,
XP_Bool case_sensitive,
XP_Bool backwards,
XP_Bool wrap)
{
}
void
FE_GetWindowOffset(MWContext *pContext,
int32 *sx,
int32 *sy)
{
}
void
FE_GetScreenSize(MWContext *pContext,
int32 *sx,
int32 *sy)
{
}
void
FE_GetAvailScreenRect(MWContext *pContext,
int32 *sx,
int32 *sy,
int32 *left,
int32 *top)
{
}
void
FE_GetPixelAndColorDepth(MWContext *pContext,
int32 *pixelDepth,
int32 *colorDepth)
{
}
void
FE_ShiftImage (MWContext *context,
LO_ImageStruct *lo_image)
{
}
void
FE_ScrollDocTo (MWContext *context,
int iLocation,
int32 x,
int32 y)
{
}
void
FE_ScrollDocBy (MWContext *context,
int iLocation,
int32 x,
int32 y)
{
}
int
FE_GetURL (MWContext *context,
URL_Struct *url)
{
}
void
FE_SetRefreshURLTimer(MWContext *context,
uint32 seconds,
char *refresh_url)
{
}
int
FE_EnableBackButton(MWContext* context)
{
}
int
FE_EnableForwardButton(MWContext* context)
{
}
int
FE_DisableBackButton(MWContext* context)
{
}
int
FE_DisableForwardButton(MWContext* context)
{
}
MWContext *
FE_MakeBlankWindow(MWContext *old_context,
URL_Struct *url,
char *window_name)
{
}
void
FE_SetWindowLoading(MWContext *context,
URL_Struct *url,
Net_GetUrlExitFunc **exit_func)
{
}
void
FE_RaiseWindow(MWContext *context)
{
}
void
FE_ConnectToRemoteHost(MWContext* ctxt,
int url_type,
char* hostname,
char* port,
char* username)
{
}
void*
FE_AboutData(const char* which,
char** data_ret,
int32* length_ret,
char** content_type_ret)
{
}
void
FE_FreeAboutData(void* data,
const char* which)
{
}
XP_Bool
FE_IsNetcasterInstalled()
{
}

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

@ -1,245 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
stubdlgs.c --- stub fe handling of dialog requests from backend (prompt for
password, alerts, messages, etc.)
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "fe_proto.h"
/*
** FE_Alert - put up an alert dialog containing the given msg, over
** context.
**
** This method should return immediately, without waiting for user
** input.
*/
void
FE_Alert(MWContext *context,
const char *msg)
{
}
/*
** FE_Message - put up an information dialog containing the given msg,
** over context.
**
** This method should return immediately, without waiting for user
** input.
*/
void
FE_Message(MWContext *context,
const char *msg)
{
}
/*
** FE_Confirm - Put up an confirmation dialog (with Yes and No
** buttons) and return TRUE if Yes/Ok was clicked and FALSE if
** No/Cancel was clicked.
**
** This method should not return until the user has clicked on one of
** the buttons.
*/
Bool
FE_Confirm(MWContext *context,
const char *msg)
{
}
/*
** FE_Prompt - Put up a prompt dialog with the given message, a text
** field (with the value defaulted to dflt). The user's response
** should be returned.
**
** This method should not return until the user has clicked Ok (the
** return value should not be NULL) or they clicked Cancel (the return
** value should be NULL.)
*/
char*
FE_Prompt(MWContext *context,
const char *msg,
const char *dflt)
{
}
/*
** FE_PromptPassword - Put up a prompt dialog with the given message,
** a text field. The user's response should be returned.
**
** The text field should not show the characters as the user types them.
** Display them as X's, *'s, spaces, etc.
**
** This method should not return until the user has clicked Ok (the
** return value should not be NULL) or they clicked Cancel (the return
** value should be NULL.)
*/
char*
FE_PromptPassword(MWContext *context,
const char *msg)
{
}
/*
** FE_PromptMessageSubject - Put up a prompt dialog with the given
** message, a text field. The user's response should be returned.
**
** The default value in the text field should be "(No Subject)",
** localized to the user's locale.
**
** This method should not return until the user has clicked Ok (the
** return value should not be NULL) or they clicked Cancel (the return
** value should be NULL.)
*/
char*
FE_PromptMessageSubject(MWContext *context)
{
}
/*
** FE_PromptUsernameAndPassword - Put up a prompt dialog with the given
** message, a two text fields. It should return TRUE if Ok was clicked
** and FALSE if Cancel was clicked.
**
** The password text field should not show the characters as the user
** types them. Display them as X's, *'s, spaces, etc.
**
** This method should not return until the user has clicked Ok or Cancel.
*/
Bool
FE_PromptUsernameAndPassword(MWContext *context,
const char *msg,
char **username,
char **password)
{
}
/*
** FE_PromptForFileNam - Put up a file selection dialog with the given
** prompt string,
**
** the file selection box should open up viewing default_path.
**
** if file_must_exist_p, the user should not be allowed to close the
** dialog with an invalid path selected.
**
** if directories_allowed_p, directories can be selected.
**
** After the user has clicked ok or cancel or given some other gesture
** to bring down the filesb, the ReadFileNameCallbackFunction should
** be called with the context, the textual path name, and the closure, as in
** 'fn(context, path, closure);'
**
** Lastly, the function should return 0 if the path was acceptable and -1 if it
** was not.
**
** This method should not return until the user has clicked Ok or Cancel.
*/
int
FE_PromptForFileName(MWContext *context,
const char *prompt_string,
const char *default_path,
XP_Bool file_must_exist_p,
XP_Bool directories_allowed_p,
ReadFileNameCallbackFunction fn,
void *closure)
{
}
/*
** FE_SaveDialog - Put up a dialog that basically says "I'm saving
** <foo> right now", cancel?
**
** This function should not block, but should return after putting up the dialog.
**
** If the user clicks cancel, the callback should call EDT_SaveCancel.
**
** Note: This function has been overloaded for use in publishing as well. There
** are three instances where this function will be called:
** 1) Saving remote files to disk.
** 2) Preparing to publish files remotely.
** 3) Publishing files to a remote server.
*/
void
FE_SaveDialogCreate(MWContext *context,
int file_count,
ED_SaveDialogType save_type)
{
}
/*
** FE_SaveDialogSetFilename - for a save dialog that has been put up above the given
** context, set the filename being saved/published.
*/
void
FE_SaveDialogSetFilename(MWContext *context,
char *filename)
{
}
/*
** FE_SaveDialogDestroy - the backend calls this function to let us
** know that the save/publish operation has completed. We should
** destroy the save dialog that has been used above the given context.
*/
void
FE_SaveDialogDestroy(MWContext *context,
int status,
char *filename)
{
}
/*
** FE_SaveFileExistsDialog - put up the standard dialog saying:
** "<foo> exists - overwrite?" Yes to All, Yes, No, No to All.
**
** return ED_SAVE_OVERWRITE_THIS if the user clicks Yes.
** return ED_SAVE_OVERWRITE_ALL if the user clicks Yes to All.
** return ED_SAVE_DONT_OVERWRITE_THIS if the user clicks No.
** return ED_SAVE_DONT_OVERWRITE_ALL if the user clicks No to All.
*/
ED_SaveOption
FE_SaveFileExistsDialog(MWContext *context,
char *filename)
{
}
/*
** FE_SaveErrorContinueDialog - put up a dialog that gives some
** textual represenation of the error status, and allow the user
** to decide if they want to continue or not.
**
** Return TRUE if we should continue, and FALSE if we shouldn't.
*/
Bool
FE_SaveErrorContinueDialog(MWContext *context,
char *filename,
ED_FileError error)
{
}
int
XFE_AskStreamQuestion(MWContext * window_id)
{
}

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

@ -1,23 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
stubenc.c --- encoding stuff specific to the stub fe.
*/
char **fe_encoding_extensions = 0; /* gag. used by mkcache.c. */

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

@ -1,31 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*
stubmisc.c --- stub functions for fe
generic stuff.
*/
void
fe_GetProgramDirectory(char *path, int len)
{
}
void
FEU_StayingAlive(void)
{
}