Tag: cws_dev300_dba30d User: fs Date: 2008-06-01 21:00:02+0000 Modified: dba/dbaccess/source/ui/misc/UITools.cxx
Log: fillTreeListNames had one client only - moved to the respective class File Changes: Directory: /dba/dbaccess/source/ui/misc/ ======================================== File [changed]: UITools.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/UITools.cxx?r1=1.79&r2=1.79.8.1 Delta lines: +5 -47 -------------------- --- UITools.cxx 2008-05-05 16:00:36+0000 1.79 +++ UITools.cxx 2008-06-01 21:00:00+0000 1.79.8.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: UITools.cxx,v $ - * $Revision: 1.79 $ + * $Revision: 1.79.8.1 $ * * This file is part of OpenOffice.org. * @@ -1431,10 +1431,8 @@ return sName; } // ----------------------------------------------------------------------------- - void AppendConfigToken_Impl( ::rtl::OUString& _rURL, sal_Bool _bQuestionMark ) + void AppendConfigToken( ::rtl::OUString& _rURL, sal_Bool _bQuestionMark ) { - // this completes a help url with the system parameters "Language" and "System" - // detect installed locale Any aLocale = ::utl::ConfigManager::GetConfigManager()->GetDirectConfigProperty( ::utl::ConfigManager::LOCALE ); ::rtl::OUString sLocaleStr; @@ -1504,9 +1502,9 @@ ::rtl::OUString sAnchor; ::rtl::OUString sTempURL = aURL.Complete; - AppendConfigToken_Impl( sTempURL, sal_True ); + AppendConfigToken( sTempURL, sal_True ); sal_Bool bHasAnchor = GetHelpAnchor_Impl( sTempURL, sAnchor ); - AppendConfigToken_Impl(aURL.Complete,sal_True); + AppendConfigToken(aURL.Complete,sal_True); if ( bHasAnchor ) { aURL.Complete += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#")); @@ -1768,46 +1766,6 @@ } // ----------------------------------------------------------------------------- -void fillTreeListNames( const Reference< XNameAccess >& _xContainer, DBTreeListBox& _rList, - USHORT _nImageId, USHORT _nHighContrastImageId, SvLBoxEntry* _pParent, IContainerFoundListener* _pContainerFoundListener ) -{ - OSL_ENSURE(_xContainer.is(),"Data source is NULL! -> GPF"); - - if ( _xContainer.is() && _xContainer->hasElements() ) - { - Sequence< ::rtl::OUString> aSeq = _xContainer->getElementNames(); - const ::rtl::OUString* pIter = aSeq.getConstArray(); - const ::rtl::OUString* pEnd = pIter + aSeq.getLength(); - for(;pIter != pEnd;++pIter) - { - SvLBoxEntry* pEntry = NULL; - Reference<XNameAccess> xSubElements(_xContainer->getByName(*pIter),UNO_QUERY); - if ( xSubElements.is() ) - { - pEntry = _rList.InsertEntry( *pIter, _pParent, FALSE, LIST_APPEND, reinterpret_cast< void* >( FOLDER_INDICATOR ) ); - if ( _pContainerFoundListener ) - { - Reference<XContainer> xCont(xSubElements,UNO_QUERY); - _pContainerFoundListener->containerFound(xCont); - } - fillTreeListNames( xSubElements, _rList, _nImageId, _nHighContrastImageId, pEntry, _pContainerFoundListener ); - } - else - { - pEntry = _rList.InsertEntry( *pIter, _pParent ); - - Image aImage = Image( ModuleRes( _nImageId ) ); - _rList.SetExpandedEntryBmp( pEntry, aImage, BMP_COLOR_NORMAL ); - _rList.SetCollapsedEntryBmp( pEntry, aImage, BMP_COLOR_NORMAL ); - - Image aHCImage = Image( ModuleRes( _nHighContrastImageId ) ); - _rList.SetExpandedEntryBmp( pEntry, aHCImage, BMP_COLOR_HIGHCONTRAST ); - _rList.SetCollapsedEntryBmp( pEntry, aHCImage, BMP_COLOR_HIGHCONTRAST ); - } - } - } -} -// ----------------------------------------------------------------------------- sal_Bool insertHierachyElement( Window* _pParent, const Reference< XMultiServiceFactory >& _rxORB, const Reference<XHierarchicalNameContainer>& _xNames, const String& _sParentFolder, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
