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 #ifndef _SFX_MINFITEM_HXX 24 #define _SFX_MINFITEM_HXX 25 26 #include "sal/config.h" 27 #include "sfx2/dllapi.h" 28 #include <tools/string.hxx> 29 #include <svl/poolitem.hxx> 30 class BasicManager; 31 32 class SFX2_DLLPUBLIC SfxMacroInfoItem: public SfxPoolItem 33 { 34 const BasicManager* pBasicManager; 35 String aLibName; 36 String aModuleName; 37 String aMethodName; 38 String aCommentText; 39 40 public: 41 TYPEINFO(); 42 SfxMacroInfoItem( sal_uInt16 nWhich, 43 const BasicManager* pMgr, 44 const String &rLibName, 45 const String &rModuleName, 46 const String &rMethodName, 47 const String &rComment); 48 49 SfxMacroInfoItem( const SfxMacroInfoItem& ); 50 51 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 52 virtual int operator==( const SfxPoolItem& ) const; GetComment() const53 String GetComment() const 54 { return aCommentText; } SetComment(const String & r)55 void SetComment( const String& r ) 56 { aCommentText = r; } GetMethod() const57 String GetMethod() const 58 { return aMethodName; } SetMethod(const String & r)59 void SetMethod( const String& r ) 60 { aMethodName = r; } GetModule() const61 String GetModule() const 62 { return aModuleName; } SetModule(const String & r)63 void SetModule( const String& r ) 64 { aModuleName = r; } GetLib() const65 String GetLib() const 66 { return aLibName; } SetLib(const String & r)67 void SetLib( const String& r ) 68 { aLibName = r; } GetBasicManager() const69 const BasicManager* GetBasicManager() const 70 { return pBasicManager; } 71 String GetQualifiedName() const; 72 }; 73 74 #endif 75