1*9ee13d13SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9ee13d13SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9ee13d13SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9ee13d13SAndrew Rist * distributed with this work for additional information 6*9ee13d13SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9ee13d13SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9ee13d13SAndrew Rist * "License"); you may not use this file except in compliance 9*9ee13d13SAndrew Rist * with the License. You may obtain a copy of the License at 10*9ee13d13SAndrew Rist * 11*9ee13d13SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*9ee13d13SAndrew Rist * 13*9ee13d13SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9ee13d13SAndrew Rist * software distributed under the License is distributed on an 15*9ee13d13SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9ee13d13SAndrew Rist * KIND, either express or implied. See the License for the 17*9ee13d13SAndrew Rist * specific language governing permissions and limitations 18*9ee13d13SAndrew Rist * under the License. 19*9ee13d13SAndrew Rist * 20*9ee13d13SAndrew Rist *************************************************************/ 21*9ee13d13SAndrew Rist 22*9ee13d13SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _REPORT_SECTIONVIEW_HXX 25cdf0e10cSrcweir #define _REPORT_SECTIONVIEW_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <svx/svdview.hxx> 29cdf0e10cSrcweir namespace rptui 30cdf0e10cSrcweir { 31cdf0e10cSrcweir class OReportWindow; 32cdf0e10cSrcweir class OReportSection; 33cdf0e10cSrcweir 34cdf0e10cSrcweir //============================================================================ 35cdf0e10cSrcweir // OSectionView 36cdf0e10cSrcweir //============================================================================ 37cdf0e10cSrcweir 38cdf0e10cSrcweir class OSectionView : public SdrView 39cdf0e10cSrcweir { 40cdf0e10cSrcweir private: 41cdf0e10cSrcweir OReportWindow* m_pReportWindow; 42cdf0e10cSrcweir OReportSection* m_pSectionWindow; 43cdf0e10cSrcweir 44cdf0e10cSrcweir void ObjectRemovedInAliveMode( const SdrObject* pObject ); 45cdf0e10cSrcweir OSectionView(const OSectionView&); 46cdf0e10cSrcweir void operator =(const OSectionView&); 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir TYPEINFO(); 49cdf0e10cSrcweir 50cdf0e10cSrcweir OSectionView( SdrModel* pModel, OReportSection* _pSectionWindow, OReportWindow* pEditor ); 51cdf0e10cSrcweir virtual ~OSectionView(); 52cdf0e10cSrcweir 53cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 54cdf0e10cSrcweir virtual void MarkListHasChanged(); 55cdf0e10cSrcweir virtual void MakeVisible( const Rectangle& rRect, Window& rWin ); 56cdf0e10cSrcweir getReportSection() const57cdf0e10cSrcweir inline OReportSection* getReportSection() const { return m_pSectionWindow; } 58cdf0e10cSrcweir 59cdf0e10cSrcweir // switch the marked objects to the given layer. 60cdf0e10cSrcweir void SetMarkedToLayer( SdrLayerID nLayerNo ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir // return true when only shapes are marked, otherwise false. 63cdf0e10cSrcweir bool OnlyShapesMarked() const; 64cdf0e10cSrcweir 65cdf0e10cSrcweir /* returns the common layer id of the marked objects, otherwise -1 will be returned. 66cdf0e10cSrcweir */ 67cdf0e10cSrcweir short GetLayerIdOfMarkedObjects() const; 68cdf0e10cSrcweir 69cdf0e10cSrcweir // returns true if objects at Drag & Drop is resize not move 70cdf0e10cSrcweir bool IsDragResize() const; 71cdf0e10cSrcweir }; 72cdf0e10cSrcweir } 73cdf0e10cSrcweir #endif //_REPORT_SECTIONVIEW_HXX 74