/* * * (c) COPYRIGHT INRIA, 1996. * Please first read the full copyright statement in file COPYRIGHT. * */ /* * Constants for documents presentation * */ #ifndef __CONST_PRS_H__ #define __CONST_PRS_H__ #define MAX_VIEW 5 /* max. number of views for a document */ #define MAX_PRINT_VIEW 10 /* max. number of views to print for a presentation schema */ #define MAX_PRES_COUNTER 60 /* max. number of counters for an presentation schema */ #define MAX_PRES_VARIABLE 120 /* max. number of variables for a presentation schema */ #define MAX_PRES_CONST 1024 /* max number of constant strings for presentation schema */ #define MAX_PRES_CONST_LEN 100 /* max. length of presentation string constants */ #define MAX_PRES_VAR_ITEM 12 /* max. number of items making up a presentation variable */ #define MAX_PRES_COUNT_ITEM 12 /* max. number of operations defined on a counter */ #define MAX_PRES_COUNT_USER 24 /* max. number of types of presentation boxes using a counter */ #define MAX_PRES_ATTR_CASE 8 /* max. number of different cases for application of a numerical attribute presentation rules */ #define MAX_PRES_BOX 1024 /* max. number of presentation boxes for a presentation schema */ #define MAX_TRANSM_ATTR 5 /* max. number of attributes to which can be transmitted a counter or an element value */ #define MAX_TRANSM_ELEM 25 /* max. number of elements that can pass on their value to attributes of imported documents */ #define MAX_COLUMN_PAGE 4 /* max. number of columns for a page */ #define MAX_COUNTER_VAL 32767 /* max. value of a counter 2^15 - 1 */ #define MIN_COUNTER_VAL -32768 /* min. value of a counter -2^15 */ /* * Definition of the presentation schema coding produced by * the P language compiler * */ /* units of distance */ #define C_UNIT_REL 'R' #define C_UNIT_XHEIGHT 'X' #define C_UNIT_POINT 'P' #define C_UNIT_PIXEL 'p' #define C_UNIT_PERCENT 'C' /* boxes edges and axis */ #define C_AX_TOP 'T' #define C_AX_BOTTOM 'B' #define C_AX_LEFT 'G' #define C_AX_RIGHT 'D' #define C_AX_HREF 'h' #define C_AX_VREF 'v' #define C_AX_HMIDDLE 'H' #define C_AX_VMIDDLE 'V' #define C_AX_NULL '0' /* relative level */ #define C_PARENT 'S' #define C_SAME_LEVEL 'M' #define C_CHILD 'I' #define C_PREVIOUS 'p' #define C_NEXT 's' #define C_SELF '*' #define C_CONTAINS_REF 'R' #define C_ROOT 'r' #define C_REFERRED 'D' #define C_CREATOR 'C' /* presentation box contents type */ /* type du contenu d'une boite de presentation */ #define C_CONT_FREE 'L' #define C_CONT_VAR 'V' #define C_CONT_CONST 'C' #define C_CONT_ELEM 'E' /* alignment */ /* Defined in constopiv.h */ /* C_PIV_LEFT = 'G'; */ /* C_PIV_RIGHT = 'D'; */ /* C_PIV_CENTERED = 'C'; */ /* C_PIV_LEFTDOT = 'P'; */ /* presentation rule type */ #define C_PR_VISIBILITY 'V' #define C_PR_FUNCTION 'f' #define C_PR_VREF 'v' #define C_PR_HREF 'h' #define C_PR_DEPTH 'P' #define C_PR_VERTOVERFLOW 'O' #define C_PR_HORIZOVERFLOW 'o' /* Defined in constpiv.h */ /* C_PR_HEIGHT = 'H'; */ /* C_PR_WIDTH = 'L'; */ /* C_PR_VPOS = 'Y'; */ /* C_PR_HPOS = 'X'; */ /* C_PR_SIZE = 'T'; */ /* C_PR_STYLE = 'S'; */ /* C_PR_FONT = 'F'; */ /* C_PR_BREAK1 = '1'; */ /* C_PR_BREAK2 = '2'; */ /* C_PR_INDENT = 'R'; */ /* C_PR_LINESPACING = 'I'; */ /* C_PR_JUSTIFY = 'J'; */ /* C_PR_HYPHENATE= 'C'; */ /* properties computing mode */ #define C_IMMEDIATE 'V' #define C_INHERIT 'H' #define C_PRES_FUNCTION 'F' /* inheritance type */ #define C_INH_ASCEND 'A' #define C_INH_PREVIOUS 'P' #define C_INH_DESC 'D' #define C_INH_CREATOR 'C' #define C_INH_GRAND_FATHER 'G' /* presentation function type */ #define C_PF_LINE 'L' #define C_PF_PAGE 'P' #define C_PF_CR_BEFORE 'V' #define C_PF_CR_WITH 'W' #define C_PF_CR_FIRST 'F' #define C_PF_CR_LAST 'f' #define C_PF_CR_AFTER 'S' #define C_PF_CR_ENCLOSING 'E' #define C_PF_CR_BEFORE_REP 'a' #define C_PF_CR_FIRST_REP 'p' #define C_PF_CR_LAST_REP 'd' #define C_PF_CR_AFTER_REP 'e' #define C_PF_CR_ENCLOSING_REP 'g' #define C_PF_COLUMN 'c' #define C_PF_SUBCOLUMN 's' #define C_PF_COPY 'C' #define C_PF_REF_CONTENT 'r' #define C_PF_NOLINE 'N' #define C_PF_SHOWBOX 'B' #define C_PF_BGPICTURE 'b' #define C_PF_PICTUREMODE 'M' #define C_PF_NOTINLINE 'n' /* counters presentation style */ #define C_NUM_ARABIC 'A' #define C_NUM_ROMAN 'R' #define C_NUM_LOWER_ROMAN 'r' #define C_NUM_UPPERCASE 'L' #define C_NUM_LOWERCASE 'l' /* presentation variables type */ #define C_VAR_TEXT 'C' #define C_VAR_COUNTER 'V' #define C_VAR_ATTR_VAL 'A' #define C_VAR_DATE 'D' #define C_VAR_FDATE 'F' #define C_VAR_DOCNAME 'N' #define C_VAR_DIRNAME 'M' #define C_VAR_ELEMNAME 'E' #define C_VAR_ATTRNAME 'T' #define C_VAR_PAGENUMBER 'P' /* presentation rules application conditions type */ #define C_COND_FIRST 'P' #define C_COND_LAST 'D' #define C_COND_REFERRED 'R' #define C_COND_FIRSTREF 'A' #define C_COND_LASTREF 'B' #define C_COND_EXTREF 'C' #define C_COND_INTREF 'E' #define C_COND_COPYREF 'F' #define C_COND_ATTR 'G' #define C_COND_FIRST_ATTR 'H' #define C_COND_LAST_ATTR 'J' #define C_COND_USERPAGE 'K' #define C_COND_STARTPAGE 'L' #define C_COND_COMPPAGE 'M' #define C_COND_EMPTY 'O' #define C_COND_EVEN 'p' #define C_COND_ODD 'i' #define C_COND_ONE '1' #define C_COND_INTER 'I' #define C_COND_ANCEST 'a' #define C_COND_ELEM 'e' #define C_COND_HAS_ATTR 'h' #define C_COND_NOCOND 'S' #define C_COND_DEFAULT 'd' /* type of operation on a counter */ #define C_CNT_SET 'S' #define C_CNT_ADD 'A' #define C_CNT_RANK 'R' #define C_CNT_RLEVEL 'L' /* type of numerical attribute values comparison */ #define C_COMP_CONST 'c' #define C_COMP_ATTR 'a' /* type of counters in variables */ #define C_VAL_MAX 'A' #define C_VAL_MIN 'B' #define C_VAL_CUR 'C' /* relation in the Within condition */ #define C_WITHIN_GT 'S' #define C_WITHIN_LT 'I' #define C_WITHIN_EQ 'E' #endif /* __CONST_PRS_H__ */