Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/djvu/djvu-links.h
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2006-09-17 17:44:36 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-09-17 17:44:36 (GMT)
commit39253488e0186a32a184257db2fa0bed0af24d1c (patch)
tree0855d71f9725609b6d1ed0a2d43da15f8f596f54 /djvu/djvu-links.h
parentdbf0d456b6db9e4c826657e8de83c74a45250296 (diff)
Add support for links and bookmarks in djvu documents. Thanks to Pauli
2006-09-17 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * djvu/Makefile.am: * djvu/djvu-document.c: (G_DEFINE_TYPE_WITH_CODE), (djvu_document_find_iface_init), (djvu_document_links_get_links), (djvu_document_document_links_iface_init): * djvu/djvu-links.c: (number_from_miniexp), (string_from_miniexp), (number_from_string_10), (get_djvu_link_dest), (get_djvu_link_action), (build_tree), (get_djvu_hyperlink_area), (get_djvu_hyperlink_mapping), (djvu_links_has_document_links), (djvu_links_get_links), (djvu_links_find_link_dest), (djvu_links_get_links_model): * djvu/djvu-links.h: Add support for links and bookmarks in djvu documents. Thanks to Pauli Virtanen <pauli.virtanen@iki.fi> for the wonderful patch.
Diffstat (limited to 'djvu/djvu-links.h')
-rw-r--r--djvu/djvu-links.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/djvu/djvu-links.h b/djvu/djvu-links.h
new file mode 100644
index 0000000..fdbfdeb
--- /dev/null
+++ b/djvu/djvu-links.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2006 Pauli Virtanen <pav@iki.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __DJVU_LINK_H__
+#define __DJVU_LINK_H__
+
+#include "ev-document-links.h"
+#include "djvu-document.h"
+
+#include <glib.h>
+
+GtkTreeModel *djvu_links_get_links_model (EvDocumentLinks *document_links);
+GList *djvu_links_get_links (EvDocumentLinks *document_links,
+ gint page,
+ double scale_factor);
+EvLinkDest *djvu_links_find_link_dest (EvDocumentLinks *document_links,
+ const gchar *link_name);
+gboolean djvu_links_has_document_links (EvDocumentLinks *document_links);
+
+#endif /* __DJVU_LINK_H__ */