diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 08:05:58 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 08:05:58 +0000 |
commit | 4ca5c503bc36f0300bb3f3ec1577ed41df098ab2 (patch) | |
tree | 0e6a4a4fddafd0cafd18601f5345e371c7fe1f99 /registry/source/regimpl.cxx | |
parent | c490a9f0684dd5cc7efd897afbf70e2f73444f72 (diff) |
CWS-TOOLING: integrate CWS jsc311
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r-- | registry/source/regimpl.cxx | 92 |
1 files changed, 1 insertions, 91 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 40d20f821384..08db223806e3 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: regimpl.cxx,v $ - * $Revision: 1.28 $ + * $Revision: 1.28.10.1 $ * * This file is part of OpenOffice.org. * @@ -1198,42 +1198,6 @@ RegError ORegistry::saveKey(RegKeyHandle hKey, const OUString& regFileName, //********************************************************************* -// isKeyOpen() -// -sal_Bool ORegistry::isKeyOpen(const OUString& keyName) const -{ - return(m_openKeyTable.count(keyName) > 0); -} - - - -//********************************************************************* -// countSubKeys() -// -sal_uInt32 ORegistry::countSubKeys(ORegKey* pKey) -{ - REG_GUARD(m_mutex); - - OStoreDirectory::iterator iter; - sal_uInt32 count = 0; - OStoreDirectory rStoreDir(pKey->getStoreDir()); - storeError _err = rStoreDir.first(iter); - - while ( _err == store_E_None) - { - if (iter.m_nAttrib & STORE_ATTRIB_ISDIR) - { - count++; - } - - _err = rStoreDir.next(iter); - } - - return count; -} - - -//********************************************************************* // loadValue() // RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey, @@ -2039,60 +2003,6 @@ RegError ORegistry::dumpKey(const OUString& sPath, const OUString& sName, sal_In } //********************************************************************* -// createLink() -// -RegError ORegistry::createLink(RegKeyHandle hKey, - const OUString& linkName, - const OUString& linkTarget) -{ - ORegKey* pKey; - - if ( !linkName.getLength() ) - { - return REG_INVALID_LINKNAME; - } - - REG_GUARD(m_mutex); - - if (hKey) - pKey = (ORegKey*)hKey; - else - pKey = m_openKeyTable[ROOT]; - - OUString sFullLinkName = resolveLinks(pKey, linkName); - - if (sFullLinkName.getLength() == 0) - return REG_DETECT_RECURSION; - - OStoreDirectory rStoreDir; - OUString sFullPath(ROOT); - - sal_Int32 nIndex = 0; - OUString token; - - do - { - token = sFullLinkName.getToken(0, '/', nIndex); - - if( token.getLength() > 0 ) - { - if (rStoreDir.create(pKey->getStoreFile(), sFullPath, token, KEY_MODE_CREATE)) - { - return REG_CREATE_KEY_FAILED; - } - - sFullPath += token; - sFullPath += ROOT; - } - } while( nIndex != -1 && token.getLength() > 0 ); - - pKey = new ORegKey(sFullLinkName, linkTarget, this); - delete pKey; - - return REG_NO_ERROR; -} - -//********************************************************************* // deleteLink() // RegError ORegistry::deleteLink(RegKeyHandle hKey, const OUString& linkName) |