xref: /aoo42x/main/sd/source/ui/docshell/grdocsh.cxx (revision 79aad27f)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sd.hxx"
26 
27 #ifndef _SVXIDS_HRC
28 #include <svx/svxids.hrc>
29 #endif
30 #include <sfx2/app.hxx>
31 #include <svl/srchitem.hxx>
32 #include <tools/globname.hxx>
33 
34 #ifndef _SO_CLSIDS_HXX //autogen
35 #include <sot/clsids.hxx>
36 #endif
37 
38 #include <sfx2/objface.hxx>
39 
40 
41 #include "app.hrc"
42 #include "strings.hrc"
43 #include "glob.hrc"
44 #include "GraphicDocShell.hxx"
45 #include "DrawDocShell.hxx"
46 #include "drawdoc.hxx"
47 #include "sdresid.hxx"
48 
49 using namespace sd;
50 #define GraphicDocShell
51 #include "sdgslots.hxx"
52 
53 namespace sd
54 {
55 TYPEINIT1(GraphicDocShell, DrawDocShell);
56 
57 SFX_IMPL_INTERFACE(GraphicDocShell, SfxObjectShell, SdResId(0))
58 {
59 	SFX_CHILDWINDOW_REGISTRATION(SID_SEARCH_DLG);
60 	SFX_CHILDWINDOW_REGISTRATION( SID_HYPERLINK_INSERT );
61 }
62 
63 SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SFXOBJECTSHELL_STD_NORMAL, "sdraw" )
64 
GraphicDocShell(SfxObjectCreateMode eMode,sal_Bool bDataObject,DocumentType eDocType)65 GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode,
66 									 sal_Bool bDataObject,
67 									 DocumentType eDocType) :
68 	DrawDocShell(eMode, bDataObject, eDocType)
69 {
70 	SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
71 }
72 
GraphicDocShell(const sal_uInt64 nModelCreationFlags,sal_Bool bDataObject,DocumentType eDocType)73 GraphicDocShell::GraphicDocShell(const sal_uInt64 nModelCreationFlags,
74 									 sal_Bool bDataObject,
75 									 DocumentType eDocType) :
76 	DrawDocShell(nModelCreationFlags, bDataObject, eDocType)
77 {
78 	SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
79 }
80 
~GraphicDocShell()81 GraphicDocShell::~GraphicDocShell()
82 {
83 }
84 
85 
86 } // end of namespace sd
87