1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
// SPDX-License-Identifier: GPL-2.0-or-later
/* this file is part of papers, a gnome document viewer
*
* Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
* Copyright (C) 2005 Red Hat, Inc.
*/
#pragma once
#if !defined(__PPS_PAPERS_DOCUMENT_H_INSIDE__) && !defined(PAPERS_COMPILATION)
#error "Only <papers-document.h> can be included directly."
#endif
#include <glib-object.h>
#include "pps-macros.h"
G_BEGIN_DECLS
#define PPS_TYPE_LINK_DEST (pps_link_dest_get_type ())
PPS_PUBLIC
G_DECLARE_FINAL_TYPE (PpsLinkDest, pps_link_dest, PPS, LINK_DEST, GObject)
typedef enum {
PPS_LINK_DEST_TYPE_PAGE,
PPS_LINK_DEST_TYPE_XYZ,
PPS_LINK_DEST_TYPE_FIT,
PPS_LINK_DEST_TYPE_FITH,
PPS_LINK_DEST_TYPE_FITV,
PPS_LINK_DEST_TYPE_FITR,
PPS_LINK_DEST_TYPE_NAMED,
PPS_LINK_DEST_TYPE_PAGE_LABEL,
PPS_LINK_DEST_TYPE_UNKNOWN
} PpsLinkDestType;
PPS_PUBLIC
PpsLinkDestType pps_link_dest_get_dest_type (PpsLinkDest *self);
PPS_PUBLIC
gint pps_link_dest_get_page (PpsLinkDest *self);
PPS_PUBLIC
gdouble pps_link_dest_get_top (PpsLinkDest *self,
gboolean *change_top);
PPS_PUBLIC
gdouble pps_link_dest_get_left (PpsLinkDest *self,
gboolean *change_left);
PPS_PUBLIC
gdouble pps_link_dest_get_bottom (PpsLinkDest *self);
PPS_PUBLIC
gdouble pps_link_dest_get_right (PpsLinkDest *self);
PPS_PUBLIC
gdouble pps_link_dest_get_zoom (PpsLinkDest *self,
gboolean *change_zoom);
PPS_PUBLIC
const gchar *pps_link_dest_get_named_dest (PpsLinkDest *self);
PPS_PUBLIC
const gchar *pps_link_dest_get_page_label (PpsLinkDest *self);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_page (gint page);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_xyz (gint page,
gdouble left,
gdouble top,
gdouble zoom,
gboolean change_left,
gboolean change_top,
gboolean change_zoom);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_fit (gint page);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_fith (gint page,
gdouble top,
gboolean change_top);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_fitv (gint page,
gdouble left,
gboolean change_left);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_fitr (gint page,
gdouble left,
gdouble bottom,
gdouble right,
gdouble top);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_named (const gchar *named_dest);
PPS_PUBLIC
PpsLinkDest *pps_link_dest_new_page_label (const gchar *page_label);
PPS_PUBLIC
gboolean pps_link_dest_equal (PpsLinkDest *a,
PpsLinkDest *b);
G_END_DECLS
|