xref: /aoo41x/main/sfx2/inc/sfx2/minfitem.hxx (revision 353d8f4d)
1*353d8f4dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*353d8f4dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*353d8f4dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*353d8f4dSAndrew Rist  * distributed with this work for additional information
6*353d8f4dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*353d8f4dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*353d8f4dSAndrew Rist  * "License"); you may not use this file except in compliance
9*353d8f4dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*353d8f4dSAndrew Rist  *
11*353d8f4dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*353d8f4dSAndrew Rist  *
13*353d8f4dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*353d8f4dSAndrew Rist  * software distributed under the License is distributed on an
15*353d8f4dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*353d8f4dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*353d8f4dSAndrew Rist  * specific language governing permissions and limitations
18*353d8f4dSAndrew Rist  * under the License.
19*353d8f4dSAndrew Rist  *
20*353d8f4dSAndrew Rist  *************************************************************/
21*353d8f4dSAndrew Rist 
22*353d8f4dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SFX_MINFITEM_HXX
24cdf0e10cSrcweir #define _SFX_MINFITEM_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include "sal/config.h"
27cdf0e10cSrcweir #include "sfx2/dllapi.h"
28cdf0e10cSrcweir #include <tools/string.hxx>
29cdf0e10cSrcweir #include <svl/poolitem.hxx>
30cdf0e10cSrcweir class BasicManager;
31cdf0e10cSrcweir 
32cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxMacroInfoItem: public SfxPoolItem
33cdf0e10cSrcweir {
34cdf0e10cSrcweir 	const BasicManager* 	pBasicManager;
35cdf0e10cSrcweir 	String					aLibName;
36cdf0e10cSrcweir 	String					aModuleName;
37cdf0e10cSrcweir 	String					aMethodName;
38cdf0e10cSrcweir 	String					aCommentText;
39cdf0e10cSrcweir 
40cdf0e10cSrcweir public:
41cdf0e10cSrcweir 	TYPEINFO();
42cdf0e10cSrcweir 	SfxMacroInfoItem( sal_uInt16 nWhich,
43cdf0e10cSrcweir 					const BasicManager* pMgr,
44cdf0e10cSrcweir 					const String &rLibName,
45cdf0e10cSrcweir 					const String &rModuleName,
46cdf0e10cSrcweir 					const String &rMethodName,
47cdf0e10cSrcweir 					const String &rComment);
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 	SfxMacroInfoItem( const SfxMacroInfoItem& );
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
52cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
GetComment() const53cdf0e10cSrcweir 	String					GetComment() const
54cdf0e10cSrcweir 								{ return aCommentText; }
SetComment(const String & r)55cdf0e10cSrcweir 	void					SetComment( const String& r )
56cdf0e10cSrcweir 								{ aCommentText = r; }
GetMethod() const57cdf0e10cSrcweir 	String					GetMethod() const
58cdf0e10cSrcweir 								{ return aMethodName; }
SetMethod(const String & r)59cdf0e10cSrcweir 	void					SetMethod( const String& r )
60cdf0e10cSrcweir 								{ aMethodName = r; }
GetModule() const61cdf0e10cSrcweir 	String					GetModule() const
62cdf0e10cSrcweir 								{ return aModuleName; }
SetModule(const String & r)63cdf0e10cSrcweir 	void					SetModule( const String& r )
64cdf0e10cSrcweir 								{ aModuleName = r; }
GetLib() const65cdf0e10cSrcweir 	String					GetLib() const
66cdf0e10cSrcweir 								{ return aLibName; }
SetLib(const String & r)67cdf0e10cSrcweir 	void					SetLib( const String& r )
68cdf0e10cSrcweir 								{ aLibName = r; }
GetBasicManager() const69cdf0e10cSrcweir 	const BasicManager* 	GetBasicManager() const
70cdf0e10cSrcweir 							{ return pBasicManager; }
71cdf0e10cSrcweir 	String					GetQualifiedName() const;
72cdf0e10cSrcweir };
73cdf0e10cSrcweir 
74cdf0e10cSrcweir #endif
75