LCOV - code coverage report
Current view: top level - include/svtools - apearcfg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 11 36.4 %
Date: 2015-06-13 12:38:46 Functions: 4 11 36.4 %
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_SVTOOLS_APEARCFG_HXX
      20             : #define INCLUDED_SVTOOLS_APEARCFG_HXX
      21             : 
      22             : #include <svtools/svtdllapi.h>
      23             : #include <unotools/configitem.hxx>
      24             : 
      25             : class Application;
      26             : enum class MouseMiddleButtonAction;
      27             : 
      28             : typedef enum {
      29             :     SnapToButton = 0,
      30             :     SnapToMiddle,
      31             :     NoSnap
      32             : } SnapType;
      33             : 
      34             : typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg.src
      35             :     DragFullWindow,
      36             :     DragFrame,
      37             :     DragSystemDep
      38             : } DragMode;
      39             : 
      40             : 
      41             : class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
      42             : {
      43             :     short           nDragMode           ;
      44             :     short           nScaleFactor        ;
      45             :     short           nSnapMode           ;
      46             :     MouseMiddleButtonAction nMiddleMouse;
      47             : #if defined( UNX )
      48             :     short           nAAMinPixelHeight   ;
      49             : #endif
      50             : 
      51             :     bool            bMenuMouseFollow        ;
      52             : #if defined( UNX )
      53             :     bool            bFontAntialiasing       ;
      54             : #endif
      55             : 
      56             :     static bool  bInitialized ;
      57             : 
      58             :     SVT_DLLPRIVATE const com::sun::star::uno::Sequence<OUString>& GetPropertyNames();
      59             :     virtual void    ImplCommit() SAL_OVERRIDE;
      60             : 
      61             : public:
      62             :     SvtTabAppearanceCfg( );
      63             :     virtual ~SvtTabAppearanceCfg( );
      64             : 
      65             :     virtual void Notify( const com::sun::star::uno::Sequence< OUString >& _rPropertyNames) SAL_OVERRIDE;
      66             : 
      67         116 :     sal_uInt16  GetDragMode  () const { return nDragMode; }
      68             : 
      69           0 :     sal_uInt16      GetScaleFactor () const { return nScaleFactor; }
      70             :     void        SetScaleFactor ( sal_uInt16 nSet );
      71             : 
      72           0 :     sal_uInt16      GetSnapMode () const { return nSnapMode; }
      73             :     void        SetSnapMode ( sal_uInt16 nSet );
      74             : 
      75           0 :     MouseMiddleButtonAction GetMiddleMouseButton () const { return nMiddleMouse; }
      76             :     void        SetMiddleMouseButton ( MouseMiddleButtonAction nSet );
      77             : 
      78             :     void        SetApplicationDefaults ( Application* pApp );
      79             : 
      80             :     void        SetMenuMouseFollow(bool bSet) {bMenuMouseFollow = bSet; SetModified();}
      81         116 :     bool        IsMenuMouseFollow() const{return bMenuMouseFollow;}
      82             : 
      83             : #if defined( UNX )
      84           0 :     void        SetFontAntiAliasing( bool bSet )    { bFontAntialiasing = bSet; SetModified(); }
      85           0 :     bool        IsFontAntiAliasing() const { return bFontAntialiasing; }
      86             : 
      87           0 :     sal_uInt16  GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; }
      88           0 :     void        SetFontAntialiasingMinPixelHeight( sal_uInt16 _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); }
      89             : #endif
      90             : 
      91         232 :     static bool IsInitialized()  { return bInitialized; }
      92         116 :     static void SetInitialized() { bInitialized = true; }
      93             : };
      94             : 
      95             : #endif //  _OFA_APEARCFG_HXX
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11