1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dbexchange.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBAUI_DBEXCHANGE_HXX
31 #define DBAUI_DBEXCHANGE_HXX
33 #ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
34 #include <com/sun/star/beans/PropertyValue.hpp>
36 #ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATTER_HPP_
37 #include <com/sun/star/util/XNumberFormatter.hpp>
39 #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
40 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
42 #ifndef _COM_SUN_STAR_LANG_XEVENTLISTENER_HPP_
43 #include <com/sun/star/lang/XEventListener.hpp>
45 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
46 #include <com/sun/star/sdbc/XConnection.hpp>
48 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
49 #include <cppuhelper/implbase1.hxx>
51 #ifndef _SVX_DBAEXCHANGE_HXX_
52 #include <svx/dbaexchange.hxx>
54 #ifndef _COMPHELPER_UNO3_HXX_
55 #include <comphelper/uno3.hxx>
62 class ORTFImportExport
;
63 class OHTMLImportExport
;
64 typedef ::cppu::ImplHelper1
< ::com::sun::star::lang::XEventListener
> TDataClipboard_BASE
;
66 class ODataClipboard
: public ::svx::ODataAccessObjectTransferable
67 , public TDataClipboard_BASE
70 ::std::vector
< ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> > m_aEventListeners
;
71 OHTMLImportExport
* m_pHtml
;
72 ORTFImportExport
* m_pRtf
;
76 const ::rtl::OUString
& _rDatasource
,
77 const sal_Int32 _nCommandType
,
78 const ::rtl::OUString
& _rCommand
,
79 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
80 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxFormatter
,
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
85 const ::rtl::OUString
& _rDatasource
,
86 const sal_Int32 _nCommandType
,
87 const ::rtl::OUString
& _rCommand
,
88 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& _rxFormatter
,
89 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
93 const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _rxLivingForm
,
94 const ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
>& _rSelectedRows
,
95 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XResultSet
>& _rxResultSet
,
96 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
101 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw (::com::sun::star::uno::RuntimeException
);
103 virtual void AddSupportedFormats();
104 virtual sal_Bool
GetData( const ::com::sun::star::datatransfer::DataFlavor
& rFlavor
);
105 virtual void ObjectReleased();
106 virtual sal_Bool
WriteObject( SotStorageStreamRef
& rxOStm
, void* pUserObject
, sal_uInt32 nUserObjectId
, const ::com::sun::star::datatransfer::DataFlavor
& rFlavor
);
110 #endif // DBAUI_DBEXCHANGE_HXX