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

Generated by: LCOV version 1.10