merge the formfield patch from ooo-build
[ooovba.git] / sd / source / ui / docshell / grdocsh.cxx
blob3fac9a0d8edc4ccc86144c7190db4f6b7b9620b7
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: grdocsh.cxx,v $
10 * $Revision: 1.15 $
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_sd.hxx"
34 #ifndef _SVXIDS_HRC
35 #include <svx/svxids.hrc>
36 #endif
37 #include <sfx2/app.hxx>
38 #include <sfx2/srchitem.hxx>
39 #include <tools/globname.hxx>
41 #ifndef _SO_CLSIDS_HXX //autogen
42 #include <sot/clsids.hxx>
43 #endif
45 #include <sfx2/objface.hxx>
48 #include "app.hrc"
49 #include "strings.hrc"
50 #include "glob.hrc"
51 #include "GraphicDocShell.hxx"
52 #include "DrawDocShell.hxx"
53 #include "drawdoc.hxx"
54 #include "sdresid.hxx"
56 using namespace sd;
57 #define GraphicDocShell
58 #include "sdgslots.hxx"
60 namespace sd
62 TYPEINIT1(GraphicDocShell, DrawDocShell);
64 SFX_IMPL_INTERFACE(GraphicDocShell, SfxObjectShell, SdResId(0))
66 SFX_CHILDWINDOW_REGISTRATION(SID_SEARCH_DLG);
67 SFX_CHILDWINDOW_REGISTRATION( SID_HYPERLINK_INSERT );
70 SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SFXOBJECTSHELL_STD_NORMAL, "sdraw" )
72 GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode,
73 BOOL bDataObject,
74 DocumentType eDocType,BOOL bScriptSupport) :
75 DrawDocShell(eMode, bDataObject, eDocType, bScriptSupport)
77 SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
80 GraphicDocShell::~GraphicDocShell()
85 } // end of namespace sd