diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-12 10:30:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-12 11:38:00 +0100 |
commit | 3abc98687715072080ba408b12fd8ef0a17573d5 (patch) | |
tree | 225351937aae21d349c75b2e6e879b3b6638ea76 /tools | |
parent | 540b7d3ae4ee9fa4b46d2af6261e44de6bd4d462 (diff) |
GetAutoHelpId logically can only return an empty string now
Change-Id: Ie7368f083a5aa6bcfb249375fbae1f4cd92e02ba
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/rc/resmgr.cxx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx index f0b4e556a24e..c97f3ab28fed 100644 --- a/tools/source/rc/resmgr.cxx +++ b/tools/source/rc/resmgr.cxx @@ -1386,57 +1386,6 @@ OString ResMgr::ReadByteString() return aRet; } -OString ResMgr::GetAutoHelpId() -{ - osl::Guard<osl::Mutex> aGuard( getResMgrMutex() ); - - if( pFallbackResMgr ) - return pFallbackResMgr->GetAutoHelpId(); - - OSL_ENSURE( nCurStack, "resource stack empty in Auto help id generation" ); - if( nCurStack < 1 || nCurStack > 2 ) - return OString(); - - // prepare HID, start with resource prefix - OStringBuffer aHID( 32 ); - aHID.append( OUStringToOString( pImpRes->aPrefix, RTL_TEXTENCODING_UTF8 ) ); - aHID.append( '.' ); - - // append type - const ImpRCStack *pRC = StackTop(); - OSL_ENSURE( pRC, "missing resource stack level" ); - - if ( nCurStack == 1 ) - { - // auto help ids for top level windows - switch( pRC->pResource->GetRT() ) { - default: return OString(); - } - } - else - { - // only controls with the following parents get auto help ids - const ImpRCStack *pRC1 = StackTop(1); - switch( pRC1->pResource->GetRT() ) { - default: - return OString(); - } - } - - // append resource id hierarchy - for( int nOff = nCurStack-1; nOff >= 0; nOff-- ) - { - aHID.append( '.' ); - pRC = StackTop( nOff ); - - OSL_ENSURE( pRC->pResource, "missing resource in resource stack level !" ); - if( pRC->pResource ) - aHID.append( sal_Int32( pRC->pResource->GetId() ) ); - } - - return aHID.makeStringAndClear(); -} - void ResMgr::SetReadStringHook( ResHookProc pProc ) { osl::Guard<osl::Mutex> aGuard( getResMgrMutex() ); |