fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / inc / JoinExchange.hxx
blob34e0d83166bc659eab19c565a857911cd4de8b0b
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 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_JOINEXCHANGE_HXX
20 #define INCLUDED_DBACCESS_SOURCE_UI_INC_JOINEXCHANGE_HXX
22 #include "dbexchange.hxx"
23 #include "TableWindowListBox.hxx"
25 #include <svtools/transfer.hxx>
26 #include <com/sun/star/lang/XUnoTunnel.hpp>
27 #include <cppuhelper/implbase1.hxx>
29 namespace dbaui
31 // OJoinExchObj: Additional data to create Joins in the JoinShell
33 typedef ::cppu::ImplHelper1< ::com::sun::star::lang::XUnoTunnel > OJoinExchObj_Base;
34 class OJoinExchObj : public TransferableHelper, public OJoinExchObj_Base
36 static OUString m_sJoinFormat;
37 bool m_bFirstEntry;
39 protected:
40 OJoinExchangeData m_jxdSourceDescription;
41 IDragTransferableListener* m_pDragListener;
43 virtual ~OJoinExchObj();
45 public:
46 OJoinExchObj(const OJoinExchangeData& jxdSource,bool _bFirstEntry=false);
49 // XInterface
50 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL acquire( ) throw() SAL_OVERRIDE;
52 virtual void SAL_CALL release( ) throw() SAL_OVERRIDE;
54 // XUnoTunnel
55 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 void StartDrag( vcl::Window* pWindow, sal_Int8 nDragSourceActions, IDragTransferableListener* _pListener );
59 static OJoinExchangeData GetSourceDescription(const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxObject);
60 static bool isFormatAvailable( const DataFlavorExVector& _rFormats ,SotClipboardFormatId _nSlotID=SotClipboardFormatId::SBA_JOIN);
62 protected:
63 virtual void AddSupportedFormats() SAL_OVERRIDE;
64 virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) SAL_OVERRIDE;
65 virtual void DragFinished( sal_Int8 nDropAction ) SAL_OVERRIDE;
67 static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
69 private:
70 using TransferableHelper::StartDrag;
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */