diff options
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/doc_interactive.c | 5 | ||||
-rw-r--r-- | fitz/fitz.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c index d7bc954d..61f2f4f1 100644 --- a/fitz/doc_interactive.c +++ b/fitz/doc_interactive.c @@ -6,6 +6,11 @@ to indirect through function pointers. */ +int fz_has_unsaved_changes(fz_interactive *idoc) +{ + return pdf_has_unsaved_changes((pdf_document*)idoc); +} + int fz_pass_event(fz_interactive *idoc, fz_page *page, fz_ui_event *ui_event) { return pdf_pass_event((pdf_document*)idoc, (pdf_page*)page, ui_event); diff --git a/fitz/fitz.h b/fitz/fitz.h index 595dc2e4..6a9f7e0a 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -2410,6 +2410,12 @@ typedef struct fz_widget_s fz_widget; fz_interactive *fz_interact(fz_document *doc); /* + Determine whether changes have been made since the + document was opened or last saved. +*/ +int fz_has_unsaved_changes(fz_interactive *idoc); + +/* fz_pass_event: Pass a UI event to an interactive document. |