summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/context.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-05-19 17:22:01 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-19 17:22:53 +0200
commit0dc2cbf8fedd5615898b09314d0c899c6e911baa (patch)
tree7dd23ead25bcf9c7419700ffd27c68d95cbd6524 /include/mupdf/fitz/context.h
parent9adccf1e2697cc103715d3c2f916c04bdbcd516a (diff)
downloadmupdf-0dc2cbf8fedd5615898b09314d0c899c6e911baa.tar.xz
epub: User stylesheets.
Add -U option to mupdf and mudraw to set a user stylesheet. Uses a context to store user the stylesheet, just like the AA level.
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r--include/mupdf/fitz/context.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 10e28e0c..02bd6eaa 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -15,6 +15,7 @@ typedef struct fz_warn_context_s fz_warn_context;
typedef struct fz_font_context_s fz_font_context;
typedef struct fz_colorspace_context_s fz_colorspace_context;
typedef struct fz_aa_context_s fz_aa_context;
+typedef struct fz_style_context_s fz_style_context;
typedef struct fz_locks_context_s fz_locks_context;
typedef struct fz_store_s fz_store;
typedef struct fz_glyph_cache_s fz_glyph_cache;
@@ -108,6 +109,7 @@ struct fz_context_s
fz_font_context *font;
fz_colorspace_context *colorspace;
fz_aa_context *aa;
+ fz_style_context *style;
fz_store *store;
fz_glyph_cache *glyph_cache;
fz_document_handler_context *handler;
@@ -202,6 +204,16 @@ int fz_aa_level(fz_context *ctx);
void fz_set_aa_level(fz_context *ctx, int bits);
/*
+ fz_user_css: Get the user stylesheet source text.
+*/
+const char *fz_user_css(fz_context *ctx);
+
+/*
+ fz_set_user_css: Set the user stylesheet source text for use with HTML and EPUB.
+*/
+void fz_set_user_css(fz_context *ctx, const char *text);
+
+/*
Locking functions
MuPDF is kept deliberately free of any knowledge of particular