return dtMod;
}
+#ifdef __WXMAC__
+ bool MacSetTypeAndCreator( wxUint32 type , wxUint32 creator ) ;
+ bool MacGetTypeAndCreator( wxUint32 *type , wxUint32 *creator ) ;
+ // gets the 'common' type and creator for a certain extension
+ static bool MacFindDefaultTypeAndCreator( const wxString& ext , wxUint32 *type , wxUint32 *creator ) ;
+ // registers application defined extensions and their default type and creator
+ static void MacRegisterDefaultTypeAndCreator( const wxString& ext , wxUint32 type , wxUint32 creator ) ;
+ // looks up the appropriate type and creator from the registration and then sets
+ bool MacSetDefaultTypeAndCreator() ;
+#endif
// various file/dir operations
// retrieve the value of the current working directory
// variables will be expanded in it
//
// this may be done using another (than current) value of cwd
- bool Normalize(wxPathNormalize flags = wxPATH_NORM_ALL,
+ bool Normalize(int flags = wxPATH_NORM_ALL,
const wxString& cwd = wxEmptyString,
wxPathFormat format = wxPATH_NATIVE);
bool operator==(const wxString& filename)
{ return *this == wxFileName(filename); }
- // Tests
-
// are the file names of this type cases sensitive?
static bool IsCaseSensitive( wxPathFormat format = wxPATH_NATIVE );
// is this filename relative?
bool IsRelative() const
{ return m_relative; }
+
+ // forcibly set the flag
+ void SetAbsolute()
+ { m_relative = FALSE; }
+ void SetRelative()
+ { m_relative = TRUE; }
// Information about path format
// Construct path only - possibly with the trailing separator
wxString GetPath( bool add_separator = FALSE,
wxPathFormat format = wxPATH_NATIVE ) const;
+ // Replace current path with this one
+ void SetPath( const wxString &path, wxPathFormat format = wxPATH_NATIVE );
// more readable synonym
wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE ) const