bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / docshell / grdocsh.cxx
blob0da31b4f6d9b7657bb06f10831d71fb33c19a5d5
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 "strings.hrc"
32 #include "glob.hrc"
33 #include "GraphicDocShell.hxx"
34 #include "DrawDocShell.hxx"
35 #include "drawdoc.hxx"
36 #include "sdresid.hxx"
38 using namespace sd;
39 #define GraphicDocShell
40 #include "sdgslots.hxx"
42 namespace sd
44 TYPEINIT1(GraphicDocShell, DrawDocShell);
46 SFX_IMPL_SUPERCLASS_INTERFACE(GraphicDocShell, SfxObjectShell)
48 void GraphicDocShell::InitInterface_Impl()
50 GetStaticInterface()->RegisterChildWindow(SID_SEARCH_DLG);
53 SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SfxObjectShellFlags::STD_NORMAL, "sdraw" )
55 GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode,
56 bool bDataObject,
57 DocumentType eDocType) :
58 DrawDocShell(eMode, bDataObject, eDocType)
60 SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
63 GraphicDocShell::GraphicDocShell(SfxModelFlags nModelCreationFlags,
64 bool bDataObject,
65 DocumentType eDocType) :
66 DrawDocShell(nModelCreationFlags, bDataObject, eDocType)
68 SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
71 GraphicDocShell::~GraphicDocShell()
75 } // end of namespace sd
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */