summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2012-08-02 15:32:33 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2012-08-02 15:32:33 +0100
commit8068b7ba7ac0f103f4770736518fe7e545ceba30 (patch)
tree1a59b6679afa111bbf61c57d60c873824d977636 /fitz
parent201eeb77a65b25263daf8015746a0127692b87df (diff)
downloadmupdf-8068b7ba7ac0f103f4770736518fe7e545ceba30.tar.xz
Forms: add document dirty flag
Diffstat (limited to 'fitz')
-rw-r--r--fitz/doc_interactive.c5
-rw-r--r--fitz/fitz.h6
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.