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
|
#include "sys-defines.h"
#include "extern.h"
bool
#ifdef _HAVE_PROTOS
_a_begin_page (S___(Plotter *_plotter))
#else
_a_begin_page (S___(_plotter))
S___(Plotter *_plotter;)
#endif
{
int i;
/* The following resetting code should duplicate what is done in
erase_page(). */
/* initialize `font used' array for this page */
for (i = 0; i < NUM_PS_FONTS; i++)
_plotter->data->page->ps_font_used[i] = false;
/* With each call to openpl(), we reset our knowledge of Illustrator's
internal state, i.e. the dynamic AI-specific data members of the
AIPlotter. The values are the same as are used in initializing the
AIPlotter (see a_defplot.c). */
_plotter->ai_pen_cyan = 0.0;
_plotter->ai_pen_magenta = 0.0;
_plotter->ai_pen_yellow = 0.0;
_plotter->ai_pen_black = 1.0;
_plotter->ai_fill_cyan = 0.0;
_plotter->ai_fill_magenta = 0.0;
_plotter->ai_fill_yellow = 0.0;
_plotter->ai_fill_black = 1.0;
_plotter->ai_cyan_used = false;
_plotter->ai_magenta_used = false;
_plotter->ai_yellow_used = false;
_plotter->ai_black_used = false;
_plotter->ai_cap_style = PS_LINE_CAP_BUTT;
_plotter->ai_join_style = PS_LINE_JOIN_MITER;
_plotter->ai_miter_limit = 4.0; /* default value for AI */
_plotter->ai_line_type = L_SOLID;
_plotter->ai_line_width = 1.0;
_plotter->ai_fill_rule_type = 0; /* i.e. nonzero winding number rule */
return true;
}
|