1f39251c4SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3f39251c4SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4f39251c4SAndrew Rist * or more contributor license agreements. See the NOTICE file 5f39251c4SAndrew Rist * distributed with this work for additional information 6f39251c4SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7f39251c4SAndrew Rist * to you under the Apache License, Version 2.0 (the 8f39251c4SAndrew Rist * "License"); you may not use this file except in compliance 9f39251c4SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11f39251c4SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13f39251c4SAndrew Rist * Unless required by applicable law or agreed to in writing, 14f39251c4SAndrew Rist * software distributed under the License is distributed on an 15f39251c4SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16f39251c4SAndrew Rist * KIND, either express or implied. See the License for the 17f39251c4SAndrew Rist * specific language governing permissions and limitations 18f39251c4SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20f39251c4SAndrew Rist *************************************************************/ 21f39251c4SAndrew Rist 22f39251c4SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include <tools/resmgr.hxx> 25cdf0e10cSrcweir #include <svl/solar.hrc> 26cdf0e10cSrcweir #include <vcl/svapp.hxx> 27cdf0e10cSrcweir 28cdf0e10cSrcweir namespace avmedia { 29cdf0e10cSrcweir GetResMgr()30cdf0e10cSrcweirResMgr* 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 44*97c864ccSmseidel } // namespace avmedia 45