1 // Copyright 2005 Ben Hutchings <ben@decadent.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_STYLESHEETS_HPP
5 #define INC_STYLESHEETS_HPP
8 #include <nsIStyleSheet.h>
12 // These functions load and apply a style-sheet as necessary,
13 // overriding the built-in "preferences".
15 // init_agent_style_sheet() must be called once during startup
16 // apply_agent_style_sheet() must be called for each page
18 #if MOZ_VERSION_MAJOR > 1 || (MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR >= 8)
20 struct agent_style_sheet_holder {};
22 // Load agent style sheet from an (absolute) URI, and register it if
24 agent_style_sheet_holder init_agent_style_sheet(const char * uri);
25 inline void apply_agent_style_sheet(agent_style_sheet_holder, nsIPresShell *)
30 typedef nsCOMPtr<nsIStyleSheet> agent_style_sheet_holder;
31 already_AddRefed<nsIStyleSheet> init_agent_style_sheet(const char * uri);
32 void apply_agent_style_sheet(nsIStyleSheet *, nsIPresShell *);
37 #endif // !INC_STYLESHEETS_HPP