Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sd / source / ui / docshell / grdocsh.cxx
blobe6d400f86e3d19ec85df99c0a64ee70852dcdcb3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <svx/svxids.hrc>
21 #include <sfx2/app.hxx>
22 #include <sfx2/request.hxx>
23 #include <svl/srchitem.hxx>
24 #include <tools/globname.hxx>
26 #include <comphelper/classids.hxx>
28 #include <sfx2/objface.hxx>
30 #include <app.hrc>
31 #include <GraphicDocShell.hxx>
32 #include <DrawDocShell.hxx>
33 #include <drawdoc.hxx>
35 using namespace sd;
36 #define ShellClass_GraphicDocShell
37 #include <sdgslots.hxx>
39 namespace sd
42 SFX_IMPL_SUPERCLASS_INTERFACE(GraphicDocShell, SfxObjectShell)
44 void GraphicDocShell::InitInterface_Impl()
46 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
49 SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SfxObjectShellFlags::STD_NORMAL, "sdraw" )
51 GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode,
52 bool bDataObject,
53 DocumentType eDocType) :
54 DrawDocShell(eMode, bDataObject, eDocType)
56 SetStyleFamily( SfxStyleFamily::Para );
59 GraphicDocShell::GraphicDocShell(SfxModelFlags nModelCreationFlags,
60 bool bDataObject,
61 DocumentType eDocType) :
62 DrawDocShell(nModelCreationFlags, bDataObject, eDocType)
64 SetStyleFamily( SfxStyleFamily::Para );
67 GraphicDocShell::~GraphicDocShell()
71 } // end of namespace sd
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */