LibreOffice Module connectivity (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
connectivity::calc::OCalcConnection Class Reference

#include <CConnection.hxx>

Inheritance diagram for connectivity::calc::OCalcConnection:
[legend]
Collaboration diagram for connectivity::calc::OCalcConnection:
[legend]

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
 
OFileDrivergetDriver () 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 SharedResourcesgetResources () 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< CloseVetoButTerminateListenerm_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::OPropertyMapgetPropMap ()
 
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
 
OFileDriverm_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
 

Detailed Description

Definition at line 39 of file CConnection.hxx.

Constructor & Destructor Documentation

◆ OCalcConnection()

OCalcConnection::OCalcConnection ( ODriver _pDriver)

Definition at line 50 of file CConnection.cxx.

◆ ~OCalcConnection()

OCalcConnection::~OCalcConnection ( )
overridevirtual

Definition at line 55 of file CConnection.cxx.

Member Function Documentation

◆ acquireDoc()

Reference< XSpreadsheetDocument > const & OCalcConnection::acquireDoc ( )

◆ construct()

void OCalcConnection::construct ( const OUString &  _rUrl,
const css::uno::Sequence< css::beans::PropertyValue > &  _rInfo 
)
overridevirtual
Exceptions
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().

◆ createCatalog()

css::uno::Reference< XTablesSupplier > OCalcConnection::createCatalog ( )
overridevirtual

◆ createStatement()

Reference< XStatement > SAL_CALL OCalcConnection::createStatement ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::calc::OCalcConnection::DECLARE_SERVICE_INFO ( )

◆ disposing()

void OCalcConnection::disposing ( )
overridevirtual

◆ getMetaData()

Reference< XDatabaseMetaData > SAL_CALL OCalcConnection::getMetaData ( )
overridevirtual

Reimplemented from connectivity::file::OConnection.

Definition at line 200 of file CConnection.cxx.

References connectivity::checkDisposed(), and m_aMutex.

◆ prepareCall()

Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareCall ( const OUString &  sql)
overridevirtual

◆ prepareStatement()

Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareStatement ( const OUString &  sql)
overridevirtual

◆ releaseDoc()

void OCalcConnection::releaseDoc ( )

Member Data Documentation

◆ m_aFileName

OUString connectivity::calc::OCalcConnection::m_aFileName
private

Definition at line 44 of file CConnection.hxx.

Referenced by acquireDoc(), and construct().

◆ m_nDocCount

oslInterlockedCount connectivity::calc::OCalcConnection::m_nDocCount
private

Definition at line 45 of file CConnection.hxx.

Referenced by acquireDoc(), disposing(), and releaseDoc().

◆ m_sPassword

OUString connectivity::calc::OCalcConnection::m_sPassword
private

Definition at line 43 of file CConnection.hxx.

Referenced by acquireDoc(), and construct().

◆ m_xCloseVetoButTerminateListener

rtl::Reference<CloseVetoButTerminateListener> connectivity::calc::OCalcConnection::m_xCloseVetoButTerminateListener
private

Definition at line 103 of file CConnection.hxx.

Referenced by acquireDoc(), disposing(), and releaseDoc().

◆ m_xDoc

css::uno::Reference< css::sheet::XSpreadsheetDocument > connectivity::calc::OCalcConnection::m_xDoc
private

Definition at line 42 of file CConnection.hxx.

Referenced by acquireDoc(), disposing(), and releaseDoc().


The documentation for this class was generated from the following files: