summaryrefslogtreecommitdiff
path: root/include/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-31 17:16:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-01 13:42:21 +0100
commitb1d829e52e826b6ea4ae884a64fdb68b66c74dd7 (patch)
treed6aa2ee59178ecf5ea78e80917df18149ae9bb66 /include/unotools
parentf4e5940abbbaa3c2747108b0954e8912d164f3e5 (diff)
move resmgr to unotools
and the vast majority of translations is to the ui language so default ctor with that arg and now drop OModuleResourceClient Change-Id: I3b85a560ffdfe5f019c2271ac56a5fe4a361522b
Diffstat (limited to 'include/unotools')
-rw-r--r--include/unotools/resmgr.hxx (renamed from include/unotools/componentresmodule.hxx)46
1 files changed, 14 insertions, 32 deletions
diff --git a/include/unotools/componentresmodule.hxx b/include/unotools/resmgr.hxx
index ee19e99f53b0..65e730bd0021 100644
--- a/include/unotools/componentresmodule.hxx
+++ b/include/unotools/resmgr.hxx
@@ -16,42 +16,24 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOTOOLS_COMPONENTRESMODULE_HXX
-#define INCLUDED_UNOTOOLS_COMPONENTRESMODULE_HXX
+#ifndef INCLUDED_UNOTOOLS_RESMGR_HXX
+#define INCLUDED_UNOTOOLS_RESMGR_HXX
-#include <comphelper/componentmodule.hxx>
#include <unotools/unotoolsdllapi.h>
-#include <osl/getglobalmutex.hxx>
-#include <memory>
+#include <unotools/syslocale.hxx>
+#include <i18nlangtag/languagetag.hxx>
-class LanguageTag;
+typedef OUString (*ResHookProc)(const OUString& rStr);
-namespace utl
+namespace Translate
{
-
- class OComponentResModuleImpl;
-
- /** extends the comphelper::OModule implementation with
- simply resource access
- */
- class UNOTOOLS_DLLPUBLIC OComponentResourceModule : public ::comphelper::OModule
- {
- private:
- typedef ::comphelper::OModule BaseClass;
-
- private:
- ::std::unique_ptr< OComponentResModuleImpl > m_pImpl;
-
- public:
- OComponentResourceModule(const OString& _rResFilePrefix, const LanguageTag& rLanguage);
- virtual ~OComponentResourceModule() override;
-
- /// get the resource locale of the module
- const std::locale& getResLocale();
- };
-
-} // namespace utl
-
-#endif // INCLUDED_UNOTOOLS_COMPONENTRESMODULE_HXX
+ UNOTOOLS_DLLPUBLIC std::locale Create(const sal_Char* pPrefixName, const LanguageTag& rLocale = SvtSysLocale().GetUILanguageTag());
+ UNOTOOLS_DLLPUBLIC OUString get(const char* pId, const std::locale &loc);
+ UNOTOOLS_DLLPUBLIC void SetReadStringHook( ResHookProc pProc );
+ UNOTOOLS_DLLPUBLIC ResHookProc GetReadStringHook();
+ UNOTOOLS_DLLPUBLIC OUString ExpandVariables(const OUString& rString);
+}
+
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */