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 "TokenWriter.hxx"
22 #include <com/sun/star/util/XNumberFormatter.hpp>
23 #include <com/sun/star/sdbc/XConnection.hpp>
24 #include <svx/dbaexchange.hxx>
26 #include <rtl/ref.hxx>
28 namespace com::sun::star::uno
{
29 class XComponentContext
;
35 class ORTFImportExport
;
36 class OHTMLImportExport
;
38 class ODataClipboard
: public svx::ODataAccessObjectTransferable
41 ::rtl::Reference
< OHTMLImportExport
> m_pHtml
;
42 ::rtl::Reference
< ORTFImportExport
> m_pRtf
;
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
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
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
72 virtual void SAL_CALL
disposing( const css::lang::EventObject
& Source
) override
;
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( SvStream
& rOStm
, void* pUserObject
, sal_uInt32 nUserObjectId
, const css::datatransfer::DataFlavor
& rFlavor
) override
;
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */