home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / xlate / xlate_i.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.0 KB  |  86 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #define M12N
  20.  
  21. #include "xp.h"
  22. #include "xlate.h"
  23.  
  24. #define N_FONTS 8
  25.  
  26. typedef struct {
  27.     short llx, lly, urx, ury;
  28. } PS_BBox;
  29.  
  30. typedef struct {
  31.     short wx, wy;
  32.     PS_BBox charBBox;
  33. } PS_CharInfo;
  34.  
  35. typedef struct {
  36.     char *name;
  37.     PS_BBox fontBBox;
  38.     short upos, uthick;
  39.     PS_CharInfo chars[256];
  40. } PS_FontInfo;
  41.  
  42. #define MAKE_FE_FUNCS_PREFIX(f) TXFE_##f
  43. #define MAKE_FE_FUNCS_EXTERN
  44. #include "mk_cx_fn.h"
  45.  
  46. extern PS_FontInfo *PSFE_MaskToFI[N_FONTS];
  47.  
  48. #define LINE_WIDTH 160
  49.  
  50. #define TEXT_WIDTH 8
  51. #define TEXT_HEIGHT 16
  52.  
  53. #define MAKE_FE_FUNCS_PREFIX(f) PSFE_##f
  54. #define MAKE_FE_FUNCS_EXTERN
  55. #include "mk_cx_fn.h"
  56.  
  57. extern void xl_begin_document(MWContext*);
  58. extern void xl_begin_page(MWContext*,int);
  59. extern void xl_end_page(MWContext*,int);
  60. extern void xl_end_document(MWContext*);
  61. extern void xl_show(MWContext *cx, char* txt, int len, char*);
  62. extern void xl_moveto(MWContext* cx, int x, int y);
  63. extern void xl_moveto_loc(MWContext* cx, int x, int y);
  64. extern void xl_circle(MWContext* cx, int w, int h);
  65. extern void xl_box(MWContext* cx, int w, int h);
  66. extern void xl_line(MWContext* cx, int x1, int y1, int x2, int y2, int thick);
  67. extern void xl_stroke(MWContext*);
  68. extern void xl_fill(MWContext*);
  69. extern void xl_colorimage(MWContext *cx, int x, int y, int w, int h,
  70.                           IL_Pixmap *image, IL_Pixmap *mask);
  71. extern void xl_begin_squished_text(MWContext*, float);
  72. extern void xl_end_squished_text(MWContext*);
  73. extern void xl_initialize_translation(MWContext*, PrintSetup*);
  74. extern void xl_finalize_translation(MWContext*);
  75. extern void xl_annotate_page(MWContext*, char*, int, int, int);
  76. extern void xl_draw_border(MWContext *, int , int , int , int , int );
  77. extern void xl_draw_3d_border(MWContext *, int , int , int , int , int, int tl, int br );
  78. extern void xl_draw_3d_radiobox(MWContext *, int , int , int , int , int, int t, int b, int c);
  79. extern void xl_draw_3d_checkbox(MWContext *, int , int , int , int , int, int tl, int br, int c);
  80. extern void xl_draw_3d_arrow(MWContext *, int, int, int, int, int, XP_Bool, int, int, int);
  81. extern XP_Bool xl_item_span(MWContext* cx, int top, int bottom);
  82.  
  83. extern XP_Bool psfe_init_image_callbacks(MWContext *cx);
  84.  
  85. struct LineRecord_struct;
  86.