File: tp.h

package info (click to toggle)
udo 6.4.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,680 kB
  • sloc: ansic: 42,702; makefile: 81; cpp: 19
file content (144 lines) | stat: -rw-r--r-- 4,516 bytes parent folder | download | duplicates (7)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*	############################################################
	# @(#) tp.h
	# @(#)
	# @(#) Copyright (c) 1995-2001 by Dirk Hagedorn
	# @(#) Dirk Hagedorn (udo@dirk-hagedorn.de)
	#
	# This program is free software; you can redistribute it and/or
	# modify it under the terms of the GNU General Public License
	# as published by the Free Software Foundation; either version 2
	# of the License, or (at your option) any later version.
	# 
	# This program is distributed in the hope that it will be useful,
	# but WITHOUT ANY WARRANTY; without even the implied warranty of
	# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	# GNU General Public License for more details.
	# 
	# You should have received a copy of the GNU General Public License
	# along with this program; if not, write to the Free Software
	# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
	# 
	############################################################	*/

/*	############################################################
	# Typen
	############################################################	*/

#define	MAXADDRESS	20
#define MAXPAPERSIZE 6 /* New in r6pl15 [NHz] */


#ifndef UDO_TP_H
#define UDO_TP_H

/*	--------------------------------------------------
	Titelseite
	--------------------------------------------------	*/
typedef struct _titledata			/* ---- Titelseiteninfos ----		*/
{
	char	*title;					/* Titelzeile		*/
	char	*program;				/* Programmname		*/
	char	*date;					/* Datum			*/
	char	*version;				/* Version			*/
	char	*author;				/* Name des Autors	*/
	char	*address[MAXADDRESS+1];	/* Adresse 			*/
	char	*webmastername;			/* Fuer HTML		*/
	char	*webmasteremail;		/* Fuer HTML		*/
	char	*webmastermailurl;		/* Fuer HTML		*/
	char	*webmasterurl;			/* Fuer HTML		*/
	char	*programimage;			/* Bilder statt 	*/
	char	*authorimage;			/* ... Text			*/
	char	*authoricon;			/* -> Modern/Frames	*/
	char	*authoricon_active;		/* -> Modern/Frames	*/
	unsigned int authoriconWidth;
	unsigned int authoriconHeight;
	unsigned int authoriconActiveWidth;
	unsigned int authoriconActiveHeight;
	char  *keywords; /* New in r6pl15 [NHz] */

	char	*description; /* New in r6pl15 [NHz] */

	char	*drc_statusline;
	char	*stg_database;
	char	*htmltitle;				/* <title>			*/

}	TITLEDATA;


/* New in r6pl15 [NHz] */
/*  --------------------------------------------------
  Papierformat
  --------------------------------------------------  */
typedef struct
{
	char *paper;										/* Papierformat */
	unsigned int width_mm;					/* Breite */
	unsigned int height_mm;					/* Hhe */
	unsigned int width_pt;
	unsigned int height_pt;
	unsigned int margintop_pt;
	unsigned int marginleft_pt;
	unsigned int marginright_pt;
	unsigned int marginbottom_pt;
	unsigned int width_twips;
	unsigned int height_twips;	
	BOOLEAN landscape;							/* Landscape? */
} PAPERFORMAT;


/*	--------------------------------------------------
	Layout-Daten
	--------------------------------------------------	*/
typedef struct				/* ---- Layoutinfos ----		*/
{
	char	*paper;					/* Papierformat		*/
	char	*pagemode;      /* HowToOpen */
	char	*viewerpreferences;
	char	*pagelayout;
	char	*fitwindow;
	char	*openpage;
	char	*hidetoolbar;
	char	*hidemenubar;
	char	*propfontname;
	unsigned int		propfontsize;
	char	*monofontname;
	unsigned int		monofontsize;
	/* New in r6pl16 [NHz] */
	unsigned int		node1size;
	unsigned int		node2size;
	unsigned int		node3size;
	unsigned int		node4size;
}	LAYOUTDATA;


#endif /* UDO_TP_H */

/*	############################################################
	# globale Variablen
	############################################################	*/
GLOBAL int			address_counter;
GLOBAL BOOLEAN		called_maketitle;
GLOBAL BOOLEAN		uses_maketitle;

GLOBAL TITLEDATA	titdat;
GLOBAL LAYOUTDATA	laydat; /* New in r6pl15 [NHz] */

GLOBAL char			titleprogram[512];

/*	############################################################
	# globale Funktionen
	############################################################	*/
GLOBAL BOOLEAN set_mainlayout ( void ); /* New in r6pl16 [NHz] */
GLOBAL BOOLEAN set_doclayout ( void ); /* New in r6pl15 [NHz] */
GLOBAL BOOLEAN set_docinfo ( void );
GLOBAL void c_maketitle ( void );
GLOBAL void pch_titlepage ( void );

GLOBAL void init_module_tp ( void );
GLOBAL void init_module_tp_pass2 ( void );
GLOBAL void exit_module_tp ( void );

/*	############################################################
	# tp.h
	############################################################	*/