resmgr.cxx (89b56da7) | resmgr.cxx (910823ae) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 186 unchanged lines hidden (view full) --- 195void ResMgrContainer::init() 196{ 197 // get resource path 198 std::list< OUString > aDirs; 199 sal_Int32 nIndex = 0; 200 201 // 1. fixed locations 202 rtl::OUString uri( | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 186 unchanged lines hidden (view full) --- 195void ResMgrContainer::init() 196{ 197 // get resource path 198 std::list< OUString > aDirs; 199 sal_Int32 nIndex = 0; 200 201 // 1. fixed locations 202 rtl::OUString uri( |
203 RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/resource")); 204 rtl::Bootstrap::expandMacros(uri); 205 aDirs.push_back(uri); 206 uri = rtl::OUString( | |
207 RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/program/resource")); 208 rtl::Bootstrap::expandMacros(uri); 209 aDirs.push_back(uri); 210 211 // 2. in STAR_RESOURCEPATH 212 const sal_Char* pEnv = getenv( "STAR_RESOURCEPATH" ); 213 if( pEnv ) 214 { --- 1902 unchanged lines hidden --- | 203 RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/program/resource")); 204 rtl::Bootstrap::expandMacros(uri); 205 aDirs.push_back(uri); 206 207 // 2. in STAR_RESOURCEPATH 208 const sal_Char* pEnv = getenv( "STAR_RESOURCEPATH" ); 209 if( pEnv ) 210 { --- 1902 unchanged lines hidden --- |