LibreOffice Module connectivity (master) 1
Public Member Functions | List of all members
connectivity::SharedResources Class Reference

helper class for accessing resources shared by different libraries in the connectivity module More...

#include <sharedresources.hxx>

Public Member Functions

 SharedResources ()
 
 ~SharedResources ()
 
OUString getResourceString (TranslateId pResId) const
 loads a string from the shared resource file More...
 
OUString getResourceStringWithSubstitution (TranslateId pResId, const char *_pAsciiPatternToReplace, const OUString &_rStringToSubstitute) const
 loads a string from the shared resource file, and replaces a given ASCII pattern with a given string More...
 
OUString getResourceStringWithSubstitution (TranslateId pResId, const char *_pAsciiPatternToReplace1, const OUString &_rStringToSubstitute1, const char *_pAsciiPatternToReplace2, const OUString &_rStringToSubstitute2) const
 loads a string from the shared resource file, and replaces a given ASCII pattern with a given string More...
 
OUString getResourceStringWithSubstitution (TranslateId pResId, const char *_pAsciiPatternToReplace1, const OUString &_rStringToSubstitute1, const char *_pAsciiPatternToReplace2, const OUString &_rStringToSubstitute2, const char *_pAsciiPatternToReplace3, const OUString &_rStringToSubstitute3) const
 loads a string from the shared resource file, and replaces a given ASCII pattern with a given string More...
 
OUString getResourceStringWithSubstitution (TranslateId pResId, const std::vector< std::pair< const char *, OUString > > &_rStringToSubstitutes) const
 loads a string from the shared resource file, and replaces a given ASCII pattern with a given string More...
 

Detailed Description

helper class for accessing resources shared by different libraries in the connectivity module

Definition at line 36 of file sharedresources.hxx.

Constructor & Destructor Documentation

◆ SharedResources()

connectivity::SharedResources::SharedResources ( )

Definition at line 113 of file sharedresources.cxx.

◆ ~SharedResources()

connectivity::SharedResources::~SharedResources ( )

Definition at line 119 of file sharedresources.cxx.

Member Function Documentation

◆ getResourceString()

OUString connectivity::SharedResources::getResourceString ( TranslateId  pResId) const

loads a string from the shared resource file

Parameters
pResIdthe resource ID of the string
Returns
the string from the resource file

Definition at line 125 of file sharedresources.cxx.

Referenced by connectivity::ado::OLEVariant::ChangeType(), connectivity::dbase::ODbaseResultSet::compareBookmarks(), connectivity::firebird::Connection::construct(), connectivity::odbc::OStatement_Base::executeUpdate(), connectivity::file::OFileDriver::getDataDefinitionByURL(), connectivity::macab::MacabPreparedStatement::getNextParameter(), connectivity::evoab::OEvoabDriver::getPropertyInfo(), connectivity::firebird::FirebirdDriver::getPropertyInfo(), connectivity::file::OFileDriver::getPropertyInfo(), connectivity::java_sql_Driver::getPropertyInfo(), connectivity::odbc::ODBCDriver::getPropertyInfo(), connectivity::hsqldb::OHsqlConnection::getTableEditor(), connectivity::ODatabaseMetaDataBase::getTypeInfo(), connectivity::hsqldb::OHSQLUser::grantPrivileges(), connectivity::mysql::OMySQLUser::grantPrivileges(), connectivity::ado::ODriver::impl_checkURL_throw(), connectivity::hsqldb::OHsqlConnection::impl_getTableContainer_throw(), connectivity::macab::impl_throwError(), connectivity::firebird::Connection::loadDatabaseFile(), connectivity::odbc::OPreparedStatement::putParamData(), connectivity::hsqldb::OHSQLUser::revokePrivileges(), connectivity::mysql::OMySQLUser::revokePrivileges(), connectivity::macab::MacabPreparedStatement::setMacabFields(), connectivity::macab::MacabCommonStatement::setMacabFields(), dbtools::throwFunctionSequenceException(), connectivity::OMetaConnection::throwGenericSQLException(), and dbtools::throwInvalidIndexException().

◆ getResourceStringWithSubstitution() [1/4]

OUString connectivity::SharedResources::getResourceStringWithSubstitution ( TranslateId  pResId,
const char *  _pAsciiPatternToReplace,
const OUString &  _rStringToSubstitute 
) const

◆ getResourceStringWithSubstitution() [2/4]

OUString connectivity::SharedResources::getResourceStringWithSubstitution ( TranslateId  pResId,
const char *  _pAsciiPatternToReplace1,
const OUString &  _rStringToSubstitute1,
const char *  _pAsciiPatternToReplace2,
const OUString &  _rStringToSubstitute2 
) const

loads a string from the shared resource file, and replaces a given ASCII pattern with a given string

Parameters
pResIdthe resource ID of the string to load
_pAsciiPatternToReplace1the ASCII string (1) which is to search in the string. Must not be <NULL>.
_rStringToSubstitute1the String which should substitute the ASCII pattern (1)
_pAsciiPatternToReplace2the ASCII string (2) which is to search in the string. Must not be <NULL>.
_rStringToSubstitute2the String which should substitute the ASCII pattern (2)
Returns
the string from the resource file, with applied string substitution

Definition at line 141 of file sharedresources.cxx.

References SAL_WARN.

◆ getResourceStringWithSubstitution() [3/4]

OUString connectivity::SharedResources::getResourceStringWithSubstitution ( TranslateId  pResId,
const char *  _pAsciiPatternToReplace1,
const OUString &  _rStringToSubstitute1,
const char *  _pAsciiPatternToReplace2,
const OUString &  _rStringToSubstitute2,
const char *  _pAsciiPatternToReplace3,
const OUString &  _rStringToSubstitute3 
) const

loads a string from the shared resource file, and replaces a given ASCII pattern with a given string

Parameters
pResIdthe resource ID of the string to load
_pAsciiPatternToReplace1the ASCII string (1) which is to search in the string. Must not be <NULL>.
_rStringToSubstitute1the String which should substitute the ASCII pattern (1)
_pAsciiPatternToReplace2the ASCII string (2) which is to search in the string. Must not be <NULL>.
_rStringToSubstitute2the String which should substitute the ASCII pattern (2)
_pAsciiPatternToReplace3the ASCII string (3) which is to search in the string. Must not be <NULL>.
_rStringToSubstitute3the String which should substitute the ASCII pattern (3)
Returns
the string from the resource file, with applied string substitution

Definition at line 154 of file sharedresources.cxx.

References SAL_WARN.

◆ getResourceStringWithSubstitution() [4/4]

OUString connectivity::SharedResources::getResourceStringWithSubstitution ( TranslateId  pResId,
const std::vector< std::pair< const char *, OUString > > &  _rStringToSubstitutes 
) const

loads a string from the shared resource file, and replaces a given ASCII pattern with a given string

Parameters
pResIdthe resource ID of the string to load
_aStringToSubstitutesA list of substitutions.
Returns
the string from the resource file, with applied string substitution

Definition at line 169 of file sharedresources.cxx.

References SAL_WARN.


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