fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svx / source / items / SmartTagItem.cxx
blob57c6588e6d70914752179f95ab64c3e6c66663f3
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 // class SvxFontItem -----------------------------------------------------
32 SvxSmartTagItem::SvxSmartTagItem( const sal_uInt16 nId,
33 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > > >& rActionComponentsSequence,
34 const com::sun::star::uno::Sequence < com::sun::star::uno::Sequence< sal_Int32 > >& rActionIndicesSequence,
35 const com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > >& rStringKeyMaps,
36 const com::sun::star::uno::Reference<com::sun::star::text::XTextRange> rRange,
37 const com::sun::star::uno::Reference<com::sun::star::frame::XController> rController,
38 const com::sun::star::lang::Locale rLocale,
39 const OUString& rApplicationName,
40 const OUString& rRangeText ) :
41 SfxPoolItem( nId ),
42 maActionComponentsSequence( rActionComponentsSequence ),
43 maActionIndicesSequence( rActionIndicesSequence ),
44 maStringKeyMaps( rStringKeyMaps ),
45 mxRange( rRange ),
46 mxController( rController ),
47 maLocale( rLocale ),
48 maApplicationName( rApplicationName ),
49 maRangeText( rRangeText )
53 // -----------------------------------------------------------------------
55 // -----------------------------------------------------------------------
57 bool SvxSmartTagItem::QueryValue( uno::Any& /* rVal */, sal_uInt8 /* nMemberId */ ) const
59 return false;
61 // -----------------------------------------------------------------------
62 bool SvxSmartTagItem::PutValue( const uno::Any& /*rVal*/, sal_uInt8 /* nMemberId */)
64 return false;
67 // -----------------------------------------------------------------------
69 int SvxSmartTagItem::operator==( const SfxPoolItem& rAttr ) const
71 DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
73 const SvxSmartTagItem& rItem = static_cast<const SvxSmartTagItem&>(rAttr);
75 int bRet = maActionComponentsSequence == rItem.maActionComponentsSequence &&
76 maActionIndicesSequence == rItem.maActionIndicesSequence &&
77 maStringKeyMaps == rItem.maStringKeyMaps &&
78 mxRange == rItem.mxRange &&
79 mxController == rItem.mxController &&
80 maApplicationName == rItem.maApplicationName &&
81 maRangeText == rItem.maRangeText;
83 return bRet;
86 // -----------------------------------------------------------------------
88 SfxPoolItem* SvxSmartTagItem::Clone( SfxItemPool * ) const
90 return new SvxSmartTagItem( *this );
93 // -----------------------------------------------------------------------
95 SvStream& SvxSmartTagItem::Store( SvStream& rStream, sal_uInt16 /*nItemVersion*/ ) const
97 return rStream;
100 // -----------------------------------------------------------------------
102 SfxPoolItem* SvxSmartTagItem::Create(SvStream& , sal_uInt16) const
104 return 0;
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */