bump product version to 5.0.4.1
[LibreOffice.git] / svx / source / items / SmartTagItem.cxx
blob72c732e254f97c094605a137537e8e4ed0bd649d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <svx/SmartTagItem.hxx>
23 #include <com/sun/star/container/XStringKeyMap.hpp>
26 using namespace ::com::sun::star;
28 TYPEINIT1(SvxSmartTagItem, SfxPoolItem);
30 SvxSmartTagItem::SvxSmartTagItem( const sal_uInt16 nId,
31 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > >& rActionComponentsSequence,
32 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > >& rActionIndicesSequence,
33 const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > >& rStringKeyMaps,
34 const com::sun::star::uno::Reference<com::sun::star::text::XTextRange> rRange,
35 const com::sun::star::uno::Reference<com::sun::star::frame::XController> rController,
36 const com::sun::star::lang::Locale rLocale,
37 const OUString& rApplicationName,
38 const OUString& rRangeText ) :
39 SfxPoolItem( nId ),
40 maActionComponentsSequence( rActionComponentsSequence ),
41 maActionIndicesSequence( rActionIndicesSequence ),
42 maStringKeyMaps( rStringKeyMaps ),
43 mxRange( rRange ),
44 mxController( rController ),
45 maLocale( rLocale ),
46 maApplicationName( rApplicationName ),
47 maRangeText( rRangeText )
55 bool SvxSmartTagItem::QueryValue( uno::Any& /* rVal */, sal_uInt8 /* nMemberId */ ) const
57 return false;
60 bool SvxSmartTagItem::PutValue( const uno::Any& /*rVal*/, sal_uInt8 /* nMemberId */)
62 return false;
67 bool SvxSmartTagItem::operator==( const SfxPoolItem& rAttr ) const
69 DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
71 const SvxSmartTagItem& rItem = static_cast<const SvxSmartTagItem&>(rAttr);
73 return maActionComponentsSequence == rItem.maActionComponentsSequence &&
74 maActionIndicesSequence == rItem.maActionIndicesSequence &&
75 maStringKeyMaps == rItem.maStringKeyMaps &&
76 mxRange == rItem.mxRange &&
77 mxController == rItem.mxController &&
78 maApplicationName == rItem.maApplicationName &&
79 maRangeText == rItem.maRangeText;
84 SfxPoolItem* SvxSmartTagItem::Clone( SfxItemPool * ) const
86 return new SvxSmartTagItem( *this );
91 SvStream& SvxSmartTagItem::Store( SvStream& rStream, sal_uInt16 /*nItemVersion*/ ) const
93 return rStream;
98 SfxPoolItem* SvxSmartTagItem::Create(SvStream& , sal_uInt16) const
100 return 0;
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */