LibreOffice Module dbaccess (master) 1
dbexchange.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
21#include "TokenWriter.hxx"
22#include <com/sun/star/util/XNumberFormatter.hpp>
23#include <com/sun/star/sdbc/XConnection.hpp>
24#include <svx/dbaexchange.hxx>
25
26#include <rtl/ref.hxx>
27
28namespace com::sun::star::uno {
29 class XComponentContext;
30}
31
32namespace dbaui
33{
34
35 class ORTFImportExport;
36 class OHTMLImportExport;
37
39
40 {
43
44 public:
46
48 const css::uno::Reference< css::beans::XPropertySet >& i_rAliveForm,
49 const css::uno::Sequence< css::uno::Any >& i_rSelectedRows,
50 const bool i_bBookmarkSelection,
51 const css::uno::Reference< css::uno::XComponentContext >& i_rORB
52 );
53
54 void Update(
55 const OUString& _rDatasource,
56 const sal_Int32 _nCommandType,
57 const OUString& _rCommand,
58 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
59 const css::uno::Reference< css::util::XNumberFormatter >& _rxFormatter,
60 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
61 );
62
63 void Update(
64 const OUString& _rDatasource,
65 const sal_Int32 _nCommandType,
66 const OUString& _rCommand,
67 const css::uno::Reference< css::util::XNumberFormatter >& _rxFormatter,
68 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
69 );
70
71 // XEventListener
72 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
73
74 protected:
75 virtual void AddSupportedFormats() override;
76 virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override;
77 virtual void ObjectReleased() override;
78 virtual bool WriteObject( tools::SvRef<SotTempStream>& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor& rFlavor ) override;
79 };
80}
81
82
83/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::rtl::Reference< OHTMLImportExport > m_pHtml
Definition: dbexchange.hxx:41
virtual bool WriteObject(tools::SvRef< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) override
Definition: dbexchange.cxx:143
void Update(const OUString &_rDatasource, const sal_Int32 _nCommandType, const OUString &_rCommand, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxFormatter, const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
Definition: dbexchange.cxx:218
::rtl::Reference< ORTFImportExport > m_pRtf
Definition: dbexchange.hxx:42
void Update(const OUString &_rDatasource, const sal_Int32 _nCommandType, const OUString &_rCommand, const css::uno::Reference< css::util::XNumberFormatter > &_rxFormatter, const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual void ObjectReleased() override
Definition: dbexchange.cxx:189
ODataClipboard(const css::uno::Reference< css::beans::XPropertySet > &i_rAliveForm, const css::uno::Sequence< css::uno::Any > &i_rSelectedRows, const bool i_bBookmarkSelection, const css::uno::Reference< css::uno::XComponentContext > &i_rORB)
virtual bool GetData(const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
Definition: dbexchange.cxx:168
virtual void AddSupportedFormats() override
Definition: dbexchange.cxx:157