LibreOffice Module sw (master)  1
glshell.hxx
Go to the documentation of this file.
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 INCLUDED_SW_SOURCE_UIBASE_INC_GLSHELL_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_GLSHELL_HXX
21 #include <wdocsh.hxx>
22 
23 class SwGlosDocShell : public SwDocShell
24 {
25  OUString aLongName;
26  OUString aShortName;
27  OUString aGroupName;
28 
29 protected:
30  virtual bool Save() override;
31 
32 public:
34 
35 private:
37  static void InitInterface_Impl();
38 
39 public:
40  SwGlosDocShell( bool bNewShow);
41  virtual ~SwGlosDocShell() override;
42 
43  void Execute( SfxRequest& );
44  void GetState( SfxItemSet& );
45  void SetLongName( const OUString& rLongName )
46  { aLongName = rLongName; }
47  void SetShortName( const OUString& rShortName )
48  { aShortName = rShortName; }
49  void SetGroupName( const OUString& rGroupName )
50  { aGroupName = rGroupName; }
51 };
52 
54 {
55  OUString aLongName;
56  OUString aShortName;
57  OUString aGroupName;
58 
59 protected:
60  virtual bool Save() override;
61 
62 public:
64 
65 private:
67  static void InitInterface_Impl();
68 
69 public:
71  virtual ~SwWebGlosDocShell() override;
72 
73  void Execute( SfxRequest& );
74  void GetState( SfxItemSet& );
75  void SetLongName( const OUString& rLongName )
76  { aLongName = rLongName; }
77  void SetShortName( const OUString& rShortName )
78  { aShortName = rShortName; }
79  void SetGroupName( const OUString& rGroupName )
80  { aGroupName = rGroupName; }
81 };
82 
83 #endif
84 
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString aGroupName
Definition: glshell.hxx:27
OUString aGroupName
Definition: glshell.hxx:57
virtual bool Save() override
global IO.
Definition: glshell.cxx:187
void SetLongName(const OUString &rLongName)
Definition: glshell.hxx:45
void SetShortName(const OUString &rShortName)
Definition: glshell.hxx:47
void GetState(SfxItemSet &)
Definition: glshell.cxx:182
void Execute(SfxRequest &)
Definition: glshell.cxx:177
void Execute(SfxRequest &)
Definition: glshell.cxx:142
#define SW_WEBGLOSDOCSHELL
Definition: shellid.hxx:52
OUString aShortName
Definition: glshell.hxx:56
OUString aLongName
Definition: glshell.hxx:55
void GetState(SfxItemSet &)
Definition: glshell.cxx:147
static void InitInterface_Impl()
SfxInterface initializer.
Definition: glshell.cxx:61
void SetShortName(const OUString &rShortName)
Definition: glshell.hxx:77
OUString aLongName
Definition: glshell.hxx:25
void SetGroupName(const OUString &rGroupName)
Definition: glshell.hxx:49
void SetGroupName(const OUString &rGroupName)
Definition: glshell.hxx:79
static void InitInterface_Impl()
SfxInterface initializer.
Definition: glshell.cxx:67
virtual bool Save() override
global IO.
Definition: glshell.cxx:152
OUString aShortName
Definition: glshell.hxx:26
#define SW_GLOSDOCSHELL
Definition: shellid.hxx:40
void SetLongName(const OUString &rLongName)
Definition: glshell.hxx:75
#define SFX_DECL_INTERFACE(nId)