LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - glshell.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 8 14 57.1 %
Date: 2015-06-13 12:38:46 Functions: 5 8 62.5 %
Legend: Lines: hit not hit

          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 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() SAL_OVERRIDE;
      31             : 
      32             : public:
      33             :     TYPEINFO_OVERRIDE();
      34          59 :     SFX_DECL_INTERFACE(SW_GLOSDOCSHELL)
      35             : 
      36             : private:
      37             :     /// SfxInterface initializer.
      38             :     static void InitInterface_Impl();
      39             : 
      40             : public:
      41             :     SwGlosDocShell( bool bNewShow = true);
      42             :     virtual ~SwGlosDocShell();
      43             : 
      44             :     void            Execute( SfxRequest& );
      45             :     void            GetState( SfxItemSet& );
      46           1 :     void            SetLongName( const OUString& rLongName )
      47           1 :                         { aLongName = rLongName; }
      48           1 :     void            SetShortName( const OUString& rShortName )
      49           1 :                         { aShortName = rShortName; }
      50           1 :     void            SetGroupName( const OUString& rGroupName )
      51           1 :                         { aGroupName = rGroupName; }
      52             :     const OUString& GetShortName(){return aShortName;}
      53             : };
      54             : 
      55             : class SwWebGlosDocShell : public SwWebDocShell
      56             : {
      57             :     OUString          aLongName;
      58             :     OUString          aShortName;
      59             :     OUString          aGroupName;
      60             : 
      61             : protected:
      62             :     virtual bool Save() SAL_OVERRIDE;
      63             : 
      64             : public:
      65             :     TYPEINFO_OVERRIDE();
      66          59 :     SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL)
      67             : 
      68             : private:
      69             :     /// SfxInterface initializer.
      70             :     static void InitInterface_Impl();
      71             : 
      72             : public:
      73             :     SwWebGlosDocShell();
      74             :     virtual ~SwWebGlosDocShell();
      75             : 
      76             :     void            Execute( SfxRequest& );
      77             :     void            GetState( SfxItemSet& );
      78           0 :     void            SetLongName( const OUString& rLongName )
      79           0 :                         { aLongName = rLongName; }
      80           0 :     void            SetShortName( const OUString& rShortName )
      81           0 :                         { aShortName = rShortName; }
      82           0 :     void            SetGroupName( const OUString& rGroupName )
      83           0 :                         { aGroupName = rGroupName; }
      84             :     const OUString& GetShortName(){return aShortName;}
      85             : };
      86             : 
      87             : #endif
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11