From e3275837d5738c5092b2e452829919e31ad553e5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 7 Oct 2015 17:03:12 +0200 Subject: Rename structured text structs and functions to 'stext'. Less risk of confusion with the text type used in the device interface. --- source/tools/mudraw.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 705cd6eb..b486171a 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -141,7 +141,7 @@ static int bandheight = 0; static int errored = 0; static int append = 0; -static fz_text_sheet *sheet = NULL; +static fz_stext_sheet *sheet = NULL; static fz_colorspace *colorspace; static char *filename; static int files = 0; @@ -331,14 +331,14 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) else if (output_format == OUT_TEXT || output_format == OUT_HTML || output_format == OUT_STEXT) { - fz_text_page *text = NULL; + fz_stext_page *text = NULL; fz_var(text); fz_try(ctx) { - text = fz_new_text_page(ctx); - dev = fz_new_text_device(ctx, sheet, text); + text = fz_new_stext_page(ctx); + dev = fz_new_stext_device(ctx, sheet, text); if (output_format == OUT_HTML) fz_disable_device_hints(ctx, dev, FZ_IGNORE_IMAGE); if (list) @@ -349,16 +349,16 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) dev = NULL; if (output_format == OUT_STEXT) { - fz_print_text_page_xml(ctx, out, text); + fz_print_stext_page_xml(ctx, out, text); } else if (output_format == OUT_HTML) { fz_analyze_text(ctx, sheet, text); - fz_print_text_page_html(ctx, out, text); + fz_print_stext_page_html(ctx, out, text); } else if (output_format == OUT_TEXT) { - fz_print_text_page(ctx, out, text); + fz_print_stext_page(ctx, out, text); fz_printf(ctx, out, "\f\n"); } } @@ -366,7 +366,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) { fz_drop_device(ctx, dev); dev = NULL; - fz_drop_text_page(ctx, text); + fz_drop_stext_page(ctx, text); } fz_catch(ctx) { @@ -1046,7 +1046,7 @@ int mudraw_main(int argc, char **argv) fz_printf(ctx, out, "\n"); if (output_format == OUT_TEXT || output_format == OUT_HTML || output_format == OUT_STEXT) - sheet = fz_new_text_sheet(ctx); + sheet = fz_new_stext_sheet(ctx); if (output_format == OUT_HTML) { @@ -1140,11 +1140,11 @@ int mudraw_main(int argc, char **argv) { fz_printf(ctx, out, "\n"); fz_printf(ctx, out, "\n"); } - fz_drop_text_sheet(ctx, sheet); + fz_drop_stext_sheet(ctx, sheet); fz_drop_output(ctx, out); out = NULL; -- cgit v1.2.3