LCOV - code coverage report
Current view: top level - reportdesign/source/ui/inc - ColorListener.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 3 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 3 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             : #ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_COLORLISTENER_HXX
      20             : #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_COLORLISTENER_HXX
      21             : 
      22             : #include <vcl/window.hxx>
      23             : #include <svtools/colorcfg.hxx>
      24             : #include <svtools/extcolorcfg.hxx>
      25             : #include "ModuleHelper.hxx"
      26             : #include <tools/link.hxx>
      27             : 
      28             : namespace rptui
      29             : {
      30             :     class OColorListener : public vcl::Window, public SfxListener
      31             :     {
      32             :         OColorListener(const OColorListener&) SAL_DELETED_FUNCTION;
      33             :         void operator =(const OColorListener&) SAL_DELETED_FUNCTION;
      34             :     protected:
      35             :         OModuleClient                       m_aModuleClient;
      36             :         Link<>                              m_aCollapsedLink;
      37             :         svtools::ColorConfig                m_aColorConfig;
      38             :         svtools::ExtendedColorConfig        m_aExtendedColorConfig;
      39             :         OUString                     m_sColorEntry;
      40             :         sal_Int32                           m_nColor;
      41             :         sal_Int32                           m_nTextBoundaries;
      42             :         bool                            m_bCollapsed;
      43             :         bool                            m_bMarked;
      44             : 
      45             :         virtual void ImplInitSettings() = 0;
      46             :     protected:
      47             :         virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      48             :     public:
      49             :         OColorListener(vcl::Window* _pParent,const OUString& _sColorEntry);
      50             :         virtual ~OColorListener();
      51             :         virtual void dispose() SAL_OVERRIDE;
      52             : 
      53             :         using Window::Notify;
      54             :         // SfxListener
      55             :         virtual void Notify(SfxBroadcaster & rBc, SfxHint const & rHint) SAL_OVERRIDE;
      56             : 
      57             :         /** set the marker as marked or not marked
      58             :             @param  _bMark  set the new state of the marker
      59             :         */
      60             :         void    setMarked(bool _bMark);
      61             : 
      62             :         /** returns if the section is marked
      63             :         */
      64           0 :         inline bool isMarked() const { return m_bMarked; }
      65             : 
      66           0 :         inline void     setCollapsedHdl(const Link<>& _aLink ){ m_aCollapsedLink = _aLink; }
      67           0 :         inline bool isCollapsed() const { return m_bCollapsed; }
      68             : 
      69             :         /** collapse or expand
      70             :          *
      71             :          * \param _bCollapsed
      72             :          */
      73             :         virtual void    setCollapsed(bool _bCollapsed);
      74             :     };
      75             : }
      76             : #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_COLORLISTENER_HXX
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11