LCOV - code coverage report
Current view: top level - reportdesign/source/ui/inc - SectionWindow.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 Functions: 0 4 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_SECTIONWINDOW_HXX
      20             : #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_SECTIONWINDOW_HXX
      21             : 
      22             : #include <com/sun/star/report/XSection.hpp>
      23             : #include <vcl/window.hxx>
      24             : #include <vcl/split.hxx>
      25             : #include <svtools/colorcfg.hxx>
      26             : #include <comphelper/propmultiplex.hxx>
      27             : #include <cppuhelper/basemutex.hxx>
      28             : 
      29             : #include "UITools.hxx"
      30             : #include "UndoActions.hxx"
      31             : #include "StartMarker.hxx"
      32             : #include "EndMarker.hxx"
      33             : #include "ReportSection.hxx"
      34             : 
      35             : #include <list>
      36             : #include <map>
      37             : #include <boost/shared_ptr.hpp>
      38             : 
      39             : namespace comphelper
      40             : {
      41             :     class OPropertyChangeMultiplexer;
      42             : }
      43             : namespace rptui
      44             : {
      45             :     class OViewsWindow;
      46             :     class OSectionWindow :      public vcl::Window
      47             :                             ,   public ::cppu::BaseMutex
      48             :                             ,   public ::comphelper::OPropertyChangeListener
      49             :     {
      50             :         OViewsWindow*   m_pParent;
      51             :         OStartMarker    m_aStartMarker;
      52             :         OReportSection  m_aReportSection;
      53             :         Splitter        m_aSplitter;
      54             :         OEndMarker      m_aEndMarker;
      55             : 
      56             :         ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pSectionMulti;
      57             :         ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pGroupMulti;
      58             : 
      59             :         OSectionWindow(OSectionWindow&);
      60             :         void operator =(OSectionWindow&);
      61             : 
      62             :         /** set the title of the group header or footer
      63             :         *
      64             :         * \param _xGroup
      65             :         * \param _nResId
      66             :         * \param _pGetSection
      67             :         * \param _pIsSectionOn
      68             :         * @return sal_True when title was set otherwise FALSE
      69             :         */
      70             :         bool setGroupSectionTitle(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup>& _xGroup,sal_uInt16 _nResId,::std::mem_fun_t< ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection> , OGroupHelper> _pGetSection,::std::mem_fun_t<bool, OGroupHelper> _pIsSectionOn);
      71             : 
      72             :         /** set the title of the (report/page) header or footer
      73             :         *
      74             :         * \param _xGroup
      75             :         * \param _nResId
      76             :         * \param _pGetSection
      77             :         * \param _pIsSectionOn
      78             :         * @return sal_True when title was set otherwise FALSE
      79             :         */
      80             :         bool setReportSectionTitle(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition>& _xReport,sal_uInt16 _nResId,::std::mem_fun_t< ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection> , OReportHelper> _pGetSection,::std::mem_fun_t<bool, OReportHelper> _pIsSectionOn);
      81             :         void ImplInitSettings();
      82             : 
      83             :         DECL_LINK(Collapsed,OColorListener*);
      84             :         DECL_LINK(StartSplitHdl, Splitter*);
      85             :         DECL_LINK(SplitHdl, Splitter*);
      86             :         DECL_LINK(EndSplitHdl, Splitter*);
      87             : 
      88             : 
      89             :         virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      90             :         // windows overload
      91             :         virtual void Resize() SAL_OVERRIDE;
      92             : 
      93             :     protected:
      94             :         virtual void    _propertyChanged(const ::com::sun::star::beans::PropertyChangeEvent& _rEvent)
      95             :             throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             :     public:
      97             :         OSectionWindow( OViewsWindow* _pParent
      98             :                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection
      99             :                         ,const OUString& _sColorEntry);
     100             :         virtual ~OSectionWindow();
     101             : 
     102           0 :         inline OStartMarker&    getStartMarker()    { return m_aStartMarker;     }
     103           0 :         inline OReportSection&  getReportSection()  { return m_aReportSection;   }
     104           0 :         inline OEndMarker&      getEndMarker()      { return m_aEndMarker;       }
     105           0 :         inline OViewsWindow*    getViewsWindow()    { return m_pParent;          }
     106             : 
     107             :         void    setCollapsed(bool _bCollapsed);
     108             : 
     109             :         /** triggers the property browser with the section
     110             :             @param  _pStartMarker
     111             :         */
     112             :         void    showProperties();
     113             : 
     114             :         /** set the marker as marked or not marked
     115             :             @param  _bMark  set the new state of the marker
     116             :         */
     117             :         void    setMarked(bool _bMark);
     118             : 
     119             :         OViewsWindow* getViewsWindow() const { return m_pParent; }
     120             : 
     121             :         /** zoom the ruler and view windows
     122             :         */
     123             :         void zoom(const Fraction& _aZoom);
     124             : 
     125             :         void scrollChildren(long _nThumbPosX);
     126             :     };
     127             : 
     128             : } // rptui
     129             : 
     130             : #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_SECTIONWINDOW_HXX
     131             : 
     132             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10