1 /************************************************************************/
2 /*									*/
3 /*  Geometry and extra descriptive information on selections.		*/
4 /*									*/
5 /************************************************************************/
6 
7 #   include	"docLayoutConfig.h"
8 
9 #   include	<appDebugon.h>
10 
11 #   include	"docSelectionGeometry.h"
12 
13 /************************************************************************/
14 /*									*/
15 /*  Initialise Position/Selection.					*/
16 /*									*/
17 /************************************************************************/
18 
docInitPositionGeometry(PositionGeometry * pg)19 void docInitPositionGeometry(	PositionGeometry *		pg )
20     {
21     pg->pgLine= 0;
22     pg->pgPositionFlags= 0;
23 
24     pg->pgXTwips= -1;
25     pg->pgXPixels= -1;
26     docInitLayoutPosition( &pg->pgTopPosition );
27     docInitLayoutPosition( &pg->pgBasePosition );
28     docInitLayoutPosition( &pg->pgBottomPosition );
29 
30     pg->pgParaFrameX0= 0;
31     pg->pgParaFrameX1= 0;
32 
33     pg->pgBlockFrameX0= 0;
34     pg->pgBlockFrameX1= 0;
35 
36     return;
37     }
38 
docInitSelectionGeometry(SelectionGeometry * sg)39 void docInitSelectionGeometry(	SelectionGeometry *		sg )
40     {
41     geoInitRectangle( &(sg->sgRectangle) );
42 
43     docInitPositionGeometry( &(sg->sgHead) );
44     docInitPositionGeometry( &(sg->sgTail) );
45     docInitPositionGeometry( &(sg->sgAnchor) );
46     }
47 
48