filedlg2.cxx (5900e8ec) filedlg2.cxx (3a4108e5)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 265 unchanged lines hidden (view full) ---

274 UniString aDrive( pDriveList->GetSelectEntry(), 0, 2);
275 aDrive += '\\';
276 SetPath( aDrive );
277 }
278 else
279 if( p == pDirList )
280 {
281 // isolate the pure name of the entry
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 265 unchanged lines hidden (view full) ---

274 UniString aDrive( pDriveList->GetSelectEntry(), 0, 2);
275 aDrive += '\\';
276 SetPath( aDrive );
277 }
278 else
279 if( p == pDirList )
280 {
281 // isolate the pure name of the entry
282 // removing trainling stuff and leading spaces
282 // removing trailing stuff and leading spaces
283 UniString aEntry( pDirList->GetSelectEntry() );
284
285 aEntry.EraseLeadingChars( ' ' );
286 sal_uInt16 nPos = aEntry.Search( '/' );
287 aEntry.Erase( nPos );
288
289 // build the absolute path to the selected item
290 DirEntry aNewPath;

--- 76 unchanged lines hidden (view full) ---

367
368 return 0;
369}
370
371
372IMPL_LINK( ImpPathDialog, DblClickHdl, ListBox*, pBox )
373{
374 // isolate the pure name of the entry
283 UniString aEntry( pDirList->GetSelectEntry() );
284
285 aEntry.EraseLeadingChars( ' ' );
286 sal_uInt16 nPos = aEntry.Search( '/' );
287 aEntry.Erase( nPos );
288
289 // build the absolute path to the selected item
290 DirEntry aNewPath;

--- 76 unchanged lines hidden (view full) ---

367
368 return 0;
369}
370
371
372IMPL_LINK( ImpPathDialog, DblClickHdl, ListBox*, pBox )
373{
374 // isolate the pure name of the entry
375 // removing trainling stuff and leading spaces
375 // removing trailing stuff and leading spaces
376 UniString aEntry( pBox->GetSelectEntry() );
377
378 aEntry.EraseLeadingChars( ' ' );
379 sal_uInt16 nPos = aEntry.Search( '/' );
380 aEntry.Erase( nPos );
381
382 // build the absolute path to the selected item
383 DirEntry aNewPath;

--- 972 unchanged lines hidden ---
376 UniString aEntry( pBox->GetSelectEntry() );
377
378 aEntry.EraseLeadingChars( ' ' );
379 sal_uInt16 nPos = aEntry.Search( '/' );
380 aEntry.Erase( nPos );
381
382 // build the absolute path to the selected item
383 DirEntry aNewPath;

--- 972 unchanged lines hidden ---