LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - glshell.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 8 14 57.1 %
Date: 2014-11-03 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             :     using SotObject::GetInterface;
      30             : 
      31             : protected:
      32             :     virtual bool Save() SAL_OVERRIDE;
      33             : 
      34             : public:
      35             :     TYPEINFO_OVERRIDE();
      36          90 :     SFX_DECL_INTERFACE(SW_GLOSDOCSHELL)
      37             : 
      38             : private:
      39             :     /// SfxInterface initializer.
      40             :     static void InitInterface_Impl();
      41             : 
      42             : public:
      43             :     SwGlosDocShell( bool bNewShow = true);
      44             :     virtual ~SwGlosDocShell();
      45             : 
      46             :     void            Execute( SfxRequest& );
      47             :     void            GetState( SfxItemSet& );
      48           2 :     void            SetLongName( const OUString& rLongName )
      49           2 :                         { aLongName = rLongName; }
      50           2 :     void            SetShortName( const OUString& rShortName )
      51           2 :                         { aShortName = rShortName; }
      52           2 :     void            SetGroupName( const OUString& rGroupName )
      53           2 :                         { aGroupName = rGroupName; }
      54             :     const OUString& GetShortName(){return aShortName;}
      55             : };
      56             : 
      57             : class SwWebGlosDocShell : public SwWebDocShell
      58             : {
      59             :     OUString          aLongName;
      60             :     OUString          aShortName;
      61             :     OUString          aGroupName;
      62             : 
      63             :     using SotObject::GetInterface;
      64             : 
      65             : protected:
      66             :     virtual bool Save() SAL_OVERRIDE;
      67             : 
      68             : public:
      69             :     TYPEINFO_OVERRIDE();
      70          90 :     SFX_DECL_INTERFACE(SW_WEBGLOSDOCSHELL)
      71             : 
      72             : private:
      73             :     /// SfxInterface initializer.
      74             :     static void InitInterface_Impl();
      75             : 
      76             : public:
      77             :     SwWebGlosDocShell();
      78             :     virtual ~SwWebGlosDocShell();
      79             : 
      80             :     void            Execute( SfxRequest& );
      81             :     void            GetState( SfxItemSet& );
      82           0 :     void            SetLongName( const OUString& rLongName )
      83           0 :                         { aLongName = rLongName; }
      84           0 :     void            SetShortName( const OUString& rShortName )
      85           0 :                         { aShortName = rShortName; }
      86           0 :     void            SetGroupName( const OUString& rGroupName )
      87           0 :                         { aGroupName = rGroupName; }
      88             :     const OUString& GetShortName(){return aShortName;}
      89             : };
      90             : 
      91             : #endif
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10