Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 :
21 : #include <svx/svxids.hrc>
22 : #include <sfx2/app.hxx>
23 : #include <svl/srchitem.hxx>
24 : #include <tools/globname.hxx>
25 :
26 : #include <comphelper/classids.hxx>
27 :
28 : #include <sfx2/objface.hxx>
29 :
30 :
31 : #include "app.hrc"
32 : #include "strings.hrc"
33 : #include "glob.hrc"
34 : #include "GraphicDocShell.hxx"
35 : #include "DrawDocShell.hxx"
36 : #include "drawdoc.hxx"
37 : #include "sdresid.hxx"
38 :
39 : using namespace sd;
40 : #define GraphicDocShell
41 : #include "sdgslots.hxx"
42 :
43 : namespace sd
44 : {
45 0 : TYPEINIT1(GraphicDocShell, DrawDocShell);
46 :
47 0 : SFX_IMPL_INTERFACE(GraphicDocShell, SfxObjectShell, SdResId(0))
48 : {
49 0 : SFX_CHILDWINDOW_REGISTRATION(SID_SEARCH_DLG);
50 0 : }
51 :
52 0 : SFX_IMPL_OBJECTFACTORY( GraphicDocShell, SvGlobalName(SO3_SDRAW_CLASSID_60), SFXOBJECTSHELL_STD_NORMAL, "sdraw" )
53 :
54 0 : GraphicDocShell::GraphicDocShell(SfxObjectCreateMode eMode,
55 : sal_Bool bDataObject,
56 : DocumentType eDocType) :
57 0 : DrawDocShell(eMode, bDataObject, eDocType)
58 : {
59 0 : SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
60 0 : }
61 :
62 0 : GraphicDocShell::GraphicDocShell(const sal_uInt64 nModelCreationFlags,
63 : sal_Bool bDataObject,
64 : DocumentType eDocType) :
65 0 : DrawDocShell(nModelCreationFlags, bDataObject, eDocType)
66 : {
67 0 : SetStyleFamily( SD_STYLE_FAMILY_GRAPHICS );
68 0 : }
69 :
70 0 : GraphicDocShell::~GraphicDocShell()
71 : {
72 0 : }
73 :
74 :
75 : } // end of namespace sd
76 :
77 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|