1 /* $Id: file.h,v 1.13 2004/03/25 04:27:01 tksoh Exp $ */
3 #ifndef NEDIT_FILE_H_INCLUDED
4 #define NEDIT_FILE_H_INCLUDED
8 #include <X11/Intrinsic.h>
10 /* flags for EditExistingFile */
12 #define SUPPRESS_CREATE_WARN 2
13 #define PREF_READ_ONLY 4
15 #define PROMPT_SBC_DIALOG_RESPONSE 0
16 #define YES_SBC_DIALOG_RESPONSE 1
17 #define NO_SBC_DIALOG_RESPONSE 2
19 WindowInfo
*EditNewFile(WindowInfo
*inWindow
, char *geometry
, int iconic
,
20 const char *languageMode
, const char *defaultPath
);
21 WindowInfo
*EditExistingFile(WindowInfo
*inWindow
, const char *name
,
22 const char *path
, int flags
, char *geometry
, int iconic
,
23 const char *languageMode
, int tabbed
, int bgOpen
);
24 void RevertToSaved(WindowInfo
*window
);
25 int SaveWindow(WindowInfo
*window
);
26 int SaveWindowAs(WindowInfo
*window
, const char *newName
, int addWrap
);
27 int CloseAllFilesAndWindows(void);
28 int CloseFileAndWindow(WindowInfo
*window
, int preResponse
);
29 void PrintWindow(WindowInfo
*window
, int selectedOnly
);
30 void PrintString(const char *string
, int length
, Widget parent
, const char *jobName
);
31 int WriteBackupFile(WindowInfo
*window
);
32 int IncludeFile(WindowInfo
*window
, const char *name
);
33 int PromptForExistingFile(WindowInfo
*window
, char *prompt
, char *fullname
);
34 int PromptForNewFile(WindowInfo
*window
, char *prompt
, char *fullname
,
35 int *fileFormat
, int *addWrap
);
36 int CheckReadOnly(WindowInfo
*window
);
37 void RemoveBackupFile(WindowInfo
*window
);
38 void UniqueUntitledName(char *name
);
39 void CheckForChangesToFile(WindowInfo
*window
);
41 #endif /* NEDIT_FILE_H_INCLUDED */