FOM Reference > Application > Preferences > fTemplatePreferencesSaving interface
  
fTemplatePreferencesSaving interface
This object specifies preferences for how current template is saved.
PageFormatStates enumeration
How much information about the formatted pages should be saved with the template.
The PageFormatStates enumeration has the following constants of type int.
SAVE_NONE = 0
Save no page format information.
SAVE_DOCUMENT = 1
Save the page format information for the page indicated by fTemplatePreferencesSaving.savePagePosition only.
SAVE_PAGE = 2
Save the page format information for each page.
PagePositions enumeration
Which page should be opened when the template is reloaded.
The PagePositions enumeration has the following constants of type int.
POSITION_START = 0
The first page in the template.
POSITION_CURRENT = 1
The current page in the template when it is saved.
POSITION_NONE = 2
No page will be opened.
SaveUTF8Modes enumeration
Which Unicode format to use when saving this template.
The SaveUTF8Modes enumeration has the following constants of type int.
SAVEUTF8_DEFAULT = 0
Use UCS-2 unless the -su command line parameter is set.
SAVEUTF8_NO = 1
Always save this template as UCS-2.
SAVEUTF8_YES = 2
Always save this template as UTF-8.
autosave attribute
Macro: tsavea
The amount of time in seconds to wait after the document is changed before saving. If set to 0 then auto save is turned off.
autosave
Access
read-write
Returns
int
autosaveFile attribute
Macro: tsavea
If set, this file will be used whenever auto save occurs.
autosaveFile
Access
read-write
Returns
fPath
autosaveIdle attribute
Macro: tsavea
If auto save is on, the amount of time in seconds that LD must have been idle before the auto save countdown starts.
autosaveIdle
Access
read-write
Returns
int
createBackupFiles attribute
Macro: tdspref
If true, the previous version of the template file will be backed up with the extension ".bak".
createBackupFiles
Access
read-write
Returns
boolean
saveFolderClear attribute
Macro: tdspref
If true and the document is saved to a folder, the folder will be deleted before saving.
saveFolderClear
Access
read-write
Returns
boolean
saveFolderTagManifest attribute
Macro: tdspref
If true and the document is saved to a folder, the tag properties and user data will be saved in the manifest and not in an external file.
saveFolderTagManifest
Access
read-write
Returns
boolean
savePageFormatState attribute
Macro: tdspref
How much information about the formatted pages should be saved with the template. Value is one of fTemplateSavingPreferences.PageFormatStates.
savePageFormatState
Access
read-write
Returns
int
savePagePosition attribute
Macro: tdspref, fde
Which page should be opened when the template is reloaded. Value is one of fTemplateSavingPreferences.PagePositions.
savePagePosition
Access
read-write
Returns
int
saveTagDebugState attribute
Macro: tdspref
If true, the state of the tag debugger will be saved with the template.
saveTagDebugState
Access
read-write
Returns
boolean
saveTemplateUTF8 attribute
Macro: tdspref
Which Unicode format to use when saving this template. Values are in fTemplatePreferencesSaving-SaveUTF8Modes.
saveTemplateUTF8
Access
read-write
Returns
int
saveTextRevision attribute
Macro: tdspref
If true, any revision markers will be saved with the template.
saveTextRevision
Access
read-write
Returns
boolean
saveTextUndo attribute
Macro: tdspref
If true, the undo information will be saved with the template.
saveTextUndo
Access
read-write
Returns
boolean