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 _SOT_AGG_HXX 25 #define _SOT_AGG_HXX 26 27 #include <tools/ownlist.hxx> 28 29 /************** class SvAggregate ***************************************/ 30 /************************************************************************/ 31 class SotFactory; 32 class SotObject; 33 struct SvAggregate 34 { 35 union 36 { 37 SotFactory * pFact; 38 SotObject * pObj; 39 }; 40 sal_Bool bFactory; 41 sal_Bool bMainObj; // sal_True, das Objekt, welches das casting steuert 42 SvAggregateSvAggregate43 SvAggregate() 44 : pFact( NULL ) 45 , bFactory( sal_False ) 46 , bMainObj( sal_False ) {} SvAggregateSvAggregate47 SvAggregate( SotObject * pObjP, sal_Bool bMainP ) 48 : pObj( pObjP ) 49 , bFactory( sal_False ) 50 , bMainObj( bMainP ) {} SvAggregateSvAggregate51 SvAggregate( SotFactory * pFactP ) 52 : pFact( pFactP ) 53 , bFactory( sal_True ) 54 , bMainObj( sal_False ) {} 55 }; 56 57 /************** class SvAggregateMemberList *****************************/ 58 /************************************************************************/ 59 class SvAggregateMemberList 60 { 61 PRV_SV_DECL_OWNER_LIST(SvAggregateMemberList,SvAggregate) 62 }; 63 64 #endif // _AGG_HXX 65