Lines Matching refs:DirEntry
208 inline void Push( DirEntry *pEntry );
209 inline DirEntry* Pop();
210 inline DirEntry* Top();
211 inline DirEntry* Bottom();
214 inline void DirEntryStack::Push( DirEntry *pEntry ) in Push()
219 inline DirEntry* DirEntryStack::Pop() in Pop()
221 return (DirEntry*) List::Remove( Count() - 1 ); in Pop()
224 inline DirEntry* DirEntryStack::Top() in Top()
226 return (DirEntry*) List::GetObject( Count() - 1 ); in Top()
229 inline DirEntry* DirEntryStack::Bottom() in Bottom()
231 return (DirEntry*) List::GetObject( 0 ); in Bottom()
236 DBG_NAME( DirEntry );
269 DirEntry* p0 = (DirEntry*)p; in ImpCheckDirEntry()
272 DBG_CHKOBJ( p0->pParent, DirEntry, ImpCheckDirEntry ); in ImpCheckDirEntry()
346 FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eStyle ) in ImpParseOs2Name()
348 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpParseOs2Name()
378 aStack.Push( new DirEntry( aName, FSYS_FLAG_ABSROOT, eStyle ) ); in ImpParseOs2Name()
385 aStack.Push( new DirEntry( FSYS_FLAG_ABSROOT ) ); in ImpParseOs2Name()
406 aStack.Push( new DirEntry( aName, FSYS_FLAG_ABSROOT, eStyle ) ); in ImpParseOs2Name()
417 aStack.Push( new DirEntry( aName, FSYS_FLAG_RELROOT, eStyle ) ); in ImpParseOs2Name()
440 aStack.Push( new DirEntry( FSYS_FLAG_PARENT ) ); in ImpParseOs2Name()
478 … DirEntry *pNew = new DirEntry( aName, FSYS_FLAG_NORMAL, eStyle ); in ImpParseOs2Name()
514 DirEntry** pTemp = &pParent; // Zeiger auf den Member pParent setzen in ImpParseOs2Name()
543 FSysError DirEntry::ImpParseName( const ByteString& rbInitName, in ImpParseName()
626 void DirEntry::ImpTrim( FSysPathStyle eStyle ) in ImpTrim()
733 DirEntry::DirEntry( const ByteString& rName, DirEntryFlag eDirFlag, in DirEntry() function in DirEntry
740 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
759 DirEntry::DirEntry( const DirEntry& rOrig ) : in DirEntry() function in DirEntry
765 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
772 pParent = new DirEntry( *rOrig.pParent ); in DirEntry()
790 DirEntry::DirEntry( const String& rInitName, FSysPathStyle eStyle ) in DirEntry() function in DirEntry
795 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
846 DirEntry::DirEntry( const ByteString& rInitName, FSysPathStyle eStyle ) in DirEntry() function in DirEntry
851 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
900 DirEntry::DirEntry( DirEntryFlag eDirFlag ) in DirEntry() function in DirEntry
905 DBG_CTOR( DirEntry, ImpCheckDirEntry ); in DirEntry()
922 DirEntry::~DirEntry() in ~DirEntry()
924 DBG_DTOR( DirEntry, ImpCheckDirEntry ); in ~DirEntry()
943 const DirEntry* DirEntry::ImpGetTopPtr() const in ImpGetTopPtr()
945 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetTopPtr()
947 const DirEntry *pTemp = this; in ImpGetTopPtr()
964 DirEntry* DirEntry::ImpGetTopPtr() in ImpGetTopPtr()
966 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetTopPtr()
968 DirEntry *pTemp = this; in ImpGetTopPtr()
985 DirEntry* DirEntry::ImpGetPreTopPtr() in ImpGetPreTopPtr()
987 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpGetPreTopPtr()
989 DirEntry *pTemp = this; in ImpGetPreTopPtr()
1009 DirEntry* DirEntry::ImpChangeParent( DirEntry* pNewParent, sal_Bool bNormalize ) in ImpChangeParent()
1011 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpChangeParent()
1013 DirEntry *pTemp = pParent; in ImpChangeParent()
1036 sal_Bool DirEntry::Exists( FSysAccess nAccess ) const in Exists()
1089 sal_Bool DirEntry::First() in First()
1137 String DirEntry::GetFull( FSysPathStyle eStyle, sal_Bool bWithDelimiter, in GetFull()
1140 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetFull()
1193 DirEntry DirEntry::GetPath() const in GetPath()
1195 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetPath()
1198 return DirEntry( *pParent ); in GetPath()
1200 return DirEntry(); in GetPath()
1213 String DirEntry::GetExtension( char cSep ) const in GetExtension()
1215 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetExtension()
1240 String DirEntry::GetBase( char cSep ) const in GetBase()
1242 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetBase()
1270 String DirEntry::GetName( FSysPathStyle eStyle ) const in GetName()
1272 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetName()
1368 bool DirEntry::IsAbs() const in IsAbs()
1370 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in IsAbs()
1389 String DirEntry::CutName( FSysPathStyle eStyle ) in CutName()
1391 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutName()
1399 DirEntry *pOldParent = pParent; in CutName()
1435 StringCompare DirEntry::NameCompare( const DirEntry &rWith ) const in NameCompare()
1462 sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const in operator ==()
1464 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator ==()
1478 DirEntry *pThis = (DirEntry *)this; in operator ==()
1482 DirEntry *pWith = (DirEntry *)&rEntry; in operator ==()
1504 DirEntry& DirEntry::operator=( const DirEntry& rEntry ) in operator =()
1506 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator =()
1521 DirEntry *pOldParent = pParent; in operator =()
1523 pParent = new DirEntry( *rEntry.pParent ); in operator =()
1542 DirEntry DirEntry::operator+( const DirEntry& rEntry ) const in operator +()
1544 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator +()
1554 const DirEntry *pEntryTop = rEntry.ImpGetTopPtr(); in operator +()
1555 const DirEntry *pThisTop = ImpGetTopPtr(); in operator +()
1592 return DirEntry( FSYS_FLAG_INVALID ); in operator +()
1600 DirEntry aRet = rEntry; in operator +()
1612 return DirEntry( aConcated ); in operator +()
1616 DirEntry aRet( rEntry ); in operator +()
1617 DirEntry *pTop = aRet.ImpGetTopPtr(); in operator +()
1618 pTop->pParent = new DirEntry( *this ); in operator +()
1633 DirEntry &DirEntry::operator+=( const DirEntry& rEntry ) in operator +=()
1635 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator +=()
1650 String DirEntry::GetAccessDelimiter( FSysPathStyle eFormatter ) in GetAccessDelimiter()
1665 void DirEntry::SetExtension( const String& rExtension, char cSep ) in SetExtension()
1667 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetExtension()
1707 String DirEntry::CutExtension( char cSep ) in CutExtension()
1709 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutExtension()
1736 void DirEntry::SetName( const String& rName, FSysPathStyle eFormatter ) in SetName()
1738 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetName()
1766 sal_Bool DirEntry::Find( const String& rPfad, char cDelim ) in Find()
1768 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Find()
1791 DirEntry aEntry( String(aPath, osl_getThreadTextEncoding())); in Find()
1813 sal_Bool DirEntry::ImpToRel( String aCurStr ) in ImpToRel()
1815 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpToRel()
1817 DirEntry aThis(*this); in ImpToRel()
1838 *this = DirEntry(); in ImpToRel()
1862 *this = DirEntry( aThisStr, FSYS_STYLE_HPFS ); in ImpToRel()
1876 sal_uInt16 DirEntry::CutRelParents() in CutRelParents()
1878 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CutRelParents()
1881 DirEntry *pDir = 0; in CutRelParents()
1882 DirEntry *pPar; in CutRelParents()
1916 sal_Bool DirEntry::ToRel() in ToRel()
1918 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ToRel()
1920 DirEntry aCur; in ToRel()
1935 sal_Bool DirEntry::ToRel( const DirEntry& rStart ) in ToRel()
1937 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ToRel()
1939 DirEntry aStart( rStart ); in ToRel()
1956 DirEntry DirEntry::GetDevice() const in GetDevice()
1958 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in GetDevice()
1960 const DirEntry *pTop = ImpGetTopPtr(); in GetDevice()
1964 return DirEntry( pTop->aName, FSYS_FLAG_VOLUME, FSYS_STYLE_HOST ); in GetDevice()
1966 return DirEntry( ByteString(), FSYS_FLAG_INVALID, FSYS_STYLE_HOST ); in GetDevice()
1981 void DirEntry::SetBase( const String& rBase, char cSep ) in SetBase()
1983 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in SetBase()
2010 String DirEntry::GetSearchDelimiter( FSysPathStyle eFormatter ) in GetSearchDelimiter()
2029 sal_uInt16 DirEntry::GetMaxNameLen( FSysPathStyle eFormatter ) in GetMaxNameLen()
2062 namespace { struct TempNameBase_Impl : public rtl::Static< DirEntry, TempNameBase_Impl > {}; }
2064 const DirEntry& DirEntry::SetTempNameBase( const String &rBase ) in SetTempNameBase()
2066 DirEntry aTempDir = DirEntry().TempName().GetPath(); in SetTempNameBase()
2067 aTempDir += DirEntry( rBase ); in SetTempNameBase()
2087 DirEntry &rEntry = TempNameBase_Impl::get(); in SetTempNameBase()
2092 DirEntry DirEntry::TempName( DirEntryKind eKind ) const in TempName()
2095 const DirEntry &rEntry = TempNameBase_Impl::get(); in TempName()
2099 DirEntry aFactory( rEntry ); in TempName()
2145 DirEntry aRet(FSYS_FLAG_INVALID); in TempName()
2199 … aRet = DirEntry( String( ret_val, osl_getThreadTextEncoding())); in TempName()
2217 aRet = DirEntry( aRetVal ); in TempName()
2226 aRet = DirEntry( aRetVal ); in TempName()
2233 aRet = DirEntry( aRetVal ); in TempName()
2258 const DirEntry &DirEntry::operator[]( sal_uInt16 nParentLevel ) const in operator []()
2260 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in operator []()
2264 const DirEntry *pRes = this; in operator []()
2281 FSysError DirEntry::ImpParseUnixName( const ByteString& rPfad, FSysPathStyle eStyle ) in ImpParseUnixName()
2283 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in ImpParseUnixName()
2304 aStack.Push( new DirEntry( FSYS_FLAG_ABSROOT ) ); in ImpParseUnixName()
2319 … DirEntry aHome( String( (const char *) getenv( "HOME" ), osl_getThreadTextEncoding()) ); in ImpParseUnixName()
2321 aStack.Push( new DirEntry( aHome[ (sal_uInt16) n-1 ] ) ); in ImpParseUnixName()
2333 aStack.Push( new DirEntry( ByteString(), FSYS_FLAG_PARENT, eStyle ) ); in ImpParseUnixName()
2346 DirEntry *pNew = NULL; in ImpParseUnixName()
2348 pNew = new DirEntry( aName, FSYS_FLAG_NORMAL, eStyle ); in ImpParseUnixName()
2381 DirEntry** pTemp = &pParent; in ImpParseUnixName()
2401 ErrCode CreateEntry_Impl( const DirEntry &rPath, DirEntryKind eKind ) in CreateEntry_Impl()
2426 sal_Bool IsValidEntry_Impl( const DirEntry &rPath, in IsValidEntry_Impl()
2440 FSysPathStyle eStyle = DirEntry::GetPathStyle( rPath.GetDevice().GetName() ); in IsValidEntry_Impl()
2441 DirEntry aPath(rPath); in IsValidEntry_Impl()
2442 DirEntry aName(rLongName, eStyle); in IsValidEntry_Impl()
2451 DirEntry aDosEntry( rLongName, FSYS_STYLE_FAT ); in IsValidEntry_Impl()
2459 rLongName.Search(DirEntry::GetAccessDelimiter()) != STRING_NOTFOUND || in IsValidEntry_Impl()
2487 sal_Bool DirEntry::MakeShortName( const String& rLongName, DirEntryKind eKind, in MakeShortName()
2526 operator+=( DirEntry(aLongName) ); in MakeShortName()
2533 eStyle = DirEntry::GetPathStyle( GetDevice().GetName() ); in MakeShortName()
2560 DirEntry aUnparsed; in MakeShortName()
2600 operator+=( DirEntry(String(aNewName, osl_getThreadTextEncoding())) ); in MakeShortName()
2651 sal_Bool DirEntry::MakeDir( sal_Bool bSloppy ) const in MakeDir()
2653 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in MakeDir()
2662 const DirEntry *pNewDir = bSloppy ? pParent : this; in MakeDir()
2697 … ((DirEntry *)this)->SetError( Sys2SolarError_Impl( GetLastError() ) ); in MakeDir()
2699 ((DirEntry *)this)->SetError( Sys2SolarError_Impl( errno ) ); in MakeDir()
2720 FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const in CopyTo()
2722 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in CopyTo()
2756 FSysError DirEntry::MoveTo( const DirEntry& rNewName ) const in MoveTo()
2758 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in MoveTo()
2766 DirEntry aDest(rNewName); in MoveTo()
2806 DirEntry aFromDevice(String(bFrom, osl_getThreadTextEncoding())); in MoveTo()
2807 DirEntry aToDevice(String(bTo,osl_getThreadTextEncoding())); in MoveTo()
2828 DirEntry aKill(String(bTo, osl_getThreadTextEncoding())); in MoveTo()
2921 FSysError DirEntry::Kill( FSysAction nActions ) const in Kill()
2923 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Kill()
2956 const DirEntry &rSubDir = aDir[n]; in Kill()
3057 sal_Bool DirEntry::Contains( const DirEntry &rSubEntry ) const in Contains()
3083 sal_uInt16 DirEntry::Level() const in Level()
3085 DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); in Level()
3088 const DirEntry *pRes = this; in Level()
3108 String DirEntry::ConvertNameToSystem( const String &rName ) in ConvertNameToSystem()
3123 String DirEntry::ConvertSystemToName( const String &rName ) in ConvertSystemToName()
3138 sal_Bool DirEntry::IsValid() const in IsValid()
3153 sal_Bool DirEntry::IsRFSAvailable() in IsRFSAvailable()
3170 sal_Bool DirEntry::IsLongNameOnFAT() const in IsLongNameOnFAT()
3173 DirEntry aTempDirEntry(*this); in IsLongNameOnFAT()
3175 … if (DirEntry::GetPathStyle(aTempDirEntry.GetDevice().GetName().GetChar(0)) != FSYS_STYLE_FAT) in IsLongNameOnFAT()
3183 const DirEntry& rEntry = (const DirEntry&) (*this)[iLevel-1]; in IsLongNameOnFAT()