tdf#164627 docx export: consolidate getWordCompatibilityMode()
[LibreOffice.git] / vcl / win / dtrans / clipboardmanager.hxx
blob27f9ddbdaee785e96d2d13dd56f3a854bfe0cc37
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 <comphelper/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 ::comphelper::WeakComponentImplHelper <
36 css::datatransfer::clipboard::XClipboardManager,
37 css::lang::XEventListener,
38 css::lang::XServiceInfo >
40 ClipboardMap m_aClipboardMap;
42 const OUString m_aDefaultName;
44 virtual ~ClipboardManager() override;
45 protected:
46 using WeakComponentImplHelperBase::disposing;
47 public:
49 ClipboardManager();
52 * XServiceInfo
55 virtual OUString SAL_CALL getImplementationName( ) override;
57 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
59 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
62 * XComponent
65 virtual void disposing(std::unique_lock<std::mutex>& rGuard) override;
68 * XEventListener
71 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
74 * XClipboardManager
77 virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const OUString& aName ) override;
79 virtual void SAL_CALL addClipboard( const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& xClipboard ) override;
81 virtual void SAL_CALL removeClipboard( const OUString& aName ) override;
83 virtual css::uno::Sequence< OUString > SAL_CALL listClipboardNames( ) override;
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */