LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/slidesorter/controller - SlsProperties.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 73 0.0 %
Date: 2012-12-27 Functions: 0 26 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             : 
      21             : #include "controller/SlsProperties.hxx"
      22             : #include <vcl/svapp.hxx>
      23             : 
      24             : namespace sd { namespace slidesorter { namespace controller {
      25             : 
      26           0 : Properties::Properties (void)
      27             :     : mbIsHighlightCurrentSlide(false),
      28             :       mbIsShowSelection(true),
      29             :       mbIsShowFocus(true),
      30             :       mbIsCenterSelection(false),
      31             :       mbIsSmoothSelectionScrolling(true),
      32             :       mbIsSuspendPreviewUpdatesDuringFullScreenPresentation(true),
      33           0 :       maBackgroundColor(Application::GetSettings().GetStyleSettings().GetWindowColor()),
      34           0 :       maTextColor(Application::GetSettings().GetStyleSettings().GetActiveTextColor()),
      35           0 :       maSelectionColor(Application::GetSettings().GetStyleSettings().GetHighlightColor()),
      36           0 :       maHighlightColor(Application::GetSettings().GetStyleSettings().GetMenuHighlightColor()),
      37             :       mbIsUIReadOnly(false),
      38             :       mbIsOnlyPreviewTriggersMouseOver(true),
      39             :       mbIsHighContrastModeActive(
      40           0 :           Application::GetSettings().GetStyleSettings().GetHighContrastMode())
      41             : {
      42           0 : }
      43             : 
      44             : 
      45             : 
      46             : 
      47           0 : Properties::~Properties (void)
      48             : {
      49           0 : }
      50             : 
      51             : 
      52             : 
      53             : 
      54           0 : void Properties::HandleDataChangeEvent (void)
      55             : {
      56           0 :     maBackgroundColor = Application::GetSettings().GetStyleSettings().GetWindowColor();
      57           0 :     maTextColor = Application::GetSettings().GetStyleSettings().GetActiveTextColor();
      58           0 :     maSelectionColor = Application::GetSettings().GetStyleSettings().GetHighlightColor();
      59           0 :     maHighlightColor = Application::GetSettings().GetStyleSettings().GetMenuHighlightColor();
      60             :     mbIsHighContrastModeActive
      61           0 :         = Application::GetSettings().GetStyleSettings().GetHighContrastMode();
      62           0 : }
      63             : 
      64             : 
      65             : 
      66             : 
      67           0 : bool Properties::IsHighlightCurrentSlide (void) const
      68             : {
      69           0 :     return mbIsHighlightCurrentSlide;
      70             : }
      71             : 
      72             : 
      73             : 
      74             : 
      75           0 : void Properties::SetHighlightCurrentSlide (const bool bIsHighlightCurrentSlide)
      76             : {
      77           0 :     mbIsHighlightCurrentSlide = bIsHighlightCurrentSlide;
      78           0 : }
      79             : 
      80             : 
      81             : 
      82             : 
      83           0 : bool Properties::IsShowSelection (void) const
      84             : {
      85           0 :     return mbIsShowSelection;
      86             : }
      87             : 
      88             : 
      89             : 
      90             : 
      91           0 : void Properties::SetShowSelection (const bool bIsShowSelection)
      92             : {
      93           0 :     mbIsShowSelection = bIsShowSelection;
      94           0 : }
      95             : 
      96             : 
      97             : 
      98             : 
      99           0 : bool Properties::IsShowFocus (void) const
     100             : {
     101           0 :     return mbIsShowFocus;
     102             : }
     103             : 
     104             : 
     105             : 
     106             : 
     107           0 : void Properties::SetShowFocus (const bool bIsShowFocus)
     108             : {
     109           0 :     mbIsShowFocus = bIsShowFocus;
     110           0 : }
     111             : 
     112             : 
     113             : 
     114             : 
     115           0 : bool Properties::IsCenterSelection (void) const
     116             : {
     117           0 :     return mbIsCenterSelection;
     118             : }
     119             : 
     120             : 
     121             : 
     122             : 
     123           0 : void Properties::SetCenterSelection (const bool bIsCenterSelection)
     124             : {
     125           0 :     mbIsCenterSelection = bIsCenterSelection;
     126           0 : }
     127             : 
     128             : 
     129             : 
     130             : 
     131           0 : bool Properties::IsSmoothSelectionScrolling (void) const
     132             : {
     133           0 :     return mbIsSmoothSelectionScrolling;
     134             : }
     135             : 
     136             : 
     137             : 
     138             : 
     139           0 : void Properties::SetSmoothSelectionScrolling (const bool bIsSmoothSelectionScrolling)
     140             : {
     141           0 :     mbIsSmoothSelectionScrolling = bIsSmoothSelectionScrolling;
     142           0 : }
     143             : 
     144             : 
     145             : 
     146             : 
     147           0 : bool Properties::IsSuspendPreviewUpdatesDuringFullScreenPresentation (void) const
     148             : {
     149           0 :     return mbIsSuspendPreviewUpdatesDuringFullScreenPresentation;
     150             : }
     151             : 
     152             : 
     153             : 
     154             : 
     155           0 : void Properties::SetSuspendPreviewUpdatesDuringFullScreenPresentation (const bool bFlag)
     156             : {
     157           0 :     mbIsSuspendPreviewUpdatesDuringFullScreenPresentation = bFlag;
     158           0 : }
     159             : 
     160             : 
     161             : 
     162             : 
     163           0 : Color Properties::GetBackgroundColor (void) const
     164             : {
     165           0 :     return maBackgroundColor;
     166             : }
     167             : 
     168             : 
     169             : 
     170             : 
     171           0 : void Properties::SetBackgroundColor (const Color& rColor)
     172             : {
     173           0 :     maBackgroundColor = rColor;
     174           0 : }
     175             : 
     176             : 
     177             : 
     178           0 : Color Properties::GetTextColor (void) const
     179             : {
     180           0 :     return maTextColor;
     181             : }
     182             : 
     183             : 
     184             : 
     185             : 
     186           0 : void Properties::SetTextColor (const Color& rColor)
     187             : {
     188           0 :     maTextColor = rColor;
     189           0 : }
     190             : 
     191             : 
     192             : 
     193             : 
     194           0 : Color Properties::GetSelectionColor (void) const
     195             : {
     196           0 :     return maSelectionColor;
     197             : }
     198             : 
     199             : 
     200             : 
     201             : 
     202           0 : void Properties::SetSelectionColor (const Color& rColor)
     203             : {
     204           0 :     maSelectionColor = rColor;
     205           0 : }
     206             : 
     207             : 
     208             : 
     209             : 
     210           0 : Color Properties::GetHighlightColor (void) const
     211             : {
     212           0 :     return maHighlightColor;
     213             : }
     214             : 
     215             : 
     216             : 
     217             : 
     218           0 : void Properties::SetHighlightColor (const Color& rColor)
     219             : {
     220           0 :     maHighlightColor = rColor;
     221           0 : }
     222             : 
     223             : 
     224             : 
     225             : 
     226           0 : bool Properties::IsUIReadOnly (void) const
     227             : {
     228           0 :     return mbIsUIReadOnly;
     229             : }
     230             : 
     231             : 
     232             : 
     233             : 
     234           0 : void Properties::SetUIReadOnly (const bool bIsUIReadOnly)
     235             : {
     236           0 :     mbIsUIReadOnly = bIsUIReadOnly;
     237           0 : }
     238             : 
     239             : 
     240             : 
     241             : 
     242           0 : bool Properties::IsOnlyPreviewTriggersMouseOver (void) const
     243             : {
     244           0 :     return mbIsOnlyPreviewTriggersMouseOver;
     245             : }
     246             : 
     247             : 
     248             : } } } // end of namespace ::sd::slidesorter::controller
     249             : 
     250             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10