1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_unotools.hxx" 30*cdf0e10cSrcweir #ifndef GCC 31*cdf0e10cSrcweir #endif 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir #ifndef _unotools_JAVAPTIONS_HXX 34*cdf0e10cSrcweir #include <unotools/javaoptions.hxx> 35*cdf0e10cSrcweir #endif 36*cdf0e10cSrcweir #include <com/sun/star/uno/Any.h> 37*cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx> 38*cdf0e10cSrcweir #include <rtl/logfile.hxx> 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir using namespace ::com::sun::star::uno; 42*cdf0e10cSrcweir using namespace ::rtl; 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir #define C2U(cChar) OUString::createFromAscii(cChar) 45*cdf0e10cSrcweir #define CFG_READONLY_DEFAULT sal_False 46*cdf0e10cSrcweir /* -----------------------------10.04.01 12:39-------------------------------- 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 49*cdf0e10cSrcweir class SvtExecAppletsItem_Impl : public utl::ConfigItem 50*cdf0e10cSrcweir { 51*cdf0e10cSrcweir sal_Bool bExecute; 52*cdf0e10cSrcweir sal_Bool bRO; 53*cdf0e10cSrcweir public: 54*cdf0e10cSrcweir SvtExecAppletsItem_Impl(); 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir virtual void Commit(); 57*cdf0e10cSrcweir void Notify( const Sequence< rtl::OUString >& ); 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir sal_Bool IsExecuteApplets() const {return bExecute;} 60*cdf0e10cSrcweir void SetExecuteApplets(sal_Bool bSet); 61*cdf0e10cSrcweir sal_Bool IsReadOnly() const {return bRO;} 62*cdf0e10cSrcweir }; 63*cdf0e10cSrcweir /* -----------------------------10.02.2003 07:46------------------------------ 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 66*cdf0e10cSrcweir void SvtExecAppletsItem_Impl::SetExecuteApplets(sal_Bool bSet) 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir OSL_ENSURE(!bRO, "SvtExecAppletsItem_Impl::SetExecuteApplets()\nYou tried to write on a readonly value!\n"); 69*cdf0e10cSrcweir if (!bRO) 70*cdf0e10cSrcweir { 71*cdf0e10cSrcweir bExecute = bSet; 72*cdf0e10cSrcweir SetModified(); 73*cdf0e10cSrcweir } 74*cdf0e10cSrcweir } 75*cdf0e10cSrcweir /* -----------------------------18.05.01 14:44-------------------------------- 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 78*cdf0e10cSrcweir SvtExecAppletsItem_Impl::SvtExecAppletsItem_Impl() : 79*cdf0e10cSrcweir utl::ConfigItem(C2U("Office.Common/Java/Applet")), 80*cdf0e10cSrcweir bExecute (sal_False ), 81*cdf0e10cSrcweir bRO (CFG_READONLY_DEFAULT ) 82*cdf0e10cSrcweir { 83*cdf0e10cSrcweir RTL_LOGFILE_CONTEXT(aLog, "unotools SvtExecAppletsItem_Impl::SvtExecAppletsItem_Impl()"); 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir Sequence< OUString > aNames(1); 86*cdf0e10cSrcweir aNames.getArray()[0] = C2U("Enable"); 87*cdf0e10cSrcweir Sequence< Any > aValues = GetProperties(aNames); 88*cdf0e10cSrcweir Sequence< sal_Bool > aROStates = GetReadOnlyStates(aNames); 89*cdf0e10cSrcweir const Any* pValues = aValues.getConstArray(); 90*cdf0e10cSrcweir const sal_Bool* pROStates = aROStates.getConstArray(); 91*cdf0e10cSrcweir if(aValues.getLength() && aROStates.getLength() && pValues[0].hasValue()) 92*cdf0e10cSrcweir { 93*cdf0e10cSrcweir bExecute = *(sal_Bool*)pValues[0].getValue(); 94*cdf0e10cSrcweir bRO = pROStates[0]; 95*cdf0e10cSrcweir } 96*cdf0e10cSrcweir } 97*cdf0e10cSrcweir void SvtExecAppletsItem_Impl::Commit() 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir if (bRO) 100*cdf0e10cSrcweir return; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir Sequence< OUString > aNames(1); 103*cdf0e10cSrcweir aNames.getArray()[0] = C2U("Enable"); 104*cdf0e10cSrcweir Sequence< Any > aValues(1); 105*cdf0e10cSrcweir aValues.getArray()[0].setValue(&bExecute, ::getBooleanCppuType()); 106*cdf0e10cSrcweir PutProperties(aNames, aValues); 107*cdf0e10cSrcweir } 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir void SvtExecAppletsItem_Impl::Notify( const Sequence< rtl::OUString >& ) 110*cdf0e10cSrcweir { 111*cdf0e10cSrcweir // no listeners supported yet 112*cdf0e10cSrcweir } 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir struct SvtJavaOptions_Impl 115*cdf0e10cSrcweir { 116*cdf0e10cSrcweir SvtExecAppletsItem_Impl aExecItem; 117*cdf0e10cSrcweir Sequence<OUString> aPropertyNames; 118*cdf0e10cSrcweir sal_Bool bEnabled; 119*cdf0e10cSrcweir sal_Bool bSecurity; 120*cdf0e10cSrcweir sal_Int32 nNetAccess; 121*cdf0e10cSrcweir rtl::OUString sUserClassPath; 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir sal_Bool bROEnabled; 124*cdf0e10cSrcweir sal_Bool bROSecurity; 125*cdf0e10cSrcweir sal_Bool bRONetAccess; 126*cdf0e10cSrcweir sal_Bool bROUserClassPath; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir SvtJavaOptions_Impl() : 129*cdf0e10cSrcweir aPropertyNames(4), 130*cdf0e10cSrcweir bEnabled (sal_False), 131*cdf0e10cSrcweir bSecurity (sal_False), 132*cdf0e10cSrcweir nNetAccess (0), 133*cdf0e10cSrcweir bROEnabled (CFG_READONLY_DEFAULT), 134*cdf0e10cSrcweir bROSecurity (CFG_READONLY_DEFAULT), 135*cdf0e10cSrcweir bRONetAccess (CFG_READONLY_DEFAULT), 136*cdf0e10cSrcweir bROUserClassPath (CFG_READONLY_DEFAULT) 137*cdf0e10cSrcweir { 138*cdf0e10cSrcweir OUString* pNames = aPropertyNames.getArray(); 139*cdf0e10cSrcweir pNames[0] = C2U("Enable"); 140*cdf0e10cSrcweir pNames[1] = C2U("Security"); 141*cdf0e10cSrcweir pNames[2] = C2U("NetAccess"); 142*cdf0e10cSrcweir pNames[3] = C2U("UserClassPath"); 143*cdf0e10cSrcweir } 144*cdf0e10cSrcweir }; 145*cdf0e10cSrcweir /* -----------------------------18.05.01 13:28-------------------------------- 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 148*cdf0e10cSrcweir SvtJavaOptions::SvtJavaOptions() : 149*cdf0e10cSrcweir utl::ConfigItem(C2U("Office.Java/VirtualMachine")), 150*cdf0e10cSrcweir pImpl(new SvtJavaOptions_Impl) 151*cdf0e10cSrcweir { 152*cdf0e10cSrcweir RTL_LOGFILE_CONTEXT(aLog, "unotools SvtJavaOptions::SvtJavaOptions()"); 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir Sequence< Any > aValues = GetProperties(pImpl->aPropertyNames); 155*cdf0e10cSrcweir Sequence< sal_Bool > aROStates = GetReadOnlyStates(pImpl->aPropertyNames); 156*cdf0e10cSrcweir const Any* pValues = aValues.getConstArray(); 157*cdf0e10cSrcweir const sal_Bool* pROStates = aROStates.getConstArray(); 158*cdf0e10cSrcweir if ( aValues.getLength() == pImpl->aPropertyNames.getLength() && aROStates.getLength() == pImpl->aPropertyNames.getLength() ) 159*cdf0e10cSrcweir { 160*cdf0e10cSrcweir for ( int nProp = 0; nProp < pImpl->aPropertyNames.getLength(); nProp++ ) 161*cdf0e10cSrcweir { 162*cdf0e10cSrcweir if( pValues[nProp].hasValue() ) 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir switch ( nProp ) 165*cdf0e10cSrcweir { 166*cdf0e10cSrcweir case 0: pImpl->bEnabled = *(sal_Bool*)pValues[nProp].getValue(); break; 167*cdf0e10cSrcweir case 1: pImpl->bSecurity = *(sal_Bool*)pValues[nProp].getValue();break; 168*cdf0e10cSrcweir case 2: pValues[nProp] >>= pImpl->nNetAccess; break; 169*cdf0e10cSrcweir case 3: pValues[nProp] >>= pImpl->sUserClassPath; break; 170*cdf0e10cSrcweir } 171*cdf0e10cSrcweir } 172*cdf0e10cSrcweir } 173*cdf0e10cSrcweir pImpl->bROEnabled = pROStates[0]; 174*cdf0e10cSrcweir pImpl->bROSecurity = pROStates[1]; 175*cdf0e10cSrcweir pImpl->bRONetAccess = pROStates[2]; 176*cdf0e10cSrcweir pImpl->bROUserClassPath = pROStates[3]; 177*cdf0e10cSrcweir } 178*cdf0e10cSrcweir } 179*cdf0e10cSrcweir /* -----------------------------18.05.01 13:28-------------------------------- 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 182*cdf0e10cSrcweir SvtJavaOptions::~SvtJavaOptions() 183*cdf0e10cSrcweir { 184*cdf0e10cSrcweir delete pImpl; 185*cdf0e10cSrcweir } 186*cdf0e10cSrcweir /*-- 18.05.01 13:28:35--------------------------------------------------- 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 189*cdf0e10cSrcweir void SvtJavaOptions::Commit() 190*cdf0e10cSrcweir { 191*cdf0e10cSrcweir pImpl->aExecItem.Commit(); 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir sal_Int32 nOrgCount = pImpl->aPropertyNames.getLength(); 194*cdf0e10cSrcweir Sequence< OUString > aNames(nOrgCount); 195*cdf0e10cSrcweir Sequence< Any > aValues(nOrgCount); 196*cdf0e10cSrcweir sal_Int32 nRealCount = 0; 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir const Type& rType = ::getBooleanCppuType(); 199*cdf0e10cSrcweir for(int nProp = 0; nProp < nOrgCount; nProp++) 200*cdf0e10cSrcweir { 201*cdf0e10cSrcweir switch(nProp) 202*cdf0e10cSrcweir { 203*cdf0e10cSrcweir case 0: 204*cdf0e10cSrcweir { 205*cdf0e10cSrcweir if (!pImpl->bROEnabled) 206*cdf0e10cSrcweir { 207*cdf0e10cSrcweir aValues[nRealCount].setValue(&pImpl->bEnabled, rType); 208*cdf0e10cSrcweir aNames[nRealCount] = pImpl->aPropertyNames[nProp]; 209*cdf0e10cSrcweir ++nRealCount; 210*cdf0e10cSrcweir } 211*cdf0e10cSrcweir } 212*cdf0e10cSrcweir break; 213*cdf0e10cSrcweir case 1: 214*cdf0e10cSrcweir { 215*cdf0e10cSrcweir if (!pImpl->bROSecurity) 216*cdf0e10cSrcweir { 217*cdf0e10cSrcweir aValues[nRealCount].setValue(&pImpl->bSecurity, rType); 218*cdf0e10cSrcweir aNames[nRealCount] = pImpl->aPropertyNames[nProp]; 219*cdf0e10cSrcweir ++nRealCount; 220*cdf0e10cSrcweir } 221*cdf0e10cSrcweir } 222*cdf0e10cSrcweir break; 223*cdf0e10cSrcweir case 2: 224*cdf0e10cSrcweir { 225*cdf0e10cSrcweir if (!pImpl->bRONetAccess) 226*cdf0e10cSrcweir { 227*cdf0e10cSrcweir aValues[nRealCount] <<= pImpl->nNetAccess; 228*cdf0e10cSrcweir aNames[nRealCount] = pImpl->aPropertyNames[nProp]; 229*cdf0e10cSrcweir ++nRealCount; 230*cdf0e10cSrcweir } 231*cdf0e10cSrcweir } 232*cdf0e10cSrcweir break; 233*cdf0e10cSrcweir case 3: 234*cdf0e10cSrcweir { 235*cdf0e10cSrcweir if (!pImpl->bROUserClassPath) 236*cdf0e10cSrcweir { 237*cdf0e10cSrcweir aValues[nRealCount] <<= pImpl->sUserClassPath; 238*cdf0e10cSrcweir aNames[nRealCount] = pImpl->aPropertyNames[nProp]; 239*cdf0e10cSrcweir ++nRealCount; 240*cdf0e10cSrcweir } 241*cdf0e10cSrcweir } 242*cdf0e10cSrcweir break; 243*cdf0e10cSrcweir } 244*cdf0e10cSrcweir } 245*cdf0e10cSrcweir aValues.realloc(nRealCount); 246*cdf0e10cSrcweir aNames.realloc(nRealCount); 247*cdf0e10cSrcweir PutProperties(aNames,aValues); 248*cdf0e10cSrcweir } 249*cdf0e10cSrcweir /*-- 18.05.01 13:28:35--------------------------------------------------- 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 252*cdf0e10cSrcweir sal_Bool SvtJavaOptions::IsEnabled() const 253*cdf0e10cSrcweir { 254*cdf0e10cSrcweir return pImpl->bEnabled; 255*cdf0e10cSrcweir } 256*cdf0e10cSrcweir /*-- 18.05.01 13:28:35--------------------------------------------------- 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 259*cdf0e10cSrcweir sal_Bool SvtJavaOptions::IsSecurity()const 260*cdf0e10cSrcweir { 261*cdf0e10cSrcweir return pImpl->bSecurity; 262*cdf0e10cSrcweir } 263*cdf0e10cSrcweir /*-- 18.05.01 13:28:35--------------------------------------------------- 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 266*cdf0e10cSrcweir sal_Int32 SvtJavaOptions::GetNetAccess() const 267*cdf0e10cSrcweir { 268*cdf0e10cSrcweir return pImpl->nNetAccess; 269*cdf0e10cSrcweir } 270*cdf0e10cSrcweir /*-- 18.05.01 13:28:36--------------------------------------------------- 271*cdf0e10cSrcweir 272*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 273*cdf0e10cSrcweir rtl::OUString& SvtJavaOptions::GetUserClassPath()const 274*cdf0e10cSrcweir { 275*cdf0e10cSrcweir return pImpl->sUserClassPath; 276*cdf0e10cSrcweir } 277*cdf0e10cSrcweir /*-- 18.05.01 13:28:37--------------------------------------------------- 278*cdf0e10cSrcweir 279*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 280*cdf0e10cSrcweir void SvtJavaOptions::SetEnabled(sal_Bool bSet) 281*cdf0e10cSrcweir { 282*cdf0e10cSrcweir OSL_ENSURE(!pImpl->bROEnabled, "SvtJavaOptions::SetEnabled()\nYou tried to write on a readonly value!\n"); 283*cdf0e10cSrcweir if(!pImpl->bROEnabled && pImpl->bEnabled != bSet) 284*cdf0e10cSrcweir { 285*cdf0e10cSrcweir pImpl->bEnabled = bSet; 286*cdf0e10cSrcweir SetModified(); 287*cdf0e10cSrcweir } 288*cdf0e10cSrcweir } 289*cdf0e10cSrcweir /*-- 18.05.01 13:28:38--------------------------------------------------- 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 292*cdf0e10cSrcweir void SvtJavaOptions::SetSecurity(sal_Bool bSet) 293*cdf0e10cSrcweir { 294*cdf0e10cSrcweir OSL_ENSURE(!pImpl->bROSecurity, "SvtJavaOptions::SetSecurity()\nYou tried to write on a readonly value!\n"); 295*cdf0e10cSrcweir if(!pImpl->bROSecurity && pImpl->bSecurity != bSet) 296*cdf0e10cSrcweir { 297*cdf0e10cSrcweir pImpl->bSecurity = bSet; 298*cdf0e10cSrcweir SetModified(); 299*cdf0e10cSrcweir } 300*cdf0e10cSrcweir } 301*cdf0e10cSrcweir /*-- 18.05.01 13:28:38--------------------------------------------------- 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 304*cdf0e10cSrcweir void SvtJavaOptions::SetNetAccess(sal_Int32 nSet) 305*cdf0e10cSrcweir { 306*cdf0e10cSrcweir OSL_ENSURE(!pImpl->bRONetAccess, "SvtJavaOptions::SetNetAccess()\nYou tried to write on a readonly value!\n"); 307*cdf0e10cSrcweir if(!pImpl->bRONetAccess && pImpl->nNetAccess != nSet) 308*cdf0e10cSrcweir { 309*cdf0e10cSrcweir pImpl->nNetAccess = nSet; 310*cdf0e10cSrcweir SetModified(); 311*cdf0e10cSrcweir } 312*cdf0e10cSrcweir } 313*cdf0e10cSrcweir /*-- 18.05.01 13:28:38--------------------------------------------------- 314*cdf0e10cSrcweir 315*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 316*cdf0e10cSrcweir void SvtJavaOptions::SetUserClassPath(const rtl::OUString& rSet) 317*cdf0e10cSrcweir { 318*cdf0e10cSrcweir OSL_ENSURE(!pImpl->bROUserClassPath, "SvtJavaOptions::SetUserClassPath()\nYou tried to write on a readonly value!\n"); 319*cdf0e10cSrcweir if(!pImpl->bROUserClassPath && pImpl->sUserClassPath != rSet) 320*cdf0e10cSrcweir { 321*cdf0e10cSrcweir pImpl->sUserClassPath = rSet; 322*cdf0e10cSrcweir SetModified(); 323*cdf0e10cSrcweir } 324*cdf0e10cSrcweir } 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir /*-- 18.05.01 14:34:32--------------------------------------------------- 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 329*cdf0e10cSrcweir sal_Bool SvtJavaOptions::IsExecuteApplets() const 330*cdf0e10cSrcweir { 331*cdf0e10cSrcweir return pImpl->aExecItem.IsExecuteApplets(); 332*cdf0e10cSrcweir } 333*cdf0e10cSrcweir /*-- 18.05.01 14:34:32--------------------------------------------------- 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 336*cdf0e10cSrcweir void SvtJavaOptions::SetExecuteApplets(sal_Bool bSet) 337*cdf0e10cSrcweir { 338*cdf0e10cSrcweir if(!pImpl->aExecItem.IsReadOnly() && pImpl->aExecItem.IsExecuteApplets() != bSet) 339*cdf0e10cSrcweir { 340*cdf0e10cSrcweir pImpl->aExecItem.SetExecuteApplets(bSet); 341*cdf0e10cSrcweir SetModified(); 342*cdf0e10cSrcweir } 343*cdf0e10cSrcweir } 344*cdf0e10cSrcweir /*--10.02.2003 08:40--------------------------------------------------- 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 347*cdf0e10cSrcweir sal_Bool SvtJavaOptions::IsReadOnly( EOption eOption ) const 348*cdf0e10cSrcweir { 349*cdf0e10cSrcweir sal_Bool bRO = sal_True; 350*cdf0e10cSrcweir switch(eOption) 351*cdf0e10cSrcweir { 352*cdf0e10cSrcweir case E_ENABLED : 353*cdf0e10cSrcweir bRO = pImpl->bROEnabled; 354*cdf0e10cSrcweir break; 355*cdf0e10cSrcweir case E_SECURITY : 356*cdf0e10cSrcweir bRO = pImpl->bROSecurity; 357*cdf0e10cSrcweir break; 358*cdf0e10cSrcweir case E_NETACCESS : 359*cdf0e10cSrcweir bRO = pImpl->bRONetAccess; 360*cdf0e10cSrcweir break; 361*cdf0e10cSrcweir case E_USERCLASSPATH : 362*cdf0e10cSrcweir bRO = pImpl->bROUserClassPath; 363*cdf0e10cSrcweir break; 364*cdf0e10cSrcweir case E_EXECUTEAPPLETS : 365*cdf0e10cSrcweir bRO = pImpl->aExecItem.IsReadOnly(); 366*cdf0e10cSrcweir break; 367*cdf0e10cSrcweir } 368*cdf0e10cSrcweir return bRO; 369*cdf0e10cSrcweir } 370