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