GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-html-extras.h
1/********************************************************************
2 * gnc-html-extras.h -- display html with gnc special tags *
3 * Copyright (C) 2009 Phil Longstaff <plongstaff@rogers.com> *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21\********************************************************************/
22
23#ifndef GNC_HTML_EXTRAS_H
24#define GNC_HTML_EXTRAS_H
25
26// This file is needed so that these definitions can be separately included in the
27// gnc-html.i file. The full gnc-html.h file can't be parsed because of the new
28// use of GObject
29
30#define URL_TYPE_FILE "file"
31#define URL_TYPE_JUMP "jump"
32#define URL_TYPE_HTTP "http"
33#define URL_TYPE_FTP "ftp"
34#define URL_TYPE_SECURE "secure"
35#define URL_TYPE_REGISTER "register" /* for gnucash register popups */
36#define URL_TYPE_ACCTTREE "accttree" /* for account tree windows */
37#define URL_TYPE_REPORT "report" /* for gnucash report popups */
38#define URL_TYPE_OPTIONS "options" /* for editing report options */
39#define URL_TYPE_SCHEME "scheme" /* for scheme code evaluation */
40#define URL_TYPE_HELP "help" /* for a gnucash help window */
41#define URL_TYPE_XMLDATA "xmldata" /* links to gnucash XML data files */
42#define URL_TYPE_PRICE "price" /* for price editor popups */
43#define URL_TYPE_OTHER "other"
44#define URL_TYPE_BUDGET "budget"
45
46typedef const char* URLType;
47
48#ifdef __cplusplus
49#define NOEXCEPT noexcept
50extern "C"
51{
52#else
53#define NOEXCEPT
54#endif
55
56gchar* gnc_build_url( URLType type, const gchar* location, const gchar* label ) NOEXCEPT;
57gboolean gnc_html_engine_supports_css( void ) NOEXCEPT;
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif // GNC_HTML_EXTRAS_H