43#define DEFAULT_PAGE_WIDTH 595
44#define DEFAULT_PAGE_HEIGHT 840
45#define DEFAULT_COPIES 1
130 "New layout applied.New height = %d ; New width = %d ",
258 css_fixed length = 0;
259 css_unit unit = CSS_UNIT_MM;
260 css_unit_ctx unit_len_ctx = {
266 switch (configuration){
281 NULL, &unit_len_ctx, length, unit);
284 NULL, &unit_len_ctx, length, unit);
287 NULL, &unit_len_ctx, length, unit);
290 NULL, &unit_len_ctx, length, unit);
307 NULL, &unit_len_ctx, length, unit);
310 NULL, &unit_len_ctx, length, unit);
313 NULL, &unit_len_ctx, length, unit);
316 NULL, &unit_len_ctx, length, unit);
326 if (filename != NULL) {
void content_reformat(hlcache_handle *h, bool background, int width, int height)
Reformat to new size.
bool html_redraw_printing
#define DEFAULT_PAGE_HEIGHT
int html_redraw_printing_border
int html_redraw_printing_top_cropped
struct print_settings * print_make_settings(print_configuration configuration, const char *filename, const struct gui_layout_table *font_func)
Generates one of the predefined print settings sets.
bool print_draw_next_page(const struct printer *printer, struct print_settings *settings)
This function draws one page, beginning with the height offset of done_height.
static bool print_apply_settings(hlcache_handle *content, struct print_settings *settings)
The content is resized to fit page width.
static float page_content_width
static float page_content_height
#define DEFAULT_PAGE_WIDTH
static struct hlcache_handle * printed_content
bool print_cleanup(hlcache_handle *content, const struct printer *printer, struct print_settings *settings)
Memory allocated during printing is being freed here.
bool print_basic_run(hlcache_handle *content, const struct printer *printer, struct print_settings *settings)
This function calls print setup, prints page after page until the whole content is printed calls clea...
bool print_set_up(hlcache_handle *content, const struct printer *printer, struct print_settings *settings, double *height)
This function prepares the content to be printed.
static struct hlcache_handle * print_init(struct hlcache_handle *content, struct print_settings *settings)
The content passed to the function is duplicated with its boxes, font measuring functions are being s...
Conception: Generalized output-in-pages.
print_configuration
Predefined printing configuration names.
static struct print_settings * settings
nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result)
Clone a high level cache handle.
nserror hlcache_handle_release(hlcache_handle *handle)
Release a high-level cache handle.
High-level resource cache interface.
Public content interface.
bool content_redraw(struct hlcache_handle *h, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx)
Display content on screen with optional tiling.
int content_get_height(struct hlcache_handle *h)
Retrieve height of content.
int content_get_width(struct hlcache_handle *h)
Retrieve width of content.
Target independent plotting interface.
#define NSLOG(catname, level, logmsg, args...)
Interface to utility string handling.
parameters to content redraw
int height
vertical dimension
bool repeat_y
whether content is tiled in y direction
bool repeat_x
whether content is tiled in x direction
int y
coordinate for top-left of redraw
int x
coordinate for top-left of redraw
colour background_colour
The background colour.
int width
dimensions to render content at (for scaling contents with intrinsic dimensions)
float scale
Scale for redraw (for scaling contents without intrinsic dimensions)
Content which corresponds to a single URL.
Settings for a print - filled in by print_make_settings or 'manually' by the caller.
const struct gui_layout_table * font_func
const struct plotter_table * plotter
bool(* print_begin)(struct print_settings *)
bool(* print_next_page)(void)
bool interactive
Redraw to show interactive features.
Option reading and saving interface.
#define DEFAULT_MARGIN_BOTTOM_MM
#define nsoption_int(OPTION)
Get the value of an integer option.
#define DEFAULT_EXPORT_SCALE
#define DEFAULT_MARGIN_RIGHT_MM
#define DEFAULT_MARGIN_TOP_MM
#define DEFAULT_MARGIN_LEFT_MM
#define nsoption_bool(OPTION)
Get the value of a boolean option.
Interface to a number of general purpose functionality.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.