mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-14 02:29:28 +00:00
1 line
14 KiB
C
1 line
14 KiB
C
|
/********************************************
*
* TextEdit Tool Set
*
* Copyright Apple Computer, Inc.1986-90
* All Rights Reserved
*
* Copyright 1992, Byte Works, Inc.
*
********************************************/
#ifndef __TYPES__
#include <TYPES.h>
#endif
#ifndef __TEXTEDIT__
#define __TEXTEDIT__
/* Error Codes */
#define teAlreadyStarted 0x2201
#define teNotStarted 0x2202
#define teInvalidHandle 0x2203
#define teInvalidVerb 0x2204
#define teInvalidFlag 0x2205
#define teInvalidPCount 0x2206
#define teInvalidRect 0x2207
#define teBufferOverflow 0x2208
#define teInvalidLine 0x2209
#define teInvalidCall 0x220A
/* TE Verbs */
#define NullVerb 0x0000
#define PStringVerb 0x0001
#define CStringVerb 0x0002
#define C1InputVerb 0x0003
#define C1OutputVerb 0x0004
#define HandleVerb 0x0005
#define PointerVerb 0x0006
#define NewPStringVerb 0x0007
#define fEqualLineSpacing 0x8000
#define fShowInvisibles 0x4000
#define teInvalidDescriptor 0x2204
#define teInvalidParameter 0x220B
#define teInvalidTextBox2 0x220C
#define teNeedsTools 0x220D /* 8717 */
#define teEqualLineSpacing 0x8000
#define teShowInvisibles 0x4000
/* Justification Values */
#define leftJust 0x0000
#define rightJust 0xFFFF
#define centerJust 0x0001
#define fullJust 0x0002
/* TERuler.tabType Codes */
#define noTabs 0x0000
#define stdTabs 0x0001 /* Tabs every tabTerminator pixels */
#define absTabs 0x0002 /* Tabs at absolute location specified by theTabs array */
/* TEParamBlock.flags Codes */
#define fCtlInvis 0x0080
#define fRecordDirty 0x0040
/* TE Tab Codes */
#define teLeftTab 0x0000
#define teCenterTab 0x0001
#define teRightTab 0x0002
#define teDecimalTab 0x0003
/* TEParamBlock.textFlags Codes */
#define fNotControl 0x80000000L /* TextEdit record is not a control */
#define fSingleFormat 0x40000000L /* Only one ruler is allowed for record */
#define fSingleStyle 0x20000000L /* Only one style is allowed for record */
#define fNoWordWrap 0x10000000L /* No word wrap is performed */
#define fNoScroll 0x08000000L /* The text cannot scroll */
#define fReadOnly 0x04000000L /* The text cannot be edited */
#define fSmartCutPaste 0x02000000L /* Record supports intelligent cut and paste */
#define fTabSwitch 0x01000000L /* Tab key switches user to next TextEdit record on the screen */
#define fDrawBounds 0x00800000L /* TextEdit draw a box around text */
#define fColorHilight 0x00400000L /* Use color table for highlighting */
#define fGrowRuler 0x00200000L /* Adjust right margin whenever window size changes */
#define fDisableSelection 0x00100000L /* User cannot select or edit text */
#define fDrawInactiveSelection 0x00080000L /* TextEdit displays a box around an inactive selection */
/* Descriptor Codes */
#define teCtlColorIsPtr 0x0000
#define teCtlColorIsHandle 0x0004
#define teCtlColorIsResource 0x0008
#define teCtlStyleIsPtr 0x0000
#define teCtlStyleIsHandle 0x0001
#define teCtlStyleIsResource 0x0002
#define teRefIsPtr 0x0000
#define teRefIsHandle 0x0001
#define teRefIsResource 0x0002
#define teRefIsNewHandle 0x0003
#define teDataIsPString 0x0000
#define teDataIsCString 0x0001
#define teDataIsC1Input 0x0002
#define teDataIsC1Output 0x0003
#define teDataIsTextBox2 0x0004
#define teDataIsTextBlock 0x0005
#define teTextIsPtr 0x0000
#define teTextIsHandle 0x0008
#define teTextIsResource 0x0010
#define teTextIsNewHandle 0x0018
/* TEGetLastError clearFlag Codes */
#define fLeaveError 0x0000 /* Leave the last error code intact */
#define fClearError 0xFFFF /* Clear the last error code */
/* Other Constants */
#define teInvis 0x4000
#define tePartialLines 0x8000L
#define teDontDraw 0x4000
#define teUseFont 0x0020
#define teUseSize 0x0010
#define teUseForeColor 0x0008
#define teUseBackColor 0x0004
#define teUseUserData 0x0002
#define teUseAttributes 0x0001
#define teReplaceFont 0x0040
#define teReplaceSize 0x0020
#define teReplaceForeColor 0x0010
#define teReplaceBackColor 0x0008
#define teReplaceUserField 0x0004
#def
|