LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/svtools - apearcfg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 11 36.4 %
Date: 2012-08-25 Functions: 4 11 36.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SVT_APEARCFG_HXX
      29                 :            : #define _SVT_APEARCFG_HXX
      30                 :            : 
      31                 :            : #include "svtools/svtdllapi.h"
      32                 :            : #include "tools/solar.h"
      33                 :            : #include <unotools/configitem.hxx>
      34                 :            : 
      35                 :            : class Application;
      36                 :            : 
      37                 :            : typedef enum {
      38                 :            :     SnapToButton = 0,
      39                 :            :     SnapToMiddle,
      40                 :            :     NoSnap
      41                 :            : } SnapType;
      42                 :            : 
      43                 :            : typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg.src
      44                 :            :     DragFullWindow,
      45                 :            :     DragFrame,
      46                 :            :     DragSystemDep
      47                 :            : } DragMode;
      48                 :            : 
      49                 :            : 
      50                 :            : class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
      51                 :            : {
      52                 :            :     short           nDragMode           ;
      53                 :            :     short           nScaleFactor        ;
      54                 :            :     short           nSnapMode           ;
      55                 :            :     short           nMiddleMouse;
      56                 :            : #if defined( UNX )
      57                 :            :     short           nAAMinPixelHeight   ;
      58                 :            : #endif
      59                 :            : 
      60                 :            :     sal_Bool            bMenuMouseFollow        ;
      61                 :            : #if defined( UNX )
      62                 :            :     sal_Bool            bFontAntialiasing       ;
      63                 :            : #endif
      64                 :            : 
      65                 :            :     static sal_Bool  bInitialized ;
      66                 :            : 
      67                 :            :     SVT_DLLPRIVATE const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
      68                 :            : 
      69                 :            : public:
      70                 :            :     SvtTabAppearanceCfg( );
      71                 :            :     ~SvtTabAppearanceCfg( );
      72                 :            : 
      73                 :            :     virtual void    Commit();
      74                 :            :     virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
      75                 :            : 
      76                 :        316 :     sal_uInt16  GetDragMode  () const { return nDragMode; }
      77                 :            : 
      78                 :          0 :     sal_uInt16      GetScaleFactor () const { return nScaleFactor; }
      79                 :            :     void        SetScaleFactor ( sal_uInt16 nSet );
      80                 :            : 
      81                 :          0 :     sal_uInt16      GetSnapMode () const { return nSnapMode; }
      82                 :            :     void        SetSnapMode ( sal_uInt16 nSet );
      83                 :            : 
      84                 :          0 :     sal_uInt16      GetMiddleMouseButton () const { return nMiddleMouse; }
      85                 :            :     void        SetMiddleMouseButton ( sal_uInt16 nSet );
      86                 :            : 
      87                 :            :     void        SetApplicationDefaults ( Application* pApp );
      88                 :            : 
      89                 :            :     void        SetMenuMouseFollow(sal_Bool bSet) {bMenuMouseFollow = bSet; SetModified();}
      90                 :        316 :     sal_Bool        IsMenuMouseFollow() const{return bMenuMouseFollow;}
      91                 :            : 
      92                 :            : #if defined( UNX )
      93                 :          0 :     void        SetFontAntiAliasing( sal_Bool bSet )    { bFontAntialiasing = bSet; SetModified(); }
      94                 :          0 :     sal_Bool        IsFontAntiAliasing() const { return bFontAntialiasing; }
      95                 :            : 
      96                 :          0 :     sal_uInt16      GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; }
      97                 :          0 :     void        SetFontAntialiasingMinPixelHeight( sal_uInt16 _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); }
      98                 :            : #endif
      99                 :            : 
     100                 :        316 :     static sal_Bool IsInitialized()  { return bInitialized; }
     101                 :        158 :     static void    SetInitialized() { bInitialized = sal_True; }
     102                 :            : };
     103                 :            : 
     104                 :            : #endif //  _OFA_APEARCFG_HXX
     105                 :            : 
     106                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10