bump product version to 4.1.6.2
[LibreOffice.git] / fpicker / source / office / fpsofficeResMgr.hxx
blob95af355c6d6c42eb638dd44a7717178831a1c40b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef _FPS_OFFICE_RESMGR_HXX_
10 #define _FPS_OFFICE_RESMGR_HXX_
12 #include <rtl/instance.hxx>
13 #include <tools/resmgr.hxx>
15 namespace
17 struct ResMgrHolder
19 ResMgr * operator ()()
21 return ResMgr::CreateResMgr ("fps_office");
24 static ResMgr * getOrCreate()
26 return rtl_Instance<
27 ResMgr, ResMgrHolder,
28 osl::MutexGuard, osl::GetGlobalMutex >::create (
29 ResMgrHolder(), osl::GetGlobalMutex());
33 struct SvtResId : public ResId
35 SvtResId (sal_uInt16 nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
39 #define SVT_RESSTR(i) SvtResId(i).toString()
41 #endif
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */