Documents: 2.1 Document Control Data Fields: GenDocumentControl Data

Up: GEOS SDK TechDocs | Up | Prev: 2 Document Control Data Fields | Next: 2.2 GenDocumentGroup Data

The GenDocumentControl handles interaction between the document control and the user. It maintains the File menu entries and manages the file selector. Its attributes all relate to these duties. A complete list of the attributes follows in GenDocumentControl Instance Data along with comments and the default values.

Some of these data fields can be examined but not set by the application. Data fields for purely internal use (which are neither examined, nor set, by applications) are not listed.

Code Display 13-1 GenDocumentControl Instance Data

/* The GDCI_documentToken field specifies the token characters and token ID of
 * files managed by this document control. All files created by the document
 * control will have these token characters, and the File Selector object will be
 * set to allow only such files to be selected. This attribute is ignored if DOS
 * files are being opened. */
    @instance GeodeToken			GDCI_documentToken = {};
/* GDCI_selectorType determines which files will be displayed by the File Selector 
 * generated by this object. Only one of the options may be set. By default, only
 * documents are visible. */
    @instance GenFileSelectorType				GDCI_selectorType = GFST_DOCUMENTS;
	/* Types available: 
	 *	GFST_DOCUMENTS, 			GFST_EXECUTABLES, 
	 * 	GFST_NON_GEOS_FILES, 			GFST_ALL_FILES */
/* GDCI_attrs specifies certain characteristics of the file to be opened. The
 * default setting is shown below. */
    @instance GenDocumentControlAttrs					GDCI_attrs = 
			((GDCM_SHARED_SINGLE << GDCA_MODE_OFFSET) |
			 GDCA_VM_FILE | 
			 GDCA_SUPPORTS_SAVE_AS_REVERT |
			 (GDCT_NEW << GDCA_CURRENT_TASK_OFFSET))
	/* Attributes available:
	 * GDCA_MODE: 
	 *	GDCM_VIEWER, 			GDCM_SHARED_SINGLE,
	 *	GDCM_SHARED_MULTIPLE
	 * GDCA_CURRENT_TASK: 
	 * 	GDCT_NONE, 			GDCT_NEW, 
	 * 	GDCT_OPEN, 			GDCT_USE_TEMPLATE, 
	 *	GDCT_SAVE_AS,			GDCT_COPY_TO,
	 *	GDCT_DIALOG,			GDCT_TYPE,
	 *	GDCT_PASSWORD
	 * Other fields: 
	 * 	GDCA_MULTIPLE_OPEN_FILES,				GDCA_DOS_FILE_DENY_WRITE,
	 *	GDCA_VM_FILE, 				GDCA_NATIVE,
	 * 	GDCA_SUPPORTS_SAVE_AS_REVERT,				GDCA_DOCUMENT_EXISTS,
	 *	GDCA_DO_NOT_SAVE_FILES
	 */
/* GDCI_features specifies certain extra features of the document control. The
 * default setting is shown below. */
    @instance GenDocumentControlFeatures					GDCI_features = 
			(GDCF_READ_ONLY_SUPPORTS_SAVE_AS_REVERT |
			 GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN |
			 GDCF_SUPPORTS_TEMPLATES |
			 GDCF_SUPPORTS_USER_SETTABLE_EMPTY_DOCUMENT |
			 GDCF_SUPPORTS_USER_MAKING_SHARED_DOCUMENTS |
			 GDCF_NAME_ON_PRIMARY);
	/* Flags available: 
	 *	GDCF_READ_ONLY_SUPPORTS_SAVE_AS_REVERT,
	 *	GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN, 
	 * 	GDCF_SUPPORTS_TEMPLATES,
	 *	GDCF_SUPPORTS_USER_SETTABLE_EMPTY_DOCUMENT,
	 *	GDCF_SUPPORTS_USER_SETTABLE_DEFAULT_DOCUMENT,
	 *	GDCF_SUPPORTS_USER_MAKING_SHARED_DOCUMENTS,
	 *	GDCF_NAME_ON_PRIMARY */
/* GDCI_enableDisableList specifies objects which should be enabled whenever a
 * document is opened and disabled when all documents are closed. The field is the
 * handle of a chunk containing a list of optrs to the objects to be enabled and
 * disabled. The default value is a null handle.*/
    @instance ChunkHandle			 	GDCI_enableDisableList;
/* The GDCI_openGroup, GDCI_importGroup, GDCI_useTemplateGroup, GDCI_saveAsGroup,
 * GDCI_exportGroup, and GDCI_userLevelGroup attributes hold optrs to groups of UI
 * objects to be added to the "Open," "Import," "Use Template," "Save As,"
 * "Export," and "User Level", dialog boxes, respectively. The GDCI_dialogGroup
 * field holds an optr to objects to be added to the opening dialog box. The optr
 * is to the head of a tree of UI objects. The top object in the tree should be
 * set "not usable." Default values are all null optrs. */
    @instance optr				GDCI_openGroup;
    @instance optr				GDCI_importGroup;
    @instance optr				GDCI_useTemplateGroup;
    @instance optr				GDCI_saveAsGroup;
    @instance optr				GDCI_exportGroup;
    @instance optr				GDCI_dialogGroup;
    @instance optr				GDCI_userLevelGroup;
/* If the GDCI_features field includes "displayNameOnPrimary" but no document is
 * open, the Primary's moniker is set to the string pointed to by the
 * GDCI_noNameText attribute. The default value is a null chunk handle. */
    @instance ChunkHandle				GDCI_noNameText;
/* If the GDCA_currentTask section of the GDCI_attrs field is set to
 * GDCT_NONE on startup, then the file specified by GDCI_defaultFile will be
 * opened (and, if necessary, created). The file is specified by a chunk handle of
 * a null-terminated string; this string should specify the file's path relative
 * to the SP_DOCUMENT standard path.The default value is a null chunk handle,
 * indicating that if the startup value of GDCA_currentTask is GDCT_NONE, no
 * documents should be opened. */
    @instance ChunkHandle 				GDCI_defaultFile;
/* GDCI_templateDir is the chunk handle of a null-terminated text string which
 * specifies a directory to hold template documents. The directory is specified
 * relative to SP_TEMPLATE. If not set by you, this defaults to the SP_TEMPLATE
 * standard path. */
    @instance ChunkHandle				GDCI_templateDir;
/* GDCI_documentGroup is an optr to the GenDocumentGroup object. You must set
 * this field. */
    @instance optr			GDCI_documentGroup;
/* GDCI_targetDocName is a character array. It is set to contain the name of
 * the current target file. This field is automatically updated by the document
 * control. */
    @instance FileLongName				GDCI_targetDocName = "";
/* The Document Control automatically displays a big dialog box at startup which
 * lets the user choose to create, open, etc. a file. Each option has a button
 * (with a picture) and an explanatory text. You can override the default graphic
 * or text by setting any of the following fields:
 */
    @instance ChunkHandle				GDCI_dialogNewText;
    @instance ChunkHandle				GDCI_dialogTemplateText;
    @instance ChunkHandle				GDCI_dialogOpenDefaultText
    @instance ChunkHandle				GDCI_dialogImportText;
    @instance ChunkHandle				GDCI_dialogOpenText;
    @instance ChunkHandle				GDCI_dialogUserLevelText;
    @instance @visMoniker				GDCI_dialogNewMoniker;
    @instance @visMoniker				GDCI_dialogTemplateMoniker;
    @instance @visMoniker				GDCI_dialogOpenDefaultMoniker
    @instance @visMoniker				GDCI_dialogImportMoniker;
    @instance @visMoniker				GDCI_dialogOpenMoniker;
    @instance @visMoniker				GDCI_dialogUserLevelMoniker;
 

The Document Token

GDCI_documentToken, MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN, MSG_GEN_DOCUMENT_GROUP_GET_TOKEN

The document control's file selector will display only those files whose document token matches the GenDocumentControl object's GDCI_documentToken attribute. All files created by the application will have the specified document tokens. There are no messages to alter the token attributes at run-time. (If the document control is used to manage DOS files, the file selector will show all non-GEOS files.)

A token is defined by a GeodeToken structure. The format of this structure is shown below. The first field, GT_chars , will vary for each document type. The second, GT_manufID , will be the same for the tokens of all applications and documents created by a given company.

typedef struct {
	char 		GT_chars[TOKEN_CHARS_LENGTH]; 
				/* TOKEN_CHARS_LENGTH = 4 */
	ManufacturerID 		GT_manufID;
				/* word-sized integer */
} GeodeToken;

The message MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN instructs the GenDocumentControl object to write a copy of the document token to a specified address. The message has one argument: the address of a GeodeToken . MSG_GEN_DOCUMENT_GROUP_GET_TOKEN functions identically, but it is sent to the GenDocumentGroup object.

You can also find out the application's token by sending GEN_DOCUMENT_CONTROL_GET_CREATOR or GEN_DOCUMENT_GROUP_GET_CREATOR to the appropriate object. The application's token will be used as the "creator token" for any documents created by the document control.

MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN

void 	MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN(
        GeodeToken *		token); /* address to copy token to */

This message gets the document token values for all documents created by this document control.

Source: Unrestricted.

Destination: Any GenDocumentControl object.

Parameters: token A pointer to an empty GeodeToken structure.

Return: The document GeodeToken is written to the variable whose address is passed.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_GROUP_GET_TOKEN

void 	MSG_GEN_DOCUMENT_GROUP_GET_TOKEN(
        GeodeToken *		token); /* address to copy token to */

This is the same as MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN , except that it is sent to the GenDocumentGroup object instead of the GenDocumentControl object.

Source: Unrestricted.

Destination: Any GenDocumentGroup object.

Parameters: token A pointer to an empty GeodeToken structure.

Return: The document GeodeToken is written to the variable whose address is passed.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_CONTROL_GET_CREATOR

void 	MSG_GEN_DOCUMENT_CONTROL_GET_CREATOR(
        GeodeToken *		token); /* address to copy token to */

This message gets the token for the application; this token is the "creator token" for all files created by the document control.

Source: Unrestricted.

Destination: Any GenDocumentControl object.

Parameters: token A pointer to an empty GeodeToken structure.

Return: The document GeodeToken is written to the variable whose address is passed.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_GROUP_GET_CREATOR

void 	MSG_GEN_DOCUMENT_GROUP_GET_CREATOR(
        GeodeToken *		token); /* address to copy token to */

This is the same as MSG_GEN_DOCUMENT_CONTROL_GET_CREATOR , except that it is sent to the GenDocumentGroup object instead of the GenDocumentControl object.

Source: Unrestricted.

Destination: Any GenDocumentGroup object.

Parameters: token A pointer to an empty GeodeToken structure.

Return: The document GeodeToken is written to the variable whose address is passed.

Interception: You should not subclass this message.

The GDCI_selectorType Field

GDCI_selectorType

The GDCI_selectorType field determines what files will be displayed by and can be opened with the file selector. The options are stored as a byte-sized enumerated type. The options are:

GFST_DOCUMENTS
This is the default option. The file selector will display those documents with the appropriate tokens.
GFST_EXECUTABLES
The file selector will display executable files as well as appropriate document files.
GFST_NON_GEOS_FILES
The file selector will display all non-GEOS files (and only non-GEOS files).
GFST_ALL_FILES
The file selector will display all files.

The GDCI_attrs Field

GDCI_attrs, MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS, MSG_GEN_DOCUMENT_GROUP_GET_UI_ATTRS

The GenDocumentControl object has eight attribute flags stored in the word-sized bitfield GDCI_attrs . They may be retrieved by sending MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS to the GenDocumentControl object or by sending MSG_GEN_DOCUMENT_GROUP_GET_UI_ATTRS to the GenDocumentGroup object. The attributes are set at coding time; there is no way for an application to change the attributes at run-time, although the GenDocumentControl will change some of the attributes to reflect its current state.

The attributes are

GDCA_MULTIPLE_OPEN_FILES
Allow several documents to be open at once. If this attribute is disabled, the "New" and "Open" triggers will be disabled when a document is open (however, see also the description of the flag GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN on GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN This feature is ignored if the attribute GDCA_MULTIPLE_OPEN_FILES is on. If GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN is on and GDCA_MULTIPLE_OPEN_FILES is off, the "New" and "Open" triggers are enabled when the doc ). This attribute defaults to off.
GDCA_MODE
This is a two-bit field. GDCA_MODE is a mask of all the bits in this field; the offset of this field is equal to the constant GDCA_MODE_OFFSET. The field has the following possible settings:
GDCM_VIEWER
All documents are opened in read-only mode; the New, Save, Save As, and Revert triggers are permanently disabled. Other applications can open the file for read/write access.
GDCM_SHARED_SINGLE
Documents are opened for reading and writing. When a document is open, it is marked "deny-write" so other applications can open the file only for read-only access. The user can mark a document as a "public" document, in which case the default is to open a file "read-only." The default GDCA_MODE setting is GDCM_SHARED_SINGLE.
GDCM_SHARED_MULTIPLE
This mode is designed for documents that can have multiple writers, such as multi-user databases. Documents are ordinarily opened as in GDCM_SHARED_SINGLE mode above; however, a user can designate a file as a "multi-user" file, which means that it can be opened by several applications at once for read/write access.
The default setting of the GDCA_MODE flag is GDCM_SHARED_SINGLE. If you want a different value, first clear the two-bit field, then set the new setting, like this:
GDCI_attrs = (@default & ~GDCA_MODE) \
	| (GDCM_VIEWER << GDCA_MODE_OFFSET);
Note that the GDCA_MODE attribute has a slightly different effect if the document control manages DOS files. For details, see GDCA_DOS_FILE_DENY_WRITE below.
GDCA_DOS_FILE_DENY_WRITE
This attribute does not matter for VM files. If a DOS file is opened while the GDCA_DOS_FILE_DENY_WRITE bit is set, no other application will be able to write to that file. This is true even if the DOS file was opened for read-only access; however, if the file is a multi-user document opened in "shared-multiple" mode, other applications will be able to write to it regardless of whether the GDCA_DOS_FILE_DENY_WRITE attribute is set. By default, GDCA_DOS_FILE_DENY_WRITE is off.
GDCA_VM_FILE
This attribute specifies whether the document control objects will open GEOS Virtual Memory files (if GDCA_VM_FILE is on), or DOS files (if GDCA_VM_FILE is off). The default value is on.
GDCA_NATIVE
If this bit is set and GDCA_VM_FILE is not set, documents will be stored in the format native to the file-system.
GDCA_SUPPORTS_SAVE_AS_REVERT
This attribute is ordinarily set only for GEOS files. If the attribute is on, the application will use the backup functionality of VM files to support "Save As" and "Revert" functionality. If the attribute is off, the file will be altered whenever it is updated to disk. The default value is on. DOS files do not normally support "Save As" and "Revert." Applications can implement "Save As" and "Revert" functionality for DOS files by defining a subclass of GenDocumentClass with handlers for MSG_GEN_DOCUMENT_PHYSICAL_SAVE_AS and MSG_GEN_DOCUMENT_PHYSICAL_REVERT , but this is not recommended. Ordinarily, this attribute should be off for DOS files.
GDCA_DOCUMENT_EXISTS
This attribute is set and maintained at run-time by the GenDocumentControl code. The attribute is on if at least one document is open.
GDCA_CURRENT_TASK
This three-bit attribute has a dual function: It determines the application's behavior at start-up, and it indicates what task the application is currently performing. The mask GDCA_CURRENT_TASK is a mask of all the bits in this field; the field's offset is equal to the constant GDCA_CURRENT_TASK_OFFSET. The possible settings are as follows:
GDCT_NONE
If a default file has been specified (see The GDCI_noNameText Field ), that file will be opened; otherwise, the application will start with no file opened.
GDCT_NEW
A new document will be created at startup. If the GDCF_DIALOG_BOX_FOR_NEW flag is set, a dialog box will be presented at startup.
GDCT_OPEN
The "Open File" dialog box will be presented at startup.
GDCT_USE_TEMPLATE
The "Use Template" dialog box will be presented at startup.
GDCT_SAVE_AS
This is not a valid initial setting. The GDCA_CURRENT_TASK field has this setting between when a user chooses the "Save As" command and when the document is saved.
GDCT_COPY_TO
This is not a valid initial setting. The GDCA_CURRENT_TASK field has this setting between when the user chooses the "Copy To" command and when the command has been fully executed.
GDCT_DIALOG
GDCT_TYPE
GDCT_PASSWORD
None of these are valid initial settings.

If a document is passed in to be opened at startup (as, for example, when a user launches an application by double-clicking a file created by the application), that file will be opened, and the initial setting of GDCA_CURRENT_TASK will be ignored. The document control automatically maintains this bitfield to correspond to whatever action the document control is currently taking. The application can find out what the document control is doing by reading the attributes and checking this field.

GDCA_DO_NOT_SAVE_FILES
If this bit is set, the application will not be able to save files. By setting this bit, you can turn your application into a fully-functioning demo.
GDCA_FORCE_DEMAND_PAGING
If this bit is set, the document will be paged with demand-paging, even if the system ordinarily forces all documents completely into memory.

MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS

GenDocumentControlAttrs 	MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS();

Use this message to find out what the GenDocumentControl object's GDCA_attrs flags are. The attributes cannot be changed by a message; they can only be read.

Source: Unrestricted.

Destination: Any GenDocumentControl object.

Parameters: None.

Return: Returns a word-length bitfield containing GDCA _attrs record.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_GROUP_GET_UI_ATTRS

GenDocumentControlAttrs 	MSG_GEN_DOCUMENT_GROUP_GET_UI_ATTRS();

This message is the same as the MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS message (see above) except that it is sent to the GenDocumentGroup object.

Source: Unrestricted.

Destination: Any GenDocumentGroup object.

Parameters: None.

Return: A word-length record containing the GDCA _attrs field.

Interception: You should not subclass this message.

The GDCI_features Flags

GDCI_features, MSG_GEN_DOCUMENT_CONTROL_GET_FEATURES, MSG_GEN_DOCUMENT_GROUP_GET_UI_FEATURES, MSG_GEN_CONTROL_CONFIGURE_FILE_SELECTOR

The GDCI_features attribute specifies whether certain optional functionality of the Document Control technology is enabled. The features are determined at coding time; there is no message to change features at run-time. To retrieve the features, send MSG_GEN_DOCUMENT_CONTROL_GET_FEATURES .

GDCF_READ_ONLY_SUPPORTS_SAVE_AS_REVERT
If this feature is on, the "Save As" and "Revert" triggers are enabled when read-only documents are opened. Once the user chooses "Save As," the new file will no longer be opened as "Read Only"; the "Save" trigger will be enabled. If this feature is off, "Save As" and "Revert" triggers are disabled for read-only files. By default, this feature is on.
GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN
This feature is ignored if the attribute GDCA_MULTIPLE_OPEN_FILES is on. If GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN is on and GDCA_MULTIPLE_OPEN_FILES is off, the "New" and "Open" triggers are enabled when the document is "clean" (i.e., the document has not been marked "dirty" since it was opened/created or saved); that is, "New" and "Open" are enabled whenever "Save" is disabled. If the user chooses "New" or "Open" when the document is "clean," the target document is closed and the new document is opened or created. If both GDCA_MULTIPLE_OPEN_FILES and GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN are off, the "New" and "Open" triggers are disabled whenever a document is open. By default, this attribute is on.
GDCF_SUPPORTS_TEMPLATES
If this feature is enabled, the user can save files as templates. If the user chooses the command "Use Template," a copy of the template is opened as a "new" document, and the template is left unchanged. If this feature is disabled, the application cannot create templates. By default, this feature is on.
GDCF_SUPPORTS_USER_SETTABLE_EMPTY_DOCUMENT
If this feature is enabled, the user can designate a file to be the model for all new documents. When the user chooses "New," this "model" document will be copied and the copy will be opened. By default, this feature is on.
GDCF_SUPPORTS_USER_SETTABLE_DEFAULT_DOCUMENT
If this attribute is on, the user can choose a default document (one which will automatically be opened when the application is launched). (See The GDCI_defaultFile Field .)
GDCF_SUPPORTS_USER_MAKING_SHARED_DOCUMENTS
If this attribute is on, the user can save a document as "shared," allowing several processes to access it at once. By default, the attribute is on.
GDCF_NAME_ON_PRIMARY
If this attribute is on, the name of the target document is displayed at the top of the Primary window. The GenDocumentControl object does this by changing the moniker of the GenPrimary object to the name of the target document. If there is no open document, the GenPrimary will display the string specified by the attribute GDCI_noNameText . By default, this attribute is on.

For an added degree of control, you can use MSG_GEN_DOCUMENT_CONTROL_CONFIGURE_FILE_SELECTOR to change the attributes of the document control's file selector.

MSG_GEN_DOCUMENT_CONTROL_GET_FEATURES

GenDocumentControlFeatures 	MSG_GEN_DOCUMENT_CONTROL_GET_FEATURES();

Use this message to retrieve the current GDCI_features flags. The flags cannot be changed at run-time.

Source: Unrestricted.

Destination: Any GenDocumentControl object.

Parameters: None.

Return: The GenDocumentControl's GDCI_features flags.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_GROUP_GET_UI_FEATURES

GenDocumentControlFeatures 	MSG_GEN_DOCUMENT_GROUP_GET_UI_FEATURES();

Use this message to retrieve the current GDCI_features flags. The flags cannot be changed at run-time.

Source: Unrestricted.

Destination: Any GenDocumentGroup object.

Parameters: None.

Return: The GenDocumentControl's GDCI_features flags.

Interception: You should not subclass this message.

MSG_GEN_DOCUMENT_CONTROL_CONFIGURE_FILE_SELECTOR

void 	MSG_GEN_DOCUMENT_CONTROL_CONFIGURE_FILE_SELECTOR(
        optr 		fileSelector, 
        word 		flags); /* GenDocumentControlAttrs */

Configure file selector. This message can be sub-classed to modify the behavior of the file selectors that the document control uses.

The GDCI_enableDisableList Field

GDCI_enableDisableList

The GenDocumentControl can be set to enable certain UI objects when documents are open. This is done using the GDCI_enableDisableList attribute. This attribute is the chunk handle of a list of object-pointers. Each of the referenced objects should start as disabled. Whenever a document is opened, a MSG_GEN_SET_ENABLED is sent to each object in the list. When the last document is closed, a MSG_GEN_SET_NOT_ENABLED is sent to each object in the list.

Adding to the Dialog Boxes

GDCI_openGroup, GDCI_importGroup, GDCI_useTemplateGroup, GDCI_saveAsGroup, GDCI_exportGroup, GDCI_dialogGroup, GDCI_userLevelGroup

The GenDocumentControl object manages the dialog boxes for many different user actions. The programmer can specify a tree of UI objects to be included with each of these dialog boxes. For example, to add a group of objects to the "Use Template" dialog box, the programmer should put them all in a tree (perhaps by making them all children of a GenInteraction object) and store an object-pointer to the head of the tree in the GDCI_useTemplateGroup attribute. The top object in the tree should be set "not usable."

The GDCI_noNameText Field

GDCI_noNameText

The GenDocumentControl object can be set to display the name of the current target document in the moniker of the GenPrimary window. If this feature is enabled, and no document is opened, the GenPrimary will have its moniker change to the string specified by GDCI_noNameText . If the feature GDCF_DISPLAY_NAME_ON_PRIMARY is disabled, GDCI_noNameText is ignored.

The GDCI_defaultFile Field

GDCI_defaultFile

If the attribute GDCA_CURRENT_TASK is initially set to GDCT_NONE and a default file is specified, the default file is automatically opened at startup. If GDCA_CURRENT_TASK is not initially set to GDCT_NONE, this attribute is ignored. This field holds the chunk handle of a null-terminated string. The string specifies the file's path relative to the SP_DOCUMENT. If the feature GDCF_SUPPORTS_USER_SETTABLE_DEFAULT_DOCUMENT is enabled, this attribute can be changed by the user at run-time. If the file specified does not exist, it is created as an empty document; if the document exists but cannot be opened, no file is opened at startup. If the named document exists but is inappropriate (e.g. it was created by another application), no document is opened at startup.

The GDCI_templateDir Field

GDCI_templateDir

If templates are supported, this is the default directory for opening and saving them. This string specifies a subdirectory to the standard path SP_TEMPLATE. If not explicitly set in the source code, the template directory will default to SP_TEMPLATE.

The GDCI_documentGroup Field

GDCI_documentGroup

The GenDocumentControl and the GenDocumentGroup communicate with each other via messages. To do this, each needs the optr of the other. GDCI _documentGroup is the optr of the GenDocumentGroup object for this application. It is set in the source code and may not be changed at run time.

The GDCI_targetDocName Field

GDCI_targetDocName

This attribute contains the name of the target document. The document control automatically sets and updates this field when necessary.


Up: GEOS SDK TechDocs | Up | Prev: 2 Document Control Data Fields | Next: 2.2 GenDocumentGroup Data