LibreOffice Module sw (master) 1
unoevent.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_SW_SOURCE_CORE_INC_UNOEVENT_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_UNOEVENT_HXX
21
22#include <svtools/unoevent.hxx>
23
24class SvxMacroItem;
25class SwXFrame;
26class SwXTextFrame;
30namespace sw
31{
32class ICoreFrameStyle;
33}
34
36{
37 //XServiceInfo
38 virtual OUString SAL_CALL getImplementationName() override;
39
40 virtual ~SwHyperlinkEventDescriptor() override;
41
42public:
44
47
48 void
49 copyMacrosFromNameReplace(css::uno::Reference<css::container::XNameReplace> const& xReplace);
50};
51
52// SwEventDescriptor for
53// 1) SwXTextFrame
54// 2) SwXGraphicObject
55// 3) SwXEmbeddedObject
56// All these objects are an SwXFrame, so they can use a common implementation
58{
59 SwXFrame& m_rFrame;
60
61public:
65
66 virtual ~SwFrameEventDescriptor() override;
67
68 virtual OUString SAL_CALL getImplementationName() override;
69
70private:
71 virtual void setMacroItem(const SvxMacroItem& rItem) override;
72 virtual const SvxMacroItem& getMacroItem() override;
73 virtual sal_uInt16 getMacroItemWhich() const override;
74};
75
77{
79
80public:
82
83 virtual ~SwFrameStyleEventDescriptor() override;
84
85 virtual OUString SAL_CALL getImplementationName() override;
86
87private:
88 virtual void setMacroItem(const SvxMacroItem& rItem) override;
89 virtual const SvxMacroItem& getMacroItem() override;
90 virtual sal_uInt16 getMacroItemWhich() const override;
91};
92
93#endif
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void setMacroItem(const SvxMacroItem &rItem) override
Definition: unoevent.cxx:178
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:193
SwFrameEventDescriptor(SwXTextFrame &rFrameRef)
Definition: unoevent.cxx:153
virtual const SvxMacroItem & getMacroItem() override
Definition: unoevent.cxx:183
virtual ~SwFrameEventDescriptor() override
Definition: unoevent.cxx:174
virtual sal_uInt16 getMacroItemWhich() const override
Definition: unoevent.cxx:188
virtual const SvxMacroItem & getMacroItem() override
Definition: unoevent.cxx:217
virtual sal_uInt16 getMacroItemWhich() const override
Definition: unoevent.cxx:228
virtual ~SwFrameStyleEventDescriptor() override
Definition: unoevent.cxx:206
virtual void setMacroItem(const SvxMacroItem &rItem) override
Definition: unoevent.cxx:210
SwFrameStyleEventDescriptor(sw::ICoreFrameStyle &rStyle)
Definition: unoevent.cxx:198
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:223
sw::ICoreFrameStyle & m_rStyle
Definition: unoevent.hxx:78
virtual ~SwHyperlinkEventDescriptor() override
Definition: unoevent.cxx:99
void copyMacrosIntoINetFormat(SwFormatINetFormat &aFormat)
Definition: unoevent.cxx:120
void copyMacrosFromINetFormat(const SwFormatINetFormat &aFormat)
Definition: unoevent.cxx:108
void copyMacrosFromNameReplace(css::uno::Reference< css::container::XNameReplace > const &xReplace)
Definition: unoevent.cxx:135
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:103
Dialog to specify the properties of date form field.