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

Generated by: LCOV version 1.10