calc: on editing invalidation of view with different zoom is wrong
[LibreOffice.git] / vcl / workben / win / dnd / transferable.hxx
blobc1606cab8648d18d8e479e46e47f9550c222b8a6
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 #pragma once
21 #include <cppuhelper/servicefactory.hxx>
22 #include <com/sun/star/datatransfer/XTransferable.hpp>
23 #include <com/sun/star/datatransfer/clipboard/XClipboardOwner.hpp>
24 #include <com/sun/star/datatransfer/clipboard/XClipboardNotifier.hpp>
25 #include <com/sun/star/datatransfer/clipboard/XClipboardEx.hpp>
26 #include <com/sun/star/lang/XComponent.hpp>
27 #include <cppuhelper/implbase.hxx>
28 #include <rtl/ustring.hxx>
29 #include <sal/types.h>
30 #include <osl/diagnose.h>
32 #include <stdio.h>
33 #if defined _MSC_VER
34 #pragma warning(push,1)
35 #endif
36 #include <windows.h>
37 #include <objbase.h>
38 #if defined _MSC_VER
39 #pragma warning(pop)
40 #endif
42 #include <memory>
44 #include <process.h>
46 #include "../../source/win32/ImplHelper.hxx"
48 // my defines
50 #define TEST_CLIPBOARD
51 #define RDB_SYSPATH "d:\\projects\\src616\\dtrans\\wntmsci7\\bin\\applicat.rdb"
52 #define WINCLIPBOARD_SERVICE_NAME L"com.sun.star.datatransfer.clipboard.SystemClipboard"
53 #define WRITE_CB
54 #define EVT_MANUAL_RESET TRUE
55 #define EVT_INIT_NONSIGNALED FALSE
56 #define EVT_NONAME ""
58 // namespaces
60 using namespace ::cppu;
61 using namespace ::com::sun::star::datatransfer;
62 using namespace ::com::sun::star::datatransfer::clipboard;
63 using namespace ::com::sun::star::uno;
64 using namespace ::com::sun::star::io;
65 using namespace ::com::sun::star::lang;
67 class CTransferable : public WeakImplHelper< XClipboardOwner, XTransferable >
69 public:
70 CTransferable( ){};
71 explicit CTransferable( wchar_t* dataString);
73 // XTransferable
75 virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException);
76 virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors( ) throw(RuntimeException);
77 virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
79 // XClipboardOwner
81 virtual void SAL_CALL lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans ) throw(RuntimeException);
83 private:
84 Sequence< DataFlavor > m_seqDFlv;
85 OUString m_Data;
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */