LibreOffice Module connectivity (master) 1
|
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... | |
helper class for accessing resources shared by different libraries in the connectivity module
Definition at line 36 of file sharedresources.hxx.
connectivity::SharedResources::SharedResources | ( | ) |
Definition at line 113 of file sharedresources.cxx.
connectivity::SharedResources::~SharedResources | ( | ) |
Definition at line 119 of file sharedresources.cxx.
OUString connectivity::SharedResources::getResourceString | ( | TranslateId | pResId | ) | const |
loads a string from the shared resource file
pResId | the resource ID of the string |
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().
OUString connectivity::SharedResources::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
pResId | the resource ID of the string to load |
_pAsciiPatternToReplace | the ASCII string which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute | the String which should substitute the ASCII pattern. |
Definition at line 131 of file sharedresources.cxx.
References SAL_WARN.
Referenced by connectivity::calc::OCalcConnection::acquireDoc(), connectivity::writer::OWriterConnection::acquireDoc(), connectivity::odbc::OPreparedStatement::checkParameterIndex(), dbtools::DBTypeConversion::convertUnicodeString(), dbtools::DBTypeConversion::convertUnicodeStringToLength(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::file::OPredicateCompiler::execute_Operand(), connectivity::sdbcx::OCollection::getByName(), connectivity::hsqldb::OHsqlConnection::impl_checkExistingTable_throw(), connectivity::dbase::ODbaseIndex::openIndexFile(), connectivity::evoab::OEvoabResultSetMetaData::setEvoabFields(), dbtools::setObjectWithInfo(), dbtools::throwFeatureNotImplementedRuntimeException(), dbtools::throwFeatureNotImplementedSQLException(), dbtools::throwFunctionNotSupportedRuntimeException(), dbtools::throwFunctionNotSupportedSQLException(), dbtools::throwInvalidColumnException(), connectivity::file::OConnection::throwUrlNotValid(), and connectivity::java_sql_ResultSet::updateObject().
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
pResId | the resource ID of the string to load |
_pAsciiPatternToReplace1 | the ASCII string (1) which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute1 | the String which should substitute the ASCII pattern (1) |
_pAsciiPatternToReplace2 | the ASCII string (2) which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute2 | the String which should substitute the ASCII pattern (2) |
Definition at line 141 of file sharedresources.cxx.
References SAL_WARN.
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
pResId | the resource ID of the string to load |
_pAsciiPatternToReplace1 | the ASCII string (1) which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute1 | the String which should substitute the ASCII pattern (1) |
_pAsciiPatternToReplace2 | the ASCII string (2) which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute2 | the String which should substitute the ASCII pattern (2) |
_pAsciiPatternToReplace3 | the ASCII string (3) which is to search in the string. Must not be <NULL>. |
_rStringToSubstitute3 | the String which should substitute the ASCII pattern (3) |
Definition at line 154 of file sharedresources.cxx.
References SAL_WARN.
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
pResId | the resource ID of the string to load |
_aStringToSubstitutes | A list of substitutions. |
Definition at line 169 of file sharedresources.cxx.
References SAL_WARN.