File: docFrameProperties.c

package info (click to toggle)
ted 2.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 11,064 kB
  • ctags: 13,935
  • sloc: ansic: 120,446; makefile: 7,469; sh: 253
file content (46 lines) | stat: -rw-r--r-- 1,202 bytes parent folder | download
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
/************************************************************************/
/*									*/
/*  Positioned Objects and Frames					*/
/*									*/
/************************************************************************/

#   include	"tedConfig.h"

#   include	<stdlib.h>
#   include	<string.h>
#   include	<stdio.h>

#   include	<appDebugon.h>

#   include	"docFrameProperties.h"

/************************************************************************/
/*									*/
/*  Manage text frame properties.					*/
/*									*/
/************************************************************************/

void docInitTextFrameProperties(	TextFrameProperties *	tfp )
    {
    tfp->tfpFrameWidthTwips= 0;
    tfp->tfpFrameHeightTwips= 0;

    tfp->tfpFrameXTwips= 0;
    tfp->tfpFrameYTwips= 0;

    tfp->tfpDistanceFromTextTwips= 0;
    tfp->tfpHorDistanceFromTextTwips= 0;
    tfp->tfpVerDistanceFromTextTwips= 0;

    tfp->tfpHorizontalFrameReference= HFRphCOL;
    tfp->tfpHorizontalFrameAlignment= HFAposXL;

    tfp->tfpVerticalFrameReference= VFRpvMRG;
    tfp->tfpVerticalFrameAlignment= VFAposYIL;
    tfp->tfpFrameLockedToParagraph= 0;

    tfp->tfpFrameWrapStyle= FWSwrapWRAP;

    return;
    }