1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
/************************************************************************/
/* */
/* Definitions relating to rulers. */
/* */
/************************************************************************/
# include <appUnit.h>
# include <appFrame.h>
# include <appRuler.h>
# include "docBuf.h"
typedef struct ColumnSeparator
{
int csX0;
int csX1;
} ColumnSeparator;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void * tedMakeTopRuler( int height,
double magnifiedPixelsPerTwip,
double magnification,
int leftRulerWidth,
int rightRulerWidth,
int docX0,
int docX1,
int minVisible,
int maxVisible,
int rulerC1,
const char * rulerFont,
int whatUnit );
extern void * tedMakeLeftRuler( int width,
double magnifiedPixelsPerTwip,
double magnification,
int minUnused,
int maxUnused,
int docY0,
int docY1,
int docVisY0,
int docVisY1,
int rulerC1,
const char * rulerFont,
int whatUnit,
int pageStep,
const char * tlrPageFormat );
extern void tedFreeHorizontalRuler( void * voidttr );
extern void tedFreeVerticalRuler( void * voidtlr );
extern APP_EVENT_HANDLER( tedRedrawHorizontalRuler, w, voidttr, event );
extern APP_EVENT_HANDLER( tedRedrawVerticalRuler, w, voidtlr, event );
extern void tedScrollHorizontalRuler( void * voidttr,
APP_WIDGET w,
int d );
extern void tedSetHorizontalRulerRange( void * voidttr,
APP_WIDGET w,
int docVisX0,
int docVisX1,
int docBackX1 );
extern void tedAdaptHorizontalRuler( void * voidttr,
APP_WIDGET w,
int docX0,
int docX1,
int firstIndent,
int leftIndent,
int rightIndent,
int rulerC1,
int tabCount,
TabStop * tabStops );
extern void tedHorizontalRulerTrackMouse( int * pFirstIndent,
int * pLeftIndent,
int * pRightIndent,
int * pTabCount,
TabStop ** pTabStops,
int * pCsCount,
ColumnSeparator ** pCs,
int * pProperty,
APP_WIDGET w,
EditApplication * ea,
APP_EVENT * downEvent,
void * voidttr,
void * voided,
DragHair dragHair );
extern APP_EVENT_HANDLER( tedHorizontalRulerConfigure, w, voidttr, event );
extern APP_EVENT_HANDLER( tedVerticalRulerConfigure, w, voidtlr, event );
extern int tedSetRulerColumns( APP_WIDGET w,
void * voidttr,
int colX0,
int colX1,
ColumnSeparator * cs,
int csCount );
extern void tedSetLeftRulerRange( void * voidtr,
APP_WIDGET w,
int docVisV0,
int docVisV1,
int docBackV1 );
extern void tedScrollLeftRuler( void * voidtr,
APP_WIDGET w,
int d );
extern void tedAdaptLeftRuler( void * voidtlr,
APP_WIDGET w,
int visisbleC0,
int visisbleC1,
int pageStep );
|