1b3f79822SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3b3f79822SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4b3f79822SAndrew Rist * or more contributor license agreements. See the NOTICE file
5b3f79822SAndrew Rist * distributed with this work for additional information
6b3f79822SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7b3f79822SAndrew Rist * to you under the Apache License, Version 2.0 (the
8b3f79822SAndrew Rist * "License"); you may not use this file except in compliance
9b3f79822SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11b3f79822SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13b3f79822SAndrew Rist * Unless required by applicable law or agreed to in writing,
14b3f79822SAndrew Rist * software distributed under the License is distributed on an
15b3f79822SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16b3f79822SAndrew Rist * KIND, either express or implied. See the License for the
17b3f79822SAndrew Rist * specific language governing permissions and limitations
18b3f79822SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20b3f79822SAndrew Rist *************************************************************/
21b3f79822SAndrew Rist
22b3f79822SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sc.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir
28cdf0e10cSrcweir
29cdf0e10cSrcweir #include <editeng/eeitem.hxx>
30cdf0e10cSrcweir
31cdf0e10cSrcweir
32cdf0e10cSrcweir #ifndef _FM_FMOBJFAC_HXX
33cdf0e10cSrcweir #include <svx/fmobjfac.hxx>
34cdf0e10cSrcweir #endif
35cdf0e10cSrcweir #include <svx/objfac3d.hxx>
36cdf0e10cSrcweir #include <svx/tbxcolor.hxx>
37cdf0e10cSrcweir
38cdf0e10cSrcweir #include <sot/clsids.hxx>
39*7a32b0c8SAndre Fischer #include <sfx2/sidebar/SidebarChildWindow.hxx>
40cdf0e10cSrcweir #include <sfx2/docfilt.hxx>
41cdf0e10cSrcweir #include <sfx2/fcontnr.hxx>
42cdf0e10cSrcweir #include <sfx2/docfile.hxx>
43cdf0e10cSrcweir #include <sfx2/app.hxx>
44cdf0e10cSrcweir #include <avmedia/mediaplayer.hxx>
45cdf0e10cSrcweir #include <avmedia/mediatoolbox.hxx>
46cdf0e10cSrcweir #include <comphelper/types.hxx>
47cdf0e10cSrcweir #include <svx/extrusioncolorcontrol.hxx>
48cdf0e10cSrcweir #include <svx/fontworkgallery.hxx>
49cdf0e10cSrcweir #include <svx/tbxcustomshapes.hxx>
50cdf0e10cSrcweir
51cdf0e10cSrcweir #include <svtools/parhtml.hxx>
52cdf0e10cSrcweir #include <sot/formats.hxx>
53cdf0e10cSrcweir #define SOT_FORMATSTR_ID_STARCALC_30 SOT_FORMATSTR_ID_STARCALC
54cdf0e10cSrcweir
55cdf0e10cSrcweir #include "scitems.hxx" // fuer tbxctrls etc.
56cdf0e10cSrcweir #include "scmod.hxx"
57cdf0e10cSrcweir #include "scresid.hxx"
58cdf0e10cSrcweir #include "sc.hrc"
59cdf0e10cSrcweir #include "cfgids.hxx"
60cdf0e10cSrcweir
61cdf0e10cSrcweir //! die Registrierung wird wegen CLOOKs in ein eigenes File wandern muessen...
62cdf0e10cSrcweir
63cdf0e10cSrcweir // Interface-Registrierung
64cdf0e10cSrcweir #include "docsh.hxx"
65cdf0e10cSrcweir #include "tabvwsh.hxx"
66cdf0e10cSrcweir #include "prevwsh.hxx"
67cdf0e10cSrcweir #include "drawsh.hxx"
68cdf0e10cSrcweir #include "drformsh.hxx"
69cdf0e10cSrcweir #include "drtxtob.hxx"
70cdf0e10cSrcweir #include "editsh.hxx"
71cdf0e10cSrcweir #include "pivotsh.hxx"
72cdf0e10cSrcweir #include "auditsh.hxx"
73cdf0e10cSrcweir #include "cellsh.hxx"
74cdf0e10cSrcweir #include "oleobjsh.hxx"
75cdf0e10cSrcweir #include "chartsh.hxx"
76cdf0e10cSrcweir #include "graphsh.hxx"
77cdf0e10cSrcweir #include "mediash.hxx"
78cdf0e10cSrcweir #include "pgbrksh.hxx"
79cdf0e10cSrcweir
80cdf0e10cSrcweir #include "docpool.hxx"
81cdf0e10cSrcweir #include "appoptio.hxx"
82cdf0e10cSrcweir
83cdf0e10cSrcweir // Controls
84cdf0e10cSrcweir
85cdf0e10cSrcweir #include <svx/tbxalign.hxx>
86cdf0e10cSrcweir #include <svx/tbxctl.hxx>
87cdf0e10cSrcweir #include <svx/fillctrl.hxx>
88cdf0e10cSrcweir #include <svx/linectrl.hxx>
89cdf0e10cSrcweir #include <svx/tbcontrl.hxx>
90cdf0e10cSrcweir #include <svx/selctrl.hxx>
91cdf0e10cSrcweir #include <svx/insctrl.hxx>
92cdf0e10cSrcweir #include <svx/zoomctrl.hxx>
93cdf0e10cSrcweir #include <editeng/flditem.hxx>
94cdf0e10cSrcweir #include <svx/modctrl.hxx>
95cdf0e10cSrcweir #include <svx/pszctrl.hxx>
96cdf0e10cSrcweir #include <svx/fntctl.hxx>
97cdf0e10cSrcweir #include <svx/fntszctl.hxx>
98cdf0e10cSrcweir #include <svx/grafctrl.hxx>
99cdf0e10cSrcweir #include <svx/galbrws.hxx>
100cdf0e10cSrcweir #include <svx/clipboardctl.hxx>
101cdf0e10cSrcweir #include <svx/lboxctrl.hxx>
102cdf0e10cSrcweir #include <svx/verttexttbxctrl.hxx>
103cdf0e10cSrcweir #include <svx/formatpaintbrushctrl.hxx>
104cdf0e10cSrcweir #include "tbinsert.hxx"
105cdf0e10cSrcweir #include "tbzoomsliderctrl.hxx"
106cdf0e10cSrcweir #include <svx/zoomsliderctrl.hxx>
107cdf0e10cSrcweir
108cdf0e10cSrcweir #include <svx/xmlsecctrl.hxx>
109cdf0e10cSrcweir // Child-Windows
110cdf0e10cSrcweir #include "reffact.hxx"
111cdf0e10cSrcweir #include "navipi.hxx"
112cdf0e10cSrcweir #include "inputwin.hxx"
113cdf0e10cSrcweir #include "spelldialog.hxx"
114cdf0e10cSrcweir #include <svx/fontwork.hxx>
115cdf0e10cSrcweir #include <svx/srchdlg.hxx>
116cdf0e10cSrcweir #include <svx/hyprlink.hxx>
117cdf0e10cSrcweir #include <svx/hyperdlg.hxx>
118cdf0e10cSrcweir #include <svx/imapdlg.hxx>
119cdf0e10cSrcweir
120cdf0e10cSrcweir #include "editutil.hxx"
121cdf0e10cSrcweir #include <svx/svdfield.hxx> // SdrRegisterFieldClasses
122cdf0e10cSrcweir #include <rtl/logfile.hxx>
123cdf0e10cSrcweir
124cdf0e10cSrcweir #include "dwfunctr.hxx"
125cdf0e10cSrcweir #include "acredlin.hxx"
126cdf0e10cSrcweir
127cdf0e10cSrcweir //------------------------------------------------------------------
128cdf0e10cSrcweir
129cdf0e10cSrcweir //UNUSED2008-05 // filter detection can't use ScFilterOptions (in sc-dll),
130cdf0e10cSrcweir //UNUSED2008-05 // so access to wk3 flag must be implemented here again
131cdf0e10cSrcweir //UNUSED2008-05
132cdf0e10cSrcweir //UNUSED2008-05 class ScLibOptions : public utl::ConfigItem
133cdf0e10cSrcweir //UNUSED2008-05 {
134cdf0e10cSrcweir //UNUSED2008-05 sal_Bool bWK3Flag;
135cdf0e10cSrcweir //UNUSED2008-05
136cdf0e10cSrcweir //UNUSED2008-05 public:
137cdf0e10cSrcweir //UNUSED2008-05 ScLibOptions();
138cdf0e10cSrcweir //UNUSED2008-05 sal_Bool GetWK3Flag() const { return bWK3Flag; }
139cdf0e10cSrcweir //UNUSED2008-05 };
140cdf0e10cSrcweir //UNUSED2008-05
141cdf0e10cSrcweir //UNUSED2008-05 #define CFGPATH_LIBFILTER "Office.Calc/Filter/Import/Lotus123"
142cdf0e10cSrcweir //UNUSED2008-05 #define ENTRYSTR_WK3 "WK3"
143cdf0e10cSrcweir //UNUSED2008-05
144cdf0e10cSrcweir //UNUSED2008-05 ScLibOptions::ScLibOptions() :
145cdf0e10cSrcweir //UNUSED2008-05 ConfigItem( rtl::OUString::createFromAscii( CFGPATH_LIBFILTER ) ),
146cdf0e10cSrcweir //UNUSED2008-05 bWK3Flag( sal_False )
147cdf0e10cSrcweir //UNUSED2008-05 {
148cdf0e10cSrcweir //UNUSED2008-05 com::sun::star::uno::Sequence<rtl::OUString> aNames(1);
149cdf0e10cSrcweir //UNUSED2008-05 aNames[0] = rtl::OUString::createFromAscii( ENTRYSTR_WK3 );
150cdf0e10cSrcweir //UNUSED2008-05 com::sun::star::uno::Sequence<com::sun::star::uno::Any> aValues = GetProperties(aNames);
151cdf0e10cSrcweir //UNUSED2008-05 if ( aValues.getLength() == 1 && aValues[0].hasValue() )
152cdf0e10cSrcweir //UNUSED2008-05 bWK3Flag = comphelper::getBOOL( aValues[0] );
153cdf0e10cSrcweir //UNUSED2008-05 }
154cdf0e10cSrcweir
155cdf0e10cSrcweir //------------------------------------------------------------------
156cdf0e10cSrcweir
ScResId(sal_uInt16 nId)157cdf0e10cSrcweir ScResId::ScResId( sal_uInt16 nId ) :
158cdf0e10cSrcweir ResId( nId, *SC_MOD()->GetResMgr() )
159cdf0e10cSrcweir {
160cdf0e10cSrcweir }
161cdf0e10cSrcweir
162cdf0e10cSrcweir //------------------------------------------------------------------
163cdf0e10cSrcweir
Init()164cdf0e10cSrcweir void ScDLL::Init()
165cdf0e10cSrcweir {
166cdf0e10cSrcweir RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDLL::Init" );
167cdf0e10cSrcweir
168cdf0e10cSrcweir ScModule **ppShlPtr = (ScModule**) GetAppData(SHL_CALC);
169cdf0e10cSrcweir if ( *ppShlPtr )
170cdf0e10cSrcweir return;
171cdf0e10cSrcweir
172cdf0e10cSrcweir ScDocumentPool::InitVersionMaps(); // wird im ScModule ctor gebraucht
173cdf0e10cSrcweir
174cdf0e10cSrcweir ScModule* pMod = new ScModule( &ScDocShell::Factory() );
175cdf0e10cSrcweir (*ppShlPtr) = pMod;
176cdf0e10cSrcweir
177cdf0e10cSrcweir //REMOVE ScDocShell::RegisterFactory( SDT_SC_DOCFACTPRIO );
178cdf0e10cSrcweir
179cdf0e10cSrcweir ScDocShell::Factory().SetDocumentServiceName( rtl::OUString::createFromAscii( "com.sun.star.sheet.SpreadsheetDocument" ) );
180cdf0e10cSrcweir
181cdf0e10cSrcweir ScGlobal::Init(); // erst wenn der ResManager initialisiert ist
182cdf0e10cSrcweir // erst nach ScGlobal::Init duerfen die App-Optionen
183cdf0e10cSrcweir // initialisiert werden
184cdf0e10cSrcweir
185cdf0e10cSrcweir // register your view-factories here
186cdf0e10cSrcweir
187cdf0e10cSrcweir ScTabViewShell ::RegisterFactory(1);
188cdf0e10cSrcweir ScPreviewShell ::RegisterFactory(2);
189cdf0e10cSrcweir
190cdf0e10cSrcweir // register your shell-interfaces here
191cdf0e10cSrcweir
192cdf0e10cSrcweir ScModule ::RegisterInterface(pMod);
193cdf0e10cSrcweir ScDocShell ::RegisterInterface(pMod);
194cdf0e10cSrcweir ScTabViewShell ::RegisterInterface(pMod);
195cdf0e10cSrcweir ScPreviewShell ::RegisterInterface(pMod);
196cdf0e10cSrcweir ScDrawShell ::RegisterInterface(pMod);
197cdf0e10cSrcweir ScDrawFormShell ::RegisterInterface(pMod);
198cdf0e10cSrcweir ScDrawTextObjectBar ::RegisterInterface(pMod);
199cdf0e10cSrcweir ScEditShell ::RegisterInterface(pMod);
200cdf0e10cSrcweir ScPivotShell ::RegisterInterface(pMod);
201cdf0e10cSrcweir ScAuditingShell ::RegisterInterface(pMod);
202cdf0e10cSrcweir ScFormatShell ::RegisterInterface(pMod);
203cdf0e10cSrcweir ScCellShell ::RegisterInterface(pMod);
204cdf0e10cSrcweir ScOleObjectShell ::RegisterInterface(pMod);
205cdf0e10cSrcweir ScChartShell ::RegisterInterface(pMod);
206cdf0e10cSrcweir ScGraphicShell ::RegisterInterface(pMod);
207cdf0e10cSrcweir ScMediaShell ::RegisterInterface(pMod);
208cdf0e10cSrcweir ScPageBreakShell ::RegisterInterface(pMod);
209cdf0e10cSrcweir
210cdf0e10cSrcweir // eigene Controller
211cdf0e10cSrcweir ScTbxInsertCtrl ::RegisterControl(SID_TBXCTL_INSERT, pMod);
212cdf0e10cSrcweir ScTbxInsertCtrl ::RegisterControl(SID_TBXCTL_INSCELLS, pMod);
213cdf0e10cSrcweir ScTbxInsertCtrl ::RegisterControl(SID_TBXCTL_INSOBJ, pMod);
214cdf0e10cSrcweir ScZoomSliderControl ::RegisterControl(SID_PREVIEW_SCALINGFACTOR, pMod);
215cdf0e10cSrcweir
216cdf0e10cSrcweir // Svx-Toolbox-Controller
217cdf0e10cSrcweir SvxTbxCtlDraw ::RegisterControl(SID_INSERT_DRAW, pMod);
218cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_BASIC, pMod);
219cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_SYMBOL, pMod);
220cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_ARROW, pMod);
221cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_FLOWCHART, pMod);
222cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_CALLOUT, pMod);
223cdf0e10cSrcweir SvxTbxCtlCustomShapes ::RegisterControl(SID_DRAWTBX_CS_STAR, pMod);
224cdf0e10cSrcweir SvxTbxCtlAlign ::RegisterControl(SID_OBJECT_ALIGN, pMod);
225cdf0e10cSrcweir SvxFillToolBoxControl ::RegisterControl(0, pMod);
226cdf0e10cSrcweir SvxLineStyleToolBoxControl ::RegisterControl(0, pMod);
227cdf0e10cSrcweir SvxLineWidthToolBoxControl ::RegisterControl(0, pMod);
228cdf0e10cSrcweir SvxLineColorToolBoxControl ::RegisterControl(0, pMod);
229cdf0e10cSrcweir SvxLineEndToolBoxControl ::RegisterControl(SID_ATTR_LINEEND_STYLE, pMod);
230cdf0e10cSrcweir SvxStyleToolBoxControl ::RegisterControl(SID_STYLE_APPLY, pMod);
231cdf0e10cSrcweir SvxFontNameToolBoxControl ::RegisterControl(SID_ATTR_CHAR_FONT, pMod);
232cdf0e10cSrcweir // SvxFontHeightToolBoxControl ::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod);
233cdf0e10cSrcweir SvxFontColorToolBoxControl ::RegisterControl(SID_ATTR_CHAR_COLOR, pMod);
234cdf0e10cSrcweir SvxColorToolBoxControl ::RegisterControl(SID_BACKGROUND_COLOR, pMod);
235cdf0e10cSrcweir SvxFrameToolBoxControl ::RegisterControl(SID_ATTR_BORDER, pMod);
236cdf0e10cSrcweir SvxFrameLineStyleToolBoxControl ::RegisterControl(SID_FRAME_LINESTYLE, pMod);
237cdf0e10cSrcweir SvxFrameLineColorToolBoxControl ::RegisterControl(SID_FRAME_LINECOLOR, pMod);
238cdf0e10cSrcweir SvxClipBoardControl ::RegisterControl(SID_PASTE, pMod );
239cdf0e10cSrcweir SvxUndoRedoControl ::RegisterControl(SID_UNDO, pMod );
240cdf0e10cSrcweir SvxUndoRedoControl ::RegisterControl(SID_REDO, pMod );
241cdf0e10cSrcweir svx::FormatPaintBrushToolBoxControl::RegisterControl(SID_FORMATPAINTBRUSH, pMod );
242cdf0e10cSrcweir
243cdf0e10cSrcweir SvxGrafModeToolBoxControl ::RegisterControl(SID_ATTR_GRAF_MODE, pMod);
244cdf0e10cSrcweir SvxGrafRedToolBoxControl ::RegisterControl(SID_ATTR_GRAF_RED, pMod);
245cdf0e10cSrcweir SvxGrafGreenToolBoxControl ::RegisterControl(SID_ATTR_GRAF_GREEN, pMod);
246cdf0e10cSrcweir SvxGrafBlueToolBoxControl ::RegisterControl(SID_ATTR_GRAF_BLUE, pMod);
247cdf0e10cSrcweir SvxGrafLuminanceToolBoxControl ::RegisterControl(SID_ATTR_GRAF_LUMINANCE, pMod);
248cdf0e10cSrcweir SvxGrafContrastToolBoxControl ::RegisterControl(SID_ATTR_GRAF_CONTRAST, pMod);
249cdf0e10cSrcweir SvxGrafGammaToolBoxControl ::RegisterControl(SID_ATTR_GRAF_GAMMA, pMod);
250cdf0e10cSrcweir SvxGrafTransparenceToolBoxControl::RegisterControl(SID_ATTR_GRAF_TRANSPARENCE, pMod);
251cdf0e10cSrcweir SvxGrafFilterToolBoxControl ::RegisterControl(SID_GRFFILTER, pMod);
252cdf0e10cSrcweir
253cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_CAPTION_VERTICAL, pMod);
254cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_DRAW_TEXT_VERTICAL, pMod);
255cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_LEFT_TO_RIGHT, pMod);
256cdf0e10cSrcweir SvxVertTextTbxCtrl::RegisterControl(SID_TEXTDIRECTION_TOP_TO_BOTTOM, pMod);
257cdf0e10cSrcweir SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_LEFT_TO_RIGHT, pMod);
258cdf0e10cSrcweir SvxCTLTextTbxCtrl::RegisterControl(SID_ATTR_PARA_RIGHT_TO_LEFT, pMod);
259cdf0e10cSrcweir
260cdf0e10cSrcweir //Media Controller
261cdf0e10cSrcweir ::avmedia::MediaToolBoxControl::RegisterControl( SID_AVMEDIA_TOOLBOX, pMod );
262cdf0e10cSrcweir
263cdf0e10cSrcweir // common SFX controller
264*7a32b0c8SAndre Fischer ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(NULL, pMod);
265cdf0e10cSrcweir
266cdf0e10cSrcweir // Svx-StatusBar-Controller
267cdf0e10cSrcweir SvxInsertStatusBarControl ::RegisterControl(SID_ATTR_INSERT, pMod);
268cdf0e10cSrcweir SvxSelectionModeControl ::RegisterControl(SID_STATUS_SELMODE, pMod);
269cdf0e10cSrcweir SvxZoomStatusBarControl ::RegisterControl(SID_ATTR_ZOOM, pMod);
270cdf0e10cSrcweir SvxZoomSliderControl ::RegisterControl(SID_ATTR_ZOOMSLIDER, pMod);
271cdf0e10cSrcweir SvxModifyControl ::RegisterControl(SID_DOC_MODIFIED, pMod);
272cdf0e10cSrcweir XmlSecStatusBarControl ::RegisterControl( SID_SIGNATURE, pMod );
273cdf0e10cSrcweir
274cdf0e10cSrcweir SvxPosSizeStatusBarControl ::RegisterControl(SID_ATTR_SIZE, pMod);
275cdf0e10cSrcweir
276cdf0e10cSrcweir // Svx-Menue-Controller
277cdf0e10cSrcweir SvxFontMenuControl ::RegisterControl(SID_ATTR_CHAR_FONT, pMod);
278cdf0e10cSrcweir SvxFontSizeMenuControl ::RegisterControl(SID_ATTR_CHAR_FONTHEIGHT, pMod);
279cdf0e10cSrcweir
280cdf0e10cSrcweir // CustomShape extrusion controller
281cdf0e10cSrcweir svx::ExtrusionColorControl::RegisterControl( SID_EXTRUSION_3D_COLOR, pMod );
282cdf0e10cSrcweir svx::FontWorkShapeTypeControl::RegisterControl( SID_FONTWORK_SHAPE_TYPE, pMod );
283cdf0e10cSrcweir
284cdf0e10cSrcweir // Child-Windows
285cdf0e10cSrcweir
286cdf0e10cSrcweir // Hack: Eingabezeile mit 42 registrieren, damit sie im PlugIn immer sichtbar ist
287cdf0e10cSrcweir ScInputWindowWrapper ::RegisterChildWindow(42, pMod, SFX_CHILDWIN_TASK|SFX_CHILDWIN_FORCEDOCK);
288cdf0e10cSrcweir ScNavigatorDialogWrapper ::RegisterChildWindowContext(
289cdf0e10cSrcweir sal::static_int_cast<sal_uInt16>(ScTabViewShell::GetInterfaceId()), pMod);
290cdf0e10cSrcweir ScSolverDlgWrapper ::RegisterChildWindow(sal_False, pMod);
291cdf0e10cSrcweir ScOptSolverDlgWrapper ::RegisterChildWindow(sal_False, pMod);
292cdf0e10cSrcweir ScNameDlgWrapper ::RegisterChildWindow(sal_False, pMod);
293cdf0e10cSrcweir ScPivotLayoutWrapper ::RegisterChildWindow(sal_False, pMod);
294cdf0e10cSrcweir ScTabOpDlgWrapper ::RegisterChildWindow(sal_False, pMod);
295cdf0e10cSrcweir ScFilterDlgWrapper ::RegisterChildWindow(sal_False, pMod);
296cdf0e10cSrcweir ScSpecialFilterDlgWrapper ::RegisterChildWindow(sal_False, pMod);
297cdf0e10cSrcweir ScDbNameDlgWrapper ::RegisterChildWindow(sal_False, pMod);
298cdf0e10cSrcweir ScConsolidateDlgWrapper ::RegisterChildWindow(sal_False, pMod);
299cdf0e10cSrcweir ScPrintAreasDlgWrapper ::RegisterChildWindow(sal_False, pMod);
300cdf0e10cSrcweir ScCondFormatDlgWrapper ::RegisterChildWindow(sal_False, pMod);
301cdf0e10cSrcweir ScColRowNameRangesDlgWrapper::RegisterChildWindow(sal_False, pMod);
302cdf0e10cSrcweir ScFormulaDlgWrapper ::RegisterChildWindow(sal_False, pMod);
303cdf0e10cSrcweir
304cdf0e10cSrcweir // First docking Window for Calc
305cdf0e10cSrcweir ScFunctionChildWindow ::RegisterChildWindow(sal_False, pMod);
306cdf0e10cSrcweir
307cdf0e10cSrcweir // Redlining- Window
308cdf0e10cSrcweir ScAcceptChgDlgWrapper ::RegisterChildWindow(sal_False, pMod);
309cdf0e10cSrcweir ScSimpleRefDlgWrapper ::RegisterChildWindow(sal_False, pMod, SFX_CHILDWIN_ALWAYSAVAILABLE|SFX_CHILDWIN_NEVERHIDE );
310cdf0e10cSrcweir ScHighlightChgDlgWrapper ::RegisterChildWindow(sal_False, pMod);
311cdf0e10cSrcweir
312cdf0e10cSrcweir SvxSearchDialogWrapper ::RegisterChildWindow(sal_False, pMod);
313cdf0e10cSrcweir SvxHlinkDlgWrapper ::RegisterChildWindow(sal_False, pMod);
314cdf0e10cSrcweir SvxFontWorkChildWindow ::RegisterChildWindow(sal_False, pMod);
315cdf0e10cSrcweir SvxHyperlinkDlgWrapper ::RegisterChildWindow(sal_False, pMod, SFX_CHILDWIN_FORCEDOCK);
316cdf0e10cSrcweir SvxIMapDlgChildWindow ::RegisterChildWindow(sal_False, pMod);
317cdf0e10cSrcweir GalleryChildWindow ::RegisterChildWindow(sal_False, pMod);
318cdf0e10cSrcweir ScSpellDialogChildWindow ::RegisterChildWindow(sal_False, pMod);
319cdf0e10cSrcweir ::avmedia::MediaPlayer ::RegisterChildWindow(sal_False, pMod);
320cdf0e10cSrcweir
321cdf0e10cSrcweir //<!--Added by PengYunQuan for Validity Cell Range Picker
322cdf0e10cSrcweir ScValidityRefChildWin::RegisterChildWindow(sal_False, pMod);
323cdf0e10cSrcweir //-->Added by PengYunQuan for Validity Cell Range Picker
324cdf0e10cSrcweir
325cdf0e10cSrcweir // Edit-Engine-Felder, soweit nicht schon in OfficeApplication::Init
326cdf0e10cSrcweir
327cdf0e10cSrcweir SvClassManager& rClassManager = SvxFieldItem::GetClassManager();
328cdf0e10cSrcweir // rClassManager.SV_CLASS_REGISTER( SvxURLField );
329cdf0e10cSrcweir // rClassManager.SV_CLASS_REGISTER( SvxDateField );
330cdf0e10cSrcweir // rClassManager.SV_CLASS_REGISTER( SvxPageField );
331cdf0e10cSrcweir rClassManager.SV_CLASS_REGISTER( SvxPagesField );
332cdf0e10cSrcweir // rClassManager.SV_CLASS_REGISTER( SvxTimeField );
333cdf0e10cSrcweir rClassManager.SV_CLASS_REGISTER( SvxFileField );
334cdf0e10cSrcweir // rClassManager.SV_CLASS_REGISTER( SvxExtFileField );
335cdf0e10cSrcweir rClassManager.SV_CLASS_REGISTER( SvxTableField );
336cdf0e10cSrcweir
337cdf0e10cSrcweir SdrRegisterFieldClasses(); // SvDraw-Felder registrieren
338cdf0e10cSrcweir
339cdf0e10cSrcweir // 3D-Objekt-Factory eintragen
340cdf0e10cSrcweir E3dObjFactory();
341cdf0e10cSrcweir
342cdf0e10cSrcweir // ::com::sun::star::form::component::Form-Objekt-Factory eintragen
343cdf0e10cSrcweir FmFormObjFactory();
344cdf0e10cSrcweir
345cdf0e10cSrcweir pMod->PutItem( SfxUInt16Item( SID_ATTR_METRIC, sal::static_int_cast<sal_uInt16>(pMod->GetAppOptions().GetAppMetric()) ) );
346cdf0e10cSrcweir
347cdf0e10cSrcweir // StarOne Services are now handled in the registry
348cdf0e10cSrcweir }
349cdf0e10cSrcweir
Exit()350cdf0e10cSrcweir void ScDLL::Exit()
351cdf0e10cSrcweir {
352cdf0e10cSrcweir // the SxxModule must be destroyed
353cdf0e10cSrcweir ScModule **ppShlPtr = (ScModule**) GetAppData(SHL_CALC);
354cdf0e10cSrcweir delete (*ppShlPtr);
355cdf0e10cSrcweir (*ppShlPtr) = NULL;
356cdf0e10cSrcweir
357cdf0e10cSrcweir // ScGlobal::Clear ist schon im Module-dtor
358cdf0e10cSrcweir }
359cdf0e10cSrcweir
360cdf0e10cSrcweir // DetectFilter functionality has moved - please update your bookmarks
361cdf0e10cSrcweir // see sc/source/ui/unoobj/scdetect.cxx, have a nice day.
362