LibreOffice Module forms (master) 1
clipboarddispatcher.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
20#pragma once
21
22#include "featuredispatcher.hxx"
23#include <tools/link.hxx>
24#include <rtl/ref.hxx>
25
28
29namespace frm
30{
31
33 {
34 public:
36 {
39 ePaste
40 };
41
42 private:
45
46 public:
48
49 protected:
50 // XDispatch
51 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) override;
52
53 // ORichTextFeatureDispatcher
54 virtual void invalidateFeatureState_Broadcast() override;
55 virtual css::frame::FeatureStateEvent
56 buildStatusEvent() const override;
57
58 protected:
62 virtual bool implIsEnabled( ) const;
63 };
64
66 {
67 private:
70
71 public:
72 explicit OPasteClipboardDispatcher( EditView& _rView );
73
74 protected:
75 virtual ~OPasteClipboardDispatcher() override;
76
77 // OClipboardDispatcher
78 virtual bool implIsEnabled( ) const override;
79
80 // ORichTextFeatureDispatcher
81 virtual void disposing( ::osl::ClearableMutexGuard& _rClearBeforeNotify ) override;
82
83 private:
84 DECL_LINK( OnClipboardChanged, TransferableDataHelper*, void );
85 };
86
87
88} // namespace frm
89
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
virtual void invalidateFeatureState_Broadcast() override
virtual css::frame::FeatureStateEvent buildStatusEvent() const override
virtual bool implIsEnabled() const
determines whether our functionality is currently available to be overridden for ePaste
OClipboardDispatcher(EditView &_rView, ClipboardFunc _eFunc)
virtual bool implIsEnabled() const override
determines whether our functionality is currently available to be overridden for ePaste
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify) override
rtl::Reference< TransferableClipboardListener > m_pClipListener
DECL_LINK(OnClipboardChanged, TransferableDataHelper *, void)
virtual ~OPasteClipboardDispatcher() override
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25