Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 :
21 : #include <svx/SmartTagItem.hxx>
22 :
23 : #include <com/sun/star/container/XStringKeyMap.hpp>
24 :
25 :
26 : using namespace ::com::sun::star;
27 :
28 118 : TYPEINIT1(SvxSmartTagItem, SfxPoolItem);
29 :
30 0 : 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 0 : maRangeText( rRangeText )
48 : {
49 0 : }
50 :
51 :
52 :
53 :
54 :
55 0 : bool SvxSmartTagItem::QueryValue( uno::Any& /* rVal */, sal_uInt8 /* nMemberId */ ) const
56 : {
57 0 : return false;
58 : }
59 :
60 0 : bool SvxSmartTagItem::PutValue( const uno::Any& /*rVal*/, sal_uInt8 /* nMemberId */)
61 : {
62 0 : return false;
63 : }
64 :
65 :
66 :
67 0 : bool SvxSmartTagItem::operator==( const SfxPoolItem& rAttr ) const
68 : {
69 : DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
70 :
71 0 : const SvxSmartTagItem& rItem = static_cast<const SvxSmartTagItem&>(rAttr);
72 :
73 0 : return maActionComponentsSequence == rItem.maActionComponentsSequence &&
74 0 : maActionIndicesSequence == rItem.maActionIndicesSequence &&
75 0 : maStringKeyMaps == rItem.maStringKeyMaps &&
76 0 : mxRange == rItem.mxRange &&
77 0 : mxController == rItem.mxController &&
78 0 : maApplicationName == rItem.maApplicationName &&
79 0 : maRangeText == rItem.maRangeText;
80 : }
81 :
82 :
83 :
84 0 : SfxPoolItem* SvxSmartTagItem::Clone( SfxItemPool * ) const
85 : {
86 0 : return new SvxSmartTagItem( *this );
87 : }
88 :
89 :
90 :
91 0 : SvStream& SvxSmartTagItem::Store( SvStream& rStream, sal_uInt16 /*nItemVersion*/ ) const
92 : {
93 0 : return rStream;
94 : }
95 :
96 :
97 :
98 0 : SfxPoolItem* SvxSmartTagItem::Create(SvStream& , sal_uInt16) const
99 : {
100 0 : return 0;
101 : }
102 :
103 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|