1 /* 2 * Xiphos Bible Study Tool 3 * export_bookmarks.h - 4 * 5 * Copyright (C) 2003-2020 Xiphos Developer Team 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef ___EXPORT_BOOKMARKS_H_ 23 #define ___EXPORT_BOOKMARKS_H_ 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 struct _export_bookmarks 30 { 31 gboolean as_bookmarks; 32 gboolean as_html; 33 gboolean as_plain; 34 gboolean with_scripture; 35 gint type; 36 gint verselist; 37 GtkWidget *rb_bookmarks; 38 GtkWidget *rb_html; 39 GtkWidget *rb_plain; 40 GtkWidget *cb_scripture; 41 GtkWidget *filechooserwidget; 42 gchar *filename; 43 gchar *verselist_name; 44 GList *verses; 45 }; 46 typedef struct _export_bookmarks BK_EXPORT; 47 48 enum { 49 BOOKMARKS_EXPORT, 50 VERSE_LIST_EXPORT, 51 SEARCH_RESULTS_EXPORT, 52 ADV_SEARCH_RESULTS_EXPORT 53 }; 54 55 void gui_set_html_item(GString *str, 56 const gchar *description, 57 const gchar *module, 58 const gchar *key, gboolean with_scripture); 59 void gui_set_plain_text_item(GString *str, 60 const gchar *description, 61 const gchar *module, 62 const gchar *key, 63 gboolean with_scripture); 64 void gui_export_bookmarks_dialog(gint is_verselist, 65 GList *verses); 66 gboolean dialog_vbox1_key_press_event_cb(GtkWidget *widget, 67 GdkEventKey *event, 68 gpointer user_data); 69 70 #ifdef __cplusplus 71 } 72 #endif 73 #endif /* ___EXPORT_BOOKMARKS_H_ */ 74