LibreOffice Module dbaccess (master) 1
Static Public Member Functions | Private Member Functions | List of all members
dbaccess::ResourceManager Class Reference

#include <core_resource.hxx>

Static Public Member Functions

static OUString loadString (TranslateId pResId)
 loads the string with the specified resource id More...
 
static OUString loadString (TranslateId pResId, const char *_pPlaceholderAscii1, std::u16string_view _rReplace1, const char *_pPlaceholderAscii2, std::u16string_view _rReplace2)
 loads a string from the resource file, substituting two placeholders with given strings More...
 

Private Member Functions

 ResourceManager ()=delete
 
 ~ResourceManager ()
 

Detailed Description

Definition at line 33 of file core_resource.hxx.

Constructor & Destructor Documentation

◆ ResourceManager()

dbaccess::ResourceManager::ResourceManager ( )
privatedelete

◆ ~ResourceManager()

dbaccess::ResourceManager::~ResourceManager ( )
inlineprivate

Definition at line 38 of file core_resource.hxx.

Member Function Documentation

◆ loadString() [1/2]

OUString dbaccess::ResourceManager::loadString ( TranslateId  pResId)
static

loads the string with the specified resource id

Definition at line 26 of file core_resource.cxx.

References Translate::Create(), and Translate::get().

Referenced by dbaccess::ORowSet::calcConnection(), dbaccess::ODatabaseDocument::impl_throwIOExceptionCausedBySave_throw(), and loadString().

◆ loadString() [2/2]

OUString dbaccess::ResourceManager::loadString ( TranslateId  pResId,
const char *  _pPlaceholderAscii1,
std::u16string_view  _rReplace1,
const char *  _pPlaceholderAscii2,
std::u16string_view  _rReplace2 
)
static

loads a string from the resource file, substituting two placeholders with given strings

Parameters
pResIdthe resource ID of the string to load
_pPlaceholderAscii1the ASCII representation of the first placeholder string
_rReplace1the string which should substitute the first placeholder
_pPlaceholderAscii2the ASCII representation of the second placeholder string
_rReplace2the string which should substitute the second placeholder

Definition at line 31 of file core_resource.cxx.

References loadString().


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