/****************************************************************************************/
/*                                                                                      */
/*              load_richtext.h                                                         */
/*                                                                                      */
/****************************************************************************************/

#ifndef _LOAD_RICHTEXT_H_
#define _LOAD_RICHTEXT_H_



#include "objects/richtext.h"



/*****************************************************************************************************/
/*                                                                                                   */
/*      Package de test sur les rich text file                                                       */
/*                                                                                                   */
/*****************************************************************************************************/
#define RICHTEXTPKGSIZE 29

char * richtextpkgname [ RICHTEXTPKGSIZE ] = {
    "_CRrichText" , "_SETcolorRichText" , "_SETboldRichText" , "_PAINTrichText" ,
    "_GETrichText" , "_GETcharFromPos" , "_CBclickRichText" ,"_SETunderlineRichText" ,
    "_SETfontRichText" , "_SETitalicRichText" , "_SETstrikeoutRichText" , "_SEToffsetRichText" ,
    "_DSrichText" , "_SIZErichText" , "_GETrichTextSizePosition" , "_POSITIONrichText" ,
    "_GETrichTextPositionSize" , "_SETtextRichText" , "_ADDtextRichText" , "_SETsizeRichText" ,
    "_CBrichTextDropFile","_RTFtoRichText", "_GETlineCountRichText", "_DELlineRichText",
    "_ENrichText" , "_SETbkgColorRichText", "_SCROLLrichText", "_GETrichTextFirstLine" ,
    "_GETrichTextLine",
} ;

char * richtextpkgtype [ RICHTEXTPKGSIZE ] = {
    "fun [ Chn ObjWin I I I I I S ] ObjRichText" ,          /* _create_rich_text            */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /* _set_color_rich_text         */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /* _set_bold_rich_text          */ 
    "fun [ ObjRichText ] ObjRichText" ,                     /* _paint_rich_text             */ 
    "fun [ ObjRichText ] S" ,                               /* _get_rich_rtf                */ 
    "fun [ ObjRichText I I ] I",                            /* _get_char_from_pos           */ 
    "fun [ ObjRichText fun [ ObjRichText u0 I I ] u1 u0] ObjRichText",/* _reflex_rich_text  */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /*_set_underline_rich_text      */  
    "fun [ ObjRichText S I I ] ObjRichText" ,               /* _set_font_rich_text          */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /* _set_italic_rich_text        */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /* _set_strikeout_rich_text     */ 
    "fun [ ObjRichText I I I ] ObjRichText" ,               /* _set_offset_rich_text        */ 
    "fun [ ObjRichText ] I" ,                               /* _destroy_rich_text           */ 
    "fun [ ObjRichText I I I I ] ObjRichText" ,             /* _set_size_position_rich_text */ 
    "fun [ ObjRichText ] [ I I I I ]" ,                     /* _get_size_position_rich_text */ 
    "fun [ ObjRichText I I I I ] ObjRichText" ,             /* _set_position_size_rich_text */ 
    "fun [ ObjRichText ] [ I I I I ]" ,                     /* _get_position_size_rich_text */ 
    "fun [ ObjRichText S S I I I] ObjRichText" ,            /* _set_text_rich_text          */ 
    "fun [ ObjRichText S S I I I] ObjRichText" ,            /* _add_text_rich_text          */ 
    "fun [ ObjRichText I I I] ObjRichText" ,                /* _set_size_rich_text          */ 
    "fun [ ObjRichText fun [ ObjRichText u0 I I [ P r1 ]] u1 u0 ] ObjRichText",
                                                            /* _reflex_rich_text_drop_file  */ 
    "fun [ ObjRichText S ] ObjRichText",                    /* _rtf_to_rich_text            */ 
    "fun [ ObjRichText] I",                                 /* _get_rich_line_count         */ 
    "fun [ ObjRichText I ] ObjRichText",                    /* _del_rich_text_line          */ 
    "fun [ ObjRichText I ] ObjRichText" ,                   /* _enable_rich_text            */ 
    "fun [ ObjRichText I ] ObjRichText" ,                   /* _set_vackground_color_richtex*/ 
    "fun [ ObjRichText I I ] ObjRichText" ,                 /* _scroll_rich_text            */ 
    "fun [ ObjRichText ] I",                                /* _get_rich_text_first_line    */ 
    "fun [ ObjRichText I ] S",                              /* _get_rich_text_line          */ 

} ;

#define NARG_CREATE_RICH_TEXT           8
#define NARG_SET_COLOR_RICH_TEXT        4 
#define NARG_SET_BOLD_RICH_TEXT         4
#define NARG_GET_RICH_TEXT              1
#define NARG_GET_CHAR_FROM_POS          3
#define NARG_CB_RICH_TEXT               3
#define NARG_SET_UNDERLINE_RICH_TEXT    4
#define NARG_SET_FONT_RICH_TEXT         4
#define NARG_SET_ITALIC_RICH_TEXT       4
#define NARG_SET_RICH_TEXT_STRIKEOUT    4
#define NARG_SET_RICH_TEXT_OFFSET       4
#define NARG_DESTROY_RICH_TEXT          1
#define NARG_SET_TEXT_RICH_TEXT         6
#define NARG_ADD_TEXT_RICH_TEXT         6
#define NARG_SET_SIZE_RICH_TEXT         4
#define NARG_REFLEX_RICH_TEXT_DROPFILE  3
#define NARG_RTF_TO_RICH_TEXT           2
#define NARG_GET_RICH_LINE_COUNT        1
#define NARG_DEL_RICH_TEXT_LINE         2
#define NARG_SET_BKGCLR_RICH_TEXT       2

int richtextpkgarg [RICHTEXTPKGSIZE ] = {
NARG_CREATE_RICH_TEXT , NARG_SET_COLOR_RICH_TEXT , NARG_SET_BOLD_RICH_TEXT , NARG_PAINT_OBJ_TEXT ,
    NARG_GET_RICH_TEXT , NARG_GET_CHAR_FROM_POS , NARG_CB_RICH_TEXT , NARG_SET_UNDERLINE_RICH_TEXT ,
    NARG_SET_FONT_RICH_TEXT , NARG_SET_ITALIC_RICH_TEXT , NARG_SET_RICH_TEXT_STRIKEOUT , NARG_SET_RICH_TEXT_OFFSET ,
    NARG_DESTROY_RICH_TEXT , NARG_RESIZE_WINDOW , NARG_GET_SIZE_POSITION_WINDOW , NARG_RESIZE_WINDOW ,
    NARG_GET_SIZE_POSITION_WINDOW , NARG_SET_TEXT_RICH_TEXT , NARG_ADD_TEXT_RICH_TEXT ,NARG_SET_SIZE_RICH_TEXT ,
    NARG_REFLEX_RICH_TEXT_DROPFILE , NARG_RTF_TO_RICH_TEXT , NARG_GET_RICH_LINE_COUNT , NARG_DEL_RICH_TEXT_LINE,
    NARG_ENABLE_WINDOW ,NARG_SET_BKGCLR_RICH_TEXT ,NARG_SCROLL_TEXT , NARG_GET_FIRST_LINE ,
    NARG_GET_LINE ,
} ;

int (* richtextpkgfun [ RICHTEXTPKGSIZE ] ) ( mmachine m ) = {
GRCreateRichText , GRSetRichTextColor , GRSetRichTextBold , GRPaintObjText ,
    GRGetText , GRGetCharFromPos , GRReflexRichText , GRSetRichTextUnderline ,
    GRSetRichTextFont , GRSetRichTextItalic , GRSetRichTextStrikeout , GRSetRichTextOffset ,
    GRDestroyRichText , GRResizeWindow , GRGetSizePositionWindow , GRReposWindow ,
    GRGetPositionSizeWindow , GRSetTextRichText , GRAddTextRichText ,GRSetRichTextSize,
    GRReflexRichTextDropFile,GRRtfRichText,GRGetRichLineCount,GRDelRichTextLine,
    GREnableWindow , GRSetBkgColorRichText , GRScrollText , GRGetFirstLine ,
    GRGetLine

} ;


#endif
