LCOV - code coverage report
Current view: top level - reportdesign/inc - RptPage.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 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 _REPORT_RPTUIPAGE_HXX
      20             : #define _REPORT_RPTUIPAGE_HXX
      21             : 
      22             : #include "dllapi.h"
      23             : #include "svx/svdpage.hxx"
      24             : #include <com/sun/star/report/XReportComponent.hpp>
      25             : #include <com/sun/star/report/XSection.hpp>
      26             : 
      27             : namespace rptui
      28             : {
      29             : 
      30             : // OReportPage
      31             : 
      32             : 
      33             : class OReportModel;
      34             : 
      35             : class REPORTDESIGN_DLLPUBLIC OReportPage : public SdrPage
      36             : {
      37             :     OReportModel&           rModel;
      38             :     ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > m_xSection;
      39             :     bool                    m_bSpecialInsertMode;
      40             :     std::vector<SdrObject*> m_aTemporaryObjectList;
      41             : 
      42             :     OReportPage(const OReportPage&);
      43             : 
      44             :     // methode to remove temporary objects, created by 'special mode'
      45             :     // (BegDragObj)
      46             :     void removeTempObject(SdrObject *_pToRemoveObj);
      47             : 
      48             :     virtual ~OReportPage();
      49             : 
      50             : protected:
      51             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage() SAL_OVERRIDE;
      52             : public:
      53             :     TYPEINFO_OVERRIDE();
      54             : 
      55             :     OReportPage( OReportModel& rModel
      56             :                 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection
      57             :                 ,bool bMasterPage = false );
      58             : 
      59             : 
      60             :     virtual SdrPage* Clone() const SAL_OVERRIDE;
      61             :     using SdrPage::Clone;
      62             : 
      63             :     virtual void NbcInsertObject(SdrObject* pObj, sal_uLong nPos, const SdrInsertReason* pReason) SAL_OVERRIDE;
      64             :     virtual SdrObject* RemoveObject(sal_uLong nObjNum) SAL_OVERRIDE;
      65             : 
      66             :     /** returns the index inside the object list which belongs to the report component.
      67             :         @param  _xObject    the report component
      68             :     */
      69             :     sal_uLong getIndexOf(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
      70             : 
      71             :     /** removes the SdrObject which belongs to the report component.
      72             :         @param  _xObject    the report component
      73             :     */
      74             :     void removeSdrObject(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
      75             : 
      76           0 :     void setSpecialMode() {m_bSpecialInsertMode = true;}
      77           0 :     bool getSpecialMode() {return m_bSpecialInsertMode;}
      78             :     // all temporary objects will remove and destroy
      79             :     void resetSpecialMode();
      80             : 
      81             :     /** insert a new SdrObject which belongs to the report component.
      82             :         @param  _xObject    the report component
      83             :     */
      84             :     void insertObject(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
      85             : 
      86             :     ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > getSection() const;
      87             : };
      88             : }
      89             : #endif //_REPORT_RPTUIPAGE_HXX
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10