// ================================================================================= // CFSSpecListBox.h ©1995 J. Rodden, DD/MF & Associates. All rights reserved // ================================================================================= #pragma once #include #include #ifndef __LISTS__ #include #endif class CFSSpecListBox : public CDDListBox { public: enum { class_ID = 'fslb' }; static CFSSpecListBox* CreateFromStream(LStream *inStream); CFSSpecListBox(); CFSSpecListBox(LStream *inStream); virtual void FinishCreateSelf(); virtual void AddFileType(OSType inType); virtual void RemoveFileType(OSType inType); virtual void AddRowElement(const FSSpec& inFSSpec, Cell& inCell); virtual void AddColElement(const FSSpec& inFSSpec, Cell& inCell); virtual void CopyCell( Cell inSrcCell, Cell inDestCell); virtual FSSpec* GetDescriptor( FSSpec& outFSSpec) const; protected: virtual void LDEFHilite( Boolean lSelect, Rect *lRect, Cell lCell, short lDataOffset, short lDataLen ); virtual void DrawElementSelf( Boolean lSelect, Rect *lRect, Cell lCell, short lDataLen ); virtual Boolean HFSItemIsAcceptable(HFSFlavor& inHFSFlavorData, Boolean& inTargetIsFolder); virtual void DrawDragRegion(); short mAcceptFolders; LList mFileTypeList; };