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

Generated by: LCOV version 1.10