xref: /aoo41x/main/sc/source/ui/view/tabvwsh.cxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_sc.hxx"
30 
31 
32 
33 //------------------------------------------------------------------
34 // INCLUDE ---------------------------------------------------------------
35 
36 #include "scitems.hxx"
37 #include <svx/galbrws.hxx>
38 #include <svx/imapdlg.hxx>
39 #include <svl/srchitem.hxx>
40 #include <sfx2/templdlg.hxx>
41 #include <sfx2/objface.hxx>
42 #include <sfx2/viewfrm.hxx>
43 #include <sfx2/bindings.hxx>
44 #include <sfx2/app.hxx>
45 #include <avmedia/mediaplayer.hxx>
46 
47 #include "tabvwsh.hxx"
48 #include "docsh.hxx"
49 #include "reffact.hxx"
50 #include "scresid.hxx"
51 #include "dwfunctr.hxx"
52 #include "sc.hrc"       // -> SID_TOOL_xxx
53 #include "drawattr.hxx" // -> SvxDrawToolItem
54 #include "spelldialog.hxx"
55 
56 
57 #define ScTabViewShell
58 #include "scslots.hxx"
59 
60 TYPEINIT2(ScTabViewShell,SfxViewShell,SfxListener);
61 
62 SFX_IMPL_INTERFACE(ScTabViewShell,SfxViewShell,ScResId(SCSTR_TABVIEWSHELL))
63 {
64 	SFX_OBJECTBAR_REGISTRATION( SFX_OBJECTBAR_TOOLS  | SFX_VISIBILITY_STANDARD |
65 								SFX_VISIBILITY_FULLSCREEN | SFX_VISIBILITY_SERVER,
66 								ScResId(RID_OBJECTBAR_TOOLS) );
67 
68 	SFX_CHILDWINDOW_REGISTRATION(FID_INPUTLINE_STATUS);
69 	SFX_CHILDWINDOW_REGISTRATION(SfxTemplateDialogWrapper::GetChildWindowId());
70 	SFX_CHILDWINDOW_CONTEXT_REGISTRATION(SID_NAVIGATOR);
71 	SFX_CHILDWINDOW_REGISTRATION(SID_TASKPANE);
72 	SFX_CHILDWINDOW_REGISTRATION(ScNameDlgWrapper::GetChildWindowId());
73 	SFX_CHILDWINDOW_REGISTRATION(ScSolverDlgWrapper::GetChildWindowId());
74     SFX_CHILDWINDOW_REGISTRATION(ScOptSolverDlgWrapper::GetChildWindowId());
75 	SFX_CHILDWINDOW_REGISTRATION(ScPivotLayoutWrapper::GetChildWindowId());
76 	SFX_CHILDWINDOW_REGISTRATION(ScTabOpDlgWrapper::GetChildWindowId());
77 	SFX_CHILDWINDOW_REGISTRATION(ScFilterDlgWrapper::GetChildWindowId());
78 	SFX_CHILDWINDOW_REGISTRATION(ScSpecialFilterDlgWrapper::GetChildWindowId());
79 	SFX_CHILDWINDOW_REGISTRATION(ScDbNameDlgWrapper::GetChildWindowId());
80 	SFX_CHILDWINDOW_REGISTRATION(ScConsolidateDlgWrapper::GetChildWindowId());
81 	SFX_CHILDWINDOW_REGISTRATION(ScPrintAreasDlgWrapper::GetChildWindowId());
82 	SFX_CHILDWINDOW_REGISTRATION(ScCondFormatDlgWrapper::GetChildWindowId());
83 	SFX_CHILDWINDOW_REGISTRATION(ScColRowNameRangesDlgWrapper::GetChildWindowId());
84 	SFX_CHILDWINDOW_REGISTRATION(ScFormulaDlgWrapper::GetChildWindowId());
85 	SFX_CHILDWINDOW_REGISTRATION(SvxIMapDlgChildWindow::GetChildWindowId());
86 	SFX_CHILDWINDOW_REGISTRATION(ScFunctionChildWindow::GetChildWindowId());
87 	SFX_CHILDWINDOW_REGISTRATION(ScFormulaDlgWrapper::GetChildWindowId());
88 	SFX_CHILDWINDOW_REGISTRATION(ScAcceptChgDlgWrapper::GetChildWindowId());
89 	SFX_CHILDWINDOW_REGISTRATION(ScHighlightChgDlgWrapper::GetChildWindowId());
90 	SFX_CHILDWINDOW_REGISTRATION(ScSimpleRefDlgWrapper::GetChildWindowId());
91 	SFX_CHILDWINDOW_REGISTRATION(SID_SEARCH_DLG);
92 	SFX_CHILDWINDOW_REGISTRATION(SID_HYPERLINK_DIALOG);
93 	SFX_CHILDWINDOW_REGISTRATION(GalleryChildWindow::GetChildWindowId());
94     SFX_CHILDWINDOW_REGISTRATION(ScSpellDialogChildWindow::GetChildWindowId());
95 	SFX_CHILDWINDOW_REGISTRATION( ::avmedia::MediaPlayer::GetChildWindowId() );
96 	SFX_CHILDWINDOW_REGISTRATION(ScValidityRefChildWin::GetChildWindowId());
97 }
98 
99 SFX_IMPL_NAMED_VIEWFACTORY( ScTabViewShell, "Default" )
100 {
101 	SFX_VIEW_REGISTRATION(ScDocShell);
102 }
103 
104 //------------------------------------------------------------------
105 
106 IMPL_LINK( ScTabViewShell, HtmlOptionsHdl, void*, EMPTYARG )
107 {
108 	// Invalidierung, falls blinkender Text erlaubt/verboten wurde
109     GetViewFrame()->GetBindings().Invalidate(SID_DRAW_TEXT_MARQUEE);
110     return 0;
111 }
112