File: pps-link-action.h

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (85 lines) | stat: -rw-r--r-- 2,788 bytes parent folder | download
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
// 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-link-dest.h"
#include "pps-macros.h"

G_BEGIN_DECLS

#define PPS_TYPE_LINK_ACTION (pps_link_action_get_type ())

PPS_PUBLIC
G_DECLARE_FINAL_TYPE (PpsLinkAction, pps_link_action, PPS, LINK_ACTION, GObject)

typedef enum {
	PPS_LINK_ACTION_TYPE_GOTO_DEST,
	PPS_LINK_ACTION_TYPE_GOTO_REMOTE,
	PPS_LINK_ACTION_TYPE_EXTERNAL_URI,
	PPS_LINK_ACTION_TYPE_LAUNCH,
	PPS_LINK_ACTION_TYPE_NAMED,
	PPS_LINK_ACTION_TYPE_LAYERS_STATE,
	PPS_LINK_ACTION_TYPE_RESET_FORM
	/* We'll probably fill this in more as we support the other types of
	 * actions */
} PpsLinkActionType;

PPS_PUBLIC
PpsLinkActionType pps_link_action_get_action_type (PpsLinkAction *self);
PPS_PUBLIC
PpsLinkDest *pps_link_action_get_dest (PpsLinkAction *self);
PPS_PUBLIC
const gchar *pps_link_action_get_uri (PpsLinkAction *self);
PPS_PUBLIC
const gchar *pps_link_action_get_filename (PpsLinkAction *self);
PPS_PUBLIC
const gchar *pps_link_action_get_params (PpsLinkAction *self);
PPS_PUBLIC
const gchar *pps_link_action_get_name (PpsLinkAction *self);
PPS_PUBLIC
GList *pps_link_action_get_show_list (PpsLinkAction *self);
PPS_PUBLIC
GList *pps_link_action_get_hide_list (PpsLinkAction *self);
PPS_PUBLIC
GList *pps_link_action_get_toggle_list (PpsLinkAction *self);
PPS_PUBLIC
GList *pps_link_action_get_reset_fields (PpsLinkAction *self);
PPS_PUBLIC
gboolean pps_link_action_get_exclude_reset_fields (PpsLinkAction *self);

PPS_PUBLIC
PpsLinkAction *pps_link_action_new_dest (PpsLinkDest *dest);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_remote (PpsLinkDest *dest,
                                           const gchar *filename);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_external_uri (const gchar *uri);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_launch (const gchar *filename,
                                           const gchar *params);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_named (const gchar *name);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_layers_state (GList *show_list,
                                                 GList *hide_list,
                                                 GList *toggle_list);
PPS_PUBLIC
PpsLinkAction *pps_link_action_new_reset_form (GList *fields,
                                               gboolean exclude_fields);

PPS_PUBLIC
gboolean pps_link_action_equal (PpsLinkAction *a,
                                PpsLinkAction *b);

G_END_DECLS