LibreOffice Module dbaccess (master) 1
|
#include <TokenWriter.hxx>
Public Member Functions | |
void | setStream (SvStream *_pStream) |
void | setSTableName (const OUString &_sTableName) |
virtual bool | Write () |
virtual bool | Read () |
void | initialize (const svx::ODataAccessDescriptor &_aDataDescriptor) |
void | dispose () |
void | enableCheckOnly () |
bool | isCheckEnabled () const |
Protected Member Functions | |
ODatabaseImportExport (const svx::ODataAccessDescriptor &_aDataDescriptor, const css::uno::Reference< css::uno::XComponentContext > &_rM, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF) | |
ODatabaseImportExport (SharedConnection _xConnection, const css::uno::Reference< css::util::XNumberFormatter > &_rxNumberF, const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
virtual | ~ODatabaseImportExport () override |
virtual void | initialize () |
Protected Attributes | |
css::uno::Sequence< css::uno::Any > | m_aSelection |
bool | m_bBookmarkSelection |
SvStream * | m_pStream |
css::awt::FontDescriptor | m_aFont |
css::uno::Reference< css::beans::XPropertySet > | m_xObject |
SharedConnection | m_xConnection |
css::uno::Reference< css::sdbc::XResultSet > | m_xResultSet |
css::uno::Reference< css::sdbc::XRow > | m_xRow |
css::uno::Reference< css::sdbcx::XRowLocate > | m_xRowLocate |
css::uno::Reference< css::sdbc::XResultSetMetaData > | m_xResultSetMetaData |
css::uno::Reference< css::container::XIndexAccess > | m_xRowSetColumns |
css::uno::Reference< css::util::XNumberFormatter > | m_xFormatter |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_sName |
OUString | m_sDefaultTableName |
OUString | m_sDataSourceName |
sal_Int32 | m_nCommandType |
bool | m_bNeedToReInitialize |
rtl_TextEncoding | m_eDestEnc |
bool | m_bInInitialize |
bool | m_bCheckOnly |
Private Member Functions | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
void | impl_initFromDescriptor (const svx::ODataAccessDescriptor &_aDataDescriptor, bool _bPlusDefaultInit) |
Definition at line 50 of file TokenWriter.hxx.
|
protected |
|
protected |
|
overrideprotectedvirtual |
Definition at line 114 of file TokenWriter.cxx.
References dispose().
void ODatabaseImportExport::dispose | ( | void | ) |
Definition at line 120 of file TokenWriter.cxx.
References utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::clear(), m_xConnection, m_xFormatter, m_xObject, m_xResultSet, m_xResultSetMetaData, m_xRow, and m_xRowLocate.
Referenced by disposing(), and ~ODatabaseImportExport().
|
overrideprivatevirtual |
Definition at line 141 of file TokenWriter.cxx.
References utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::clear(), dispose(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), m_bNeedToReInitialize, m_xConnection, and Source.
|
inline |
Definition at line 105 of file TokenWriter.hxx.
References m_bCheckOnly.
|
private |
Definition at line 157 of file TokenWriter.cxx.
References svx::ODataAccessDescriptor::getDataSource(), svx::ODataAccessDescriptor::has(), initialize(), m_aSelection, m_bBookmarkSelection, m_nCommandType, m_sDataSourceName, m_sName, m_xConnection, m_xResultSet, m_xRowLocate, utl::SharedUNOComponent< css::sdbc::XConnection >::NoTakeOwnership, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), and SAL_WARN.
Referenced by initialize().
|
protectedvirtual |
Reimplemented in dbaui::ORowSetImportExport, and dbaui::ORowSetImportExport.
Definition at line 209 of file TokenWriter.cxx.
References Any, dbaui::createConnection(), VCLUnoHelper::CreateFontDescriptor(), Exception, OutputDevice::GetDefaultFont(), Application::GetSettings(), dbtools::SQLExceptionInfo::getType(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::getTyped(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbtools::SQLExceptionInfo::isValid(), m_aFont, m_bInInitialize, m_bNeedToReInitialize, m_nCommandType, m_sDataSourceName, m_sName, m_xConnection, m_xContext, m_xObject, m_xResultSet, m_xResultSetMetaData, m_xRow, m_xRowLocate, m_xRowSetColumns, PROPERTY_ACTIVE_CONNECTION(), PROPERTY_COMMAND(), PROPERTY_COMMAND_TYPE(), PROPERTY_FONT(), dbaccess::QUERY, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), and dbaccess::TABLE.
Referenced by impl_initFromDescriptor(), dbaui::ORowSetImportExport::initialize(), Read(), and Write().
void ODatabaseImportExport::initialize | ( | const svx::ODataAccessDescriptor & | _aDataDescriptor | ) |
Definition at line 152 of file TokenWriter.cxx.
References impl_initFromDescriptor().
|
inline |
Definition at line 106 of file TokenWriter.hxx.
References m_bCheckOnly.
Referenced by dbaui::ORTFImportExport::Read(), and dbaui::OHTMLImportExport::Read().
|
virtual |
Reimplemented in dbaui::ORTFImportExport, dbaui::OHTMLImportExport, and dbaui::ORowSetImportExport.
Definition at line 310 of file TokenWriter.cxx.
References initialize(), m_bInInitialize, and m_bNeedToReInitialize.
Referenced by dbaui::ORTFImportExport::Read(), and dbaui::OHTMLImportExport::Read().
|
inline |
Definition at line 97 of file TokenWriter.hxx.
References m_sDefaultTableName.
|
inline |
Definition at line 94 of file TokenWriter.hxx.
References m_pStream.
Referenced by dbaui::ODataClipboard::WriteObject().
|
virtual |
Reimplemented in dbaui::ORTFImportExport, dbaui::OHTMLImportExport, and dbaui::ORowSetImportExport.
Definition at line 300 of file TokenWriter.cxx.
References initialize(), m_bInInitialize, and m_bNeedToReInitialize.
Referenced by dbaui::ORTFImportExport::Write(), dbaui::OHTMLImportExport::Write(), and dbaui::ODataClipboard::WriteObject().
|
protected |
Definition at line 56 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), dbaui::OHTMLImportExport::FontOn(), initialize(), dbaui::ORTFImportExport::Write(), dbaui::OHTMLImportExport::WriteBody(), and dbaui::OHTMLImportExport::WriteCell().
|
protected |
Definition at line 53 of file TokenWriter.hxx.
Referenced by impl_initFromDescriptor(), dbaui::ORowSetImportExport::Read(), and dbaui::ORTFImportExport::Write().
|
protected |
Definition at line 54 of file TokenWriter.hxx.
Referenced by impl_initFromDescriptor(), and dbaui::ORTFImportExport::Write().
|
protected |
Definition at line 78 of file TokenWriter.hxx.
Referenced by enableCheckOnly(), and isCheckEnabled().
|
protected |
Definition at line 77 of file TokenWriter.hxx.
Referenced by initialize(), Read(), and Write().
|
protected |
Definition at line 74 of file TokenWriter.hxx.
Referenced by disposing(), initialize(), Read(), and Write().
|
protected |
Definition at line 76 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), and dbaui::ORTFImportExport::Write().
|
protected |
Definition at line 73 of file TokenWriter.hxx.
Referenced by impl_initFromDescriptor(), and initialize().
|
protected |
Definition at line 55 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), dbaui::OHTMLImportExport::FontOff(), dbaui::OHTMLImportExport::FontOn(), dbaui::ORTFImportExport::Read(), dbaui::OHTMLImportExport::Read(), setStream(), dbaui::ORTFImportExport::Write(), dbaui::OHTMLImportExport::Write(), dbaui::OHTMLImportExport::WriteBody(), dbaui::OHTMLImportExport::WriteCell(), dbaui::OHTMLImportExport::WriteHeader(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 72 of file TokenWriter.hxx.
Referenced by impl_initFromDescriptor(), and initialize().
|
protected |
Definition at line 70 of file TokenWriter.hxx.
Referenced by dbaui::OHTMLImportExport::Read(), and setSTableName().
|
protected |
Definition at line 67 of file TokenWriter.hxx.
Referenced by impl_initFromDescriptor(), initialize(), dbaui::OHTMLImportExport::WriteHeader(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 58 of file TokenWriter.hxx.
Referenced by dispose(), disposing(), impl_initFromDescriptor(), initialize(), dbaui::ORTFImportExport::Read(), and dbaui::OHTMLImportExport::Read().
|
protected |
Definition at line 65 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), initialize(), dbaui::ORTFImportExport::Read(), dbaui::OHTMLImportExport::Read(), dbaui::OHTMLImportExport::WriteHeader(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 64 of file TokenWriter.hxx.
Referenced by dispose(), dbaui::ORTFImportExport::Read(), dbaui::OHTMLImportExport::Read(), and dbaui::OHTMLImportExport::WriteCell().
|
protected |
Definition at line 57 of file TokenWriter.hxx.
Referenced by dispose(), dbaui::OHTMLImportExport::FontOn(), initialize(), dbaui::ORTFImportExport::Write(), dbaui::OHTMLImportExport::Write(), dbaui::OHTMLImportExport::WriteBody(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 59 of file TokenWriter.hxx.
Referenced by dispose(), impl_initFromDescriptor(), initialize(), dbaui::ORowSetImportExport::initialize(), dbaui::ORowSetImportExport::Read(), dbaui::ORTFImportExport::Write(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 62 of file TokenWriter.hxx.
Referenced by dispose(), initialize(), dbaui::ORowSetImportExport::initialize(), dbaui::ORTFImportExport::Write(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 60 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), dispose(), initialize(), dbaui::ORowSetImportExport::insertNewRow(), and dbaui::OHTMLImportExport::WriteTables().
|
protected |
Definition at line 61 of file TokenWriter.hxx.
Referenced by dispose(), impl_initFromDescriptor(), initialize(), and dbaui::ORTFImportExport::Write().
|
protected |
Definition at line 63 of file TokenWriter.hxx.
Referenced by dbaui::ORTFImportExport::appendRow(), initialize(), and dbaui::OHTMLImportExport::WriteTables().