Branch data 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 : : #ifndef _GLSHELL_HXX
20 : : #define _GLSHELL_HXX
21 : : #include "wdocsh.hxx"
22 : :
23 : : class SwGlosDocShell : public SwDocShell
24 : : {
25 : : String aLongName;
26 : : String aShortName;
27 : : String aGroupName;
28 : : sal_Bool bShow;
29 : :
30 : : using SotObject::GetInterface;
31 : :
32 : : protected:
33 : : virtual sal_Bool Save();
34 : :
35 : : public:
36 : :
37 : : TYPEINFO();
38 : 73 : SFX_DECL_INTERFACE(SW_GLOSDOCSHELL)
39 : :
40 : : SwGlosDocShell( sal_Bool bNewShow = sal_True);
41 : : virtual ~SwGlosDocShell();
42 : :
43 : : void Execute( SfxRequest& );
44 : : void GetState( SfxItemSet& );
45 : 2 : void SetLongName( const String& rLongName )
46 : 2 : { aLongName = rLongName; }
47 : 2 : void SetShortName( const String& rShortName )
48 : 2 : { aShortName = rShortName; }
49 : 2 : void SetGroupName( const String& rGroupName )
50 : 2 : { aGroupName = rGroupName; }
51 : : const String& GetShortName(){return aShortName;}
52 : : };
53 : :
54 : :
55 : : class SwWebGlosDocShell : public SwWebDocShell
56 : : {
57 : : String aLongName;
58 : : String aShortName;
59 : : String aGroupName;
60 : :
61 : : using SotObject::GetInterface;
62 : :
63 : : protected:
64 : : virtual sal_Bool Save();
65 : :
66 : : public:
67 : :
68 : : TYPEINFO();
69 : 73 : SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL)
70 : :
71 : : SwWebGlosDocShell();
72 : : virtual ~SwWebGlosDocShell();
73 : :
74 : : void Execute( SfxRequest& );
75 : : void GetState( SfxItemSet& );
76 : 0 : void SetLongName( const String& rLongName )
77 : 0 : { aLongName = rLongName; }
78 : 0 : void SetShortName( const String& rShortName )
79 : 0 : { aShortName = rShortName; }
80 : 0 : void SetGroupName( const String& rGroupName )
81 : 0 : { aGroupName = rGroupName; }
82 : : const String& GetShortName(){return aShortName;}
83 : : };
84 : :
85 : : #endif
86 : :
87 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|