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

	Copyright (c) Geoworks 1994 -- All Rights Reserved

PROJECT:	GEOS
MODULE:		NotesEdit Viewer Library
FILE:		nedit.def

AUTHOR:		Skarpi Hedinsson, Oct 18, 1994

MACROS:
	Name			Description
	----			-----------

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	SH	10/18/94   	Initial revision


DESCRIPTION:
	This file contains the definitions for the library.  It is included
both by the library and by users of the library.  When included by the library,
the symbol "_DECLARER_" must be true.
		
	$Id: nedit.def,v 1.1 97/04/04 14:21:56 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetDef __NEDIT

StartLibrary	nedit

;---------------------------------------------------------------------------
;  Exported functions
;---------------------------------------------------------------------------
global	NotesEditViewerOpen:far
global	NotesEditViewerDetach:far
global	NotesEditViewerChangeDocument:far
global	NotesEditViewerClose:far

;---------------------------------------------------------------------------
;  Constants
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;  Classes
;---------------------------------------------------------------------------
NotesEditControlClass	class	ViewerControlClass

	NotesEditControlFeatures	record
		NECF_STYLES:1
	NotesEditControlFeatures	end

	NEC_DEFAULT_FEATURES	equ mask NECF_STYLES

	MSG_NEC_CREATE_NOTE_FROM_READ_ONLY_DOC	message
	; 
	; This message is sent when a user wants to convert a native
	; file into a NOTE document.
	;
	; Pass: nothing
	; Return: ax - non-zero if conversion failed
	; Destroyed: cx, dx, bp
	;

	MSG_NEC_MARGINS_DIALOG_VISIBILITY	message
	; 
	; This message is sent when the styles-margins dialog is opened or
	; closed
	;
	; Pass: bp - non-zero if opening
	; Return: nothing
	; Destroyed: ax, cx, dx, bp
	;

	ATTR_NOTES_EDITOR_USE_NOTEBOOK_SETTINGS		vardata
	;
	; If this attribute is set the notes editor will load the default
	; font, font size and page margins from the .ini file.  These default
	; settings are changed in the settings dialog of the notebook apps.
	;

	TEMP_VIEWER_CONTROL_STATE	vardata	ViewerControlState
	;
	; Used to store ViewerControlState of the notes editor between
	; detach and attach.
	;

	ATTR_NOTES_EDITOR_SINGLE_TEXT_ATTRIBUTE		vardata
	;
	; When used the editor only supports the default font and point size.
	; (URW Sans, 12 point).  The user cannot define multiple attributes
	; on the text.  Multiple attributes are removed from text pasted into
	; the editor.
	;

	TEMP_NOTES_EDIT_OLD_UNDO_CONTEXT		vardata	dword
	;
	; Internal: The old undo context before our object set a new one.
	;	

	HINT_NOTES_EDIT_NO_UNDO				vardata
	; 
	; If present, the document editor won't support undo. Useful
	; for dual-threaded apps which hang because of undo deadlock
	; synchronization. 
	;

	ATTR_NOTES_EDIT_NO_COPY_DIALOG			vardata
	;
	; If present, when the user attempts to edit
	; a read-only or native DOS document, instead of popping
	; up a dialog offering to copy the document to a writable
	; doc in Own Texts, the input will simply be thrown away.
	;

	NECI_largeTextInit		word
	; A flag that if TRUE indicates that the large text object has
	; been initialized.
	;

NotesEditControlClass	endc	

;---------------------------------------------------------------------------
;  Structures
;---------------------------------------------------------------------------

EndLibrary	nedit

