COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	Copyright (c) GeoWorks 1992 -- All Rights Reserved

PROJECT:	GEOS
MODULE:		Dictionary
FILE:		dict.def


REVISION HISTORY:
	
	Name	Date		Description
	----	----		-----------
	tyj	12/92		initial revision


DESCRIPTION:
	Definitions for users of the Dict library.
		
	$Id: dict.def,v 1.1 97/04/04 14:24:59 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@

SetDef __DICT

StartLibrary	dict
UseLib Objects/gCtrlC.def
UseLib Objects/vTextC.def


;*****************************************************************************
;		DictControlClass
;*****************************************************************************
;
; Messages sent out:
; MSG_THES_GET_SELECTED_WORD (a MetaSearchSpellMessage)
; MSG_THES_SELECT_WORD (a MetaSearchSpellMessage)
;
; Notification types responded to:
; MANUFACTURER_ID_GEOWORKS.GWNT_SPELL_ENABLE_CHANGE
; MANUFACTURER_ID_GEOWORKS.GWNT_SELECT_STATE_CHANGE
;
; GenApplication GCN lists to be placed on:
; GAGCNLT_SELF_LOAD_OPTIONS
;

DictControlClass	class	GenControlClass

;-----------------------------------------------------------------------------
;		Methods
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
;		Internal methods
;-----------------------------------------------------------------------------

MSG_DC_LOOKUP	message

MSG_DC_MATCH	message

MSG_DC_SPELL	message

MSG_DC_WILDCARD	message

MSG_DC_SEARCH	message

MSG_DC_ANAGRAMS	message

MSG_DC_DEFINITION_SELECTED message

MSG_DC_RETRIEVAL_TYPE message

MSG_DC_PARTS_OF_SPEECH message

MSG_DC_RETRIEVE message

MSG_DC_OPTION message

MSG_DC_GET_DEFINITION_MONIKER message

;-----------------------------------------------------------------------------
;		Constants & Structures
;-----------------------------------------------------------------------------


DICT_CHARS_PER_LINE = 60
DICT_LINES_OF_TEXT = 7
DICT_MIN_MIN_ANAGRAM_SIZE = 1
DICT_MAX_MIN_ANAGRAM_SIZE = 16

; Masks for DictBooleanOptions

DictBooleanOptionMasks record
	DBOM_MIN_ANAGRAM_SIZE:1
	DBOM_CAPITALS_MATTER:1
	DBOM_ALT_SPELLINGS:1
DictBooleanOptionMasks end

; Identifiers for DictRetrievalList

DictRetrievalListType etype word
	DRLM_DICT_FULL_ITEM		enum DictRetrievalListType
	DRLM_DICT_DEFINITION_ITEM	enum DictRetrievalListType
	DRLM_DICT_PARTS_OF_SPEECH_ITEM	enum DictRetrievalListType

; Identifiers for DictPartsOfSpeechList

DictPartsOfSpeechMask	record
	DPOST_DICT_NOUN_BOOLEAN:1	
	DPOST_DICT_VERB_BOOLEAN:1
	DPOST_DICT_ADJECTIVE_BOOLEAN:1	
	DPOST_DICT_ADVERB_BOOLEAN:1
DictPartsOfSpeechMask end

; Masks for the dictionary status word

DictStatusFlags	record
	DSF_DOING_COPY:1
	DSF_SELECTION_EXISTS:1
DictStatusFlags	end

; Features flags (used with ATTR_GEN_CONTROL_REQUIRE_UI and
; ATTR_GEN_CONTROL_PROHIBIT_UI)

DictFeatures	record
	DF_DICT:1
DictFeatures	end

; Toolbox features flags (used with ATTR_GEN_CONTROL_REQUIRE_TOOLBOX_UI and
; ATTR_GEN_CONTROL_PROHIBIT_TOOLBOX_UI)

DictToolboxFeatures	record
	DTF_DICT:1
DictToolboxFeatures	end

DC_GCM_FEATURES equ mask DF_DICT
DC_GCM_TOOLBOX_FEATURES equ mask DTF_DICT

;-----------------------------------------------------------------------------
;		Instance Data
;-----------------------------------------------------------------------------

DCI_status		word

DictControlClass	endc

EndLibrary dict



