InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IFileUtility.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Robin_Briggs
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16
//
17
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18
// with the terms of the Adobe license agreement accompanying it. If you have received
19
// this file from a source other than Adobe, then your use, modification, or
20
// distribution of it requires the prior written permission of Adobe.
21
//
22
//========================================================================================
23
24
#ifndef __IFILEUTILITY__
25
#define __IFILEUTILITY__
26
27
#include "IDFile.h"
28
29
class
PMString
;
30
38
class
IFileUtility
39
{
40
public
:
45
virtual
~IFileUtility
() {}
46
51
virtual
void
DeleteFile
() = 0;
52
60
enum
SetTemporaryFileFlags
{
61
kNone = 0x0,
62
63
// -- Mac Flags -- //
64
kUserDomainMac = 0x1,
/* Finds a folder in the user domain.
65
See kUserDomain in Folders.h on Mac. */
66
kPreferencesFolderTypeMac = 0x2,
/* Sets the temporary file to a file in the
67
Preferences folder, instead of a folder
68
that is deleted on startup. */
69
70
// -- Windows Flags -- //
71
72
};
73
virtual
bool16 SetTemporaryFile(int32 flags = kNone) = 0;
74
79
virtual
void
SetUniqueName
() = 0;
80
85
virtual
void
GetPathName
(
PMString
*pathName) = 0;
86
91
virtual
void
GetFileName
(
PMString
* fileName) = 0;
92
97
virtual
const
IDFile
&
GetSysFile
() = 0;
98
103
virtual
void
GetDirectory
(
IDFile
& fileSpec) = 0;
104
110
virtual
bool16
CopyFile
(
const
IDFile
& destSpec) = 0;
111
116
virtual
bool16
FileExists
() = 0;
117
122
virtual
bool16
IsFolder
() = 0;
123
130
typedef
enum
{
132
kRead
,
134
kWrite
,
136
kReadWrite
137
}
Access
;
138
146
virtual
bool8
CanOpen
(
Access
access =
kReadWrite
) = 0;
147
154
virtual
void
GetFileCreatorType
(SysOSType* fileType, SysOSType* creator) = 0;
155
162
virtual
void
SetFileCreatorType
(SysOSType fileType, SysOSType creator) = 0;
163
168
virtual
bool16
IsStationery
() = 0;
169
175
virtual
void
SetFileAsStationery
(bool16 asStationery) = 0;
176
181
virtual
uint32
GetModificationDate
() = 0;
182
187
virtual
uint32
GetCreationDate
() = 0;
188
193
virtual
PMString
GetExtension
() = 0;
194
200
virtual
uint32
GetFileSize
() = 0;
201
205
virtual
void
CreateDirectory
() = 0;
206
211
virtual
bool16
DirIsReadOnly
() = 0;
212
217
virtual
bool16
IsAliasFile
() = 0;
218
227
virtual
ErrorCode
ResolveAliasFile
(bool16 suppressUI = kTrue) = 0;
228
233
virtual
bool16
SetFileReadOnly
(bool16 readOnly = kTrue) = 0;
234
239
virtual
bool16
GetFileVisibility
() = 0;
240
247
virtual
bool16
SetFileVisibility
(bool16 show) = 0;
248
};
249
250
251
252
#endif // __IFILEUTILITY__
253
tmpdoxygeninput
IFileUtility.h
Generated on Sat Jul 19 2025 02:54:13 for InDesign SDK by
1.8.3.1