LibreOffice Module dbaccess (master) 1
JoinExchange.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
22
23#include <vcl/transfer.hxx>
24#include <com/sun/star/lang/XUnoTunnel.hpp>
26
27namespace dbaui
28{
29 // OJoinExchObj: Additional data to create Joins in the JoinShell
30
31 typedef ::cppu::ImplHelper1< css::lang::XUnoTunnel > OJoinExchObj_Base;
33 {
35
37
38 virtual ~OJoinExchObj() override;
39
40 public:
42 void setDescriptors(const OJoinExchangeData& jxdSource, bool _bFirstEntry);
43
44 // XInterface
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;
48
49 // XUnoTunnel
50 static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId();
51 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& _rIdentifier ) override;
52
53 static OJoinExchangeData GetSourceDescription(const css::uno::Reference< css::datatransfer::XTransferable >& _rxObject);
54 static bool isFormatAvailable( const DataFlavorExVector& _rFormats ,SotClipboardFormatId _nSlotID=SotClipboardFormatId::SBA_JOIN);
55
56 private:
57 virtual void AddSupportedFormats() override;
58 virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
59 };
60}
61
62/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool isFormatAvailable(const DataFlavorExVector &_rFormats, SotClipboardFormatId _nSlotID=SotClipboardFormatId::SBA_JOIN)
OJoinExchangeData m_jxdSourceDescription
virtual bool GetData(const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &_rIdentifier) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual void SAL_CALL acquire() noexcept override
static OJoinExchangeData GetSourceDescription(const css::uno::Reference< css::datatransfer::XTransferable > &_rxObject)
virtual void SAL_CALL release() noexcept override
void setDescriptors(const OJoinExchangeData &jxdSource, bool _bFirstEntry)
virtual ~OJoinExchObj() override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
virtual void AddSupportedFormats() override
::std::vector< DataFlavorEx > DataFlavorExVector
SotClipboardFormatId
::cppu::ImplHelper1< css::lang::XUnoTunnel > OJoinExchObj_Base
signed char sal_Int8