23#include <com/sun/star/sdbc/SQLException.hpp>
24#include <com/sun/star/beans/XPropertySet.hpp>
25#include <com/sun/star/util/XNumberFormatter.hpp>
26#include <com/sun/star/container/XNameAccess.hpp>
27#include <com/sun/star/lang/Locale.hpp>
28#include <com/sun/star/util/Date.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
40 struct FontDescriptor;
43 class XPreparedStatement;
44 class XDatabaseMetaData;
48#define COLUMN_POSITION_NOT_FOUND (sal_Int32(-1))
53 class OFieldDescription;
57 typedef std::map<OUString, OFieldDescription*, ::comphelper::UStringMixLess>
TColumns;
59 typedef std::vector< std::pair<sal_Int32,sal_Int32> >
TPositions;
71 css::uno::Reference< css::beans::XPropertySet >
m_xTable;
72 css::uno::Reference< css::container::XNameAccess>
m_xTables;
77 css::uno::Reference< css::uno::XComponentContext>
m_xContext;
107 sal_Int16
CheckString(
const OUString& aToken, sal_Int16 _nOldNumberFormat);
124 const css::uno::Any& _aTextColor,
125 const css::awt::FontDescriptor& _rFont);
132 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
133 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
141 const css::uno::Reference< css::util::XNumberFormatter >& _rxNumberF,
142 const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
145 bool _bAutoIncrementEnabled,
156 static css::uno::Reference< css::sdbc::XPreparedStatement >
createPreparedStatement(
const css::uno::Reference< css::sdbc::XDatabaseMetaData>& _xMetaData
157 ,
const css::uno::Reference< css::beans::XPropertySet>& _xDestTable
SvNumberFormatter * m_pFormatter
sal_Int16 CheckString(const OUString &aToken, sal_Int16 _nOldNumberFormat)
TColumns m_aDestColumns
container for new created columns
sal_Int32 m_nRows
number of rows to be searched
bool isCheckEnabled() const
OUString m_sDefaultTableName
for saving the selected tablename
std::map< OUString, OFieldDescription *, ::comphelper::UStringMixLess > TColumns
static css::uno::Reference< css::sdbc::XPreparedStatement > createPreparedStatement(const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData, const css::uno::Reference< css::beans::XPropertySet > &_xDestTable, const TPositions &_rvColumnPositions)
void SetTableName(const OUString &_sTableName)
OUString m_sTextToken
cell content
void CreateDefaultColumn(const OUString &_rColumnName)
css::uno::Reference< css::container::XNameAccess > m_xTables
container
ODatabaseExport(const SharedConnection &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, SvStream &_rInputStream)
TColumnVector m_vDestVector
bool m_bDontAskAgain
if there is an error when pasting, don't show it again
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
a number formatter working with the connection's NumberFormatsSupplier
virtual ~ODatabaseExport()
bool m_bError
error and termination code
css::uno::Reference< css::uno::XComponentContext > m_xContext
std::vector< sal_Int16 > m_vNumberFormat
std::vector< std::pair< sal_Int32, sal_Int32 > > TPositions
std::shared_ptr< IUpdateHelper > m_pUpdateHelper
std::vector< sal_Int32 > m_vColumnSize
sal_Int32 m_nColumnPos
current column position
const OTypeInfoMap * m_pInfoMap
css::util::Date m_aNullDate
bool m_bInTbl
true, if parser is in RTF table
OUString m_sNumToken
SDNUM value.
sal_Int32 m_nRowCount
current count of rows
css::uno::Reference< css::beans::XPropertySet > m_xTable
dest table
bool executeWizard(const OUString &_sTableName, const css::uno::Any &_aTextColor, const css::awt::FontDescriptor &_rFont)
executeWizard calls a wizard to create/append data
bool m_bFoundTable
set to true when a table was found
ODatabaseExport(sal_Int32 nRows, TPositions &&_rColumnPositions, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const TColumnVector *rList, const OTypeInfoMap *_pInfoMap, bool _bAutoIncrementEnabled, SvStream &_rInputStream)
bool m_bIsAutoIncrement
if PKey is set by user
void showErrorDialog(const css::sdbc::SQLException &e)
css::lang::Locale m_aLocale
virtual TypeSelectionPageFactory getTypeSelectionPageFactory()=0
void SetColumnTypes(const TColumnVector *rList, const OTypeInfoMap *_pInfoMap)
std::vector< sal_Int32 > m_vColumnTypes
ColumnTypes for faster access.
TOTypeInfoSP m_pTypeInfo
contains the default type
void insertValueIntoColumn()
bool m_bHead
true, if the header hasn't been read yet
std::vector< TColumns::const_iterator > TColumnVector
SvStream & m_rInputStream
TPositions m_vColumnPositions
columns to be used
const TColumnVector * m_pColumnList
SharedConnection m_xConnection
dest conn
std::unique_ptr< OWizTypeSelect >(* TypeSelectionPageFactory)(weld::Container *, OCopyTableWizard *, SvStream &)
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
std::shared_ptr< OTypeInfo > TOTypeInfoSP