LCOV - code coverage report
Current view: top level - reportdesign/source/ui/inc - SectionWindow.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 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             :         VclPtr<OViewsWindow>    m_pParent;
      51             :         VclPtr<OStartMarker>    m_aStartMarker;
      52             :         VclPtr<OReportSection>  m_aReportSection;
      53             :         VclPtr<Splitter>        m_aSplitter;
      54             :         VclPtr<OEndMarker>      m_aEndMarker;
      55             : 
      56             :         ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pSectionMulti;
      57             :         ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pGroupMulti;
      58             : 
      59             :         OSectionWindow(OSectionWindow&) SAL_DELETED_FUNCTION;
      60             :         void operator =(OSectionWindow&) SAL_DELETED_FUNCTION;
      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, const ::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, const ::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             :         // Window overrides
      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             :         virtual void dispose() SAL_OVERRIDE;
     102             : 
     103           0 :         inline OStartMarker&    getStartMarker()    { return *m_aStartMarker.get();     }
     104           0 :         inline OReportSection&  getReportSection()  { return *m_aReportSection.get();   }
     105           0 :         inline OEndMarker&      getEndMarker()      { return *m_aEndMarker.get();       }
     106           0 :         inline OViewsWindow*    getViewsWindow()    { return m_pParent;          }
     107             : 
     108             :         void    setCollapsed(bool _bCollapsed);
     109             : 
     110             :         /** triggers the property browser with the section
     111             :             @param  _pStartMarker
     112             :         */
     113             :         void    showProperties();
     114             : 
     115             :         /** set the marker as marked or not marked
     116             :             @param  _bMark  set the new state of the marker
     117             :         */
     118             :         void    setMarked(bool _bMark);
     119             : 
     120             :         OViewsWindow* getViewsWindow() const { return m_pParent; }
     121             : 
     122             :         /** zoom the ruler and view windows
     123             :         */
     124             :         void zoom(const Fraction& _aZoom);
     125             : 
     126             :         void scrollChildren(long _nThumbPosX);
     127             :     };
     128             : 
     129             : } // rptui
     130             : 
     131             : #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_SECTIONWINDOW_HXX
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11