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 _SB_SBPROPERTY_HXX 25 #define _SB_SBPROPERTY_HXX 26 27 #include <basic/sbxprop.hxx> 28 #include <basic/sbdef.hxx> 29 #include "basic/basicdllapi.h" 30 31 class SbModule; 32 33 class BASIC_DLLPUBLIC SbProperty : public SbxProperty 34 { 35 friend class SbiFactory; 36 friend class SbModule; 37 friend class SbProcedureProperty; 38 SbModule* pMod; 39 sal_Bool bInvalid; 40 SbProperty( const String&, SbxDataType, SbModule* ); 41 virtual ~SbProperty(); 42 public: 43 SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_BASICPROP,1); 44 TYPEINFO(); GetModule()45 SbModule* GetModule() { return pMod; } 46 }; 47 48 #ifndef __SB_SBPROPERTYREF_HXX 49 #define __SB_SBPROPERTYREF_HXX 50 SV_DECL_IMPL_REF(SbProperty) 51 #endif 52 53 class BASIC_DLLPUBLIC SbProcedureProperty : public SbxProperty 54 { 55 bool mbSet; // Flag for set command 56 57 virtual ~SbProcedureProperty(); 58 59 public: SbProcedureProperty(const String & r,SbxDataType t)60 SbProcedureProperty( const String& r, SbxDataType t ) 61 : SbxProperty( r, t ) // , pMod( p ) 62 , mbSet( false ) 63 {} 64 TYPEINFO(); 65 isSet(void)66 bool isSet( void ) 67 { return mbSet; } setSet(bool bSet)68 void setSet( bool bSet ) 69 { mbSet = bSet; } 70 }; 71 72 #ifndef __SB_SBPROCEDUREPROPERTYREF_HXX 73 #define __SB_SBPROCEDUREPROPERTYREF_HXX 74 SV_DECL_IMPL_REF(SbProcedureProperty) 75 #endif 76 77 #endif 78