diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-02-26 16:45:17 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-02-26 16:45:17 +0000 |
commit | 8198dce0c90346c4b223c15008152c06896c012e (patch) | |
tree | 7f897bfcf89171573aaa57986b9235ec4e4ddd25 /svx | |
parent | e846eca3feeda8600ce41ab0262675a5714cfd66 (diff) |
INTEGRATION: CWS aw008 (1.2.42); FILE MERGED
2004/02/05 11:20:03 aw 1.2.42.1: #114735#
Added mechanism to remember all created VOCs at OC to be able to delete such ones which may not be in DrawHierarchy. Added TryToGet(SdrObject/SdrPage) methods to VC.
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/sdr/contact/viewcontact.hxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/svx/inc/svx/sdr/contact/viewcontact.hxx b/svx/inc/svx/sdr/contact/viewcontact.hxx index b32d1b68b5f2..331d1719f922 100644 --- a/svx/inc/svx/sdr/contact/viewcontact.hxx +++ b/svx/inc/svx/sdr/contact/viewcontact.hxx @@ -2,9 +2,9 @@ * * $RCSfile: viewcontact.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2003-11-24 16:26:00 $ + * last change: $Author: kz $ $Date: 2004-02-26 17:45:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,6 +78,8 @@ // predeclarations class SetOfByte; +class SdrObject; +class SdrPage; namespace sdr { @@ -105,7 +107,10 @@ namespace sdr class ViewContact { protected: - // List of ViewObjectContacts + // List of ViewObjectContacts. This contains all VOCs which were constructed + // with this VC. Since the VOCs remember a reference to this VC, this list needs + // to be kept and is used e.g. at PrepareDelete() to destroy all VOCs. + // Registering and de-registering is done in the VOC constructors/destructors. ViewObjectContactList maVOCList; // PaintRectangle of the object in logic coordinates. This is the bounding @@ -247,6 +252,11 @@ namespace sdr // test for existing AnimationInfo sal_Bool HasAnimationInfo() const; + + // access to SdrObject and/or SdrPage. May return 0L like the default + // implementations do. Needs to be overloaded as needed. + virtual SdrObject* TryToGetSdrObject() const; + virtual SdrPage* TryToGetSdrPage() const; }; // typedef for a list of ViewContact |