1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tabvwsh.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sc.hxx"
36 //------------------------------------------------------------------
37 // INCLUDE ---------------------------------------------------------------
39 #include "scitems.hxx"
40 #include <svx/galbrws.hxx>
41 #include <svx/imapdlg.hxx>
42 #include <svx/srchitem.hxx>
43 #include <sfx2/templdlg.hxx>
44 #include <sfx2/objface.hxx>
45 #include <sfx2/app.hxx>
46 #include <avmedia/mediaplayer.hxx>
48 #include "tabvwsh.hxx"
50 #include "reffact.hxx"
51 #include "scresid.hxx"
52 #include "dwfunctr.hxx"
53 #include "sc.hrc" // -> SID_TOOL_xxx
54 #include "drawattr.hxx" // -> SvxDrawToolItem
55 #include "spelldialog.hxx"
58 #define ScTabViewShell
59 #include "scslots.hxx"
61 #define SearchSettings
62 #include <svx/svxslots.hxx>
64 TYPEINIT2(ScTabViewShell
,SfxViewShell
,SfxListener
);
66 SFX_IMPL_INTERFACE(ScTabViewShell
,SfxViewShell
,ScResId(SCSTR_TABVIEWSHELL
))
68 SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_TOOLS
| SFX_VISIBILITY_STANDARD
|
69 SFX_VISIBILITY_FULLSCREEN
| SFX_VISIBILITY_SERVER
,
70 ScResId(RID_OBJECTBAR_TOOLS
) );
72 SFX_CHILDWINDOW_REGISTRATION(FID_INPUTLINE_STATUS
);
73 SFX_CHILDWINDOW_REGISTRATION(SfxTemplateDialogWrapper::GetChildWindowId());
74 SFX_CHILDWINDOW_CONTEXT_REGISTRATION(SID_NAVIGATOR
);
75 SFX_CHILDWINDOW_REGISTRATION(ScNameDlgWrapper::GetChildWindowId());
76 SFX_CHILDWINDOW_REGISTRATION(ScSolverDlgWrapper::GetChildWindowId());
77 SFX_CHILDWINDOW_REGISTRATION(ScOptSolverDlgWrapper::GetChildWindowId());
78 SFX_CHILDWINDOW_REGISTRATION(ScPivotLayoutWrapper::GetChildWindowId());
79 SFX_CHILDWINDOW_REGISTRATION(ScTabOpDlgWrapper::GetChildWindowId());
80 SFX_CHILDWINDOW_REGISTRATION(ScFilterDlgWrapper::GetChildWindowId());
81 SFX_CHILDWINDOW_REGISTRATION(ScSpecialFilterDlgWrapper::GetChildWindowId());
82 SFX_CHILDWINDOW_REGISTRATION(ScDbNameDlgWrapper::GetChildWindowId());
83 SFX_CHILDWINDOW_REGISTRATION(ScConsolidateDlgWrapper::GetChildWindowId());
84 SFX_CHILDWINDOW_REGISTRATION(ScPrintAreasDlgWrapper::GetChildWindowId());
85 SFX_CHILDWINDOW_REGISTRATION(ScCondFormatDlgWrapper::GetChildWindowId());
86 SFX_CHILDWINDOW_REGISTRATION(ScColRowNameRangesDlgWrapper::GetChildWindowId());
87 SFX_CHILDWINDOW_REGISTRATION(ScFormulaDlgWrapper::GetChildWindowId());
88 SFX_CHILDWINDOW_REGISTRATION(SvxIMapDlgChildWindow::GetChildWindowId());
89 SFX_CHILDWINDOW_REGISTRATION(ScFunctionChildWindow::GetChildWindowId());
90 SFX_CHILDWINDOW_REGISTRATION(ScFormulaDlgWrapper::GetChildWindowId());
91 SFX_CHILDWINDOW_REGISTRATION(ScAcceptChgDlgWrapper::GetChildWindowId());
92 SFX_CHILDWINDOW_REGISTRATION(ScHighlightChgDlgWrapper::GetChildWindowId());
93 SFX_CHILDWINDOW_REGISTRATION(ScSimpleRefDlgWrapper::GetChildWindowId());
94 SFX_CHILDWINDOW_REGISTRATION(SID_SEARCH_DLG
);
95 SFX_CHILDWINDOW_REGISTRATION(SID_HYPERLINK_DIALOG
);
96 SFX_CHILDWINDOW_REGISTRATION(GalleryChildWindow::GetChildWindowId());
97 SFX_CHILDWINDOW_REGISTRATION(ScSpellDialogChildWindow::GetChildWindowId());
98 SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
101 SFX_IMPL_VIEWFACTORY( ScTabViewShell
, ScResId(STR_NONAME
) )
103 SFX_VIEW_REGISTRATION(ScDocShell
);
106 //------------------------------------------------------------------