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.
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 APP 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
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
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