1234bd5c5SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3234bd5c5SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4234bd5c5SAndrew Rist * or more contributor license agreements. See the NOTICE file 5234bd5c5SAndrew Rist * distributed with this work for additional information 6234bd5c5SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7234bd5c5SAndrew Rist * to you under the Apache License, Version 2.0 (the 8234bd5c5SAndrew Rist * "License"); you may not use this file except in compliance 9234bd5c5SAndrew Rist * with the License. You may obtain a copy of the License at 10234bd5c5SAndrew Rist * 11234bd5c5SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12234bd5c5SAndrew Rist * 13234bd5c5SAndrew Rist * Unless required by applicable law or agreed to in writing, 14234bd5c5SAndrew Rist * software distributed under the License is distributed on an 15234bd5c5SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16234bd5c5SAndrew Rist * KIND, either express or implied. See the License for the 17234bd5c5SAndrew Rist * specific language governing permissions and limitations 18234bd5c5SAndrew Rist * under the License. 19234bd5c5SAndrew Rist * 20234bd5c5SAndrew Rist *************************************************************/ 21234bd5c5SAndrew Rist 22234bd5c5SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SB_SBPROPERTY_HXX 25cdf0e10cSrcweir #define _SB_SBPROPERTY_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <basic/sbxprop.hxx> 28cdf0e10cSrcweir #include <basic/sbdef.hxx> 29*7fef15a0SDamjan Jovanovic #include "basic/basicdllapi.h" 30cdf0e10cSrcweir 31cdf0e10cSrcweir class SbModule; 32cdf0e10cSrcweir 33*7fef15a0SDamjan Jovanovic class BASIC_DLLPUBLIC SbProperty : public SbxProperty 34cdf0e10cSrcweir { 35cdf0e10cSrcweir friend class SbiFactory; 36cdf0e10cSrcweir friend class SbModule; 37cdf0e10cSrcweir friend class SbProcedureProperty; 38cdf0e10cSrcweir SbModule* pMod; 39cdf0e10cSrcweir sal_Bool bInvalid; 40cdf0e10cSrcweir SbProperty( const String&, SbxDataType, SbModule* ); 41cdf0e10cSrcweir virtual ~SbProperty(); 42cdf0e10cSrcweir public: 43cdf0e10cSrcweir SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_BASICPROP,1); 44cdf0e10cSrcweir TYPEINFO(); GetModule()45cdf0e10cSrcweir SbModule* GetModule() { return pMod; } 46cdf0e10cSrcweir }; 47cdf0e10cSrcweir 48cdf0e10cSrcweir #ifndef __SB_SBPROPERTYREF_HXX 49cdf0e10cSrcweir #define __SB_SBPROPERTYREF_HXX 50cdf0e10cSrcweir SV_DECL_IMPL_REF(SbProperty) 51cdf0e10cSrcweir #endif 52cdf0e10cSrcweir 53*7fef15a0SDamjan Jovanovic class BASIC_DLLPUBLIC SbProcedureProperty : public SbxProperty 54cdf0e10cSrcweir { 55cdf0e10cSrcweir bool mbSet; // Flag for set command 56cdf0e10cSrcweir 57cdf0e10cSrcweir virtual ~SbProcedureProperty(); 58cdf0e10cSrcweir 59cdf0e10cSrcweir public: SbProcedureProperty(const String & r,SbxDataType t)60cdf0e10cSrcweir SbProcedureProperty( const String& r, SbxDataType t ) 61cdf0e10cSrcweir : SbxProperty( r, t ) // , pMod( p ) 62cdf0e10cSrcweir , mbSet( false ) 63cdf0e10cSrcweir {} 64cdf0e10cSrcweir TYPEINFO(); 65cdf0e10cSrcweir isSet(void)66cdf0e10cSrcweir bool isSet( void ) 67cdf0e10cSrcweir { return mbSet; } setSet(bool bSet)68cdf0e10cSrcweir void setSet( bool bSet ) 69cdf0e10cSrcweir { mbSet = bSet; } 70cdf0e10cSrcweir }; 71cdf0e10cSrcweir 72cdf0e10cSrcweir #ifndef __SB_SBPROCEDUREPROPERTYREF_HXX 73cdf0e10cSrcweir #define __SB_SBPROCEDUREPROPERTYREF_HXX 74cdf0e10cSrcweir SV_DECL_IMPL_REF(SbProcedureProperty) 75cdf0e10cSrcweir #endif 76cdf0e10cSrcweir 77cdf0e10cSrcweir #endif 78