1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Christopher Blizzard.
19 * Portions created by the Initial Developer are Copyright (C) 2000
20 * the Initial Developer. All Rights Reserved.
23 * John C. Griggs <johng@corel.com>
24 * Dan Rosen <dr@netscape.com>
25 * Paul Ashford <arougthopher@lizardland.net>
26 * Fredrik Holmqvist <thesuckiestemail@yahoo.se>
27 * Sergei Dolgov <sergei_d@fi.tartu.ee>
29 * Alternatively, the contents of this file may be used under the terms of
30 * either the GNU General Public License Version 2 or later (the "GPL"), or
31 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
32 * in which case the provisions of the GPL or the LGPL are applicable instead
33 * of those above. If you wish to allow use of your version of this file only
34 * under the terms of either the GPL or the LGPL, and not to allow others to
35 * use your version of this file under the terms of the MPL, indicate your
36 * decision by deleting the provisions above and replace them with the notice
37 * and other provisions required by the GPL or the LGPL. If you do not delete
38 * the provisions above, a recipient may use your version of this file under
39 * the terms of any one of the MPL, the GPL or the LGPL.
41 * ***** END LICENSE BLOCK ***** */
43 #include "nsIGenericFactory.h"
44 #include "nsIModule.h"
46 #include "nsWidgetsCID.h"
49 #include "nsPopupWindow.h"
50 #include "nsChildView.h"
52 #include "nsToolkit.h"
53 #include "nsAppShell.h"
54 #include "nsAppShellSingleton.h"
55 #include "nsLookAndFeel.h"
56 #include "nsFilePicker.h"
57 #include "nsBidiKeyboard.h"
58 #include "nsScreenManagerBeOS.h"
60 // aka nsDeviceContextSpecBeOS.h
61 #include "nsDeviceContextSpecB.h"
62 #include "nsPrintOptionsBeOS.h"
63 #include "nsPrintSession.h"
65 // Drag & Drop, Clipboard
66 #include "nsTransferable.h"
67 #include "nsClipboard.h"
68 #include "nsClipboardHelper.h"
69 #include "nsHTMLFormatConverter.h"
70 #include "nsDragService.h"
73 NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindow
)
74 NS_GENERIC_FACTORY_CONSTRUCTOR(nsPopupWindow
)
75 NS_GENERIC_FACTORY_CONSTRUCTOR(nsChildView
)
76 NS_GENERIC_FACTORY_CONSTRUCTOR(nsToolkit
)
77 NS_GENERIC_FACTORY_CONSTRUCTOR(nsLookAndFeel
)
78 NS_GENERIC_FACTORY_CONSTRUCTOR(nsTransferable
)
79 NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboard
)
80 NS_GENERIC_FACTORY_CONSTRUCTOR(nsClipboardHelper
)
81 NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLFormatConverter
)
82 NS_GENERIC_FACTORY_CONSTRUCTOR(nsDragService
)
83 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSound
)
84 NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePicker
)
85 NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard
)
86 NS_GENERIC_FACTORY_CONSTRUCTOR(nsScreenManagerBeOS
)
88 NS_GENERIC_FACTORY_CONSTRUCTOR(nsDeviceContextSpecBeOS
)
89 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintOptionsBeOS
, Init
)
90 NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintSession
, Init
)
91 NS_GENERIC_FACTORY_CONSTRUCTOR(nsPrinterEnumeratorBeOS
)
93 static const nsModuleComponentInfo components
[] =
97 "@mozilla.org/widgets/window/beos;1",
98 nsWindowConstructor
},
99 { "BeOS Popup nsWindow",
101 "@mozilla.org/widgets/popup/beos;1",
102 nsPopupWindowConstructor
},
103 { "BeOS Child nsWindow",
105 "@mozilla.org/widgets/view/beos;1",
106 nsChildViewConstructor
},
109 "@mozilla.org/widget/appshell/beos;1",
110 nsAppShellConstructor
},
113 "@mozilla.org/widget/toolkit/beos;1",
114 nsToolkitConstructor
},
115 { "BeOS Look And Feel",
117 "@mozilla.org/widget/lookandfeel;1",
118 nsLookAndFeelConstructor
},
121 "@mozilla.org/widget/transferable;1",
122 nsTransferableConstructor
},
125 "@mozilla.org/widget/clipboard;1",
126 nsClipboardConstructor
},
127 { "Clipboard Helper",
128 NS_CLIPBOARDHELPER_CID
,
129 "@mozilla.org/widget/clipboardhelper;1",
130 nsClipboardHelperConstructor
},
131 { "HTML Format Converter",
132 NS_HTMLFORMATCONVERTER_CID
,
133 "@mozilla.org/widget/htmlformatconverter;1",
134 nsHTMLFormatConverterConstructor
},
137 "@mozilla.org/sound;1",
138 nsSoundConstructor
},
139 { "BeOS Drag Service",
141 "@mozilla.org/widget/dragservice;1",
142 nsDragServiceConstructor
},
143 { "BeOS Bidi Keyboard",
145 "@mozilla.org/widget/bidikeyboard;1",
146 nsBidiKeyboardConstructor
},
147 { "BeOS File Picker",
149 "@mozilla.org/filepicker;1",
150 nsFilePickerConstructor
},
151 { "BeOS Screen Manager",
152 NS_SCREENMANAGER_CID
,
153 "@mozilla.org/gfx/screenmanager;1",
154 nsScreenManagerBeOSConstructor
},
155 { "BeOS Device Context Spec",
156 NS_DEVICE_CONTEXT_SPEC_CID
,
157 // "@mozilla.org/gfx/device_context_spec/beos;1",
158 "@mozilla.org/gfx/devicecontextspec;1",
159 nsDeviceContextSpecBeOSConstructor
},
160 { "BeOS Printer Enumerator",
161 NS_PRINTER_ENUMERATOR_CID
,
162 // "@mozilla.org/gfx/printer_enumerator/beos;1",
163 "@mozilla.org/gfx/printerenumerator;1",
164 nsPrinterEnumeratorBeOSConstructor
},
165 { "BeOS PrintSettings Service",
166 NS_PRINTSETTINGSSERVICE_CID
,
167 "@mozilla.org/gfx/printsettings-service;1",
168 nsPrintOptionsBeOSConstructor
},
171 "@mozilla.org/gfx/printsession;1",
172 nsPrintSessionConstructor
}
175 NS_IMPL_NSGETMODULE_WITH_CTOR_DTOR(nsWidgetBeOSModule
,
177 nsAppShellInit
, nsAppShellShutdown
)