xref: /trunk/main/avmedia/source/framework/mediamisc.cxx (revision f39251c48ddb07a74df5eed9c640a8dadbf1074c)
1*f39251c4SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*f39251c4SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*f39251c4SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*f39251c4SAndrew Rist  * distributed with this work for additional information
6*f39251c4SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*f39251c4SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*f39251c4SAndrew Rist  * "License"); you may not use this file except in compliance
9*f39251c4SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*f39251c4SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*f39251c4SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*f39251c4SAndrew Rist  * software distributed under the License is distributed on an
15*f39251c4SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*f39251c4SAndrew Rist  * KIND, either express or implied.  See the License for the
17*f39251c4SAndrew Rist  * specific language governing permissions and limitations
18*f39251c4SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*f39251c4SAndrew Rist  *************************************************************/
21*f39251c4SAndrew Rist 
22*f39251c4SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include <tools/resmgr.hxx>
25cdf0e10cSrcweir #include <svl/solar.hrc>
26cdf0e10cSrcweir #include <vcl/svapp.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir namespace avmedia {
29cdf0e10cSrcweir 
30cdf0e10cSrcweir ResMgr* GetResMgr()
31cdf0e10cSrcweir {
32cdf0e10cSrcweir     static ResMgr* pResMgr = NULL;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir     if( !pResMgr )
35cdf0e10cSrcweir     {
36cdf0e10cSrcweir         ByteString aResMgrName( "avmedia" );
37cdf0e10cSrcweir 
38cdf0e10cSrcweir         pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
39cdf0e10cSrcweir     }
40cdf0e10cSrcweir 
41cdf0e10cSrcweir     return pResMgr;
42cdf0e10cSrcweir }
43cdf0e10cSrcweir 
44cdf0e10cSrcweir } // namespace avemdia
45