epoc32/include/frmconst.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     4
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// FOR INFORMATION ONLY (CONTAINS PANIC NUMBERS, ETC.) - NOT PART OF INTERFACE
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
#ifndef __FRMCONST_H__
williamr@2
    19
#define __FRMCONST_H__
williamr@2
    20
williamr@2
    21
#include <w32std.h>
williamr@2
    22
williamr@2
    23
/** 
williamr@2
    24
Visible versions of control characters.
williamr@2
    25
@internalComponent
williamr@2
    26
*/
williamr@2
    27
const TText KVisibleParagraphBreak = 0x00B6;		// paragraph sign (pilcrow)
williamr@2
    28
const TText KVisibleLineBreak = 0x2193;				// down arrow
williamr@2
    29
const TText KVisibleNonBreakSpace = 0x00B0;			// degree sign
williamr@2
    30
const TText KVisiblePotentialHyphen = 0x00AC;		// not sign
williamr@2
    31
const TText KVisibleNonBreakHyphen = 0x007E;		// spacing tilde
williamr@2
    32
const TText KVisibleSpace = 0x00B7;					// middle dot
williamr@2
    33
const TText KVisibleTab = 0x2192;					// right arrow
williamr@2
    34
const TText KVisiblePicture = 0x25A3;				// white square containing small black square
williamr@2
    35
williamr@2
    36
/**
williamr@2
    37
Control characters to allow or inhibit line breaks.
williamr@2
    38
@internalComponent
williamr@2
    39
*/
williamr@2
    40
const TText KZeroWidthSpace = 0x200B;
williamr@2
    41
const TText KZeroWidthNoBreakSpace = 0xFEFF;
williamr@2
    42
williamr@2
    43
/**
williamr@2
    44
@publishedAll
williamr@2
    45
@released
williamr@2
    46
*/
williamr@2
    47
enum TFormPanic
williamr@2
    48
	{
williamr@2
    49
	/** Not used 
williamr@2
    50
	*/
williamr@2
    51
	EFDummy = 0,				
williamr@2
    52
williamr@2
    53
	// Used in ASSERT_ALWAYS
williamr@2
    54
williamr@2
    55
	// Parameter errors
williamr@2
    56
	/** Document handle NULL has been passed in
williamr@2
    57
	*/
williamr@2
    58
	EFInvalidDocument = 200,	
williamr@2
    59
	/** A NULL layout handle has been passed in 
williamr@2
    60
	*/
williamr@2
    61
	EFInvalidLayout,			
williamr@2
    62
	/** The character edit type was unknown or incompatible with the format changed value 
williamr@2
    63
	*/
williamr@2
    64
	EFBadCharacterEditType,		
williamr@2
    65
	/** The horizontal scroll jump value has been set outside the allowable range (0,9999) 
williamr@2
    66
	*/
williamr@2
    67
	EFInvalidJumpValue,			
williamr@2
    68
williamr@2
    69
	// Document
williamr@2
    70
	/** No or negative document position specified or greater than current document length 
williamr@2
    71
	*/
williamr@2
    72
	EFInvalidDocPos = 300,		
williamr@2
    73
williamr@2
    74
	// Drawing
williamr@2
    75
	/** The function CTextView::SetLineCursorBitmap has not been called even though a line cursor is being used 
williamr@2
    76
	*/
williamr@2
    77
	EFLineCursorBitmapNotSet = 400,	
williamr@2
    78
williamr@2
    79
	// Pagination
williamr@2
    80
	/** No document to paginate 
williamr@2
    81
	*/
williamr@2
    82
	EFDocumentToPaginateNotSet = 500, 
williamr@2
    83
	/** Appending zero or negative characters per page to page list 
williamr@2
    84
	*/
williamr@2
    85
	EFInvalidNumberCharsOnPage,	
williamr@2
    86
	/** Page list should not be empty at this point 
williamr@2
    87
	*/
williamr@2
    88
	EFPageListEmpty,			
williamr@2
    89
williamr@2
    90
	// Printing
williamr@2
    91
	/** The array containing the number of characters per page has not been set or is defective 
williamr@2
    92
	*/
williamr@2
    93
	EFInvalidPageList = 600,	
williamr@2
    94
	/** A page requested that is outside the page list given 
williamr@2
    95
	*/
williamr@2
    96
	EFInvalidPageNumber,		 
williamr@2
    97
williamr@2
    98
	// Used only in ASSERT_DEBUG
williamr@2
    99
williamr@2
   100
	// Errors in internal format information
williamr@2
   101
	/** Format doesn't fill band but is not to end of document 
williamr@2
   102
	*/
williamr@2
   103
	EFNotEnoughFormat = 700,	
williamr@2
   104
	/** A lines says it has height zero 
williamr@2
   105
	*/
williamr@2
   106
	EFZeroHeightLine,			
williamr@2
   107
	/** The selected range flag is on but the selection has zero length 
williamr@2
   108
	*/
williamr@2
   109
	EFSelectedRangeZeroLen,		
williamr@2
   110
	/** The cursor is a document position that is outside the formatted range 
williamr@2
   111
	*/
williamr@2
   112
	EFCursorNotInCurrentFormat,	
williamr@2
   113
	/** GetLineRect pixel that was asked for 
williamr@2
   114
	*/
williamr@2
   115
	EFPixelNotInFormattedLine,	
williamr@2
   116
	/** The complete scroll should have been possible 
williamr@2
   117
	*/
williamr@2
   118
 	EFScrollCurtailed,			
williamr@2
   119
williamr@2
   120
	// Logic error during format process
williamr@2
   121
	/** Should not be calling HandleCharEdit when there is a selection 
williamr@2
   122
	*/
williamr@2
   123
	EFSelectionCannotCharEdit = 800,	
williamr@2
   124
	/** This function should not be called when the format is out of date 
williamr@2
   125
	*/
williamr@2
   126
	EFFormatOutOfDate,			
williamr@2
   127
	/** Background formatting should not be going on 
williamr@2
   128
	*/
williamr@2
   129
	EFBackgroundFormatting,		
williamr@2
   130
williamr@2
   131
	// Scrolling errors
williamr@2
   132
	/** The request for a scroll returned zero as the ammount to scroll by 
williamr@2
   133
	*/
williamr@2
   134
	EFScrollByZero1 = 900,		
williamr@2
   135
	/** A routine that does the scrolling is called with a value of zero or one having wrong sign 
williamr@2
   136
	*/
williamr@2
   137
	EFScrollByZero2,			
williamr@2
   138
	/** Algorithmic or assumption error in the scroll routine 
williamr@2
   139
	*/
williamr@2
   140
	EFScrollError,				
williamr@2
   141
	/** Error when scrolling text down 
williamr@2
   142
	*/
williamr@2
   143
	EFScrollDownError,			
williamr@2
   144
	/** Error when scrolling text up 
williamr@2
   145
	*/
williamr@2
   146
	EFScrollUpError,			
williamr@2
   147
	/** A scrolling routine was expecting a certain type of scroll and got a different one 
williamr@2
   148
	*/
williamr@2
   149
	EFInvalidScrollingType,		
williamr@2
   150
williamr@2
   151
	// Out of memory
williamr@2
   152
	/** Cannot do this when in no memory mode 
williamr@2
   153
	*/
williamr@2
   154
	EFNoMemory = 1000,			
williamr@2
   155
	/** Trying to recover from no_memory when no no_memory condition has occured 
williamr@2
   156
	*/
williamr@2
   157
	EFRecoverNoMemory,			
williamr@2
   158
williamr@2
   159
	// Cursor
williamr@2
   160
	/** The cursor has been moved to a position off the screen 
williamr@2
   161
	*/
williamr@2
   162
	EFCursorOffDisplay = 1100,	
williamr@2
   163
	/** Attempt to access the cursor navigation policy object when its pointer is 0 
williamr@2
   164
	*/
williamr@2
   165
	EFNoCursorPositionPolicy,	
williamr@2
   166
	/** Invalid positioning hint value supplied to API 
williamr@2
   167
	*/
williamr@2
   168
	EFPosHintInvalid,			
williamr@2
   169
	/** Curosr APIs found formatting not available for position supplied. 
williamr@2
   170
	*/
williamr@2
   171
	EFPositionNotFormatted,		
williamr@2
   172
	/** The document position was out of range for the current source document. 
williamr@2
   173
	*/
williamr@2
   174
	EFPositionInvalid,			
williamr@2
   175
williamr@2
   176
	// Drawing
williamr@2
   177
	/** Trying to toggle the highlight on part of the screen when the selection is not visible 
williamr@2
   178
	*/
williamr@2
   179
	EFSelectionNotVisible = 1200, 
williamr@2
   180
	/** Clearing bottom partial line when not needed
williamr@2
   181
	*/
williamr@2
   182
 	EFPartialLineClearError,    
williamr@2
   183
	/** The routine that does the display has been passed a null pointer to a graphics context 
williamr@2
   184
	*/
williamr@2
   185
	EFGcNotSet,					
williamr@2
   186
williamr@2
   187
	//Internal Coding Errors	   
williamr@2
   188
	/** SetViewL has put the text at the wrong vertical height 
williamr@2
   189
	*/
williamr@2
   190
	EFViewNotPositionedCorrectly = 1300, 
williamr@2
   191
	/** The function call should not leave in this situation 
williamr@2
   192
	*/
williamr@2
   193
	EFShouldNotLeave,			
williamr@2
   194
	/** Trying to move cursor using wrong function call 
williamr@2
   195
	*/
williamr@2
   196
	EFIncorrectCursorMovement,	
williamr@2
   197
	/** Should be current picture frame 
williamr@2
   198
	*/
williamr@2
   199
	EFNoPictureFrame,			
williamr@2
   200
	/** A value of a system constant has changed to a value that has broken this code 
williamr@2
   201
	*/
williamr@2
   202
	EFSystemConstantsChanged	
williamr@2
   203
	};
williamr@2
   204
williamr@2
   205
/**
williamr@2
   206
@internalComponent
williamr@2
   207
*/
williamr@2
   208
void FormPanic(TFormPanic aPanic);
williamr@2
   209
williamr@2
   210
williamr@2
   211
enum TCursorMove
williamr@2
   212
/**
williamr@2
   213
This enum holds all the allowed movements of the document cursor by this
williamr@2
   214
cursor positioning framework.
williamr@2
   215
@publishedPartner
williamr@2
   216
@released
williamr@2
   217
*/
williamr@2
   218
	{
williamr@2
   219
	/** No cursor movement 
williamr@2
   220
	*/
williamr@2
   221
	ECursNoMovement,
williamr@2
   222
    /** Single character cursor movement to the left 
williamr@2
   223
    */
williamr@2
   224
    ECursLeft,
williamr@2
   225
    /** Single character cursor movement to the right 
williamr@2
   226
    */
williamr@2
   227
    ECursRight,
williamr@2
   228
    /** Line up cursor movement 
williamr@2
   229
    */
williamr@2
   230
    ECursLineUp,
williamr@2
   231
    /** Line down cursor movement 
williamr@2
   232
    */
williamr@2
   233
    ECursLineDown,
williamr@2
   234
    /** Not used, present for backwards compatibility for page movement 
williamr@2
   235
    */
williamr@2
   236
    ECursReserved1,
williamr@2
   237
    ECursReserved2,
williamr@2
   238
    /** Cursor movement to line start 
williamr@2
   239
    */
williamr@2
   240
    ECursLineBegin,
williamr@2
   241
    /** Cursor movement to line end 
williamr@2
   242
    */
williamr@2
   243
    ECursLineEnd
williamr@2
   244
	};
williamr@2
   245
williamr@2
   246
williamr@2
   247
#endif // __FRMCONST_H__