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