xref: /aoo41x/main/sd/source/ui/inc/GraphicDocShell.hxx (revision 67e470da)
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 #ifndef SD_GRAPHIC_DOC_SHELL_HXX
25 #define SD_GRAPHIC_DOC_SHELL_HXX
26 
27 #include <sfx2/docfac.hxx>
28 #include <sfx2/objsh.hxx>
29 #include "DrawDocShell.hxx"
30 #include "glob.hxx"
31 #include "sdmod.hxx"
32 #include "pres.hxx"
33 
34 namespace sd {
35 
36 /*************************************************************************
37 |*
38 |* Document-Shell fuer Draw-Dokumente
39 |*
40 \************************************************************************/
41 
42 class GraphicDocShell
43     : public DrawDocShell
44 {
45 public:
46 	TYPEINFO();
47 
48 	SFX_DECL_INTERFACE(SD_IF_SDGRAPHICDOCSHELL)
49     SFX_DECL_OBJECTFACTORY();
50 
51 	using SotObject::GetInterface;
52 
53 	GraphicDocShell (
54         SfxObjectCreateMode eMode = SFX_CREATE_MODE_EMBEDDED,
55         sal_Bool bSdDataObj=sal_False,
56         DocumentType=DOCUMENT_TYPE_DRAW);
57 
58 	GraphicDocShell (
59         const sal_uInt64 nModelCreationFlags,
60         sal_Bool bSdDataObj=sal_False,
61         DocumentType=DOCUMENT_TYPE_DRAW);
62 
63 	virtual ~GraphicDocShell (void);
64 };
65 
66 #ifndef SV_DECL_SD_GRAPHIC_DOC_SHELL_DEFINED
67 #define SV_DECL_SD_GRAPHIC_DOC_SHELL_DEFINED
68 SV_DECL_REF(GraphicDocShell)
69 #endif
70 
71 SV_IMPL_REF (GraphicDocShell)
72 
73 } // end of namespace sd
74 
75 #endif
76