19#ifndef INCLUDED_UNOTOOLS_RESMGR_HXX
20#define INCLUDED_UNOTOOLS_RESMGR_HXX
24#include <rtl/ustring.hxx>
38 inline constexpr TranslateId(
const char* pContext,
const char* pId)
41 inline operator bool()
const {
return mpId !=
nullptr; }
54 :
mpContext(nullptr), mpSingular(nullptr), mpPlural(nullptr) {}
55 inline TranslateNId(
const char* pContext,
const char* pSingular,
const char* pPlural)
56 :
mpContext(pContext), mpSingular(pSingular), mpPlural(pPlural) {}
58 inline operator bool()
const {
return mpContext !=
nullptr; }
SvtSysLocale provides a refcounted single instance of an application wide LocaleDataWrapper and <type...
OUString nget(TranslateNId aContextSingularPlural, int n, const std::locale &loc)
ResHookProc GetReadStringHook()
std::locale Create(std::string_view aPrefixName, const LanguageTag &rLocale)
OUString ExpandVariables(const OUString &rString)
OUString get(TranslateId sContextAndId, const std::locale &loc)
void SetReadStringHook(ResHookProc pProc)
bool operator==(const SharedUNOComponent< INTERFACE, COMPONENT > &_rLHS, const css::uno::Reference< INTERFACE > &_rRHS)
OUString(* ResHookProc)(const OUString &rStr)
ParserContextSharedPtr mpContext
bool operator!=(const TranslateId &other) const
constexpr TranslateId(const char *pContext, const char *pId)
TranslateNId(const char *pContext, const char *pSingular, const char *pPlural)
bool operator!=(const TranslateNId &other) const