~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/render.h

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <gtk/gtk.h>
25
25
 
26
 
#include "item.h"
27
 
 
28
26
/** render parameter type */
29
27
typedef struct renderParam {
30
28
        gchar   **params;
34
32
/**
35
33
 * To be called whenever the rendering parameters have changed.
36
34
 */
37
 
void render_update_params(void);
38
 
 
39
 
/**
40
 
 * Applies the stylesheet xslt to the given file with the given parameters.
41
 
 *
42
 
 * @param filename      valid absolut source filename
43
 
 * @param xsltName      name of a stylesheet
44
 
 * @param params        parameter/value string array (will be free'd)
45
 
 *
46
 
 * @returns rendered XHTML
47
 
 */
48
 
gchar * render_file(const gchar *filename, const gchar *xsltName, renderParamPtr paramSet);
 
35
void render_update_params (void);
49
36
 
50
37
/**
51
38
 * Applies the stylesheet xslt to the given XML document with the given parameters.
54
41
 * @param xsltName      name of a stylesheet
55
42
 * @param params        parameter/value string array (will be free'd)
56
43
 */
57
 
gchar * render_xml(xmlDocPtr doc, const gchar *xsltName, renderParamPtr paramSet);
 
44
gchar * render_xml (xmlDocPtr doc, const gchar *xsltName, renderParamPtr paramSet);
58
45
 
59
46
/**
60
47
 * Creates a new rendering parameter set.
61
48
 *
62
49
 * @returns new parameter set
63
50
 */
64
 
renderParamPtr render_parameter_new(void);
 
51
renderParamPtr render_parameter_new (void);
65
52
 
66
53
/**
67
54
 * Helper function to add a rendering parameter to the given parameter set.
71
58
 *
72
59
 * @returns a new parameter/value string array
73
60
 */
74
 
void render_parameter_add(renderParamPtr paramSet, const gchar *fmt, ...);
 
61
void render_parameter_add (renderParamPtr paramSet, const gchar *fmt, ...);
75
62
 
76
63
/**
77
64
 * Frees a given rendering parameter set.
78
65
 */
79
 
void render_parameter_free(renderParamPtr paramSet);
 
66
void render_parameter_free (renderParamPtr paramSet);
80
67
 
81
68
/**
82
69
 * Returns CSS definitions for inclusion in XHTML output.
83
70
 *
84
71
 * @param externalCss   TRUE if CSS can be served as file reference
85
72
 */
86
 
const gchar * render_get_css(gboolean externalCss);
 
73
const gchar * render_get_css (gboolean externalCss);
87
74
 
88
75
#endif