From 1ee20e4e32c5a877c117e8a12ee7b456821b7689 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Wed, 21 Feb 2001 01:13:03 +0000 Subject: [PATCH] First checked in; not yet part of the build. git-svn-id: svn://10.0.0.236/trunk@87529 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/content/public/MANIFEST | 5 + .../content/xul/content/public/Makefile.in | 39 ++++++ .../content/xul/content/public/makefile.win | 33 +++++ mozilla/content/xul/document/Makefile.in | 32 +++++ mozilla/content/xul/document/makefile.win | 26 ++++ mozilla/content/xul/document/public/MANIFEST | 11 ++ .../content/xul/document/public/Makefile.in | 45 +++++++ .../content/xul/document/public/makefile.win | 42 +++++++ mozilla/content/xul/document/src/Makefile.in | 44 +++++++ mozilla/content/xul/document/src/makefile.win | 70 +++++++++++ mozilla/content/xul/templates/makefile.win | 26 ++++ mozilla/content/xul/templates/public/MANIFEST | 5 + .../content/xul/templates/public/Makefile.in | 39 ++++++ .../content/xul/templates/public/makefile.win | 37 ++++++ mozilla/content/xul/templates/src/Makefile.in | 44 +++++++ .../content/xul/templates/src/makefile.win | 62 +++++++++ .../xul/templates/src/nsXULContentUtils.h | 119 ++++++++++++++++++ mozilla/dom/public/idl/xul/Makefile.in | 62 +++++++++ mozilla/dom/public/idl/xul/makefile.win | 59 +++++++++ mozilla/dom/public/xul/makefile.win | 37 ++++++ mozilla/dom/src/xul/makefile.win | 57 +++++++++ 21 files changed, 894 insertions(+) create mode 100644 mozilla/content/xul/content/public/MANIFEST create mode 100644 mozilla/content/xul/content/public/Makefile.in create mode 100644 mozilla/content/xul/content/public/makefile.win create mode 100644 mozilla/content/xul/document/Makefile.in create mode 100644 mozilla/content/xul/document/makefile.win create mode 100644 mozilla/content/xul/document/public/MANIFEST create mode 100644 mozilla/content/xul/document/public/Makefile.in create mode 100644 mozilla/content/xul/document/public/makefile.win create mode 100644 mozilla/content/xul/document/src/Makefile.in create mode 100644 mozilla/content/xul/document/src/makefile.win create mode 100644 mozilla/content/xul/templates/makefile.win create mode 100644 mozilla/content/xul/templates/public/MANIFEST create mode 100644 mozilla/content/xul/templates/public/Makefile.in create mode 100644 mozilla/content/xul/templates/public/makefile.win create mode 100644 mozilla/content/xul/templates/src/Makefile.in create mode 100644 mozilla/content/xul/templates/src/makefile.win create mode 100644 mozilla/content/xul/templates/src/nsXULContentUtils.h create mode 100644 mozilla/dom/public/idl/xul/Makefile.in create mode 100644 mozilla/dom/public/idl/xul/makefile.win create mode 100644 mozilla/dom/public/xul/makefile.win create mode 100644 mozilla/dom/src/xul/makefile.win diff --git a/mozilla/content/xul/content/public/MANIFEST b/mozilla/content/xul/content/public/MANIFEST new file mode 100644 index 00000000000..fba84559208 --- /dev/null +++ b/mozilla/content/xul/content/public/MANIFEST @@ -0,0 +1,5 @@ +nsIXULPopupListener.h +nsIXULContent.h + + + diff --git a/mozilla/content/xul/content/public/Makefile.in b/mozilla/content/xul/content/public/Makefile.in new file mode 100644 index 00000000000..ffe29dd5898 --- /dev/null +++ b/mozilla/content/xul/content/public/Makefile.in @@ -0,0 +1,39 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = rdf + +EXPORTS = \ + nsIXULPopupListener.h \ + nsIXULContent.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/content/xul/content/public/makefile.win b/mozilla/content/xul/content/public/makefile.win new file mode 100644 index 00000000000..32709055cf2 --- /dev/null +++ b/mozilla/content/xul/content/public/makefile.win @@ -0,0 +1,33 @@ +#!gmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + + +MODULE=xul + +DEPTH=..\..\..\.. + +EXPORTS = \ + nsIXULPopupListener.h \ + nsIXULContent.h \ + $(NULL) + +include <$(DEPTH)/config/rules.mak> + diff --git a/mozilla/content/xul/document/Makefile.in b/mozilla/content/xul/document/Makefile.in new file mode 100644 index 00000000000..0b4d2a90ab5 --- /dev/null +++ b/mozilla/content/xul/document/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/content/xul/document/makefile.win b/mozilla/content/xul/document/makefile.win new file mode 100644 index 00000000000..09d593e23d0 --- /dev/null +++ b/mozilla/content/xul/document/makefile.win @@ -0,0 +1,26 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS=public src + +include <$(DEPTH)\config\rules.mak> diff --git a/mozilla/content/xul/document/public/MANIFEST b/mozilla/content/xul/document/public/MANIFEST new file mode 100644 index 00000000000..b45df4e71af --- /dev/null +++ b/mozilla/content/xul/document/public/MANIFEST @@ -0,0 +1,11 @@ +nsIStreamLoadableDocument.h +nsIXULContentSink.h +nsIXULContentUtils.h +nsIXULDocument.h +nsIXULPopupListener.h +nsIXULPrototypeCache.h +nsIXULPrototypeDocument.h +nsIXULContent.h + + + diff --git a/mozilla/content/xul/document/public/Makefile.in b/mozilla/content/xul/document/public/Makefile.in new file mode 100644 index 00000000000..ed8cf9d52f8 --- /dev/null +++ b/mozilla/content/xul/document/public/Makefile.in @@ -0,0 +1,45 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = rdf + +EXPORTS = \ + nsIStreamLoadableDocument.h \ + nsIXULContentSink.h \ + nsIXULContentUtils.h \ + nsIXULDocument.h \ + nsIXULPopupListener.h \ + nsIXULPrototypeCache.h \ + nsIXULPrototypeDocument.h \ + nsIXULContent.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/content/xul/document/public/makefile.win b/mozilla/content/xul/document/public/makefile.win new file mode 100644 index 00000000000..1096949e04f --- /dev/null +++ b/mozilla/content/xul/document/public/makefile.win @@ -0,0 +1,42 @@ +#!gmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + + +MODULE=xul + +DEPTH=..\..\..\.. + +XPIDLSRCS = \ + .\nsIController.idl \ + .\nsIControllers.idl \ + .\nsIControllerCommand.idl \ + .\xulstubs.idl \ + $(NULL) + +EXPORTS = \ + nsIXULContentSink.h \ + nsIXULDocument.h \ + nsIXULPrototypeCache.h \ + nsIXULPrototypeDocument.h \ + $(NULL) + +include <$(DEPTH)/config/rules.mak> + diff --git a/mozilla/content/xul/document/src/Makefile.in b/mozilla/content/xul/document/src/Makefile.in new file mode 100644 index 00000000000..a689333af3c --- /dev/null +++ b/mozilla/content/xul/document/src/Makefile.in @@ -0,0 +1,44 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = layout +LIBRARY_NAME = gkxulcon_s +REQUIRES = xpcom + +CPPSRCS = nsXULAtoms.cpp + +# we don't want the shared lib, but we want to force the creation of a static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +include $(topsrcdir)/config/rules.mk + +DEFINES += -D_IMPL_NS_HTML + +INCLUDES += -I$(srcdir)/../../../base/src + diff --git a/mozilla/content/xul/document/src/makefile.win b/mozilla/content/xul/document/src/makefile.win new file mode 100644 index 00000000000..96ec6726d85 --- /dev/null +++ b/mozilla/content/xul/document/src/makefile.win @@ -0,0 +1,70 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\..\.. + +LIBRARY_NAME=contentxuldocument_s +MODULE=raptor + +DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN + +CPPSRCS= \ + nsControllerCommandManager.cpp \ + nsElementMap.cpp \ + nsXULCommandDispatcher.cpp \ + nsXULContentSink.cpp \ + nsXULControllers.cpp \ + nsXULDocument.cpp \ + nsXULPrototypeCache.cpp \ + nsXULPrototypeDocument.cpp \ + $(NULL) + +CPP_OBJS= \ + .\$(OBJDIR)\nsControllerCommandManager.obj \ + .\$(OBJDIR)\nsElementMap.obj \ + .\$(OBJDIR)\nsXULCommandDispatcher.obj \ + .\$(OBJDIR)\nsXULContentSink.obj \ + .\$(OBJDIR)\nsXULControllers.obj \ + .\$(OBJDIR)\nsXULDocument.obj \ + .\$(OBJDIR)\nsXULPrototypeCache.obj \ + .\$(OBJDIR)\nsXULPrototypeDocument.obj \ + $(NULL) + +EXPORTS = \ + $(NULL) + +LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \ + -I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \ + -I..\..\..\html\document\src -I..\..\content\src -I..\..\templates\src \ + -I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref + +LCFLAGS = \ + $(LCFLAGS) \ + $(DEFINES) \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + +install:: $(LIBRARY) + $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib + +clobber:: + rm -f $(DIST)\lib\$(LIBRARY_NAME).lib diff --git a/mozilla/content/xul/templates/makefile.win b/mozilla/content/xul/templates/makefile.win new file mode 100644 index 00000000000..09d593e23d0 --- /dev/null +++ b/mozilla/content/xul/templates/makefile.win @@ -0,0 +1,26 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS=public src + +include <$(DEPTH)\config\rules.mak> diff --git a/mozilla/content/xul/templates/public/MANIFEST b/mozilla/content/xul/templates/public/MANIFEST new file mode 100644 index 00000000000..fba84559208 --- /dev/null +++ b/mozilla/content/xul/templates/public/MANIFEST @@ -0,0 +1,5 @@ +nsIXULPopupListener.h +nsIXULContent.h + + + diff --git a/mozilla/content/xul/templates/public/Makefile.in b/mozilla/content/xul/templates/public/Makefile.in new file mode 100644 index 00000000000..ffe29dd5898 --- /dev/null +++ b/mozilla/content/xul/templates/public/Makefile.in @@ -0,0 +1,39 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = rdf + +EXPORTS = \ + nsIXULPopupListener.h \ + nsIXULContent.h \ + $(NULL) + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/content/xul/templates/public/makefile.win b/mozilla/content/xul/templates/public/makefile.win new file mode 100644 index 00000000000..c848b264087 --- /dev/null +++ b/mozilla/content/xul/templates/public/makefile.win @@ -0,0 +1,37 @@ +#!gmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + + +MODULE=xul + +DEPTH=..\..\..\.. + +XPIDLSRCS= \ + .\nsIXULSortService.idl \ + .\nsIXULTemplateBuilder.idl \ + $(NULL) + +EXPORTS = \ + .\nsIRDFContentModelBuilder.h \ + $(NULL) + +include <$(DEPTH)/config/rules.mak> + diff --git a/mozilla/content/xul/templates/src/Makefile.in b/mozilla/content/xul/templates/src/Makefile.in new file mode 100644 index 00000000000..a689333af3c --- /dev/null +++ b/mozilla/content/xul/templates/src/Makefile.in @@ -0,0 +1,44 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = layout +LIBRARY_NAME = gkxulcon_s +REQUIRES = xpcom + +CPPSRCS = nsXULAtoms.cpp + +# we don't want the shared lib, but we want to force the creation of a static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +include $(topsrcdir)/config/rules.mk + +DEFINES += -D_IMPL_NS_HTML + +INCLUDES += -I$(srcdir)/../../../base/src + diff --git a/mozilla/content/xul/templates/src/makefile.win b/mozilla/content/xul/templates/src/makefile.win new file mode 100644 index 00000000000..85640b7c4d1 --- /dev/null +++ b/mozilla/content/xul/templates/src/makefile.win @@ -0,0 +1,62 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\..\.. + +LIBRARY_NAME=contentxultemplates_s +MODULE=raptor + +DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN + +CPPSRCS= \ + nsRuleNetwork.cpp \ + nsXULContentUtils.cpp \ + nsXULSortService.cpp \ + nsXULTemplateBuilder.cpp \ + $(NULL) + +CPP_OBJS= \ + .\$(OBJDIR)\nsRuleNetwork.obj \ + .\$(OBJDIR)\nsXULContentUtils.obj \ + .\$(OBJDIR)\nsXULSortService.obj \ + .\$(OBJDIR)\nsXULTemplateBuilder.obj \ + $(NULL) + +EXPORTS = \ + $(NULL) + +LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \ + -I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \ + -I..\..\..\html\document\src -I..\..\content\src \ + -I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref + +LCFLAGS = \ + $(LCFLAGS) \ + $(DEFINES) \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + +install:: $(LIBRARY) + $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib + +clobber:: + rm -f $(DIST)\lib\$(LIBRARY_NAME).lib diff --git a/mozilla/content/xul/templates/src/nsXULContentUtils.h b/mozilla/content/xul/templates/src/nsXULContentUtils.h new file mode 100644 index 00000000000..d6c41b2da6b --- /dev/null +++ b/mozilla/content/xul/templates/src/nsXULContentUtils.h @@ -0,0 +1,119 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is Mozilla Communicator client code. + * + * The Initial Developer of the Original Code is Netscape Communications + * Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ + +/* + + A package of routines shared by the XUL content code. + + */ + +#ifndef nsXULContentUtils_h__ +#define nsXULContentUtils_h__ + +#include "nsISupports.h" + +class nsIAtom; +class nsIContent; +class nsIDocument; +class nsIDOMNodeList; +class nsIRDFNode; +class nsCString; +class nsString; +class nsIRDFResource; +class nsIRDFService; +class nsINameSpaceManager; +class nsIDateTimeFormat; + +class nsXULContentUtils +{ +protected: + static nsrefcnt gRefCnt; + static nsIRDFService* gRDF; + static nsINameSpaceManager* gNameSpaceManager; + static nsIDateTimeFormat* gFormat; + + static PRBool gDisableXULCache; + + static int PR_CALLBACK + DisableXULCacheChangedCallback(const char* aPrefName, void* aClosure); + +public: + static nsresult + Init(); + + static nsresult + Finish(); + + static nsresult + AttachTextNode(nsIContent* parent, nsIRDFNode* value); + + static nsresult + FindChildByTag(nsIContent *aElement, + PRInt32 aNameSpaceID, + nsIAtom* aTag, + nsIContent **aResult); + + static nsresult + FindChildByResource(nsIContent* aElement, + nsIRDFResource* aResource, + nsIContent** aResult); + + static nsresult + GetElementResource(nsIContent* aElement, nsIRDFResource** aResult); + + static nsresult + GetElementRefResource(nsIContent* aElement, nsIRDFResource** aResult); + + static nsresult + GetTextForNode(nsIRDFNode* aNode, nsAWritableString& aResult); + + static nsresult + GetElementLogString(nsIContent* aElement, nsAWritableString& aResult); + + static nsresult + GetAttributeLogString(nsIContent* aElement, PRInt32 aNameSpaceID, nsIAtom* aTag, nsAWritableString& aResult); + + static nsresult + MakeElementURI(nsIDocument* aDocument, const nsAReadableString& aElementID, nsCString& aURI); + + static nsresult + MakeElementResource(nsIDocument* aDocument, const nsAReadableString& aElementID, nsIRDFResource** aResult); + + static nsresult + MakeElementID(nsIDocument* aDocument, const nsAReadableString& aURI, nsAWritableString& aElementID); + + static PRBool + IsContainedBy(nsIContent* aElement, nsIContent* aContainer); + + static nsresult + GetResource(PRInt32 aNameSpaceID, nsIAtom* aAttribute, nsIRDFResource** aResult); + + static nsresult + GetResource(PRInt32 aNameSpaceID, const nsAReadableString& aAttribute, nsIRDFResource** aResult); + + static nsresult + SetCommandUpdater(nsIDocument* aDocument, nsIContent* aElement); +}; + + +#endif // nsXULContentUtils_h__ + diff --git a/mozilla/dom/public/idl/xul/Makefile.in b/mozilla/dom/public/idl/xul/Makefile.in new file mode 100644 index 00000000000..8d7dc146fa0 --- /dev/null +++ b/mozilla/dom/public/idl/xul/Makefile.in @@ -0,0 +1,62 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = rdf + +GLOBALIDLSRCS = \ + $(NULL) + +IDLSRCS = \ + XULCommandDispatcher.idl \ + XULDocument.idl \ + XULElement.idl \ + XULTreeElement.idl \ + $(NULL) + +IDLSRCS := $(addprefix $(srcdir)/, $(IDLSRCS)) +GLOBALIDLSRCS := $(addprefix $(srcdir)/, $(GLOBALIDLSRCS)) + +include $(topsrcdir)/config/rules.mk + +GARBAGE += genx genjs + +genx genjs: + -mkdir $@ + +export:: genx genjs $(IDLSRCS) + @echo +++ make: generating xpcom headers + $(DIST)/bin/idlc -d genx -x $(IDLSRCS) + $(DIST)/bin/idlc -g -d genx -x $(GLOBALIDLSRCS) + @echo +++ make: generating JavaScript stubs + $(DIST)/bin/idlc -d genjs -j $(IDLSRCS) + $(DIST)/bin/idlc -g -d genjs -j $(GLOBALIDLSRCS) + +install:: + $(NSINSTALL) -m 644 genx/nsIDOM*.h $(topsrcdir)/rdf/content/public + $(NSINSTALL) -m 644 genjs/nsJS*.cpp $(topsrcdir)/rdf/content/src + diff --git a/mozilla/dom/public/idl/xul/makefile.win b/mozilla/dom/public/idl/xul/makefile.win new file mode 100644 index 00000000000..8a0c6174f27 --- /dev/null +++ b/mozilla/dom/public/idl/xul/makefile.win @@ -0,0 +1,59 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\..\.. + + +MODULE=rdf + +IDLSRCS = \ + XULDocument.idl \ + XULElement.idl \ + XULCommandDispatcher.idl \ + XULTreeElement.idl \ + $(NULL) + +XPCOM_DESTDIR=$(DEPTH)\dom\public\xul +JSSTUB_DESTDIR=$(DEPTH)\dom\src\xul + +GENXDIR=genx +GENJSDIR=genjs + +!include <$(DEPTH)\config\rules.mak> + +$(GENXDIR): + -mkdir $(GENXDIR) + +$(GENJSDIR): + -mkdir $(GENJSDIR) + +IDLC=$(DIST)\bin\idlc.exe +GENIID=$(DIST)\bin\geniid.pl + +export:: $(GENXDIR) $(GENJSDIR) $(IDLSRCS) + @echo +++ make: generating xpcom headers + $(IDLC) -d $(GENXDIR) -x $(IDLSRCS) + @echo +++ make: generating JavaScript stubs + $(IDLC) -d $(GENJSDIR) -j $(IDLSRCS) + +install:: + $(MAKE_INSTALL:/=\) $(GENXDIR)\nsIDOM*.h $(XPCOM_DESTDIR) + $(MAKE_INSTALL:/=\) $(GENJSDIR)\nsJS*.cpp $(JSSTUB_DESTDIR) diff --git a/mozilla/dom/public/xul/makefile.win b/mozilla/dom/public/xul/makefile.win new file mode 100644 index 00000000000..35c531f4cb7 --- /dev/null +++ b/mozilla/dom/public/xul/makefile.win @@ -0,0 +1,37 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + + +DEFINES=-D_IMPL_NS_DOM +EXPORTS = \ + nsIDOMXULCommandDispatcher.h \ + nsIDOMXULDocument.h \ + nsIDOMXULElement.h \ + nsIDOMXULTreeElement.h \ + $(NULL) + + +MODULE=dom + +include <$(DEPTH)\config\rules.mak> + diff --git a/mozilla/dom/src/xul/makefile.win b/mozilla/dom/src/xul/makefile.win new file mode 100644 index 00000000000..2ad4d568989 --- /dev/null +++ b/mozilla/dom/src/xul/makefile.win @@ -0,0 +1,57 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + + +LIBRARY_NAME=jsdomxul_s +MODULE=raptor + +DEFINES=-D_IMPL_NS_DOM -DWIN32_LEAN_AND_MEAN + +CPPSRCS = \ + nsJSXULCommandDispatcher.cpp \ + nsJSXULDocument.cpp \ + nsJSXULElement.cpp \ + nsJSXULTreeElement.cpp \ + $(NULL) + +CPP_OBJS= \ + nsJSXULCommandDispatcher.obj \ + nsJSXULDocument.obj \ + nsJSXULElement.obj \ + nsJSXULTreeElement.obj \ + $(NULL) + +LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\dom -I$(XPDIST)\public\js + +LCFLAGS = \ + $(LCFLAGS) \ + $(DEFINES) \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + +install:: $(LIBRARY) + $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib + +clobber:: + rm -f $(DIST)\lib\$(LIBRARY_NAME).lib