LibreOffice Module connectivity (master) 1
|
#include <CConnection.hxx>
Classes | |
class | CloseVetoButTerminateListener |
class | ODocHolder |
Public Member Functions | |
OCalcConnection (ODriver *_pDriver) | |
virtual | ~OCalcConnection () override |
virtual void | construct (const OUString &_rUrl, const css::uno::Sequence< css::beans::PropertyValue > &_rInfo) override |
DECLARE_SERVICE_INFO () | |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > | createCatalog () override |
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
css::uno::Reference< css::sheet::XSpreadsheetDocument > const & | acquireDoc () |
void | releaseDoc () |
Public Member Functions inherited from connectivity::file::OConnection | |
OConnection (OFileDriver *_pDriver) | |
virtual void | construct (const OUString &_rUrl, const css::uno::Sequence< css::beans::PropertyValue > &_rInfo) |
virtual void SAL_CALL | disposing () override |
DECLARE_SERVICE_INFO () | |
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
virtual OUString SAL_CALL | nativeSQL (const OUString &sql) override |
virtual void SAL_CALL | setAutoCommit (sal_Bool autoCommit) override |
virtual sal_Bool SAL_CALL | getAutoCommit () override |
virtual void SAL_CALL | commit () override |
virtual void SAL_CALL | rollback () override |
virtual sal_Bool SAL_CALL | isClosed () override final |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
virtual void SAL_CALL | setReadOnly (sal_Bool readOnly) override |
virtual sal_Bool SAL_CALL | isReadOnly () override |
virtual void SAL_CALL | setCatalog (const OUString &catalog) override |
virtual OUString SAL_CALL | getCatalog () override |
virtual void SAL_CALL | setTransactionIsolation (sal_Int32 level) override |
virtual sal_Int32 SAL_CALL | getTransactionIsolation () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTypeMap () override |
virtual void SAL_CALL | setTypeMap (const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual void SAL_CALL | close () override final |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
css::uno::Reference< css::ucb::XDynamicResultSet > | getDir () const |
const css::uno::Reference< css::ucb::XContent > & | getContent () const |
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > | createCatalog () |
bool | matchesExtension (const OUString &_rExt) const |
const OUString & | getExtension () const |
bool | isCaseSensitiveExtension () const |
OFileDriver * | getDriver () const |
bool | showDeleted () const |
bool | isCheckEnabled () const |
bool | isTextEncodingDefaulted () const |
void | setCaseSensitiveExtension (bool _bIsCS, GrantAccess) |
Public Member Functions inherited from connectivity::OMetaConnection | |
OMetaConnection () | |
rtl_TextEncoding | getTextEncoding () const |
const OUString & | getURL () const |
void | setURL (const OUString &_rsUrl) |
void | throwGenericSQLException (TranslateId pErrorResourceId, const css::uno::Reference< css::uno::XInterface > &_xContext) |
const SharedResources & | getResources () const |
void | setConnectionInfo (const css::uno::Sequence< css::beans::PropertyValue > &_aInfo) |
const css::uno::Sequence< css::beans::PropertyValue > & | getConnectionInfo () const |
virtual void SAL_CALL | disposing () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
Private Attributes | |
css::uno::Reference< css::sheet::XSpreadsheetDocument > | m_xDoc |
OUString | m_sPassword |
OUString | m_aFileName |
oslInterlockedCount | m_nDocCount |
rtl::Reference< CloseVetoButTerminateListener > | m_xCloseVetoButTerminateListener |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::file::OConnection | |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Static Public Member Functions inherited from connectivity::OMetaConnection | |
::dbtools::OPropertyMap & | getPropMap () |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Member Functions inherited from connectivity::file::OConnection | |
void | throwUrlNotValid (const OUString &_rsUrl, const OUString &_rsMessage) |
virtual | ~OConnection () override |
Protected Attributes inherited from connectivity::file::OConnection | |
css::uno::WeakReference< css::sdbcx::XTablesSupplier > | m_xCatalog |
OUString | m_aFilenameExtension |
OFileDriver * | m_pDriver |
css::uno::Reference< css::ucb::XDynamicResultSet > | m_xDir |
css::uno::Reference< css::ucb::XContent > | m_xContent |
bool | m_bAutoCommit |
bool | m_bReadOnly |
bool | m_bShowDeleted |
bool | m_bCaseSensitiveExtension |
bool | m_bCheckSQL92 |
bool | m_bDefaultTextEncoding |
Protected Attributes inherited from connectivity::OMetaConnection | |
::osl::Mutex | m_aMutex |
css::uno::Sequence< css::beans::PropertyValue > | m_aConnectionInfo |
connectivity::OWeakRefArray | m_aStatements |
OUString | m_sURL |
rtl_TextEncoding | m_nTextEncoding |
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
SharedResources | m_aResources |
Definition at line 39 of file CConnection.hxx.
OCalcConnection::OCalcConnection | ( | ODriver * | _pDriver | ) |
Definition at line 50 of file CConnection.cxx.
|
overridevirtual |
Definition at line 55 of file CConnection.cxx.
Reference< XSpreadsheetDocument > const & OCalcConnection::acquireDoc | ( | ) |
Definition at line 99 of file CConnection.cxx.
References Any, Exception, getComponentContext(), connectivity::file::OConnection::getDriver(), connectivity::SharedResources::getResourceStringWithSubstitution(), m_aFileName, connectivity::OMetaConnection::m_aResources, m_nDocCount, m_sPassword, m_xCloseVetoButTerminateListener, m_xDoc, and dbtools::throwGenericSQLException().
Referenced by connectivity::calc::OCalcTable::construct(), construct(), and connectivity::calc::OCalcConnection::ODocHolder::ODocHolder().
|
overridevirtual |
css::sdbc::SQLException | |
css::uno::RuntimeException | |
css::uno::DeploymentException |
Reimplemented from connectivity::file::OConnection.
Definition at line 59 of file CConnection.cxx.
References acquireDoc(), aURL, m_aFileName, m_sPassword, INetURLObject::NONE, and SvtPathOptions::SubstituteVariable().
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 217 of file CConnection.cxx.
References connectivity::OMetaConnection::m_aMutex, and connectivity::file::OConnection::m_xCatalog.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 230 of file CConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
connectivity::calc::OCalcConnection::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 179 of file CConnection.cxx.
References connectivity::OMetaConnection::m_aMutex, m_nDocCount, m_xCloseVetoButTerminateListener, and m_xDoc.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 200 of file CConnection.cxx.
References connectivity::checkDisposed(), and m_aMutex.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 255 of file CConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 242 of file CConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
void OCalcConnection::releaseDoc | ( | ) |
Definition at line 166 of file CConnection.cxx.
References m_nDocCount, m_xCloseVetoButTerminateListener, and m_xDoc.
Referenced by connectivity::calc::OCalcTable::disposing(), and connectivity::calc::OCalcConnection::ODocHolder::~ODocHolder().
|
private |
Definition at line 44 of file CConnection.hxx.
Referenced by acquireDoc(), and construct().
|
private |
Definition at line 45 of file CConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().
|
private |
Definition at line 43 of file CConnection.hxx.
Referenced by acquireDoc(), and construct().
|
private |
Definition at line 103 of file CConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().
|
private |
Definition at line 42 of file CConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().