fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dtrans / source / generic / clipboardmanager.hxx
bloba65e672f36a8de1a69c5202307dbf5ebb5614555
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 #ifndef INCLUDED_DTRANS_SOURCE_GENERIC_CLIPBOARDMANAGER_HXX
21 #define INCLUDED_DTRANS_SOURCE_GENERIC_CLIPBOARDMANAGER_HXX
23 #include <cppuhelper/compbase3.hxx>
25 #include <com/sun/star/datatransfer/clipboard/XClipboardManager.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
29 #include <map>
31 #define CLIPBOARDMANAGER_IMPLEMENTATION_NAME "com.sun.star.comp.datatransfer.ClipboardManager"
33 typedef ::std::map< OUString, ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > > ClipboardMap;
35 namespace dtrans
38 class ClipboardManager : public ::cppu::WeakComponentImplHelper3 <
39 ::com::sun::star::datatransfer::clipboard::XClipboardManager,
40 ::com::sun::star::lang::XEventListener,
41 ::com::sun::star::lang::XServiceInfo >
43 ClipboardMap m_aClipboardMap;
44 ::osl::Mutex m_aMutex;
46 const OUString m_aDefaultName;
48 virtual ~ClipboardManager();
49 protected:
50 using WeakComponentImplHelperBase::disposing;
51 public:
53 ClipboardManager();
56 * XServiceInfo
59 virtual OUString SAL_CALL getImplementationName( )
60 throw(::com::sun::star::uno::RuntimeException);
62 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
63 throw(::com::sun::star::uno::RuntimeException);
65 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
66 throw(::com::sun::star::uno::RuntimeException);
69 * XComponent
72 virtual void SAL_CALL dispose()
73 throw(::com::sun::star::uno::RuntimeException);
76 * XEventListener
79 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
80 throw(::com::sun::star::uno::RuntimeException);
83 * XClipboardManager
86 virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const OUString& aName )
87 throw(::com::sun::star::container::NoSuchElementException,
88 ::com::sun::star::uno::RuntimeException);
90 virtual void SAL_CALL addClipboard( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& xClipboard )
91 throw(::com::sun::star::lang::IllegalArgumentException,
92 ::com::sun::star::container::ElementExistException,
93 ::com::sun::star::uno::RuntimeException);
95 virtual void SAL_CALL removeClipboard( const OUString& aName )
96 throw(::com::sun::star::uno::RuntimeException);
98 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL listClipboardNames( )
99 throw(::com::sun::star::uno::RuntimeException);
105 ::com::sun::star::uno::Sequence< OUString > SAL_CALL ClipboardManager_getSupportedServiceNames();
106 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ClipboardManager_createInstance(
107 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
109 #endif
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */