From 82ec8ff7c0a357658e8b5bbb2bae1e0f0ca954bb Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Thu, 21 Feb 2008 20:49:25 +0000 Subject: [PATCH] =?UTF-8?q?bug=20418654=20=C3=A2=C2=80=C2=93=20windows=20w?= =?UTF-8?q?idget=20honor=20NS=5FPRINTING.=20r=3Dere,=20a=3Dbeltzner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@246222 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/build/nsWinWidgetFactory.cpp | 9 +++++++-- mozilla/widget/src/windows/Makefile.in | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/build/nsWinWidgetFactory.cpp b/mozilla/widget/src/build/nsWinWidgetFactory.cpp index e50a750a11b..a578a242bc9 100644 --- a/mozilla/widget/src/build/nsWinWidgetFactory.cpp +++ b/mozilla/widget/src/build/nsWinWidgetFactory.cpp @@ -64,10 +64,11 @@ #include "nsScreenManagerWin.h" #include "nsIGenericFactory.h" -// printing +#ifdef NS_PRINTING #include "nsDeviceContextSpecWin.h" #include "nsPrintOptionsWin.h" #include "nsPrintSession.h" +#endif NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindow) NS_GENERIC_FACTORY_CONSTRUCTOR(ChildWindow) @@ -76,7 +77,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardHelper) NS_GENERIC_FACTORY_CONSTRUCTOR(nsNativeThemeWin) NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePicker) -#ifndef WINCE +#ifdef NS_PRINTING NS_GENERIC_FACTORY_CONSTRUCTOR(nsSound) NS_GENERIC_FACTORY_CONSTRUCTOR(nsDragService) NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard) @@ -90,10 +91,12 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLFormatConverter) NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerWin) +#ifdef NS_PRINTING NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintOptionsWin, Init) NS_GENERIC_FACTORY_CONSTRUCTOR(nsPrinterEnumeratorWin) NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintSession, Init) NS_GENERIC_FACTORY_CONSTRUCTOR(nsDeviceContextSpecWin) +#endif static const nsModuleComponentInfo components[] = { @@ -164,6 +167,7 @@ static const nsModuleComponentInfo components[] = NS_SCREENMANAGER_CID, "@mozilla.org/gfx/screenmanager;1", nsScreenManagerWinConstructor }, +#ifdef NS_PRINTING { "nsPrintOptionsWin", NS_PRINTSETTINGSSERVICE_CID, "@mozilla.org/gfx/printsettings-service;1", @@ -180,6 +184,7 @@ static const nsModuleComponentInfo components[] = NS_DEVICE_CONTEXT_SPEC_CID, "@mozilla.org/gfx/devicecontextspec;1", nsDeviceContextSpecWinConstructor }, +#endif }; NS_IMPL_NSGETMODULE_WITH_CTOR_DTOR(nsWidgetModule, components, diff --git a/mozilla/widget/src/windows/Makefile.in b/mozilla/widget/src/windows/Makefile.in index aa1ead07708..3c999aad0c6 100644 --- a/mozilla/widget/src/windows/Makefile.in +++ b/mozilla/widget/src/windows/Makefile.in @@ -87,10 +87,15 @@ CPPSRCS = \ nsFilePicker.cpp \ nsScreenWin.cpp \ nsScreenManagerWin.cpp \ + $(NULL) + +ifdef NS_PRINTING +CPPSRCS += \ nsPrintOptionsWin.cpp \ nsPrintSettingsWin.cpp \ nsDeviceContextSpecWin.cpp \ $(NULL) +endif ifneq ($(OS_ARCH), WINCE) CPPSRCS += \