1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _SVDOPAGE_HXX 25 #define _SVDOPAGE_HXX 26 27 #include <svx/svdobj.hxx> 28 #include <svx/sdrpageuser.hxx> 29 #include "svx/svxdllapi.h" 30 31 class SVX_DLLPUBLIC SdrPageObj : public SdrObject, public sdr::PageUser 32 { 33 public: 34 // this method is called form the destructor of the referenced page. 35 // do all necessary action to forget the page. It is not necessary to call 36 // RemovePageUser(), that is done form the destructor. 37 virtual void PageInDestruction(const SdrPage& rPage); 38 39 private: 40 // #111111# 41 // To make things more safe, remember the page, not a number 42 SdrPage* mpShownPage; 43 44 protected: 45 virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact(); 46 virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties(); 47 48 public: 49 TYPEINFO(); 50 SdrPageObj(SdrPage* pNewPage = 0L); 51 SdrPageObj(const Rectangle& rRect, SdrPage* pNewPage = 0L); 52 ~SdrPageObj(); 53 54 // #111111# 55 SdrPage* GetReferencedPage() const; 56 void SetReferencedPage(SdrPage* pNewPage); 57 58 // #i96598# 59 virtual void SetBoundRectDirty(); 60 61 virtual sal_uInt16 GetObjIdentifier() const; 62 virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const; 63 virtual void operator=(const SdrObject& rObj); 64 65 virtual void TakeObjNameSingul(String& rName) const; 66 virtual void TakeObjNamePlural(String& rName) const; 67 }; 68 69 //////////////////////////////////////////////////////////////////////////////////////////////////// 70 71 #endif //_SVDOPAGE_HXX 72 73