Lines Matching refs:DirEntry
205 inline void Push( DirEntry *pEntry );
206 inline DirEntry* Pop();
207 inline DirEntry* Top();
208 inline DirEntry* Bottom();
211 inline void DirEntryStack::Push( DirEntry *pEntry ) in Push()
216 inline DirEntry* DirEntryStack::Pop() in Pop()
218 return (DirEntry*) List::Remove( Count() - 1 ); in Pop()
221 inline DirEntry* DirEntryStack::Top() in Top()
223 return (DirEntry*) List::GetObject( Count() - 1 ); in Top()
226 inline DirEntry* DirEntryStack::Bottom() in Bottom()
228 return (DirEntry*) List::GetObject( 0 ); in Bottom()
233 DBG_NAME( DirEntry );
266 DirEntry* p0 = (DirEntry*)p; in ImpCheckDirEntry()
269 DBG_CHKOBJ( p0->pParent, DirEntry, ImpCheckDirEntry ); in ImpCheckDirEntry()
343 FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eStyle ) in ImpParseOs2Name()
345 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpParseOs2Name()
375 aStack.Push( new DirEntry( aName, FSYS_FLAG_ABSROOT, eStyle ) ); in ImpParseOs2Name()
382 aStack.Push( new DirEntry( FSYS_FLAG_ABSROOT ) ); in ImpParseOs2Name()
403 aStack.Push( new DirEntry( aName, FSYS_FLAG_ABSROOT, eStyle ) ); in ImpParseOs2Name()
414 aStack.Push( new DirEntry( aName, FSYS_FLAG_RELROOT, eStyle ) ); in ImpParseOs2Name()
437 aStack.Push( new DirEntry( FSYS_FLAG_PARENT ) ); in ImpParseOs2Name()
475 … DirEntry *pNew = new DirEntry( aName, FSYS_FLAG_NORMAL, eStyle ); in ImpParseOs2Name()
511 DirEntry** pTemp = &pParent; // Zeiger auf den Member pParent setzen in ImpParseOs2Name()
540 FSysError DirEntry::ImpParseName( const ByteString& rbInitName, in ImpParseName()
623 void DirEntry::ImpTrim( FSysPathStyle eStyle ) in ImpTrim()
730 DirEntry::DirEntry( const ByteString& rName, DirEntryFlag eDirFlag, in DirEntry() function in DirEntry
737 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
756 DirEntry::DirEntry( const DirEntry& rOrig ) : in DirEntry() function in DirEntry
762 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
769 pParent = new DirEntry( *rOrig.pParent ); in DirEntry()
787 DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle ) in DirEntry() function in DirEntry
792 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
843 DirEntry::DirEntry( const ByteString& rInitName, FSysPathStyle eStyle ) in DirEntry() function in DirEntry
848 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
897 DirEntry::DirEntry( DirEntryFlag eDirFlag ) in DirEntry() function in DirEntry
902 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
919 DirEntry::~DirEntry() in ~DirEntry()
921 DBG_DTOR( DirEntry, ImpCheckDirEntry ); in ~DirEntry()
940 const DirEntry* DirEntry::ImpGetTopPtr() const in ImpGetTopPtr()
942 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetTopPtr()
944 const DirEntry *pTemp = this; in ImpGetTopPtr()
961 DirEntry* DirEntry::ImpGetTopPtr() in ImpGetTopPtr()
963 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetTopPtr()
965 DirEntry *pTemp = this; in ImpGetTopPtr()
982 DirEntry* DirEntry::ImpGetPreTopPtr() in ImpGetPreTopPtr()
984 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetPreTopPtr()
986 DirEntry *pTemp = this; in ImpGetPreTopPtr()
1006 DirEntry* DirEntry::ImpChangeParent( DirEntry* pNewParent, sal_Bool bNormalize ) in ImpChangeParent()
1008 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpChangeParent()
1010 DirEntry *pTemp = pParent; in ImpChangeParent()
1033 sal_Bool DirEntry::Exists( FSysAccess nAccess ) const in Exists()
1086 sal_Bool DirEntry::First() in First()
1134 String DirEntry::GetFull( FSysPathStyle eStyle, sal_Bool bWithDelimiter, in GetFull()
1137 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetFull()
1190 DirEntry DirEntry::GetPath() const in GetPath()
1192 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetPath()
1195 return DirEntry( *pParent ); in GetPath()
1197 return DirEntry(); in GetPath()
1210 String DirEntry::GetExtension( char cSep ) const in GetExtension()
1212 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetExtension()
1237 String DirEntry::GetBase( char cSep ) const in GetBase()
1239 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetBase()
1267 String DirEntry::GetName( FSysPathStyle eStyle ) const in GetName()
1269 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetName()
1365 bool DirEntry::IsAbs() const in IsAbs()
1367 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in IsAbs()
1386 String DirEntry::CutName( FSysPathStyle eStyle ) in CutName()
1388 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutName()
1396 DirEntry *pOldParent = pParent; in CutName()
1432 StringCompare DirEntry::NameCompare( const DirEntry &rWith ) const in NameCompare()
1459 sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const in operator ==()
1461 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator ==()
1475 DirEntry *pThis = (DirEntry *)this; in operator ==()
1479 DirEntry *pWith = (DirEntry *)&rEntry; in operator ==()
1501 DirEntry& DirEntry::operator=( const DirEntry& rEntry ) in operator =()
1503 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator =()
1518 DirEntry *pOldParent = pParent; in operator =()
1520 pParent = new DirEntry( *rEntry.pParent ); in operator =()
1539 DirEntry DirEntry::operator+( const DirEntry& rEntry ) const in operator +()
1541 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator +()
1551 const DirEntry *pEntryTop = rEntry.ImpGetTopPtr(); in operator +()
1552 const DirEntry *pThisTop = ImpGetTopPtr(); in operator +()
1589 return DirEntry( FSYS_FLAG_INVALID ); in operator +()
1597 DirEntry aRet = rEntry; in operator +()
1609 return DirEntry( aConcated ); in operator +()
1613 DirEntry aRet( rEntry ); in operator +()
1614 DirEntry *pTop = aRet.ImpGetTopPtr(); in operator +()
1615 pTop->pParent = new DirEntry( *this ); in operator +()
1630 DirEntry &DirEntry::operator+=( const DirEntry& rEntry ) in operator +=()
1632 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator +=()
1647 String DirEntry::GetAccessDelimiter( FSysPathStyle eFormatter ) in GetAccessDelimiter()
1662 void DirEntry::SetExtension( const String& rExtension, char cSep ) in SetExtension()
1664 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetExtension()
1704 String DirEntry::CutExtension( char cSep ) in CutExtension()
1706 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutExtension()
1733 void DirEntry::SetName( const String& rName, FSysPathStyle eFormatter ) in SetName()
1735 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetName()
1763 sal_Bool DirEntry::Find( const String& rPfad, char cDelim ) in Find()
1765 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Find()
1788 DirEntry aEntry( String(aPath, osl_getThreadTextEncoding())); in Find()
1810 sal_Bool DirEntry::ImpToRel( String aCurStr ) in ImpToRel()
1812 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpToRel()
1814 DirEntry aThis(*this); in ImpToRel()
1835 *this = DirEntry(); in ImpToRel()
1859 *this = DirEntry( aThisStr, FSYS_STYLE_HPFS ); in ImpToRel()
1873 sal_uInt16 DirEntry::CutRelParents() in CutRelParents()
1875 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutRelParents()
1878 DirEntry *pDir = 0; in CutRelParents()
1879 DirEntry *pPar; in CutRelParents()
1913 sal_Bool DirEntry::ToRel() in ToRel()
1915 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ToRel()
1917 DirEntry aCur; in ToRel()
1932 sal_Bool DirEntry::ToRel( const DirEntry& rStart ) in ToRel()
1934 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ToRel()
1936 DirEntry aStart( rStart ); in ToRel()
1953 DirEntry DirEntry::GetDevice() const in GetDevice()
1955 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetDevice()
1957 const DirEntry *pTop = ImpGetTopPtr(); in GetDevice()
1961 return DirEntry( pTop->aName, FSYS_FLAG_VOLUME, FSYS_STYLE_HOST ); in GetDevice()
1963 return DirEntry( ByteString(), FSYS_FLAG_INVALID, FSYS_STYLE_HOST ); in GetDevice()
1978 void DirEntry::SetBase( const String& rBase, char cSep ) in SetBase()
1980 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetBase()
2007 String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter ) in GetSearchDelimiter()
2026 sal_uInt16 DirEntry::GetMaxNameLen( FSysPathStyle eFormatter ) in GetMaxNameLen()
2059 namespace { struct TempNameBase_Impl : public rtl::Static< DirEntry, TempNameBase_Impl > {}; }
2061 const DirEntry& DirEntry::SetTempNameBase( const String &rBase ) in SetTempNameBase()
2063 DirEntry aTempDir = DirEntry().TempName().GetPath(); in SetTempNameBase()
2064 aTempDir += DirEntry( rBase ); in SetTempNameBase()
2084 DirEntry &rEntry = TempNameBase_Impl::get(); in SetTempNameBase()
2089 DirEntry DirEntry::TempName( DirEntryKind eKind ) const in TempName()
2092 const DirEntry &rEntry = TempNameBase_Impl::get(); in TempName()
2096 DirEntry aFactory( rEntry ); in TempName()
2142 DirEntry aRet(FSYS_FLAG_INVALID); in TempName()
2196 … aRet = DirEntry( String( ret_val, osl_getThreadTextEncoding())); in TempName()
2214 aRet = DirEntry( aRetVal ); in TempName()
2223 aRet = DirEntry( aRetVal ); in TempName()
2230 aRet = DirEntry( aRetVal ); in TempName()
2255 const DirEntry &DirEntry::operator[]( sal_uInt16 nParentLevel ) const in operator []()
2257 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator []()
2261 const DirEntry *pRes = this; in operator []()
2278 FSysError DirEntry::ImpParseUnixName( const ByteString& rPfad, FSysPathStyle eStyle ) in ImpParseUnixName()
2280 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpParseUnixName()
2301 aStack.Push( new DirEntry( FSYS_FLAG_ABSROOT ) ); in ImpParseUnixName()
2316 … DirEntry aHome( String( (const char *) getenv( "HOME" ), osl_getThreadTextEncoding()) ); in ImpParseUnixName()
2318 aStack.Push( new DirEntry( aHome[ (sal_uInt16) n-1 ] ) ); in ImpParseUnixName()
2330 aStack.Push( new DirEntry( ByteString(), FSYS_FLAG_PARENT, eStyle ) ); in ImpParseUnixName()
2343 DirEntry *pNew = NULL; in ImpParseUnixName()
2345 pNew = new DirEntry( aName, FSYS_FLAG_NORMAL, eStyle ); in ImpParseUnixName()
2378 DirEntry** pTemp = &pParent; in ImpParseUnixName()
2398 ErrCode CreateEntry_Impl( const DirEntry &rPath, DirEntryKind eKind ) in CreateEntry_Impl()
2423 sal_Bool IsValidEntry_Impl( const DirEntry &rPath, in IsValidEntry_Impl()
2437 FSysPathStyle eStyle = DirEntry::GetPathStyle( rPath.GetDevice().GetName() ); in IsValidEntry_Impl()
2438 DirEntry aPath(rPath); in IsValidEntry_Impl()
2439 DirEntry aName(rLongName, eStyle); in IsValidEntry_Impl()
2448 DirEntry aDosEntry( rLongName, FSYS_STYLE_FAT ); in IsValidEntry_Impl()
2456 rLongName.Search(DirEntry::GetAccessDelimiter()) != STRING_NOTFOUND || in IsValidEntry_Impl()
2484 sal_Bool DirEntry::MakeShortName( const String& rLongName, DirEntryKind eKind, in MakeShortName()
2523 operator+=( DirEntry(aLongName) ); in MakeShortName()
2530 eStyle = DirEntry::GetPathStyle( GetDevice().GetName() ); in MakeShortName()
2557 DirEntry aUnparsed; in MakeShortName()
2597 operator+=( DirEntry(String(aNewName, osl_getThreadTextEncoding())) ); in MakeShortName()
2648 sal_Bool DirEntry::MakeDir( sal_Bool bSloppy ) const in MakeDir()
2650 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in MakeDir()
2659 const DirEntry *pNewDir = bSloppy ? pParent : this; in MakeDir()
2694 … ((DirEntry *)this)->SetError( Sys2SolarError_Impl( GetLastError() ) ); in MakeDir()
2696 ((DirEntry *)this)->SetError( Sys2SolarError_Impl( errno ) ); in MakeDir()
2717 FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const in CopyTo()
2719 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CopyTo()
2753 FSysError DirEntry::MoveTo( const DirEntry& rNewName ) const in MoveTo()
2755 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in MoveTo()
2763 DirEntry aDest(rNewName); in MoveTo()
2803 DirEntry aFromDevice(String(bFrom, osl_getThreadTextEncoding())); in MoveTo()
2804 DirEntry aToDevice(String(bTo,osl_getThreadTextEncoding())); in MoveTo()
2825 DirEntry aKill(String(bTo, osl_getThreadTextEncoding())); in MoveTo()
2918 FSysError DirEntry::Kill( FSysAction nActions ) const in Kill()
2920 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Kill()
2953 const DirEntry &rSubDir = aDir[n]; in Kill()
3054 sal_Bool DirEntry::Contains( const DirEntry &rSubEntry ) const in Contains()
3080 sal_uInt16 DirEntry::Level() const in Level()
3082 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Level()
3085 const DirEntry *pRes = this; in Level()
3105 String DirEntry::ConvertNameToSystem( const String &rName ) in ConvertNameToSystem()
3120 String DirEntry::ConvertSystemToName( const String &rName ) in ConvertSystemToName()
3135 sal_Bool DirEntry::IsValid() const in IsValid()
3150 sal_Bool DirEntry::IsRFSAvailable() in IsRFSAvailable()
3167 sal_Bool DirEntry::IsLongNameOnFAT() const in IsLongNameOnFAT()
3170 DirEntry aTempDirEntry(*this); in IsLongNameOnFAT()
3172 … if (DirEntry::GetPathStyle(aTempDirEntry.GetDevice().GetName().GetChar(0)) != FSYS_STYLE_FAT) in IsLongNameOnFAT()
3180 const DirEntry& rEntry = (const DirEntry&) (*this)[iLevel-1]; in IsLongNameOnFAT()