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 _SVX_SMARTTAGITEM_HXX 24 #define _SVX_SMARTTAGITEM_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <svl/poolitem.hxx> 29 #include <com/sun/star/uno/Reference.hxx> 30 #include <com/sun/star/uno/Sequence.hxx> 31 #include <com/sun/star/smarttags/XSmartTagAction.hpp> 32 #include "svx/svxdllapi.h" 33 34 namespace com { namespace sun { namespace star { namespace container { 35 class XStringKeyMap; 36 } } } } 37 38 namespace com { namespace sun { namespace star { namespace text { 39 class XTextRange; 40 } } } } 41 42 namespace com { namespace sun { namespace star { namespace frame { 43 class XController; 44 } } } } 45 46 // class SvxSmartTagItem ----------------------------------------------------- 47 48 class SVX_DLLPUBLIC SvxSmartTagItem : public SfxPoolItem 49 { 50 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > > maActionComponentsSequence; 51 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > > maActionIndicesSequence; 52 const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > > maStringKeyMaps; 53 const com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mxRange; 54 const com::sun::star::uno::Reference<com::sun::star::frame::XController> mxController; 55 const com::sun::star::lang::Locale maLocale; 56 const rtl::OUString maApplicationName; 57 const rtl::OUString maRangeText; 58 59 public: 60 TYPEINFO(); 61 62 SvxSmartTagItem( const sal_uInt16 nId, 63 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > >& rActionComponentsSequence, 64 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > >& rActionIndicesSequence, 65 const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > >& rStringKeyMaps, 66 const com::sun::star::uno::Reference<com::sun::star::text::XTextRange> rRange, 67 const com::sun::star::uno::Reference<com::sun::star::frame::XController> rController, 68 const com::sun::star::lang::Locale rLocale, 69 const rtl::OUString& rApplicationName, 70 const rtl::OUString& rRangeText ); 71 72 // "pure virtual Methoden" vom SfxPoolItem 73 virtual int operator==( const SfxPoolItem& ) const; 74 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 75 virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const; // leer 76 virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const; // leer 77 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; // leer 78 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); // leer 79 GetActionComponentsSequence() const80 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > >& GetActionComponentsSequence() const { return maActionComponentsSequence; } GetActionIndicesSequence() const81 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > >& GetActionIndicesSequence() const { return maActionIndicesSequence; } GetStringKeyMaps() const82 const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > >& GetStringKeyMaps() const { return maStringKeyMaps; } GetTextRange() const83 const com::sun::star::uno::Reference<com::sun::star::text::XTextRange>& GetTextRange() const { return mxRange; } GetController() const84 const com::sun::star::uno::Reference<com::sun::star::frame::XController>& GetController() const { return mxController; } GetLocale() const85 const com::sun::star::lang::Locale& GetLocale() const { return maLocale; } GetApplicationName() const86 const rtl::OUString GetApplicationName() const { return maApplicationName; } GetRangeText() const87 const rtl::OUString GetRangeText() const { return maRangeText; } 88 }; 89 90 #endif // #ifndef _SVX_SMARTTAGITEM_HXX 91 92 93