2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
#ifndef EL__DOCUMENT_CSS_CSS_H
|
|
|
|
#define EL__DOCUMENT_CSS_CSS_H
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct css_stylesheet;
|
|
|
|
struct module;
|
|
|
|
struct uri;
|
|
|
|
|
2007-07-27 19:31:58 -04:00
|
|
|
/** @todo TODO: Basicly we need two default stylesheets. One that
|
|
|
|
* ELinks controls (which is defined by the defaults of every
|
|
|
|
* property, they could however also be loadable at startup time,
|
|
|
|
* e.g. when/if we will have a very generalised renderer it would be
|
2008-01-26 23:09:18 -05:00
|
|
|
* possible to bypass the HTML renderer but would simply use an HTML
|
2007-07-27 19:31:58 -04:00
|
|
|
* stylesheet like the one in CSS2 Appendix A. "A sample style sheet
|
|
|
|
* for HTML 4.0") and one that the user controls. They should be
|
|
|
|
* remerged when ever the user reloads the user stylesheet but else
|
|
|
|
* they should be pretty static. Together they defines the basic
|
|
|
|
* layouting should be done when rendering the document. */
|
2005-09-15 09:58:31 -04:00
|
|
|
extern struct css_stylesheet default_stylesheet;
|
|
|
|
|
|
|
|
extern struct module css_module;
|
|
|
|
|
2007-07-27 19:31:58 -04:00
|
|
|
/** This function will try to import the given @a url from the cache. */
|
2005-09-15 09:58:31 -04:00
|
|
|
void import_css(struct css_stylesheet *css, struct uri *uri);
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
int supports_css_media_type(const char *optstr,
|
|
|
|
const char *token, size_t token_length);
|
2007-12-21 22:18:06 -05:00
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|