nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / core / inc / unoevent.hxx
blobde6b745e36ad908383e1203866f3ae074ccc42bd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOEVENT_HXX
20 #define INCLUDED_SW_SOURCE_CORE_INC_UNOEVENT_HXX
22 #include <svtools/unoevent.hxx>
24 class SvxMacroItem;
25 class SwXFrame;
26 class SwXTextFrame;
27 class SwXTextGraphicObject;
28 class SwXTextEmbeddedObject;
29 class SwFormatINetFormat;
30 namespace sw
32 class ICoreFrameStyle;
35 class SwHyperlinkEventDescriptor : public SvDetachedEventDescriptor
37 //XServiceInfo
38 virtual OUString SAL_CALL getImplementationName() override;
40 protected:
41 virtual ~SwHyperlinkEventDescriptor() override;
43 public:
44 SwHyperlinkEventDescriptor();
46 void copyMacrosFromINetFormat(const SwFormatINetFormat& aFormat);
47 void copyMacrosIntoINetFormat(SwFormatINetFormat& aFormat);
49 void
50 copyMacrosFromNameReplace(css::uno::Reference<css::container::XNameReplace> const& xReplace);
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
58 class SwFrameEventDescriptor : public SvEventDescriptor
60 SwXFrame& rFrame;
62 public:
63 SwFrameEventDescriptor(SwXTextFrame& rFrameRef);
64 SwFrameEventDescriptor(SwXTextGraphicObject& rGraphicRef);
65 SwFrameEventDescriptor(SwXTextEmbeddedObject& rObjectRef);
67 virtual ~SwFrameEventDescriptor() override;
69 virtual OUString SAL_CALL getImplementationName() override;
71 protected:
72 virtual void setMacroItem(const SvxMacroItem& rItem) override;
73 virtual const SvxMacroItem& getMacroItem() override;
74 virtual sal_uInt16 getMacroItemWhich() const override;
77 class SwFrameStyleEventDescriptor : public SvEventDescriptor
79 sw::ICoreFrameStyle& m_rStyle;
81 public:
82 SwFrameStyleEventDescriptor(sw::ICoreFrameStyle& rStyle);
84 virtual ~SwFrameStyleEventDescriptor() override;
86 virtual OUString SAL_CALL getImplementationName() override;
88 protected:
89 virtual void setMacroItem(const SvxMacroItem& rItem) override;
90 virtual const SvxMacroItem& getMacroItem() override;
91 virtual sal_uInt16 getMacroItemWhich() const override;
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */