1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include "TableWindowListBox.hxx"
23 #include <vcl/transfer.hxx>
24 #include <com/sun/star/lang/XUnoTunnel.hpp>
25 #include <cppuhelper/implbase1.hxx>
29 // OJoinExchObj: Additional data to create Joins in the JoinShell
31 typedef ::cppu::ImplHelper1
< css::lang::XUnoTunnel
> OJoinExchObj_Base
;
32 class OJoinExchObj final
: public TransferDataContainer
, public OJoinExchObj_Base
36 OJoinExchangeData m_jxdSourceDescription
;
38 virtual ~OJoinExchObj() override
;
42 void setDescriptors(const OJoinExchangeData
& jxdSource
, bool _bFirstEntry
);
45 virtual css::uno::Any SAL_CALL
queryInterface( const css::uno::Type
& aType
) override
;
46 virtual void SAL_CALL
acquire( ) noexcept override
;
47 virtual void SAL_CALL
release( ) noexcept override
;
50 static const css::uno::Sequence
< sal_Int8
> & getUnoTunnelId();
51 virtual sal_Int64 SAL_CALL
getSomething( const css::uno::Sequence
< sal_Int8
>& _rIdentifier
) override
;
53 static OJoinExchangeData
GetSourceDescription(const css::uno::Reference
< css::datatransfer::XTransferable
>& _rxObject
);
54 static bool isFormatAvailable( const DataFlavorExVector
& _rFormats
,SotClipboardFormatId _nSlotID
=SotClipboardFormatId::SBA_JOIN
);
57 virtual void AddSupportedFormats() override
;
58 virtual bool GetData( const css::datatransfer::DataFlavor
& rFlavor
, const OUString
& rDestDoc
) override
;
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */