removing stubfe files from the trunk; these are only relevant in the MozillaClassic branch

git-svn-id: svn://10.0.0.236/trunk@52530 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dmose%mozilla.org 1999-11-02 06:51:30 +00:00
parent 1d1448afe5
commit c6627a15ce
24 changed files with 0 additions and 4159 deletions

View File

@ -1,749 +0,0 @@
#! gmake
#
# 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.
#
######################################################################
#
# Makefile for stubbed-out FE, modeled after XFE Makefile.
#
DEPTH = ../..
MODULE = moz
REQUIRES = \
addr \
applet \
img \
edtplug \
jtools \
lay \
layer \
js \
libfont \
mariner \
msg \
java \
plds \
nsprpub \
parse \
plug \
plugimpl \
hook \
pref \
rdf \
security \
libreg \
style \
util \
$(NULL)
CSRCS = \
main.c \
stubctxt.c \
stubdlgs.c \
stubedit.c \
stubenc.c \
stubform.c \
stubgrid.c \
stubhelp.c \
stubimg.c \
stublay.c \
stubloc.c \
stubmail.c \
stubmisc.c \
stubplug.c \
stubps.c \
stubrdf.c \
stubrgn.c \
stubsec.c \
stubstr.c \
stubtime.c \
$(NULL)
######################################################################
include $(DEPTH)/config/config.mk
CCLD = $(CCC)
LDFLAGS = $(CFLAGS)
NOMD_LDFLAGS = $(NOMD_CFLAGS)
OBJS = $(CSRCS:.c=.o) $(CPPSRCS:.cc=.o)
NSPR_LIB = $(DIST)/lib/libplds21.a \
$(DIST)/lib/libplc21.a \
$(DIST)/lib/libnspr21.a
ifdef DBMALLOC
NSPR_LIB += $(DIST)/lib/libdbmalloc.a
endif
CFLAGS += -DENABLE_MARINER
#
# We need libnet.a in there twice because libmsg and libnet have circular
# dependencies on functions.
#
BASIC_LIBS = \
$(XFE2_LIB) \
$(MICROLINE_LIB) \
$(ICONS_LIB) \
$(DTWIDGETS_LIB) \
$(XFE_WIDGETS_BM_LIB) \
$(XFE_WIDGETS_LIB) \
$(DIST)/lib/libnetcnvts.a \
$(DIST)/lib/libnetwork.a \
$(DIST)/lib/libnetcache.a \
$(DIST)/lib/libnetutil.a \
$(DIST)/lib/libcnetinit.a \
$(DIST)/lib/libabouturl.a \
$(DIST)/lib/libdataurl.a \
$(DIST)/lib/libnetcnvts.a \
$(DIST)/lib/libfileurl.a \
$(DIST)/lib/libftpurl.a \
$(DIST)/lib/libgophurl.a \
$(DIST)/lib/libhttpurl.a \
$(DIST)/lib/libjsurl.a \
$(DIST)/lib/libmarimurl.a \
$(DIST)/lib/libremoturl.a \
$(DIST)/lib/libnetwork.a \
$(DIST)/lib/libmimetype.a \
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
$(DIST)/lib/lib$(LITE_PREFIX)xml.a \
$(DIST)/lib/lib$(LITE_PREFIX)lay.a \
$(DIST)/lib/libxlate.a \
$(DIST)/lib/libpng.a \
$(DIST)/lib/libmariner.a \
$(DIST)/lib/libimg.a \
$(DIST)/lib/libprivacy.a \
$(NULL)
ifdef MOZ_LOC_INDEP
BASIC_LIBS += $(DIST)/lib/libli.a
endif
ifdef JAVA_OR_NSJVM
JAVA_JMC = $(DIST)/lib/libjmc.a # XXX To be removed...
endif
BASIC_LIBS += \
$(DIST)/lib/libpng.a \
$(JAVA_JMC) \
$(DIST)/lib/libjpeg.a \
$(DIST)/lib/libhook.a \
$(DIST)/lib/libparse.a \
$(DIST)/lib/lib$(LITE_PREFIX)pref.a \
$(DIST)/lib/lib$(LITE_PREFIX)i18n.a \
$(DIST)/lib/libpics.a \
$(DIST)/lib/libpwcac.a \
$(DIST)/lib/libreg.a \
$(NULL)
BASIC_LIBS_2 = \
$(DIST)/lib/lib$(LITE_PREFIX)xp.a \
$(DIST)/lib/libdbm.a \
$(DIST)/lib/libcaps.a \
$(DIST)/lib/libxpcom.a \
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
$(NULL)
# jwz: link in libmime all the time.
# but it needs to be before libnetutil, and I don't know how to do that,
# so just link against libnetutil twice.
BASIC_LIBS += \
$(DIST)/lib/libmime.a \
$(DIST)/lib/libnetutil.a \
$(NULL)
ifdef MOZ_MAIL_NEWS
ifdef MOZ_SECURITY
BASIC_LIBS += \
$(DIST)/lib/libns_mime.a \
$(NULL)
endif
BASIC_LIBS_2 += \
$(DIST)/lib/libldap.a \
$(NULL)
endif
BASIC_LIBS += \
$(DIST)/lib/libmisc.a \
$(DIST)/lib/libprgrss.a \
$(NULL)
ifdef MOZ_LDAP
BASIC_LIBS += \
$(DIST)/lib/libldap.a \
$(DIST)/lib/liblber.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += \
$(DIST)/lib/libmozmsg.a \
$(NULL)
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libmsg.a \
$(NULL)
endif
BASIC_LIBS += $(DIST)/lib/libaddr.a \
$(DIST)/lib/libneo.a \
$(DIST)/lib/libaddr.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += $(DIST)/lib/libnntpurl.a \
$(DIST)/lib/libsmtpurl.a \
$(DIST)/lib/libimap4url.a \
$(DIST)/lib/libpop3url.a \
$(DIST)/lib/libmailbxurl.a \
$(DIST)/lib/libcrtldurl.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
ifdef MOZ_LDAP
BASIC_LIBS += $(DIST)/lib/libldapurl.a \
$(NULL)
endif
endif
ifdef MOZ_CALENDAR
BASIC_LIBS += \
$(DIST)/lib/libjulian.a \
$(DIST)/lib/libnscnv30.a \
$(DIST)/lib/libnsuni30.a \
$(DIST)/lib/libnsfmt30.a \
$(NULL)
endif
BASIC_LIBS += \
$(DIST)/lib/lib$(LITE_PREFIX)plug.a \
$(DIST)/lib/libutil.a \
$(DIST)/lib/libfont.a \
$(NULL)
ifndef NO_LAYERS
BASIC_LIBS += $(DIST)/lib/liblayer.a
endif
########################################################################
# Java
#
ifdef MOZ_JAVA
#
# Monolithic Java
#
BASIC_LIBS += \
$(DIST)/lib/lib$(LITE_PREFIX)applet.a \
$(DIST)/lib/libjrt.a \
$(DIST)/lib/libjmd.a \
$(NULL)
ifdef EDITOR
BASIC_LIBS += $(DIST)/lib/libedtplug.a
endif
BASIC_LIBS += \
$(DIST)/lib/libnsn.a \
$(DIST)/lib/libnsc.a \
$(DIST)/lib/libjpw.a \
$(DIST)/lib/libzpw.a \
$(DIST)/lib/libiawt.a \
$(DIST)/lib/libmmedia.a \
$(DIST)/lib/libsoftupdate.a \
$(DIST)/lib/libprgrss.a \
$(DIST)/lib/libcon.a \
$(DIST)/lib/libjbn.a \
$(NULL)
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libjsl.a
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += $(DIST)/lib/libjsl.a
endif
BASIC_LIBS += $(DIST)/lib/libjrt.a
else # !MOZ_JAVA
#
# OJI
#
ifdef MOZ_OJI
BASIC_LIBS += $(DIST)/lib/liboji.a
ifdef NSJVM
ifdef EDITOR
BASIC_LIBS += $(DIST)/lib/libedtplug.a
endif
BASIC_LIBS += $(DIST)/lib/libsoftupdate.a
else # !NSJVM
BASIC_LIBS += \
$(DIST)/lib/libstubsj.a \
$(DIST)/lib/libstubnj.a \
$(NULL)
endif # !NSJVM
BASIC_LIBS += $(DIST)/lib/libprgrss.a \
$(NULL)
else # !MOZ_OJI
# No Monolithic Java, no OJI, just stubs.
BASIC_LIBS += \
$(DIST)/lib/libstubsj.a \
$(DIST)/lib/libstubnj.a \
$(NULL)
endif # !MOZ_OJI
endif # !MOZ_JAVA
# XXX To a DSO...
BASIC_LIBS += $(DIST)/lib/libzlib.a
BASIC_DSOS += -lzlib
ifndef NO_MOCHA
# XXX To a DSO...
BASIC_LIBS += $(DIST)/lib/libjs.a $(DIST)/lib/libjsj.a
BASIC_DSOS += -ljs -ljsj
BASIC_LIBS += $(DIST)/lib/libmocha.a
endif
# Post-Java libs
BASIC_LIBS += $(DIST)/lib/libstyle.a $(DIST)/lib/libreg.a
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libjar.a
else
EXPORT_LIB = $(DIST)/lib/libhtmldlgs.a $(DIST)/lib/libsecfree.a
endif
PLUGIN_DSO = $(DIST)/bin/libnullplugin.so
WEBFONT_DSO = $(DIST)/bin/libTrueDoc.so
ifndef MOZ_LITE
JSD_DSO = $(DIST)/bin/libjsd.$(DLL_SUFFIX)
endif
TARGETS += $(OBJDIR)/stubfe
ALL_TARGETS = $(TARGETS)
#######################################################################
include $(DEPTH)/config/rules.mk
DEFINES += -DNEW_DECODERS
#######################################################################
#
# Set defaults for all platforms. Each OS_ARCH will override this if
# necessary.
#
ifdef BUILD_OFFICIAL
EXTRA_REL_FILES += $(DIST)/bin/vreg $(DEPTH)/l10n/us/xp/bookmark.htm
endif
# Only SunOS4 needs two versions NIS and DNS.
NIS_SRC =
NIS_OBJS =
NIS_LIB =
DNS_LIB =
# Only SunOS4 needs separate YP versions.
NEED_YP_VERSION = 0
# Only BSDI, Linux, and SunOS4 need the nls directory.
NEED_NLS = 0
# Only SunOS5 (Solaris) has MCS.
MCS_CMD = true
# Only IRIX 5.x uses this.
EXTRA_POST_LINK_CMD = echo
EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(OTHER_LIBS) $(NSPR_LIB)
EXPORT_DEPLIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB)
DSO_EX_LIBS = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
#######################################################################
#
# Adjust build based on OS_ARCH.
#
########################################
# IBM Machines
ifeq ($(OS_ARCH),AIX)
CCLD = svxlC -+
#LDFLAGS = -bGhooksyslibs -bGlibpathexec -bGnoproc
LDFLAGS = -bGnoproc
OTHER_LIBS =
US_LDFLAGS += $(AIX_NSPR_LINK)
EXPORT_LDFLAGS += $(AIX_NSPR_LINK)
FRANCE_LDFLAGS += $(AIX_NSPR_LINK)
# Grab the NSPR shared library and the "Patched especially for Netscape" version of libsvld.a
EXTRA_REL_FILES += $(AIX_NSPR) \
$(DEPTH)/config/AIX4.1_libsvld.a \
$(DEPTH)/config/AIX4.1_libc.a \
$(DEPTH)/config/AIX4.2_libc.a \
$(DEPTH)/config/AIX4.1_run_netscape
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
endif
########################################
# FreeBSD
ifeq ($(OS_ARCH),FreeBSD)
OTHER_LIBS = -lm $(OS_LIBS)
endif
########################################
# BSDI
ifeq ($(OS_ARCH),BSD_OS)
OTHER_LIBS = -lm $(OS_LIBS)
ifeq ($(OS_RELEASE),2.1)
OTHER_LIBS += -lipc
endif
NEED_NLS = 1
endif
########################################
# HP Machines
ifeq ($(OS_ARCH),HP-UX)
ifeq ($(OS_RELEASE),B.10)
INCLUDES += -I.
endif
HPUX_RESOURCE_HACK = -Wp,-H16384
OTHER_LIBS = -L$(DIST)/lib $(OS_LIBS)
ifdef MOZ_EDITOR
EXPORT_DEPLIBS += cxxlink-filter
US_DEPLIBS += cxxlink-filter
CCLD = CC -tl,./cxxlink-filter
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
#
# On HP, enable SHLIB_PATH
#
EXTRA_POST_LINK_CMD = chatr +s enable
endif
endif
########################################
# SGI Machines
ifeq ($(OS_ARCH),IRIX)
#
# Linker will report that '-lSgm' does not resolve any symbols, but it
# should not be removed. SGI dynamically opens the library depending on
# the setting of some resources (e.g. "useEnhancedFSB")
#
OTHER_LIBS = -lgen -laudio -lm $(OS_LIBS)
#
# On Irix, tag the executable for use by the Indigo Magic Desktop.
# This magic number comes from /usr/lib/filetype/install/netscape.ftr
# shipped by SGI along with their n.nnS version of Mozilla.
#
ifeq ($(OS_RELEASE),5)
EXTRA_POST_LINK_CMD = /usr/sbin/tag 67150
endif
#
# If we are using gtscc, we must use it as the linker, and we
# can only build statically (no shared libs).
#
CCLD = CC
ifdef USE_GTSCC
ifndef NO_GTSCC
CCLD = $(DIST)/bin/gtscc $(GTSCC_LD_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
TARGETS = $(OBJDIR)/stubfe
endif
endif
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
endif
########################################
# Linux
ifeq ($(OS_ARCH),Linux)
OTHER_LIBS = /usr/lib/libm.a -ldl
US_LDFLAGS += -lc
EXPORT_LDFLAGS += -lc
FRANCE_LDFLAGS += -lc
endif
########################################
# NCR SYSV 4.0
ifeq ($(OS_ARCH),NCR)
OTHER_LIBS = -lgen -lm $(OS_LIBS)
endif
########################################
# NEC SYSV 4.2
ifeq ($(OS_ARCH),NEC)
OTHER_LIBS = -lresolv -lgen -lm $(OS_LIBS)
endif
########################################
# Dec Machines
ifeq ($(OS_ARCH),OSF1)
# We would like to link OSF1 static.
# This is because of motif problems (BadMatch errors on non-default visual)
# on 3.2 and 3.0 (and not on 2.0).
# and you get warnings and core dump when pasting into Mozilla.
# Also, libXm must be dynamic, otherwise Japanese text widgets hang
# the process.
# What a delightful state of affairs. -- erik
OTHER_LIBS = -ldnet_stub -lm -lots $(OS_LIBS)
EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS)
FRANCE_LDFLAGS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS)
US_LDFLAGS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(OTHER_LIBS)
ifdef MOZ_EDITOR
#
# OSF's cxx link command will link in _dynamic_ version of two C++
# libraries. This is bad, they are not shipped on a base system.
# So, we call this special hacked driver script to do the job.
#
# NOT TRUE FOR DIGITAL UNIX 4.0 OR GREATER
#CCLD = ./cxxlink-driver -cxx_platform OSF1 -cxx_command cxx
# Hack to add a dependency for executable.
#EXPORT_DEPLIBS += cxxlink-driver
#FRANCE_DEPLIBS += cxxlink-driver
#US_DEPLIBS += cxxlink-driver
# This will also work, but will probably break easily as more C++
# *features* get used (like static constructors - gasp!)
#CCLD = cc
#OTHER_LIBS += /usr/lib/cmplrs/cxx/libcxx.a /usr/lib/cmplrs/cxx/libexc.a
endif
endif
########################################
# SNI ReliantUNIX (SINIX)
ifeq ($(OS_ARCH),ReliantUNIX)
OTHER_LIBS = $(OS_LIBS)
endif
ifeq ($(OS_ARCH),SINIX-N)
OTHER_LIBS = $(OS_LIBS)
endif
########################################
# SCO OpenServer
ifeq ($(OS_ARCH),SCOOS)
OTHER_LIBS = -lm -lPW $(OS_LIBS)
ifdef NEED_XMOS
LIB_XMOS = $(OBJDIR)/Xmos.o
endif
endif
########################################
# Sun Machines
ifeq ($(OS_ARCH),SunOS)
ifeq ($(OS_RELEASE),4.1)
OTHER_LIBS =
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
ifdef MOZ_EDITOR
OTHER_LIBS += -L/tools/ns/lib
#
# Need this guy because the one in libg++.a is broken.
#
BASIC_LIBS += $(OBJDIR)/regex.o
$(OBJDIR)/regex.o: /lib/libc.a
ar x /lib/libc.a regex.o && mv regex.o $@
endif
#
# Need our own popen to fix the SunOS popen problem
#
BASIC_LIBS += $(OBJDIR)/popen.o
CSRCS += popen.c
US_LDFLAGS += -lm
EXPORT_LDFLAGS += -lm
FRANCE_LDFLAGS += -lm
# SunOS had 2 executables. Only the non-nis version need this
NIS_OBJS = $(OBJDIR)/dns-stub.o
NIS_SRCS = dns-stub.c
NIS_LIB = $(NIS_OBJS)
DNS_LIB = -lresolv
# For release only.
# This is only for SunOS as it has both nis and non-nis
# version of the browser packaged together.
EXTRA_EXPORT_OBJS = $(XFE_PROGNAME)-nis-export
EXTRA_FRANCE_OBJS = $(XFE_PROGNAME)-nis-france
EXTRA_US_OBJS = $(XFE_PROGNAME)-nis-us
EXTRA_NETEXPORT_OBJS = $(XFE_PROGNAME)-nis-net-export
NEED_YP_VERSION = 1
NEED_NLS = 1
endif
########################################
ifneq (,$(filter 5 5.5,$(OS_RELEASE)))
USRLIBDIR := /usr/openwin/lib
MCS_CMD = mcs -d
ifeq ($(CPU_ARCH),sparc)
OTHER_LIBS = $(OS_LIBS) -lgen -lresolv -lm
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
else
OTHER_LIBS = $(OS_LIBS) -lm
LDFLAGS = $(NOMD_CFLAGS)
endif
OTHER_LIBS += -L/usr/dt/lib -lXm
US_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIB)
EXPORT_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIB)
FRANCE_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIB)
endif
endif
########################################
# SCO Unixware 2.1
ifeq ($(OS_ARCH),UNIXWARE)
ifdef NEED_XMOS
LIB_XMOS = $(OBJDIR)/Xmos.o
endif
OTHER_LIBS = -lm
US_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
EXPORT_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
FRANCE_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
endif
#######################################################################
# Rules to build the special MOZ_LITE *.o files
$(TARGETS): $(OBJS)
#
# I moved this to ns/config/rules.mk -mcafee
#
#######################################################################
# Rules to build resources
.SUFFIXES: .ad
stubfe: $(OBJDIR)/stubfe
$(OBJDIR)/stubfe: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
@$(MAKE_OBJDIR)
rm -f $@
$(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
@$(EXTRA_POST_LINK_CMD) $@
install:: $(TARGETS)
ifeq ($(OS_ARCH),AIX)
AIX_HACK := $(notdir $(AIX_NSPR))
# Install nspr dynamic library for AIX.
$(AIX_HACK): $(AIX_NSPR)
$(INSTALL) -m 644 $< .
endif
# Skip java50.jar creation
java50.jar:
export:: $(JAR_NAME)
$(VERSION_OBJS): versionn.h
everything: all $(ALL_TARGETS)
symbols:
@echo "TARGETS = $(TARGETS)"
@echo "RELEASES = $(RELEASES)"
@echo "OS_ARCH = $(OS_ARCH)"
@echo "OTHER_LIBS = $(OTHER_LIBS)

View File

@ -1,767 +0,0 @@
#! gmake
#
# 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.
#
######################################################################
#
# Makefile for stubbed-out FE, modeled after XFE Makefile.
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = moz
REQUIRES = \
addr \
applet \
img \
edtplug \
jtools \
lay \
layer \
js \
libfont \
mariner \
msg \
java \
plds \
parse \
plug \
plugimpl \
hook \
pref \
rdf \
security \
libreg \
style \
util \
$(NULL)
CSRCS = \
main.c \
stubctxt.c \
stubdlgs.c \
stubedit.c \
stubenc.c \
stubform.c \
stubgrid.c \
stubhelp.c \
stubimg.c \
stublay.c \
stubloc.c \
stubmail.c \
stubmisc.c \
stubplug.c \
stubps.c \
stubrdf.c \
stubrgn.c \
stubsec.c \
stubstr.c \
stubtime.c \
$(NULL)
######################################################################
include $(topsrcdir)/config/config.mk
CCLD = $(CCC)
LDFLAGS = $(CFLAGS)
NOMD_LDFLAGS = $(NOMD_CFLAGS)
OBJS = $(CSRCS:.c=.o) $(CPPSRCS:.cc=.o)
ifdef DBMALLOC
NSPR_LIBS += $(DIST)/lib/libdbmalloc.a
endif
CFLAGS += -DENABLE_MARINER
#
# We need libnet.a in there twice because libmsg and libnet have circular
# dependencies on functions.
#
BASIC_LIBS = \
$(XFE2_LIB) \
$(MICROLINE_LIB) \
$(ICONS_LIB) \
$(DTWIDGETS_LIB) \
$(XFE_WIDGETS_BM_LIB) \
$(XFE_WIDGETS_LIB) \
$(DIST)/lib/libnetcnvts.a \
$(DIST)/lib/libnetwork.a \
$(DIST)/lib/libnetcache.a \
$(DIST)/lib/libnetutil.a \
$(DIST)/lib/libcnetinit.a \
$(DIST)/lib/libabouturl.a \
$(DIST)/lib/libdataurl.a \
$(DIST)/lib/libnetcnvts.a \
$(DIST)/lib/libfileurl.a \
$(DIST)/lib/libftpurl.a \
$(DIST)/lib/libgophurl.a \
$(DIST)/lib/libhttpurl.a \
$(DIST)/lib/libjsurl.a \
$(DIST)/lib/libmarimurl.a \
$(DIST)/lib/libremoturl.a \
$(DIST)/lib/libnetwork.a \
$(DIST)/lib/libmimetype.a \
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
$(DIST)/lib/lib$(LITE_PREFIX)xml.a \
$(DIST)/lib/lib$(LITE_PREFIX)lay.a \
$(DIST)/lib/libxlate.a \
$(DIST)/lib/libmariner.a \
$(DIST)/lib/libimg.a \
$(DIST)/lib/libprivacy.a \
$(NULL)
ifdef MOZ_LOC_INDEP
BASIC_LIBS += $(DIST)/lib/libli.a
endif
ifdef JAVA_OR_NSJVM
JAVA_JMC = $(DIST)/lib/libjmc.a # XXX To be removed...
endif
BASIC_LIBS += \
$(JAVA_JMC) \
$(DIST)/lib/libhook.a \
$(DIST)/lib/libparse.a \
$(DIST)/lib/lib$(LITE_PREFIX)pref.a \
$(DIST)/lib/libpics.a \
$(DIST)/lib/libpwcac.a \
$(DIST)/lib/libreg.a \
$(NULL)
ifdef MOZ_NATIVE_JPEG
BASIC_LIBS += -ljpeg
else
BASIC_LIBS += $(DIST)/lib/libjpeg.a
endif
ifdef MOZ_NATIVE_PNG
BASIC_LIBS += -lpng
else
BASIC_LIBS += $(DIST)/lib/libpng.a
endif
BASIC_LIBS_2 = \
$(DIST)/lib/lib$(LITE_PREFIX)xp.a \
$(DIST)/lib/libdbm.a \
$(DIST)/lib/libcaps.a \
$(DIST)/lib/libxpcom.a \
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
$(NULL)
# jwz: link in libmime all the time.
# but it needs to be before libnetutil, and I don't know how to do that,
# so just link against libnetutil twice.
BASIC_LIBS += \
$(DIST)/lib/libmime.a \
$(DIST)/lib/libnetutil.a \
$(NULL)
ifdef MOZ_MAIL_NEWS
ifdef MOZ_SECURITY
BASIC_LIBS += \
$(DIST)/lib/libns_mime.a \
$(NULL)
endif
BASIC_LIBS_2 += \
$(DIST)/lib/libldap.a \
$(NULL)
endif
BASIC_LIBS += \
$(DIST)/lib/libmisc.a \
$(DIST)/lib/libprgrss.a \
$(DIST)/lib/lib$(LITE_PREFIX)i18n.a \
$(NULL)
ifdef MOZ_LDAP
BASIC_LIBS += \
$(DIST)/lib/libldap.a \
$(DIST)/lib/liblber.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += \
$(DIST)/lib/libmozmsg.a \
$(NULL)
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libmsg.a \
$(NULL)
endif
BASIC_LIBS += $(DIST)/lib/libaddr.a \
$(DIST)/lib/libneo.a \
$(DIST)/lib/libaddr.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += $(DIST)/lib/libnntpurl.a \
$(DIST)/lib/libsmtpurl.a \
$(DIST)/lib/libimap4url.a \
$(DIST)/lib/libpop3url.a \
$(DIST)/lib/libmailbxurl.a \
$(DIST)/lib/libcrtldurl.a \
$(NULL)
endif
ifdef MOZ_MAIL_NEWS
ifdef MOZ_LDAP
BASIC_LIBS += $(DIST)/lib/libldapurl.a \
$(NULL)
endif
endif
ifdef MOZ_CALENDAR
BASIC_LIBS += \
$(DIST)/lib/libjulian.a \
$(DIST)/lib/libnscnv30.a \
$(DIST)/lib/libnsuni30.a \
$(DIST)/lib/libnsfmt30.a \
$(NULL)
endif
BASIC_LIBS += \
$(DIST)/lib/lib$(LITE_PREFIX)plug.a \
$(DIST)/lib/libutil.a \
$(DIST)/lib/libfont.a \
$(NULL)
ifndef NO_LAYERS
BASIC_LIBS += $(DIST)/lib/liblayer.a
endif
########################################################################
# Java
#
ifdef MOZ_JAVA
#
# Monolithic Java
#
BASIC_LIBS += \
$(DIST)/lib/lib$(LITE_PREFIX)applet.a \
$(DIST)/lib/libjrt.a \
$(DIST)/lib/libjmd.a \
$(NULL)
ifdef MOZ_EDITOR
BASIC_LIBS += $(DIST)/lib/libedtplug.a
endif
BASIC_LIBS += \
$(DIST)/lib/libnsn.a \
$(DIST)/lib/libnsc.a \
$(DIST)/lib/libjpw.a \
$(DIST)/lib/libzpw.a \
$(DIST)/lib/libiawt.a \
$(DIST)/lib/libmmedia.a \
$(DIST)/lib/libsoftupdate.a \
$(DIST)/lib/libprgrss.a \
$(DIST)/lib/libcon.a \
$(DIST)/lib/libjbn.a \
$(NULL)
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libjsl.a
endif
ifdef MOZ_MAIL_NEWS
BASIC_LIBS += $(DIST)/lib/libjsl.a
endif
BASIC_LIBS += $(DIST)/lib/libjrt.a
else # !MOZ_JAVA
#
# OJI
#
ifdef MOZ_OJI
BASIC_LIBS += $(DIST)/lib/liboji.a
ifdef NSJVM
ifdef MOZ_EDITOR
BASIC_LIBS += $(DIST)/lib/libedtplug.a
endif
BASIC_LIBS += $(DIST)/lib/libsoftupdate.a
else # !NSJVM
BASIC_LIBS += \
$(DIST)/lib/libstubsj.a \
$(DIST)/lib/libstubnj.a \
$(NULL)
endif # !NSJVM
BASIC_LIBS += $(DIST)/lib/libprgrss.a \
$(NULL)
else # !MOZ_OJI
# No Monolithic Java, no OJI, just stubs.
BASIC_LIBS += \
$(DIST)/lib/libstubsj.a \
$(DIST)/lib/libstubnj.a \
$(NULL)
endif # !MOZ_OJI
endif # !MOZ_JAVA
ifdef MOZ_NATIVE_ZLIB
BASIC_LIBS += -lz
BASIC_DSOS += -lz
else
# XXX To a DSO...
BASIC_LIBS += $(DIST)/lib/libzlib.a
BASIC_DSOS += -lzlib
endif
ifndef NO_MOCHA
# XXX To a DSO...
BASIC_LIBS += $(DIST)/lib/libjs.a
BASIC_DSOS += -ljs
ifdef JAVA_OR_OJI
BASIC_LIBS += $(DIST)/lib/libjsj.a
BASIC_DSOS += -ljsj
endif
BASIC_LIBS += $(DIST)/lib/libmocha.a
endif
# Post-Java libs
BASIC_LIBS += $(DIST)/lib/libstyle.a $(DIST)/lib/libreg.a
ifdef MOZ_SECURITY
BASIC_LIBS += $(DIST)/lib/libjar.a
else
EXPORT_LIB = $(DIST)/lib/libhtmldlgs.a $(DIST)/lib/libsecfree.a
endif
PLUGIN_DSO = $(DIST)/bin/libnullplugin.so
WEBFONT_DSO = $(DIST)/bin/libTrueDoc.so
ifndef MOZ_LITE
JSD_DSO = $(DIST)/bin/libjsd.$(DLL_SUFFIX)
endif
TARGETS += $(OBJDIR)/stubfe
ALL_TARGETS = $(TARGETS)
#######################################################################
include $(topsrcdir)/config/rules.mk
DEFINES += -DNEW_DECODERS
#######################################################################
#
# Set defaults for all platforms. Each OS_ARCH will override this if
# necessary.
#
ifdef BUILD_OFFICIAL
EXTRA_REL_FILES += $(DIST)/bin/vreg $(topsrcdir)/l10n/us/xp/bookmark.htm
endif
# Only SunOS4 needs two versions NIS and DNS.
NIS_SRC =
NIS_OBJS =
NIS_LIB =
DNS_LIB =
# Only SunOS4 needs separate YP versions.
NEED_YP_VERSION = 0
# Only BSDI, Linux, and SunOS4 need the nls directory.
NEED_NLS = 0
# Only SunOS5 (Solaris) has MCS.
MCS_CMD = true
# Only IRIX 5.x uses this.
EXTRA_POST_LINK_CMD = echo
EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(OTHER_LIBS) $(NSPR_LIBS)
EXPORT_DEPLIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIBS)
DSO_EX_LIBS = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
#######################################################################
#
# Adjust build based on OS_ARCH.
#
########################################
# IBM Machines
ifeq ($(OS_ARCH),AIX)
CCLD = svxlC -+
#LDFLAGS = -bGhooksyslibs -bGlibpathexec -bGnoproc
LDFLAGS = -bGnoproc
OTHER_LIBS =
US_LDFLAGS += $(AIX_NSPR_LINK)
EXPORT_LDFLAGS += $(AIX_NSPR_LINK)
FRANCE_LDFLAGS += $(AIX_NSPR_LINK)
# Grab the NSPR shared library and the "Patched especially for Netscape" version of libsvld.a
EXTRA_REL_FILES += $(AIX_NSPR) \
$(DEPTH)/config/AIX4.1_libsvld.a \
$(DEPTH)/config/AIX4.1_libc.a \
$(DEPTH)/config/AIX4.2_libc.a \
$(DEPTH)/config/AIX4.1_run_netscape
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
endif
########################################
# FreeBSD
ifeq ($(OS_ARCH),FreeBSD)
OTHER_LIBS = -lm $(OS_LIBS)
endif
########################################
# BSDI
ifeq ($(OS_ARCH),BSD_OS)
OTHER_LIBS = -lm $(OS_LIBS)
ifeq ($(OS_RELEASE),2.1)
OTHER_LIBS += -lipc
endif
NEED_NLS = 1
endif
########################################
# HP Machines
ifeq ($(OS_ARCH),HP-UX)
ifeq ($(OS_RELEASE),B.10)
INCLUDES += -I$(srcdir)
endif
HPUX_RESOURCE_HACK = -Wp,-H16384
OTHER_LIBS = -L$(DIST)/lib $(OS_LIBS)
ifdef MOZ_EDITOR
EXPORT_DEPLIBS += cxxlink-filter
US_DEPLIBS += cxxlink-filter
CCLD = CC -tl,./cxxlink-filter
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
#
# On HP, enable SHLIB_PATH
#
EXTRA_POST_LINK_CMD = chatr +s enable
endif
endif
########################################
# SGI Machines
ifeq ($(OS_ARCH),IRIX)
#
# Linker will report that '-lSgm' does not resolve any symbols, but it
# should not be removed. SGI dynamically opens the library depending on
# the setting of some resources (e.g. "useEnhancedFSB")
#
OTHER_LIBS = -lgen -laudio -lm $(OS_LIBS)
#
# On Irix, tag the executable for use by the Indigo Magic Desktop.
# This magic number comes from /usr/lib/filetype/install/netscape.ftr
# shipped by SGI along with their n.nnS version of Mozilla.
#
ifeq ($(OS_RELEASE),5)
EXTRA_POST_LINK_CMD = /usr/sbin/tag 67150
endif
#
# If we are using gtscc, we must use it as the linker, and we
# can only build statically (no shared libs).
#
CCLD = CC
ifdef USE_GTSCC
ifndef NO_GTSCC
CCLD = $(DIST)/bin/gtscc $(GTSCC_LD_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
TARGETS = $(OBJDIR)/stubfe
endif
endif
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
endif
########################################
# Linux
ifeq ($(OS_ARCH),Linux)
OTHER_LIBS = /usr/lib/libm.a -ldl
US_LDFLAGS += -lc
EXPORT_LDFLAGS += -lc
FRANCE_LDFLAGS += -lc
endif
########################################
# NCR SYSV 4.0
ifeq ($(OS_ARCH),NCR)
OTHER_LIBS = -lgen -lm $(OS_LIBS)
endif
########################################
# NEC SYSV 4.2
ifeq ($(OS_ARCH),NEC)
OTHER_LIBS = -lresolv -lgen -lm $(OS_LIBS)
endif
########################################
# Dec Machines
ifeq ($(OS_ARCH),OSF1)
# We would like to link OSF1 static.
# This is because of motif problems (BadMatch errors on non-default visual)
# on 3.2 and 3.0 (and not on 2.0).
# and you get warnings and core dump when pasting into Mozilla.
# Also, libXm must be dynamic, otherwise Japanese text widgets hang
# the process.
# What a delightful state of affairs. -- erik
OTHER_LIBS = -ldnet_stub -lm -lots $(OS_LIBS)
EXPORT_LDFLAGS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIBS) $(OTHER_LIBS)
FRANCE_LDFLAGS = $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) $(NSPR_LIBS) $(OTHER_LIBS)
US_LDFLAGS = $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) $(NSPR_LIBS) $(OTHER_LIBS)
ifdef MOZ_EDITOR
#
# OSF's cxx link command will link in _dynamic_ version of two C++
# libraries. This is bad, they are not shipped on a base system.
# So, we call this special hacked driver script to do the job.
#
# NOT TRUE FOR DIGITAL UNIX 4.0 OR GREATER
#CCLD = ./cxxlink-driver -cxx_platform OSF1 -cxx_command cxx
# Hack to add a dependency for executable.
#EXPORT_DEPLIBS += cxxlink-driver
#FRANCE_DEPLIBS += cxxlink-driver
#US_DEPLIBS += cxxlink-driver
# This will also work, but will probably break easily as more C++
# *features* get used (like static constructors - gasp!)
#CCLD = cc
#OTHER_LIBS += /usr/lib/cmplrs/cxx/libcxx.a /usr/lib/cmplrs/cxx/libexc.a
endif
endif
########################################
# SNI ReliantUNIX (SINIX)
ifeq ($(OS_ARCH),ReliantUNIX)
OTHER_LIBS = $(OS_LIBS)
endif
ifeq ($(OS_ARCH),SINIX-N)
OTHER_LIBS = $(OS_LIBS)
endif
########################################
# SCO OpenServer
ifeq ($(OS_ARCH),SCOOS)
OTHER_LIBS = -lm -lPW $(OS_LIBS)
ifdef NEED_XMOS
LIB_XMOS = $(OBJDIR)/Xmos.o
endif
endif
########################################
# Sun Machines
ifeq ($(OS_ARCH),SunOS)
ifeq ($(OS_RELEASE),4.1)
OTHER_LIBS =
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
ifdef MOZ_EDITOR
OTHER_LIBS += -L/tools/ns/lib
#
# Need this guy because the one in libg++.a is broken.
#
BASIC_LIBS += $(OBJDIR)/regex.o
$(OBJDIR)/regex.o: /lib/libc.a
ar x /lib/libc.a regex.o && mv regex.o $@
endif
#
# Need our own popen to fix the SunOS popen problem
#
BASIC_LIBS += $(OBJDIR)/popen.o
CSRCS += popen.c
US_LDFLAGS += -lm
EXPORT_LDFLAGS += -lm
FRANCE_LDFLAGS += -lm
# SunOS had 2 executables. Only the non-nis version need this
NIS_OBJS = $(OBJDIR)/dns-stub.o
NIS_SRCS = dns-stub.c
NIS_LIB = $(NIS_OBJS)
DNS_LIB = -lresolv
# For release only.
# This is only for SunOS as it has both nis and non-nis
# version of the browser packaged together.
EXTRA_EXPORT_OBJS = $(XFE_PROGNAME)-nis-export
EXTRA_FRANCE_OBJS = $(XFE_PROGNAME)-nis-france
EXTRA_US_OBJS = $(XFE_PROGNAME)-nis-us
EXTRA_NETEXPORT_OBJS = $(XFE_PROGNAME)-nis-net-export
NEED_YP_VERSION = 1
NEED_NLS = 1
endif
########################################
ifneq (,$(filter 5 5.5,$(OS_RELEASE)))
USRLIBDIR := /usr/openwin/lib
MCS_CMD = mcs -d
ifeq ($(CPU_ARCH),sparc)
OTHER_LIBS = $(OS_LIBS) -lgen -lresolv -lm
ifndef NO_WEBFONTS
EXTRA_REL_FILES += $(WEBFONT_DSO)
endif
else
OTHER_LIBS = $(OS_LIBS) -lm
LDFLAGS = $(NOMD_CFLAGS)
endif
OTHER_LIBS += -L/usr/dt/lib -lXm
US_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(US_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIBS)
EXPORT_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIBS)
FRANCE_LDFLAGS = -z defs -L$(USRLIBDIR) \
-R$(USRLIBDIR) $(BASIC_LIBS) $(FRANCE_LIB) $(BASIC_LIBS_2) \
$(OTHER_LIBS) $(NSPR_LIBS)
endif
endif
########################################
# SCO Unixware 2.1
ifeq ($(OS_ARCH),UNIXWARE)
ifdef NEED_XMOS
LIB_XMOS = $(OBJDIR)/Xmos.o
endif
OTHER_LIBS = -lm
US_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
EXPORT_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
FRANCE_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
endif
#######################################################################
# Rules to build the special MOZ_LITE *.o files
$(TARGETS): $(OBJS)
#
# I moved this to ns/config/rules.mk -mcafee
#
#######################################################################
# Rules to build resources
.SUFFIXES: .ad
stubfe: $(OBJDIR)/stubfe
$(OBJDIR)/stubfe: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
@$(MAKE_OBJDIR)
rm -f $@
$(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
@$(EXTRA_POST_LINK_CMD) $@
install:: $(TARGETS)
ifeq ($(OS_ARCH),AIX)
AIX_HACK := $(notdir $(AIX_NSPR))
# Install nspr dynamic library for AIX.
$(AIX_HACK): $(AIX_NSPR)
$(INSTALL) -m 644 $< .
endif
# Skip java50.jar creation
java50.jar:
export:: $(JAR_NAME)
$(VERSION_OBJS): versionn.h
everything: all $(ALL_TARGETS)
symbols:
@echo "TARGETS = $(TARGETS)"
@echo "RELEASES = $(RELEASES)"
@echo "OS_ARCH = $(OS_ARCH)"
@echo "OTHER_LIBS = $(OTHER_LIBS)

View File

@ -1,36 +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.
*/
#include "structs.h"
#include "ntypes.h"
#include "proto.h"
#include "net.h"
#include "plevent.h"
PRThread *mozilla_thread;
PREventQueue* mozilla_event_queue;
int
main(int argc,
char *argv)
{
URL_Struct *url;
MWContext *context = XP_NewContext();
url = NET_CreateURLStruct("http://www.netscape.com", NET_NORMAL_RELOAD);
}

View File

@ -1,206 +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.
*/
/*
stub_bm.c --- stub functions dealing with front-end
bookmarks handling.
*/
#include "structs.h"
#include "ntypes.h"
#include "bkmks.h"
/* The list of bookmarks has changed somehow, so any "bookmarks" menu needs to
be recreated. This should be a cheap call, just setting a flag in the FE so
that it knows to recreate the menu later (like, when the user tries to view
it). Recreating it immediately would be bad, because this can get called
much more often than is reasonable. */
void
BMFE_BookmarkMenuInvalid(MWContext* context)
{
}
/* Edit the given item in the bookmarks property window. If there is no
bookmarks property window currently, then the FE should ignore this call.
If the bookmarks property window is currently displaying some other entry,
then it should save any changes made to that entry (by calling BM_SetName,
etc.) before loading up this entry. */
void
BMFE_EditItem(MWContext* context,
BM_Entry* entry)
{
}
/* Use these to know when to allow refresh */
void
BMFE_StartBatch(MWContext* context)
{
}
void
BMFE_EndBatch(MWContext* context)
{
}
/* The given entry is no longer valid (i.e., the user just deleted it). So,
the given pointer is about to become invalid, and the FE should remove any
references to it it may have. In particular, if it is the one being edited
in the bookmarks property window, then the FE should clear that window. */
void
BMFE_EntryGoingAway(MWContext* context,
BM_Entry* entry)
{
}
/* We've finished processing What's Changed. The What's Changed window should
change to display the summary of what happened. It should look something
like this:
Done checking <157> Bookmarks.
<134> documents were reached.
<27> documents have changed and are marked in blue.
[ OK ]
When the user clicks on the OK, the FE should just take down the window.
(It doesn't matter if the FE calls BM_CancelWhatsChanged(); it will be a
no-op in this situtation.) */
void
BMFE_FinishedWhatsChanged(MWContext* context,
int32 totalchecked,
int32 numreached,
int32 numchanged)
{
}
/* return the clipboard contents */
void*
BMFE_GetClipContents(MWContext* context,
int32* length)
{
}
/* The user has requested to view the given url. Show it to him in, using some
appropriate context. Url may be targeted to a different window */
void
BMFE_GotoBookmark(MWContext* context,
const char* url,
const char* target)
{
}
/* measure the item and assign the width and height required to draw it into
the widget into width and height. This is used only by BM_WidestEntry(); if
you don't need that call, you can just make this an empty stub. */
void
BMFE_MeasureEntry(MWContext* context,
BM_Entry* entry,
uint32* width,
uint32* height)
{
}
/* Create the bookmarks property window. If one already exists, just bring it
to the front. This will always be immediately followed by a call to
BMFE_EditItem(). */
void
BMFE_OpenBookmarksWindow(MWContext* context)
{
}
/* Create the find dialog, and fill it in as specified in the given
structure. When the user hits the "Find" button in the dialog, call
BM_DoFindBookmark. */
void*
BMFE_OpenFindWindow(MWContext* context,
BM_FindInfo* findInfo)
{
}
/* Refresh each cell between and including first and last in the bookmarks
widget (if now is TRUE, the FE is expected to redraw them BEFORE returning,
otherwise the FE can simply invalidate them and wait for the redraw to
happen). If BM_LAST_CELL is passed in as last, then it means paint from
the first to the end. */
void
BMFE_RefreshCells(MWContext* context,
int32 first,
int32 last,
XP_Bool now)
{
}
/* Make sure that the given entry is visible. */
void
BMFE_ScrollIntoView(MWContext* context,
BM_Entry* entry)
{
}
/* Save the given bucket o' bits as the clipboard. This same bucket needs to
be returned later if BMFE_GetClipContents() is called. */
void
BMFE_SetClipContents(MWContext* context,
void* buffer,
int32 length)
{
}
/* Resize the widget to accomodate "visibleCount" number of entries vertically
and the width of widest entry the actual widget should NOT change size, just
the size of the scrollable area under it */
void
BMFE_SyncDisplay(MWContext* context)
{
}
/* We're in the process of doing a What's Changed operation. The What's
Changed window should update to display the URL, the percentage (calculate
as done*100/total), and the total estimated time (given here as a
pre-formatted string). The What's Changed window should end up looking
something like this:
Checking <URL>... (<13> left)
{===================== } (progress bar)
Estimated time remaining: <2 hours 13 minutes>
(Remaining time depends on the sites selected and
the network traffic).
[ Cancel ]
It's up to the FE to notice the first time this is called and change its
window to display the info instead of the initial What's Changed screen.
If the user ever hits Cancel (or does something equivilant, like destroys
the window), the FE must call BM_CancelWhatsChanged(). */
void
BMFE_UpdateWhatsChanged(MWContext* context,
const char* url, /* If NULL, just display
"Checking..." */
int32 done,
int32 total,
const char* totaltime)
{
}

View File

@ -1,720 +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,
URL_Struct *url_s)
{
}
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()
{
}

View File

@ -1,250 +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
FE_AskStreamQuestion(MWContext * window_id)
{
}
ED_CharsetEncode
FE_EncodingDialog(MWContext* context, char* newCharset)
{
}

View File

@ -1,168 +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.
*/
/*
stubedit.c --- stub functions for fe
specific editor stuff.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "edttypes.h"
#include "edt.h"
void
FE_DisplayTextCaret(MWContext* context,
int loc,
LO_TextStruct* text_data,
int char_offset)
{
}
void
FE_DisplayImageCaret(MWContext* context,
LO_ImageStruct* pImageData,
ED_CaretObjectPosition caretPos)
{
}
void
FE_DisplayGenericCaret(MWContext* context,
LO_Any* pLoAny,
ED_CaretObjectPosition caretPos)
{
}
Bool
FE_GetCaretPosition(MWContext* context,
LO_Position* where,
int32* caretX,
int32* caretYLow,
int32* caretYHigh)
{
}
void
FE_DestroyCaret(MWContext* pContext)
{
}
void
FE_ShowCaret(MWContext* pContext)
{
}
void
FE_DocumentChanged(MWContext* context,
int32 iStartY,
int32 iHeight)
{
}
MWContext*
FE_CreateNewEditWindow(MWContext* pContext,
URL_Struct* pURL)
{
}
char*
FE_URLToLocalName(char* url)
{
}
void
FE_EditorDocumentLoaded(MWContext* context)
{
}
void
FE_GetDocAndWindowPosition(MWContext * context,
int32 *pX,
int32 *pY,
int32 *pWidth,
int32 *pHeight)
{
}
void
FE_SetNewDocumentProperties(MWContext* context)
{
}
Bool
FE_CheckAndSaveDocument(MWContext* context)
{
}
Bool
FE_CheckAndAutoSaveDocument(MWContext *context)
{
}
void
FE_FinishedSave(MWContext* context,
int status,
char *pDestURL,
int iFileNumber)
{
}
char *
XP_BackupFileName (const char *url)
{
}
Bool
XP_ConvertUrlToLocalFile (const char *url,
char **localName)
{
}
void
FE_ImageLoadDialog(MWContext* context)
{
}
void
FE_ImageLoadDialogDestroy(MWContext* context)
{
}
void
FE_DisplayAddRowOrColBorder(MWContext * pMWContext,
XP_Rect *pRect,
XP_Bool bErase)
{
}
void
FE_DisplayEntireTableOrCell(MWContext * pMWContext,
LO_Element * pLoElement)
{
}
FE_AlternateCompose(char * from, char * reply_to, char * to,
char * cc, char * bcc,
char * fcc, char * newsgroups, char * followup_to,
char * organization, char * subject, char * references,
char * other_random_headers, char * priority,
char * attachment, char * newspost_url, char * body)
{
}

View File

@ -1,30 +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.
*/
#include "libi18n.h"
char **fe_encoding_extensions = 0; /* gag. used by mkcache.c. */
INTLCharSetID
FE_GetCharSetID(INTL_CharSetID_Selector selector)
{
}

View File

@ -1,199 +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.
*/
/*
stubform.c --- stub functions dealing with front-end
handling of form elements.
*/
#include "stubform.h"
/*
** FE_GetFormElementInfo - create the FE representation of a form
** element.
**
** Note : This method can be called more than once for the same front
** end form element.
**
** In those cases we don't reallocate the FEData*, and also don't
** recreate the widget, but we do set the form and context pointers in
** FEData, and we call the get_size method.
**
** Two cases I know of where layout calls this function more than once
** are: 1) when laying out a table with form elements in it -- layout
** moves our fe data over to a new LO_FormElementStruct. So, you
** should always sync up pointers to the LO_FormElementStruct
** contained in your fe data. 2) when we're on a page with frames in
** it and the user goes back and forth. In this case, the context is
** different, so you always need to sync that up as well.
**
** Also, layout could have told us to hide the widget without freeing
** our fe_data* (this happens when hide is TRUE in
** FE_GetFormElementValue.) In this case, we need to do anything
** necessary to show the widget again.
**
** Also, this routine is responsible for setting the initial value of
** the form element.
**
** yuck. :)
*/
void
STUBFE_GetFormElementInfo (MWContext * context,
LO_FormElementStruct * form_element)
{
}
/*
** FE_GetFormElementValue - copy the value inside the fe
** representation into the FormElementStruct.
**
** if hide is TRUE, hide the form element after doing the copy. In
** the XFE, hide is taken to mean "delete" - so, if hide is TRUE, the
** XFE deletes the form element widget. This is not strictly
** necessary, as you are guaranteed to have FE_FreeFormElement if the
** form element is *really* going away.
**
** But, given that this is called with hide == TRUE in the face of
** going back and forth in frame documents, it's probably safer to
** always delete the widget when hide == TRUE, as the widget's parent
** is destroyed and recreated.
*/
void
STUBFE_GetFormElementValue (MWContext * context,
LO_FormElementStruct * form_element,
XP_Bool hide)
{
}
/*
** FE_ResetFormElement - reset the value of the form element to the default
** value stored in the LO_FormElementStruct.
*/
void
STUBFE_ResetFormElement (MWContext * context,
LO_FormElementStruct * form_element)
{
}
/*
** FE_SetFormElementToggle - set the toggle or radio button's state to
** the toggle parameter.
**
** only called on CHECKBOX and RADIO form elements.
*/
void
STUBFE_SetFormElementToggle (MWContext * context,
LO_FormElementStruct * form_element,
XP_Bool toggle)
{
}
/*
** FE_FreeFormElement - free up all memory associated with the front
** end representation for this form element.
*/
void
FE_FreeFormElement(MWContext *context,
LO_FormElementData *form)
{
}
/*
** FE_BlurInputElement - force input to be defocused from the given
** element. It's ok if the element didn't have the input focus.
*/
void
FE_BlurInputElement(MWContext *context,
LO_Element *element)
{
}
/*
** FE_FocusInputElement - force input to be focused on the given element.
** It's ok if the element already has the input focus.
*/
void
FE_FocusInputElement(MWContext *context,
LO_Element *element)
{
}
/*
** FE_SelectInputElement - select the contents of a form element.
**
** Only called on TEXT, TEXTAREA, PASSWORD, and FILE form elements (anything
** with text in it.)
**
** This function should select the entire text contained in the FE widget.
*/
void
FE_SelectInputElement(MWContext *context,
LO_Element *element)
{
}
/*
** FE_ClickInputElement - Simulate a click on a form element.
**
** Note: This function also handles clicks on HREF anchored LO_IMAGE
** and LO_TEXT LO_Elements. In these cases, this function should
** simulate a user clicking on the LO_Element in question.
*/
void
FE_ClickInputElement(MWContext *context,
LO_Element *element)
{
}
/*
** FE_ChangeInputElement - handle change in form element value(s)
**
** This function should update the front end value for a given form
** element, including (in the case of TEXT-like elements) just the
** value, or (in the case of SELECT elements) both the list of
** allowable values as well as the selected value.
*/
void
FE_ChangeInputElement(MWContext *context,
LO_Element *element)
{
}
/*
** FE_SubmitInputElement -
**
** Tell the FE that a form is being submitted without a UI gesture indicating
** that fact, i.e., in a Mocha-automated fashion ("document.myform.submit()").
** The FE is responsible for emulating whatever happens when the user hits the
** submit button, or auto-submits by typing Enter in a single-field form.
*/
void
FE_SubmitInputElement(MWContext *context,
LO_Element *element)
{
}
int
FE_ClickAnyElement(MWContext *context,
LO_Element *element,
int haveXY,
int32 xx,
int32 yy)
{
}

View File

@ -1,32 +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.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
XP_BEGIN_PROTOS
extern void STUBFE_GetFormElementInfo (MWContext * context, LO_FormElementStruct * form_element);
extern void STUBFE_GetFormElementValue (MWContext * context, LO_FormElementStruct * form_element,
XP_Bool hide);
extern void STUBFE_ResetFormElement (MWContext * context, LO_FormElementStruct * form_element);
extern void STUBFE_SetFormElementToggle (MWContext * context, LO_FormElementStruct * form_element,
XP_Bool toggle);
XP_END_PROTOS

View File

@ -1,79 +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.
*/
/*
stubgrid.c --- stub fe handling of Grid windows
(FRAMESET's and FRAME).
*/
#include "structs.h"
#include "ntypes.h"
#include "xpassert.h"
#include "proto.h"
#include "fe_proto.h"
void
FE_LoadGridCellFromHistory(MWContext *context,
void *hist,
NET_ReloadMethod force_reload)
{
}
void*
FE_FreeGridWindow(MWContext *context,
XP_Bool save_history)
{
}
void
FE_RestructureGridWindow(MWContext *context,
int32 x,
int32 y,
int32 width,
int32 height)
{
}
MWContext *
FE_MakeGridWindow(MWContext *old_context,
void *hist_list,
void *history,
int32 x,
int32 y,
int32 width,
int32 height,
char *url_str,
char *window_name,
int8 scrolling,
NET_ReloadMethod force_reload,
Bool no_edge)
{
}
void
FE_GetFullWindowSize(MWContext *context,
int32 *width,
int32 *height)
{
}
void
FE_GetEdgeMinSize(MWContext *context,
int32 *size)
{
}

View File

@ -1,34 +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.
*/
/*
stubhelp.c --- stub fe stuff for NetHelp.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
char *
FE_GetNetHelpDir()
{
}
MWContext *
FE_GetNetHelpContext()
{
}

View File

@ -1,97 +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.
*/
/*
stubimg.c --- stub functions for fe
specific images stuff.
*/
#define JMC_INIT_IMGCB_ID
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "libimg.h"
#include "il_util.h"
#include "prtypes.h"
JMC_PUBLIC_API(void)
_IMGCB_init(struct IMGCB* self, JMCException* *exception)
{
}
JMC_PUBLIC_API(void*)
_IMGCB_getBackwardCompatibleInterface(struct IMGCB* self,
const JMCInterfaceID* iid,
JMCException* *exception)
{
}
JMC_PUBLIC_API(void)
_IMGCB_NewPixmap(IMGCB* img_cb, jint op, void *dpy_cx, jint width, jint height,
IL_Pixmap *image, IL_Pixmap *mask)
{
}
JMC_PUBLIC_API(void)
_IMGCB_UpdatePixmap(IMGCB* img_cb, jint op, void* dpy_cx, IL_Pixmap* pixmap,
jint x_offset, jint y_offset, jint width, jint height)
{
}
JMC_PUBLIC_API(void)
_IMGCB_ControlPixmapBits(IMGCB* img_cb, jint op, void* dpy_cx,
IL_Pixmap* pixmap, IL_PixmapControl message)
{
}
JMC_PUBLIC_API(void)
_IMGCB_DestroyPixmap(IMGCB* img_cb, jint op, void* dpy_cx, IL_Pixmap* pixmap)
{
}
JMC_PUBLIC_API(void)
_IMGCB_DisplayPixmap(struct IMGCB* self, jint op, void* a, IL_Pixmap* b,
IL_Pixmap* c, jint d, jint e, jint f, jint g,
jint h, jint i, jint j, jint k)
{
}
JMC_PUBLIC_API(void)
_IMGCB_GetIconDimensions(IMGCB* img_cb, jint op, void* dpy_cx, int* width,
int* height, jint icon_number)
{
}
JMC_PUBLIC_API(void)
_IMGCB_DisplayIcon(IMGCB* img_cb, jint op, void* dpy_cx, jint x, jint y,
jint icon_number)
{
}
/* Mocha image group observer callback. */
void
FE_MochaImageGroupObserver(XP_Observable observable, XP_ObservableMsg message,
void *message_data, void *closure)
{
}
IMGCB *
IMGCBFactory_Create(JMCException* *exception)
{
}

View File

@ -1,54 +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.
*/
/*
stubedit.c --- stub functions for fe
specific editor stuff.
*/
#include "libimg.h" /* Image Library public API. */
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "lo_ele.h"
void
FE_ReleaseTextAttrFeData(MWContext *context,
LO_TextAttr *attr)
{
}
PRBool
FE_HandleLayerEvent(MWContext *context,
CL_Layer *layer,
CL_Event *event)
{
}
PRBool
FE_HandleEmbedEvent(MWContext *context,
LO_EmbedStruct *embed,
CL_Event *event)
{
}
void
FE_ShowMinibuffer(MWContext *context)
{
}

View File

@ -1,108 +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.
*/
/*
stubloc.c --- stub fe handling of locale specific stuff.
*/
#include "xplocale.h"
#include "structs.h"
#include "ntypes.h"
#include "xpassert.h"
#include "proto.h"
#include "fe_proto.h"
#include "libi18n.h"
#include "csid.h"
/*
** FE_StrfTime - format a struct tm to a character string, depending
** on the value of the format parameter.
**
** Values for format (and their mapping to unix strftime format
** strings) include:
**
** XP_TIME_FORMAT - "%H:%M"
** XP_WEEKDAY_TIME_FORMAT - "%a %H:%M"
** XP_DATE_TIME_FORMAT - "%x %H:%M"
** XP_LONG_DATE_TIME_FORMAT - "%c"
** anything else - "%c"
*/
size_t
FE_StrfTime(MWContext *context,
char *result,
size_t maxsize,
int format,
const struct tm *timeptr)
{
}
/*
** FE_StrColl - call into the platform specific strcoll function.
**
** Make sure strcoll() or equivalent works properly. For example,
** the XFE has a check to make sure it does work, and if it doesn't
** it defaults to strcasecmp.
*/
int
FE_StrColl(const char *s1, const char *s2)
{
}
/*
** INTL_ResourceCharSet - return the ascii name for the locale's
** character set id.
**
** Use INTL_CharSetIDToName to retrieve the name given a CSID.
**
** Note: This is a silly function, IMO. It should just return the
** CSID, and the libi18n stuff could convert it to a name if it wants
** to.
*/
char *
INTL_ResourceCharSet()
{
}
/*
** INTL_DefaultDocCharSetID - return the default character set id for
** a given context.
**
** It should first try to extract the csid from the document being shown in
** the context. using LO_GetDocumentCharacterSetInfo and INTL_GetCSIDocCSID.
**
** If this fails, and the user has specified an encoding (using the View|Encoding
** menu, is should return the CSID for that.
**
** Otherwise, it should return the FE's default preference for CSID.
*/
int16
INTL_DefaultDocCharSetID(MWContext *cxt)
{
}
/*
** INTL_Relayout - relayout a given context, as the character encoding
** has changed.
*/
void
INTL_Relayout(MWContext *pContext)
{
}

View File

@ -1,199 +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.
*/
/*
stubmail.c --- stub functions for fe
specific mail/news stuff.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "msgcom.h"
#include "addrbook.h"
#include "dirprefs.h"
const char*
FE_UsersMailAddress()
{
}
const char*
FE_UsersFullName()
{
}
const char *
FE_UsersOrganization()
{
}
const char*
FE_UsersSignature()
{
}
void
FE_ListChangeStarting(MSG_Pane* pane,
XP_Bool asynchronous,
MSG_NOTIFY_CODE notify,
MSG_ViewIndex where,
int32 num)
{
}
void
FE_ListChangeFinished(MSG_Pane* pane,
XP_Bool asynchronous,
MSG_NOTIFY_CODE notify,
MSG_ViewIndex where,
int32 num)
{
}
void
FE_PaneChanged(MSG_Pane *pane,
XP_Bool asynchronous,
MSG_PANE_CHANGED_NOTIFY_CODE notify_code,
int32 value)
{
}
char*
FE_GetTempFileFor(MWContext* context,
const char* fname,
XP_FileType ftype,
XP_FileType* rettype)
{
}
void
FE_UpdateBiff(MSG_BIFF_STATE state)
{
}
uint32
FE_DiskSpaceAvailable (MWContext* context,
const char* dir)
{
}
MSG_Pane*
FE_CreateCompositionPane(MWContext* old_context,
MSG_CompositionFields* fields,
const char* initialText,
MSG_EditorType editorType)
{
}
void
FE_UpdateCompToolbar(MSG_Pane* comppane)
{
}
void
FE_DestroyMailCompositionContext(MWContext* context)
{
}
MWContext*
FE_GetAddressBookContext(MSG_Pane* pane,
XP_Bool viewnow)
{
}
ABook*
FE_GetAddressBook(MSG_Pane* pane)
{
}
int
FE_ShowPropertySheetFor (MWContext* context,
ABID entryID,
PersonEntry* pPerson)
{
}
XP_List*
FE_GetDirServers(void)
{
}
MSG_Master*
FE_GetMaster()
{
}
XP_Bool
FE_IsAltMailUsed(MWContext* context)
{
}
XP_Bool
FE_CreateSubscribePaneOnHost(MSG_Master* master,
MWContext* parentContext,
MSG_Host* host)
{
}
const char *
FE_UsersRealMailAddress()
{
}
void
FE_RememberPopPassword(MWContext* context,
const char* password)
{
}
XP_Bool
FE_NewsDownloadPrompt(MWContext *context,
int32 numMessagesToDownload,
XP_Bool *downloadAll)
{
}
void
FE_MsgShowHeaders(MSG_Pane *pPane,
MSG_HEADER_SET mhsHeaders)
{
}
/* If we're set up to deliver mail/news by running a program rather
than by talking to SMTP/NNTP, this does it.
Returns positive if delivery via program was successful;
Returns negative if delivery failed;
Returns 0 if delivery was not attempted (in which case we
should use SMTP/NNTP instead.)
$NS_MSG_DELIVERY_HOOK names a program which is invoked with one argument,
a tmp file containing a message. (Lines are terminated with CRLF.)
This program is expected to parse the To, CC, BCC, and Newsgroups headers,
and effect delivery to mail and/or news. It should exit with status 0
iff successful.
#### This really wants to be defined in libmsg, but it wants to
be able to use fe_perror, so...
*/
int
msg_DeliverMessageExternally(MWContext *context, const char *msg_file)
{
}

View File

@ -1,48 +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.
*/
#include "fe_proto.h"
void
fe_GetProgramDirectory(char *path, int len)
{
}
void
FEU_StayingAlive(void)
{
}
XP_Bool
FE_GetLabelAndMnemonic(char* name, char** str, void* v_xm_str, void* v_mnemonic)
{
}
char *fe_GetConfigDir()
{
}
char *fe_GetConfigDirFilename(char *filename)
{
}

View File

@ -1,65 +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.
*/
/*
stubplug.c --- stub functions for fe
specific plugin stuff.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "nppg.h"
void
FE_RegisterPlugins()
{
}
NPPluginFuncs*
FE_LoadPlugin(void *plugin,
NPNetscapeFuncs *funcs,
struct _np_handle* handle)
{
}
void
FE_UnloadPlugin(void *plugin, struct _np_handle* handle)
{
}
void
FE_EmbedURLExit(URL_Struct *urls,
int status,
MWContext *cx)
{
}
void
FE_ShowScrollBars(MWContext *context,
XP_Bool show)
{
}
NPError
FE_PluginGetValue(void *pdesc,
NPNVariable variable,
void *r_value)
{
}

View File

@ -1,42 +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.
*/
/*
stubps.c --- stub functions for fe
specific ps printing stuff.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
/* Get the dimensions of an icon in pixels for the PostScript front end. */
extern void
FE_GetPSIconDimensions(int icon_number,
int *width,
int *height)
{
}
/* Fill in the bits of an icon for the PostScript front end. */
extern XP_Bool
FE_GetPSIconData(int icon_number,
IL_Pixmap *image,
IL_Pixmap *mask)
{
}

View File

@ -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.
*/
/*
stubrdf.c --- stub functions for fe
specific rdf stuff.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
MWContext*
FE_GetRDFContext()
{
}

View File

@ -1,123 +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.
*/
/* stubrgn.c --- stub functions dealing with front-end */
#include "fe_rgn.h"
FE_Region
FE_CreateRegion()
{
}
FE_Region
FE_CreateRectRegion(XP_Rect *rect)
{
}
void
FE_DestroyRegion(FE_Region region)
{
}
FE_Region
FE_CopyRegion(FE_Region src,
FE_Region dst)
{
}
FE_Region
FE_SetRectRegion(FE_Region region,
XP_Rect *rect)
{
}
void
FE_IntersectRegion(FE_Region src1,
FE_Region src2,
FE_Region dst)
{
}
void
FE_UnionRegion(FE_Region src1,
FE_Region src2,
FE_Region dst)
{
}
void
FE_SubtractRegion(FE_Region src1,
FE_Region src2,
FE_Region dst)
{
}
XP_Bool
FE_IsEmptyRegion(FE_Region region)
{
}
void
FE_GetRegionBoundingBox(FE_Region region,
XP_Rect *bbox)
{
}
XP_Bool
FE_IsEqualRegion(FE_Region rgn1,
FE_Region rgn2)
{
}
void
FE_OffsetRegion(FE_Region region,
int32 xOffset,
int32 yOffset)
{
}
XP_Bool
FE_RectInRegion(FE_Region region,
XP_Rect *rect)
{
}
/* For each rectangle that makes up this region, call the func */
void
FE_ForEachRectInRegion(FE_Region region,
FE_RectInRegionFunc func,
void * closure)
{
}
#ifdef DEBUG
void
FE_HighlightRect(void *context,
XP_Rect *rect,
int how_much)
{
}
void
FE_HighlightRegion(void *context,
FE_Region region,
int how_much)
{
}
#endif /* DEBUG */

View File

@ -1,42 +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.
*/
/* stubsec.c --- stub fe handling of FE security related stuff. */
#include "structs.h"
#include "ntypes.h"
#include "xpassert.h"
#include "proto.h"
#include "fe_proto.h"
Bool
FE_SecurityDialog(MWContext* context,
int message,
XP_Bool* prefs_toggle)
{
}
void
FE_SecurityOptionsChanged(MWContext *context)
{
}
void
FE_SetPasswordEnabled(MWContext *context, PRBool usePW)
{
}

View File

@ -1,28 +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.
*/
/* stubstr.c --- stub fe handling of string id's */
#include "ntypes.h"
extern char *XP_GetBuiltinString(int16 i);
char *
XP_GetString(int16 i)
{
}

View File

@ -1,52 +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.
*/
/* stubtime.c --- stub functions dealing with front-end
timers and timeouts.
*/
#include "xp_core.h"
#include "structs.h"
#include "ntypes.h"
#include "fe_proto.h"
/*
** FE_SetTimeout - Do whatever needs to be done to register a timeout to happen
** after msecs milliseconds.
**
** This function should return some unique ID for the timeout, or NULL
** if some operation fails.
**
** once the timeout has fired, it should not be fired again until
** re-registered. That is, if the FE maintains a list of timeouts, it
** should remove the timeout after it's fired.
*/
void*
FE_SetTimeout(TimeoutCallbackFunction func,
void *closure,
uint32 msecs)
{
}
/*
** FE_ClearTimeout - Do whatever needs to happen to unregister a
** timeout, given it's ID.
*/
void
FE_ClearTimeout(void *timer_id)
{
}