LCOV - code coverage report
Current view: top level - reportdesign/source/ui/inc - SectionWindow.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 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 RPTUI_SECTIONWINDOW_HXX
      20             : #define RPTUI_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 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<sal_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<sal_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) throw( ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
      95             :     public:
      96             :         OSectionWindow( OViewsWindow* _pParent
      97             :                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection
      98             :                         ,const OUString& _sColorEntry);
      99             :         virtual ~OSectionWindow();
     100             : 
     101           0 :         inline OStartMarker&    getStartMarker()    { return m_aStartMarker;     }
     102           0 :         inline OReportSection&  getReportSection()  { return m_aReportSection;   }
     103           0 :         inline OEndMarker&      getEndMarker()      { return m_aEndMarker;       }
     104           0 :         inline OViewsWindow*    getViewsWindow()    { return m_pParent;          }
     105             : 
     106             :         void    setCollapsed(sal_Bool _bCollapsed);
     107             : 
     108             :         /** triggers the property browser with the section
     109             :             @param  _pStartMarker
     110             :         */
     111             :         void            showProperties();
     112             : 
     113             :         /** set the marker as marked or not marked
     114             :             @param  _bMark  set the new state of the marker
     115             :         */
     116             :         void    setMarked(sal_Bool _bMark);
     117             : 
     118             :         OViewsWindow* getViewsWindow() const { return m_pParent; }
     119             : 
     120             :         /** zoom the ruler and view windows
     121             :         */
     122             :         void zoom(const Fraction& _aZoom);
     123             : 
     124             :         void scrollChildren(long _nThumbPosX);
     125             :     };
     126             : 
     127             : } // rptui
     128             : 
     129             : #endif // RPTUI_SECTIONWINDOW_HXX
     130             : 
     131             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10