bump product version to 4.1.6.2
[LibreOffice.git] / reportdesign / inc / RptPage.hxx
blobf43de616eb7bab36400954ad7c02ed6c680fc857
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _REPORT_RPTUIPAGE_HXX
20 #define _REPORT_RPTUIPAGE_HXX
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>
27 namespace rptui
29 //============================================================================
30 // OReportPage
31 //============================================================================
33 class OReportModel;
35 class REPORTDESIGN_DLLPUBLIC OReportPage : public SdrPage
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;
42 OReportPage(const OReportPage&);
44 // methode to remove temporary objects, created by 'special mode'
45 // (BegDragObj)
46 void removeTempObject(SdrObject *_pToRemoveObj);
48 virtual ~OReportPage();
50 protected:
51 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoPage();
52 public:
53 TYPEINFO();
55 OReportPage( OReportModel& rModel
56 ,const ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& _xSection
57 ,bool bMasterPage = false );
60 virtual SdrPage* Clone() const;
61 using SdrPage::Clone;
63 virtual void NbcInsertObject(SdrObject* pObj, sal_uLong nPos, const SdrInsertReason* pReason);
64 virtual SdrObject* RemoveObject(sal_uLong nObjNum);
66 /** returns the index inside the object list which belongs to the report component.
67 @param _xObject the report component
69 sal_uLong getIndexOf(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
71 /** removes the SdrObject which belongs to the report component.
72 @param _xObject the report component
74 void removeSdrObject(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
76 void setSpecialMode() {m_bSpecialInsertMode = true;}
77 bool getSpecialMode() {return m_bSpecialInsertMode;}
78 // all temporary objects will remove and destroy
79 void resetSpecialMode();
81 /** insert a new SdrObject which belongs to the report component.
82 @param _xObject the report component
84 void insertObject(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent >& _xObject);
86 ::com::sun::star::uno::Reference< ::com::sun::star::report::XSection > getSection() const;
89 #endif //_REPORT_RPTUIPAGE_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */