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

Generated by: LCOV version 1.10