main/sd/source/ui/dlg/filedlg.cxx
// check whether to disable the "selection" checkbox
check whether to disable the "selection" checkbox
check whether to disable the " selection " checkbox
void SdFileDialog_Imp::CheckSelectionState()
{
	if( mbUsableSelection && mxControlAccess.is() )
	{
		String	aCurrFilter( GetCurrentFilter() );
		try
		{
			if( !aCurrFilter.Len() || ( aCurrFilter == String( SdResId( STR_EXPORT_HTML_NAME ) ) ) )
				mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, sal_False );
			else
				mxControlAccess->enableControl( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_SELECTION, sal_True );
		}
		catch( css::lang::IllegalArgumentException )
		{
#ifdef DBG_UTIL
			DBG_ERROR( "Cannot access \"selection\" checkbox" );
#endif
		}
	}
}
void SdFileDialog_Imp :: CheckSelectionState ( ) { if ( mbUsableSelection && mxControlAccess . is ( ) ) { String aCurrFilter ( GetCurrentFilter ( ) ) ; try { if ( ! aCurrFilter . Len ( ) || ( aCurrFilter == String ( SdResId ( STR_EXPORT_HTML_NAME ) ) ) ) mxControlAccess -> enableControl ( css :: ui :: dialogs :: ExtendedFilePickerElementIds :: CHECKBOX_SELECTION , sal_False ) ; else mxControlAccess -> enableControl ( css :: ui :: dialogs :: ExtendedFilePickerElementIds :: CHECKBOX_SELECTION , sal_True ) ; } catch ( css :: lang :: IllegalArgumentException ) { #ifdef DBG_UTIL DBG_ERROR ( " \" \" " ) ; #endif } } }
check whether to disable the "selection" checkbox
check whether to disable the " selection " checkbox