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 { class ICoreFrameStyle; }
31 
33 {
34  //XServiceInfo
35  virtual OUString SAL_CALL getImplementationName() override;
36 protected:
37  virtual ~SwHyperlinkEventDescriptor() override;
38 public:
39 
41 
42  void copyMacrosFromINetFormat(const SwFormatINetFormat& aFormat);
44 
46  css::uno::Reference<css::container::XNameReplace> const & xReplace);
47 };
48 
49 // SwEventDescriptor for
50 // 1) SwXTextFrame
51 // 2) SwXGraphicObject
52 // 3) SwXEmbeddedObject
53 // All these objects are an SwXFrame, so they can use a common implementation
55 {
57 
58 public:
62 
63  virtual ~SwFrameEventDescriptor() override;
64 
65  virtual OUString SAL_CALL getImplementationName() override;
66 
67 protected:
68  virtual void setMacroItem(const SvxMacroItem& rItem) override;
69  virtual const SvxMacroItem& getMacroItem() override;
70  virtual sal_uInt16 getMacroItemWhich() const override;
71 };
72 
74 {
76 
77 public:
79 
80  virtual ~SwFrameStyleEventDescriptor() override;
81 
82  virtual OUString SAL_CALL getImplementationName() override;
83 
84 protected:
85  virtual void setMacroItem(const SvxMacroItem& rItem) override;
86  virtual const SvxMacroItem& getMacroItem() override;
87  virtual sal_uInt16 getMacroItemWhich() const override;
88 };
89 
90 #endif
91 
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void copyMacrosIntoINetFormat(SwFormatINetFormat &aFormat)
Definition: unoevent.cxx:124
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:107
virtual sal_uInt16 getMacroItemWhich() const override
Definition: unoevent.cxx:192
sw::ICoreFrameStyle & m_rStyle
Definition: unoevent.hxx:75
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
void copyMacrosFromNameReplace(css::uno::Reference< css::container::XNameReplace > const &xReplace)
Definition: unoevent.cxx:139
SwFrameEventDescriptor(SwXTextFrame &rFrameRef)
Definition: unoevent.cxx:157
SwFrameStyleEventDescriptor(sw::ICoreFrameStyle &rStyle)
Definition: unoevent.cxx:202
virtual sal_uInt16 getMacroItemWhich() const override
Definition: unoevent.cxx:232
virtual const SvxMacroItem & getMacroItem() override
Definition: unoevent.cxx:187
virtual void setMacroItem(const SvxMacroItem &rItem) override
Definition: unoevent.cxx:182
virtual const SvxMacroItem & getMacroItem() override
Definition: unoevent.cxx:221
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:227
void copyMacrosFromINetFormat(const SwFormatINetFormat &aFormat)
Definition: unoevent.cxx:112
virtual ~SwHyperlinkEventDescriptor() override
Definition: unoevent.cxx:103
virtual OUString SAL_CALL getImplementationName() override
Definition: unoevent.cxx:197
virtual ~SwFrameEventDescriptor() override
Definition: unoevent.cxx:178
virtual ~SwFrameStyleEventDescriptor() override
Definition: unoevent.cxx:210
virtual void setMacroItem(const SvxMacroItem &rItem) override
Definition: unoevent.cxx:214