LibreOffice Module svx (master) 1
SmartTagItem.hxx
Go to the documentation of this file.
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#ifndef INCLUDED_SVX_SMARTTAGITEM_HXX
20#define INCLUDED_SVX_SMARTTAGITEM_HXX
21
22#include <svl/poolitem.hxx>
23#include <com/sun/star/uno/Reference.hxx>
24#include <com/sun/star/uno/Sequence.hxx>
25#include <com/sun/star/smarttags/XSmartTagAction.hpp>
26#include <svx/svxdllapi.h>
27
29 class XStringKeyMap;
30}
31
32namespace com::sun::star::text {
33 class XTextRange;
34}
35
36namespace com::sun::star::frame {
37 class XController;
38}
40{
41 const css::uno::Sequence < css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > > maActionComponentsSequence;
42 const css::uno::Sequence < css::uno::Sequence< sal_Int32 > > maActionIndicesSequence;
43 const css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > > maStringKeyMaps;
44 const css::uno::Reference<css::text::XTextRange> mxRange;
45 const css::uno::Reference<css::frame::XController> mxController;
46 const css::lang::Locale maLocale;
47 const OUString maApplicationName;
48 const OUString maRangeText;
49
50public:
51 static SfxPoolItem* CreateDefault();
52
54 const css::uno::Sequence < css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > >& rActionComponentsSequence,
55 const css::uno::Sequence < css::uno::Sequence< sal_Int32 > >& rActionIndicesSequence,
56 const css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > >& rStringKeyMaps,
57 css::uno::Reference<css::text::XTextRange> xRange,
58 css::uno::Reference<css::frame::XController> xController,
59 css::lang::Locale aLocale,
60 OUString aApplicationName,
61 OUString aRangeText );
62
63 // "purely virtual methods" from the SfxPoolItem
64 virtual bool operator==( const SfxPoolItem& ) const override;
65 virtual SvxSmartTagItem* Clone( SfxItemPool *pPool = nullptr ) const override;
66 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
67 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
68
69 const css::uno::Sequence < css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > >& GetActionComponentsSequence() const { return maActionComponentsSequence; }
70 const css::uno::Sequence < css::uno::Sequence< sal_Int32 > >& GetActionIndicesSequence() const { return maActionIndicesSequence; }
71 const css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > >& GetStringKeyMaps() const { return maStringKeyMaps; }
72 const css::uno::Reference<css::text::XTextRange>& GetTextRange() const { return mxRange; }
73 const css::uno::Reference<css::frame::XController>& GetController() const { return mxController; }
74 const css::lang::Locale& GetLocale() const { return maLocale; }
75 const OUString& GetApplicationName() const { return maApplicationName; }
76 const OUString& GetRangeText() const { return maRangeText; }
77};
78
79#endif // INCLUDED_SVX_SMARTTAGITEM_HXX
80
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual bool operator==(const SfxPoolItem &) const=0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
const css::lang::Locale maLocale
const css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > > maActionComponentsSequence
const css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > > maStringKeyMaps
const css::uno::Reference< css::frame::XController > & GetController() const
const OUString & GetRangeText() const
const css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::smarttags::XSmartTagAction > > > & GetActionComponentsSequence() const
const css::uno::Reference< css::text::XTextRange > mxRange
const css::uno::Reference< css::text::XTextRange > & GetTextRange() const
const css::uno::Sequence< css::uno::Sequence< sal_Int32 > > maActionIndicesSequence
const css::uno::Sequence< css::uno::Sequence< sal_Int32 > > & GetActionIndicesSequence() const
const css::uno::Reference< css::frame::XController > mxController
const css::lang::Locale & GetLocale() const
const OUString maRangeText
const OUString maApplicationName
const css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > > & GetStringKeyMaps() const
const OUString & GetApplicationName() const
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
unsigned char sal_uInt8