LCOV - code coverage report
Current view: top level - sc/inc - inputopt.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 25 25 100.0 %
Date: 2015-06-13 12:38:46 Functions: 26 26 100.0 %
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             : 
      20             : #ifndef INCLUDED_SC_INC_INPUTOPT_HXX
      21             : #define INCLUDED_SC_INC_INPUTOPT_HXX
      22             : 
      23             : #include <scdllapi.h>
      24             : #include <unotools/configitem.hxx>
      25             : 
      26             : class SC_DLLPUBLIC ScInputOptions
      27             : {
      28             : private:
      29             :     sal_uInt16  nMoveDir;           // enum ScDirection
      30             :     bool        bMoveSelection;
      31             :     bool        bEnterEdit;
      32             :     bool        bExtendFormat;
      33             :     bool        bRangeFinder;
      34             :     bool        bExpandRefs;
      35             :     bool        mbSortRefUpdate;
      36             :     bool        bMarkHeader;
      37             :     bool        bUseTabCol;
      38             :     bool        bTextWysiwyg;
      39             :     bool        bReplCellsWarn;
      40             :     bool        bLegacyCellSelection;
      41             : 
      42             : public:
      43             :                 ScInputOptions();
      44             :                 ScInputOptions( const ScInputOptions& rCpy );
      45             :                 ~ScInputOptions();
      46             : 
      47             :     void        SetDefaults();
      48             : 
      49          52 :     void        SetMoveDir(sal_uInt16 nNew)         { nMoveDir = nNew;       }
      50          11 :     sal_uInt16      GetMoveDir() const              { return nMoveDir;       }
      51          52 :     void        SetMoveSelection(bool bSet)     { bMoveSelection = bSet; }
      52          11 :     bool        GetMoveSelection() const        { return bMoveSelection; }
      53          52 :     void        SetEnterEdit(bool bSet)         { bEnterEdit = bSet;     }
      54          11 :     bool        GetEnterEdit() const            { return bEnterEdit;     }
      55          52 :     void        SetExtendFormat(bool bSet)      { bExtendFormat = bSet;  }
      56          11 :     bool        GetExtendFormat() const         { return bExtendFormat;  }
      57          52 :     void        SetRangeFinder(bool bSet)       { bRangeFinder = bSet;   }
      58          11 :     bool        GetRangeFinder() const          { return bRangeFinder;   }
      59          59 :     void        SetExpandRefs(bool bSet)        { bExpandRefs = bSet;    }
      60         279 :     bool        GetExpandRefs() const           { return bExpandRefs;    }
      61          78 :     void        SetSortRefUpdate(bool bSet)     { mbSortRefUpdate = bSet; }
      62          92 :     bool        GetSortRefUpdate() const        { return mbSortRefUpdate; }
      63          52 :     void        SetMarkHeader(bool bSet)        { bMarkHeader = bSet;    }
      64        5798 :     bool        GetMarkHeader() const           { return bMarkHeader;    }
      65          52 :     void        SetUseTabCol(bool bSet)         { bUseTabCol = bSet;     }
      66          11 :     bool        GetUseTabCol() const            { return bUseTabCol;     }
      67          52 :     void        SetTextWysiwyg(bool bSet)       { bTextWysiwyg = bSet;   }
      68       10590 :     bool        GetTextWysiwyg() const          { return bTextWysiwyg;   }
      69          82 :     void        SetReplaceCellsWarn(bool bSet)  { bReplCellsWarn = bSet; }
      70          26 :     bool        GetReplaceCellsWarn() const     { return bReplCellsWarn; }
      71          49 :     void        SetLegacyCellSelection(bool bSet)   { bLegacyCellSelection = bSet; }
      72          87 :     bool        GetLegacyCellSelection() const      { return bLegacyCellSelection; }
      73             : 
      74             :     const ScInputOptions&   operator=   ( const ScInputOptions& rOpt );
      75             : };
      76             : 
      77             : // CfgItem for input options
      78             : 
      79          32 : class ScInputCfg : public ScInputOptions,
      80             :                   public utl::ConfigItem
      81             : {
      82             :     static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
      83             : 
      84             :     virtual void    ImplCommit() SAL_OVERRIDE;
      85             : 
      86             : public:
      87             :             ScInputCfg();
      88             : 
      89             :     void            SetOptions( const ScInputOptions& rNew );
      90             :     void            OptionsChanged();   // after direct access to SetOptions base class
      91             : 
      92             :     virtual void    Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames ) SAL_OVERRIDE;
      93             : };
      94             : 
      95             : #endif
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11