ps.h
Zobrazit dokumentaci tohoto souboru.00001
#ifndef __GLOBAL_H
00002
#define __GLOBAL_H
00003
00004
#include "afm.h"
00005
#include "cfg.h"
00006
#include "enc.h"
00007
00009
00014
00015 enum ps_text_type {
00016
TT_GENERIC,
00017
TT_BOLD,
00018
TT_ITALIC,
00019
TT_COURIER
00020 }
ps_text_type;
00021
00023 typedef struct ps_text_element{
00024 enum ps_text_type type;
00025 char*
text;
00026 struct ps_text_element*
next;
00027 }
ps_text_element;
00028
00029
00031 typedef struct ps_headline_element{
00032 int level;
00033 char*
text;
00034 }
ps_headline_element;
00035
00036
00038 typedef struct ps_list_element{
00039 int level;
00040 char*
text;
00041 }
ps_list_element;
00042
00043
00045 typedef struct ps_note_element{
00046 char*
text;
00047 }
ps_note_element;
00048
00049
00051 typedef struct ps_code_element{
00052 char*
text;
00053 }
ps_code_element;
00054
00056 typedef struct ps_image_element{
00057 char*
path;
00058 }
ps_image_element;
00059
00061 enum ps_paragraph_type{
00062
PT_TEXT,
00063
PT_HEADLINE,
00064
PT_LIST,
00065
PT_NOTE,
00066
PT_CODE,
00067
PT_IMAGE
00068 }
ps_paragraph_type;
00069
00071
00081 typedef struct ps_paragraph{
00082 enum ps_paragraph_type type;
00083 void*
element;
00084 struct ps_paragraph*
next;
00085 }
ps_paragraph;
00086
00088
00091
void ps_del(
ps_paragraph *para);
00092
00094
00105
void ps_save(
const char *file_name,
ps_paragraph *para,
cfg_config *cfg,
enc_table *table,
afm_font *fnt_base,
00106
afm_font* fnt_bold,
afm_font* fnt_italic,
afm_font **fnt_headline,
afm_font *fnt_code);
00107
00108
00109
#endif
Generováno Mon May 24 23:01:30 2004 pro projekt G-TeamPostScriptCreatorDeLuxe programem
1.3.7