xref: /aoo41x/main/sw/source/ui/inc/glshell.hxx (revision 1d2dbeb0)
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 #ifndef _AUTODOC_HXX
24 #define _AUTODOC_HXX
25 #include "wdocsh.hxx"
26 
27 class SwGlosDocShell : public SwDocShell
28 {
29 	String 			aLongName;
30 	String 			aShortName;
31 	String			aGroupName;
32 	sal_Bool 		bShow;
33 
34     using SotObject::GetInterface;
35 
36 protected:
37 	virtual sal_Bool Save();
38 
39 public:
40 
41     TYPEINFO();
42 	SFX_DECL_INTERFACE(SW_GLOSDOCSHELL)
43 
44     SwGlosDocShell( sal_Bool bNewShow = sal_True);
45 	virtual ~SwGlosDocShell();
46 
47 	void			Execute( SfxRequest& );
48 	void			GetState( SfxItemSet& );
SetLongName(const String & rLongName)49 	void 			SetLongName( const String& rLongName )
50 						{ aLongName = rLongName; }
SetShortName(const String & rShortName)51 	void 			SetShortName( const String& rShortName )
52 						{ aShortName = rShortName; }
SetGroupName(const String & rGroupName)53 	void 			SetGroupName( const String& rGroupName )
54 						{ aGroupName = rGroupName; }
GetShortName()55 	const String& 	GetShortName(){return aShortName;}
56 };
57 
58 
59 class SwWebGlosDocShell : public SwWebDocShell
60 {
61 	String 			aLongName;
62 	String 			aShortName;
63 	String			aGroupName;
64 
65     using SotObject::GetInterface;
66 
67 protected:
68 	virtual sal_Bool Save();
69 
70 public:
71 
72 	TYPEINFO();
73 	SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL)
74 
75     SwWebGlosDocShell();
76 	virtual ~SwWebGlosDocShell();
77 
78 	void			Execute( SfxRequest& );
79 	void			GetState( SfxItemSet& );
SetLongName(const String & rLongName)80 	void 			SetLongName( const String& rLongName )
81 						{ aLongName = rLongName; }
SetShortName(const String & rShortName)82 	void 			SetShortName( const String& rShortName )
83 						{ aShortName = rShortName; }
SetGroupName(const String & rGroupName)84 	void 			SetGroupName( const String& rGroupName )
85 						{ aGroupName = rGroupName; }
GetShortName()86 	const String& 	GetShortName(){return aShortName;}
87 };
88 
89 #endif
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111