summaryrefslogtreecommitdiff
path: root/tools/source/fsys/dirent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/fsys/dirent.cxx')
-rwxr-xr-xtools/source/fsys/dirent.cxx288
1 files changed, 16 insertions, 272 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 0c9e45cb72f2..3bbfae5c6b5d 100755
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -28,7 +29,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_tools.hxx"
-
#if !defined UNX
#include <io.h>
#include <process.h>
@@ -46,7 +46,6 @@
#include <stdio.h>
#include <string.h>
#include <tools/debug.hxx>
-#include <tools/list.hxx>
#include "comdep.hxx"
#include <tools/fsys.hxx>
#define _TOOLS_HXX
@@ -57,16 +56,15 @@
#endif
#include <tools/stream.hxx>
-#ifndef _VOS_MUTEX_HXX
-#include <vos/mutex.hxx>
-#endif
+#include <osl/mutex.hxx>
#include <osl/file.hxx>
#include <rtl/instance.hxx>
using namespace osl;
-using namespace rtl;
+
+using ::rtl::OUString;
int ApiRet2ToSolarError_Impl( int nApiRet );
@@ -121,7 +119,7 @@ int Sys2SolarError_Impl( int nSysErr )
#endif
}
- DBG_TRACE1( "FSys: unknown system error %d occured", nSysErr );
+ DBG_TRACE1( "FSys: unknown system error %d occurred", nSysErr );
return FSYS_ERR_UNKNOWN;
}
@@ -136,13 +134,13 @@ sal_Bool bInRedirection = sal_True;
#else
sal_Bool bInRedirection = sal_False;
#endif
-static vos:: OMutex * pRedirectMutex = 0;
+static osl::Mutex* pRedirectMutex = 0;
//------------------------------------------------------------------------
void FSysRedirector::Register( FSysRedirector *pRedirector )
{
if ( pRedirector )
- pRedirectMutex = new vos:: OMutex ;
+ pRedirectMutex = new osl::Mutex;
else
DELETEZ( pRedirectMutex );
_pRedirector = pRedirector;
@@ -165,7 +163,7 @@ void FSysRedirector::DoRedirect( String &rPath )
// Redirection is acessible only by one thread per time
// dont move the guard behind the bInRedirection check!!!
// think of nested calls (when called from callback)
- vos:: OGuard aGuard( pRedirectMutex );
+ osl::MutexGuard aGuard( pRedirectMutex );
// if already in redirection, dont redirect
if ( bInRedirection )
@@ -243,10 +241,6 @@ DBG_NAME( DirEntry );
|*
|* DirEntry::~DirEntryStack()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 04.07.91
-|*
*************************************************************************/
DirEntryStack::~DirEntryStack()
@@ -262,8 +256,6 @@ DirEntryStack::~DirEntryStack()
|* Beschreibung Pruefung eines DirEntry fuer DBG_UTIL
|* Parameter void* p Zeiger auf den DirEntry
|* Return-Wert char* Fehlermeldungs-TExtension oder NULL
-|* Ersterstellung MI 16.07.91
-|* Letzte Aenderung MI 26.05.93
|*
*************************************************************************/
@@ -284,8 +276,6 @@ const char* ImpCheckDirEntry( const void* p )
|* ImplCutPath()
|*
|* Beschreibung Fuegt ... ein, damit maximal nMaxChars lang
-|* Ersterstellung MI 06.04.94
-|* Letzte Aenderung DV 24.06.96
|*
*************************************************************************/
@@ -341,10 +331,6 @@ ByteString ImplCutPath( const ByteString& rStr, sal_uInt16 nMax, char cAccDel )
|*
|* DirEntry::ImpParseOs2Name()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 23.06.95
-|*
*************************************************************************/
FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eStyle )
@@ -538,10 +524,6 @@ FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eSty
|*
|* DirEntry::ImpParseName()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.08.91
-|* Letzte Aenderung MI 26.05.93
-|*
*************************************************************************/
FSysError DirEntry::ImpParseName( const ByteString& rbInitName,
@@ -601,10 +583,6 @@ FSysError DirEntry::ImpParseName( const ByteString& rbInitName,
|*
|* GetStyle()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 15.11.91
-|* Letzte Aenderung MI 15.11.91
-|*
*************************************************************************/
static FSysPathStyle GetStyle( FSysPathStyle eStyle )
@@ -622,8 +600,6 @@ static FSysPathStyle GetStyle( FSysPathStyle eStyle )
|* Beschreibung bringt den Namen auf Betriebssystem-Norm
|* z.B. 8.3 lower beim MS-DOS Formatter
|* wirkt nicht rekursiv
-|* Ersterstellung MI 12.08.91
-|* Letzte Aenderung MI 21.05.92
|*
*************************************************************************/
@@ -728,10 +704,6 @@ void DirEntry::ImpTrim( FSysPathStyle eStyle )
|*
|* DirEntry::DirEntry()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry::DirEntry( const ByteString& rName, DirEntryFlag eDirFlag,
@@ -754,10 +726,6 @@ DirEntry::DirEntry( const ByteString& rName, DirEntryFlag eDirFlag,
|*
|* DirEntry::DirEntry()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry::DirEntry( const DirEntry& rOrig ) :
@@ -785,10 +753,6 @@ DirEntry::DirEntry( const DirEntry& rOrig ) :
|*
|* DirEntry::DirEntry()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle )
@@ -895,10 +859,6 @@ DirEntry::DirEntry( const ByteString& rInitName, FSysPathStyle eStyle )
|*
|* DirEntry::DirEntry()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry::DirEntry( DirEntryFlag eDirFlag )
@@ -917,10 +877,6 @@ DirEntry::DirEntry( DirEntryFlag eDirFlag )
|*
|* DirEntry::~DirEntry()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry::~DirEntry()
@@ -938,10 +894,6 @@ DirEntry::~DirEntry()
|*
|* DirEntry::ImpGetTopPtr() const
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
const DirEntry* DirEntry::ImpGetTopPtr() const
@@ -959,10 +911,6 @@ const DirEntry* DirEntry::ImpGetTopPtr() const
|*
|* DirEntry::ImpGetTopPtr()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 13.11.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry* DirEntry::ImpGetTopPtr()
@@ -978,36 +926,8 @@ DirEntry* DirEntry::ImpGetTopPtr()
/*************************************************************************
|*
-|* DirEntry::ImpGetPreTopPtr()
-|*
-|* Beschreibung liefert einen Pointer auf den vorletzten Entry
-|* Ersterstellung MI 01.11.91
-|* Letzte Aenderung MA 02.12.91
-|*
-*************************************************************************/
-
-DirEntry* DirEntry::ImpGetPreTopPtr()
-{
- DBG_CHKTHIS( DirEntry, ImpCheckDirEntry );
-
- DirEntry *pTemp = this;
- if ( pTemp->pParent )
- {
- while ( pTemp->pParent->pParent )
- pTemp = pTemp->pParent;
- }
-
- return pTemp;
-}
-
-/*************************************************************************
-|*
|* DirEntry::ImpChangeParent()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 21.05.92
-|*
*************************************************************************/
DirEntry* DirEntry::ImpChangeParent( DirEntry* pNewParent, sal_Bool bNormalize )
@@ -1031,17 +951,13 @@ DirEntry* DirEntry::ImpChangeParent( DirEntry* pNewParent, sal_Bool bNormalize )
|*
|* DirEntry::Exists()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 24.09.91
-|*
*************************************************************************/
sal_Bool DirEntry::Exists( FSysAccess nAccess ) const
{
#ifndef BOOTSTRAP
- static vos::OMutex aLocalMutex;
- vos::OGuard aGuard( aLocalMutex );
+ static osl::Mutex aLocalMutex;
+ osl::MutexGuard aGuard( aLocalMutex );
#endif
if ( !IsValid() )
return sal_False;
@@ -1084,10 +1000,6 @@ sal_Bool DirEntry::Exists( FSysAccess nAccess ) const
|*
|* DirEntry::First()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 15.01.92
-|*
*************************************************************************/
sal_Bool DirEntry::First()
@@ -1132,10 +1044,6 @@ sal_Bool DirEntry::First()
|*
|* DirEntry::GetFull()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
String DirEntry::GetFull( FSysPathStyle eStyle, sal_Bool bWithDelimiter,
@@ -1188,10 +1096,6 @@ String DirEntry::GetFull( FSysPathStyle eStyle, sal_Bool bWithDelimiter,
|*
|* DirEntry::GetPath()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry DirEntry::GetPath() const
@@ -1208,10 +1112,6 @@ DirEntry DirEntry::GetPath() const
|*
|* DirEntry::GetExtension()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
String DirEntry::GetExtension( char cSep ) const
@@ -1235,10 +1135,6 @@ String DirEntry::GetExtension( char cSep ) const
|*
|* DirEntry::GetBase()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
String DirEntry::GetBase( char cSep ) const
@@ -1265,10 +1161,6 @@ String DirEntry::GetBase( char cSep ) const
|*
|* DirEntry::GetName()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91 13:47
-|*
*************************************************************************/
String DirEntry::GetName( FSysPathStyle eStyle ) const
@@ -1363,10 +1255,6 @@ String DirEntry::GetName( FSysPathStyle eStyle ) const
|*
|* DirEntry::IsAbs()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
bool DirEntry::IsAbs() const
@@ -1384,10 +1272,6 @@ bool DirEntry::IsAbs() const
|*
|* DirEntry::CutName()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
String DirEntry::CutName( FSysPathStyle eStyle )
@@ -1431,8 +1315,6 @@ String DirEntry::CutName( FSysPathStyle eStyle )
|* DirEntry::NameCompare
|*
|* Beschreibung Vergleich nur die Namen (ohne Pfad, aber mit Gross/Klein)
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
|*
*************************************************************************/
@@ -1457,10 +1339,6 @@ StringCompare DirEntry::NameCompare( const DirEntry &rWith ) const
|*
|* DirEntry::operator==()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const
@@ -1499,10 +1377,6 @@ sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const
|*
|* DirEntry::operator=()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry& DirEntry::operator=( const DirEntry& rEntry )
@@ -1512,7 +1386,7 @@ DirEntry& DirEntry::operator=( const DirEntry& rEntry )
if ( this == &rEntry )
return *this;
if ( rEntry.nError != FSYS_ERR_OK ) {
- DBG_ERROR("Zuweisung mit invalidem DirEntry");
+ OSL_FAIL("Zuweisung mit invalidem DirEntry");
nError = rEntry.nError;
return *this;
}
@@ -1537,10 +1411,6 @@ DirEntry& DirEntry::operator=( const DirEntry& rEntry )
|*
|* DirEntry::operator+()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry DirEntry::operator+( const DirEntry& rEntry ) const
@@ -1628,10 +1498,6 @@ DirEntry DirEntry::operator+( const DirEntry& rEntry ) const
|*
|* DirEntry::operator+=()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
DirEntry &DirEntry::operator+=( const DirEntry& rEntry )
@@ -1645,10 +1511,6 @@ DirEntry &DirEntry::operator+=( const DirEntry& rEntry )
|*
|* DirEntry::GetAccessDelimiter()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 27.05.93
-|* Letzte Aenderung MI 10.06.93
-|*
*************************************************************************/
String DirEntry::GetAccessDelimiter( FSysPathStyle eFormatter )
@@ -1660,10 +1522,6 @@ String DirEntry::GetAccessDelimiter( FSysPathStyle eFormatter )
|*
|* DirEntry::SetExtension()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 02.08.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
void DirEntry::SetExtension( const String& rExtension, char cSep )
@@ -1702,10 +1560,6 @@ void DirEntry::SetExtension( const String& rExtension, char cSep )
|*
|* DirEntry::CutExtension()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 23.07.93
-|* Letzte Aenderung MI 23.07.93
-|*
*************************************************************************/
String DirEntry::CutExtension( char cSep )
@@ -1731,10 +1585,6 @@ String DirEntry::CutExtension( char cSep )
|*
|* DirEntry::SetName()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 04.09.93
-|* Letzte Aenderung MI 04.09.93
-|*
*************************************************************************/
void DirEntry::SetName( const String& rName, FSysPathStyle eFormatter )
@@ -1762,10 +1612,6 @@ void DirEntry::SetName( const String& rName, FSysPathStyle eFormatter )
|*
|* DirEntry::Find()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
sal_Bool DirEntry::Find( const String& rPfad, char cDelim )
{
@@ -1808,10 +1654,6 @@ sal_Bool DirEntry::Find( const String& rPfad, char cDelim )
|*
|* DirEntry::ImpToRel()
|*
-|* Beschreibung
-|* Ersterstellung MI 17.06.93
-|* Letzte Aenderung MI 17.06.93
-|*
*************************************************************************/
sal_Bool DirEntry::ImpToRel( String aCurStr )
@@ -1871,10 +1713,6 @@ sal_Bool DirEntry::ImpToRel( String aCurStr )
|*
|* DirEntry::CutRelParents()
|*
-|* Beschreibung
-|* Ersterstellung MI 01.08.95
-|* Letzte Aenderung MI 01.08.95
-|*
*************************************************************************/
sal_uInt16 DirEntry::CutRelParents()
@@ -1911,10 +1749,6 @@ sal_uInt16 DirEntry::CutRelParents()
|*
|* DirEntry::ToRel()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.06.93
-|* Letzte Aenderung MI 17.06.93
-|*
*************************************************************************/
sal_Bool DirEntry::ToRel()
@@ -1930,10 +1764,6 @@ sal_Bool DirEntry::ToRel()
|*
|* DirEntry::ToRel()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
sal_Bool DirEntry::ToRel( const DirEntry& rStart )
@@ -1949,10 +1779,6 @@ sal_Bool DirEntry::ToRel( const DirEntry& rStart )
|*
|* DirEntry::GetDevice()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
#ifndef UNX
@@ -1976,10 +1802,6 @@ DirEntry DirEntry::GetDevice() const
|*
|* DirEntry::SetBase()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 23.10.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
void DirEntry::SetBase( const String& rBase, char cSep )
@@ -2005,10 +1827,6 @@ void DirEntry::SetBase( const String& rBase, char cSep )
|*
|* DirEntry::GetSearchDelimiter()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 10.06.93
-|* Letzte Aenderung MI 10.06.93
-|*
*************************************************************************/
String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter )
@@ -2025,8 +1843,6 @@ String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter )
|* fester Extension (FAT) zaehlt diese nicht mit.
|* Bei unbekannten FileSytemen und FSYS_STYLE_URL
|* wird USHRT_MAX zurueckgegeben.
-|* Ersterstellung MI 17.06.97
-|* Letzte Aenderung MI 17.06.97
|*
*************************************************************************/
@@ -2059,8 +1875,6 @@ sal_uInt16 DirEntry::GetMaxNameLen( FSysPathStyle eFormatter )
|* DirEntry::TempName()
|*
|* Beschreibung FSYS.SDW - Aha, wo?
-|* Ersterstellung VB 06.09.93 (im SWG)
-|* Letzte Aenderung MI 06.02.98
|*
*************************************************************************/
namespace { struct TempNameBase_Impl : public rtl::Static< DirEntry, TempNameBase_Impl > {}; }
@@ -2096,20 +1910,19 @@ const DirEntry& DirEntry::SetTempNameBase( const String &rBase )
DirEntry DirEntry::TempName( DirEntryKind eKind ) const
{
// ggf. Base-Temp-Dir verwenden (macht Remote keinen Sinn => vorher)
- const DirEntry &rEntry = TempNameBase_Impl::get();
+ const DirEntry &rEntry = TempNameBase_Impl::get();
if ( !pParent && FSYS_FLAG_CURRENT != rEntry.eFlag && FSYS_FLAG_ABSROOT != eFlag )
-
{
DirEntry aFactory( rEntry );
aFactory += GetName();
return aFactory.TempName();
}
- ByteString aDirName; // hiermit hatte MPW C++ Probleme - immmer noch??
+ ByteString aDirName;
char *ret_val;
size_t i;
- // dertermine Directory, Prefix and Extension
+ // determine Directory, Prefix and Extension
char pfx[6];
char ext[5];
const char *dir;
@@ -2135,17 +1948,15 @@ DirEntry DirEntry::TempName( DirEntryKind eKind ) const
else
{
aDirName = ByteString(GetFull(), osl_getThreadTextEncoding());
- strcpy( pfx, "sv" );
+ strcpy( pfx, "lo" );
strcpy( ext, ".tmp" );
}
dir = aDirName.GetBuffer();
- // wurde kein Dir angegeben, dann nehmen wir ein passendes TEMP-Verz.
char sBuf[_MAX_PATH];
if ( eFlag == FSYS_FLAG_CURRENT || ( !pParent && pWild ) )
dir = TempDirImpl(sBuf);
- // ab hier leicht modifizierter Code von VB
DirEntry aRet(FSYS_FLAG_INVALID);
i = strlen(dir);
// need to add ?\\? + prefix + number + pid + .ext + '\0'
@@ -2253,10 +2064,6 @@ DirEntry DirEntry::TempName( DirEntryKind eKind ) const
|*
|* DirEntry::operator[]()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 03.03.92
-|* Letzte Aenderung MI 03.03.92
-|*
*************************************************************************/
const DirEntry &DirEntry::operator[]( sal_uInt16 nParentLevel ) const
@@ -2276,10 +2083,6 @@ const DirEntry &DirEntry::operator[]( sal_uInt16 nParentLevel ) const
|*
|* DirEntry::ImpParseUnixName()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 26.05.93
-|*
*************************************************************************/
FSysError DirEntry::ImpParseUnixName( const ByteString& rPfad, FSysPathStyle eStyle )
@@ -2396,10 +2199,6 @@ FSysError DirEntry::ImpParseUnixName( const ByteString& rPfad, FSysPathStyle eSt
|*
|* DirEntry::MakeShortName()
|*
-|* Beschreibung
-|* Ersterstellung TLX
-|* Letzte Aenderung PB 21.08.97 (in CreateEntry_Impl())
-|*
*************************************************************************/
ErrCode CreateEntry_Impl( const DirEntry &rPath, DirEntryKind eKind )
@@ -2500,22 +2299,6 @@ sal_Bool DirEntry::MakeShortName( const String& rLongName, DirEntryKind eKind,
// Auf Novell-Servern (wegen der rottigen Clients) nur 7bit ASCII
- // HRO: #69627# Weg mit dem Scheiss. Wenn es Client gibt, die so einen
- // BUG haben, dann muss halt der Client ersetzt werden, aber doch nicht das
- // Office kastrieren !!!
-
-#if 0
- if ( FSYS_STYLE_NWFS == GetPathStyle( ImpGetTopPtr()->GetName() ) )
- {
- for ( sal_uInt16 n = aLongName.Len(); n; --n )
- {
- short nChar = aLongName(n-1);
- if ( nChar < 32 || nChar >= 127 )
- aLongName.Erase( n-1, 1 );
- }
- }
-#endif
-
// bei FSYS_KIND_ALL den alten Namen merken und abh"angen (rename)
ByteString aOldName;
if ( FSYS_KIND_ALL == eKind )
@@ -2646,10 +2429,6 @@ sal_Bool DirEntry::MakeShortName( const String& rLongName, DirEntryKind eKind,
|*
|* DirEntry::CreatePath()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MA 02.12.91
-|*
*************************************************************************/
sal_Bool DirEntry::MakeDir( sal_Bool bSloppy ) const
@@ -2715,10 +2494,6 @@ sal_Bool DirEntry::MakeDir( sal_Bool bSloppy ) const
|*
|* DirEntry::CopyTo()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 07.08.96
-|*
*************************************************************************/
FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const
@@ -2749,10 +2524,6 @@ FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const
|*
|* DirEntry::MoveTo()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung HRO 24.03.99
-|*
*************************************************************************/
#if defined WNT || defined UNX || defined OS2
@@ -2916,10 +2687,6 @@ FSysError DirEntry::MoveTo( const DirEntry& rNewName ) const
|*
|* DirEntry::Kill()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 26.04.91
-|* Letzte Aenderung MI 07.08.96
-|*
*************************************************************************/
FSysError DirEntry::Kill( FSysAction nActions ) const
@@ -3053,8 +2820,6 @@ FSysError DirEntry::Kill( FSysAction nActions ) const
|* DirEntry::Contains()
|*
|* Beschreibung ob rSubEntry direkt oder indirect in *this liegt
-|* Ersterstellung MI 20.03.97
-|* Letzte Aenderung MI 20.03.97
|*
*************************************************************************/
@@ -3078,10 +2843,6 @@ sal_Bool DirEntry::Contains( const DirEntry &rSubEntry ) const
|*
|* DirEntry::Level()
|*
-|* Beschreibung FSYS.SDW
-|* Ersterstellung MI 03.03.92
-|* Letzte Aenderung MI 03.03.92
-|*
*************************************************************************/
sal_uInt16 DirEntry::Level() const
@@ -3103,10 +2864,6 @@ sal_uInt16 DirEntry::Level() const
|*
|* DirEntry::ConvertNameToSystem()
|*
-|* Beschreibung
-|* Ersterstellung DV 29.03.96
-|* Letzte Aenderung DV 29.03.96
-|*
*************************************************************************/
String DirEntry::ConvertNameToSystem( const String &rName )
@@ -3118,10 +2875,6 @@ String DirEntry::ConvertNameToSystem( const String &rName )
|*
|* DirEntry::ConvertSystemToName()
|*
-|* Beschreibung
-|* Ersterstellung DV 29.03.96
-|* Letzte Aenderung DV 29.03.96
-|*
*************************************************************************/
String DirEntry::ConvertSystemToName( const String &rName )
@@ -3133,10 +2886,6 @@ String DirEntry::ConvertSystemToName( const String &rName )
|*
|* DirEntry::IsValid()
|*
-|* Beschreibung
-|* Ersterstellung MI 18.09.93
-|* Letzte Aenderung TPF 18.09.98
-|*
*************************************************************************/
sal_Bool DirEntry::IsValid() const
@@ -3148,10 +2897,6 @@ sal_Bool DirEntry::IsValid() const
|*
|* DirEntry::IsRFSAvailable()
|*
-|* Beschreibung
-|* Ersterstellung TPF 21.10.98
-|* Letzte Aenderung TPF 21.10.98
-|*
*************************************************************************/
sal_Bool DirEntry::IsRFSAvailable()
@@ -3166,8 +2911,6 @@ sal_Bool DirEntry::IsRFSAvailable()
|* Beschreibung ?berpr?ft , ob das DirEntry einen langen
|* Filenamen auf einer FAT-Partition enth?lt (EAs).
|* (eigentlich nur f?r OS2 interessant)
-|* Ersterstellung TPF 02.10.98
-|* Letzte Aenderung TPF 01.03.1999
|*
*************************************************************************/
@@ -3211,3 +2954,4 @@ void FSysTest()
#endif
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */