saldata.cxx (c82f2877) saldata.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

--- 817 unchanged lines hidden (view full) ---

826}
827
828const char* X11SalData::getFrameClassName()
829{
830 static rtl::OStringBuffer aClassName;
831 if( !aClassName.getLength() )
832 {
833 rtl::OUString aIni, aProduct;
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

--- 817 unchanged lines hidden (view full) ---

826}
827
828const char* X11SalData::getFrameClassName()
829{
830 static rtl::OStringBuffer aClassName;
831 if( !aClassName.getLength() )
832 {
833 rtl::OUString aIni, aProduct;
834 rtl::Bootstrap::get( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BRAND_BASE_DIR" ) ), aIni );
834 rtl::Bootstrap::get( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OOO_BASE_DIR" ) ), aIni );
835 aIni += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/program/" SAL_CONFIGFILE( "bootstrap" ) ) );
836 rtl::Bootstrap aBootstrap( aIni );
837 aBootstrap.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ProductKey" ) ), aProduct );
838
839 if( aProduct.getLength() )
840 aClassName.append( rtl::OUStringToOString( aProduct, osl_getThreadTextEncoding() ) );
841 else
842 aClassName.append( "VCLSalFrame" );

--- 13 unchanged lines hidden ---
835 aIni += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/program/" SAL_CONFIGFILE( "bootstrap" ) ) );
836 rtl::Bootstrap aBootstrap( aIni );
837 aBootstrap.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ProductKey" ) ), aProduct );
838
839 if( aProduct.getLength() )
840 aClassName.append( rtl::OUStringToOString( aProduct, osl_getThreadTextEncoding() ) );
841 else
842 aClassName.append( "VCLSalFrame" );

--- 13 unchanged lines hidden ---