23#include <com/sun/star/awt/FontDescriptor.hpp>
24#include <com/sun/star/sdbc/XResultSet.hpp>
25#include <com/sun/star/sdbc/XResultSetMetaData.hpp>
26#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
27#include <com/sun/star/sdbc/XRow.hpp>
28#include <com/sun/star/lang/XEventListener.hpp>
29#include <com/sun/star/container/XIndexAccess.hpp>
30#include <com/sun/star/sdbcx/XRowLocate.hpp>
31#include <com/sun/star/uno/XComponentContext.hpp>
32#include <com/sun/star/util/XNumberFormatter.hpp>
49 class ODatabaseExport;
57 css::uno::Reference< css::beans::XPropertySet >
m_xObject;
60 css::uno::Reference< css::sdbc::XRow >
m_xRow;
65 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
82 const css::uno::Reference< css::uno::XComponentContext >& _rM,
83 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF);
87 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
88 const css::uno::Reference< css::uno::XComponentContext >& _rM);
109 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
117 void appendRow(OString
const * pHorzChar,sal_Int32 _nColumnCount,sal_Int32& k,sal_Int32& kk);
121 const css::uno::Reference< css::uno::XComponentContext >& _rM,
122 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF)
127 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
128 const css::uno::Reference< css::uno::XComponentContext >& _rM)
132 virtual bool Write()
override;
133 virtual bool Read()
override;
136 #define SBA_HTML_FONTSIZES 7
144 #if OSL_DEBUG_LEVEL > 0
151 void WriteCell( sal_Int32 nFormat,sal_Int32 nWidthPixel,sal_Int32 nHeightPixel,
const char* pChar,
const OUString& rValue,
const char* pHtmlTag);
160 const css::uno::Reference< css::uno::XComponentContext >& _rM,
161 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF);
164 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
165 const css::uno::Reference< css::uno::XComponentContext >& _rM)
170 virtual bool Write()
override;
171 virtual bool Read()
override;
193 const css::uno::Reference< css::sdbc::XResultSetUpdate >& xResultSetUpdate,
195 const css::uno::Reference< css::uno::XComponentContext >& rM);
197 virtual bool Write()
override;
198 virtual bool Read()
override;
css::uno::Reference< css::container::XIndexAccess > m_xRowSetColumns
css::uno::Sequence< css::uno::Any > m_aSelection
virtual ~ODatabaseImportExport() override
void impl_initFromDescriptor(const svx::ODataAccessDescriptor &_aDataDescriptor, bool _bPlusDefaultInit)
ODatabaseImportExport(SharedConnection _xConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM)
css::uno::Reference< css::sdbc::XResultSet > m_xResultSet
css::uno::Reference< css::sdbcx::XRowLocate > m_xRowLocate
OUString m_sDataSourceName
css::awt::FontDescriptor m_aFont
void setStream(SvStream *_pStream)
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xResultSetMetaData
rtl_TextEncoding m_eDestEnc
bool m_bBookmarkSelection
virtual void initialize()
SharedConnection m_xConnection
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
bool isCheckEnabled() const
OUString m_sDefaultTableName
ODatabaseImportExport(const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF)
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
css::uno::Reference< css::beans::XPropertySet > m_xObject
bool m_bNeedToReInitialize
void setSTableName(const OUString &_sTableName)
css::uno::Reference< css::sdbc::XRow > m_xRow
css::uno::Reference< css::uno::XComponentContext > m_xContext
char sIndent[nIndentMax+1]
OHTMLImportExport(const SharedConnection &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM)
void WriteCell(sal_Int32 nFormat, sal_Int32 nWidthPixel, sal_Int32 nHeightPixel, const char *pChar, const OUString &rValue, const char *pHtmlTag)
const char * GetIndentStr() const
OHTMLImportExport(const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF)
void IncIndent(sal_Int16 nVal)
static const sal_Int16 nCellSpacing
static const char sIndentSource[]
virtual bool Read() override
virtual bool Write() override
virtual bool Read() override
virtual bool Write() override
ORTFImportExport(const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF)
void appendRow(OString const *pHorzChar, sal_Int32 _nColumnCount, sal_Int32 &k, sal_Int32 &kk)
ORTFImportExport(const SharedConnection &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM)
virtual void initialize() override
css::uno::Reference< css::sdbc::XResultSetUpdate > m_xTargetResultSetUpdate
css::uno::Reference< css::sdbc::XRowUpdate > m_xTargetRowUpdate
std::vector< sal_Int32 > m_aColumnTypes
virtual bool Write() override
virtual bool Read() override
std::vector< sal_Int32 > m_aColumnMapping
ORowSetImportExport(weld::Window *pParent, const css::uno::Reference< css::sdbc::XResultSetUpdate > &xResultSetUpdate, const svx::ODataAccessDescriptor &aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &rM)
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xTargetResultSetMetaData
const sal_Int16 nIndentMax