nss: upgrade to release 3.73
[LibreOffice.git] / vcl / win / dtrans / clipboardmanager.hxx
blob56e69617dc5f04cf9b2e6a72f2382ba81540e9ff
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 .
20 #pragma once
22 #include <cppuhelper/compbase.hxx>
24 #include <com/sun/star/datatransfer/clipboard/XClipboardManager.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <map>
30 typedef std::map< OUString, css::uno::Reference< css::datatransfer::clipboard::XClipboard > > ClipboardMap;
32 namespace dtrans
35 class ClipboardManager : public ::cppu::WeakComponentImplHelper <
36 css::datatransfer::clipboard::XClipboardManager,
37 css::lang::XEventListener,
38 css::lang::XServiceInfo >
40 ClipboardMap m_aClipboardMap;
41 ::osl::Mutex m_aMutex;
43 const OUString m_aDefaultName;
45 virtual ~ClipboardManager() override;
46 protected:
47 using WeakComponentImplHelperBase::disposing;
48 public:
50 ClipboardManager();
53 * XServiceInfo
56 virtual OUString SAL_CALL getImplementationName( ) override;
58 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
60 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
63 * XComponent
66 virtual void SAL_CALL dispose() override;
69 * XEventListener
72 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
75 * XClipboardManager
78 virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const OUString& aName ) override;
80 virtual void SAL_CALL addClipboard( const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& xClipboard ) override;
82 virtual void SAL_CALL removeClipboard( const OUString& aName ) override;
84 virtual css::uno::Sequence< OUString > SAL_CALL listClipboardNames( ) override;
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */