00001 /* 00002 * Copyright (C) 2005 Piotr Pokora <piotr.pokora@infoglob.pl> 00003 * 00004 * This program is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 00019 #ifndef MIDGARD_STYLE_H 00020 #define MIDGARD_STYLE_H 00021 00022 #include "midgard/midgard_object.h" 00023 00024 /* Midgard style structure */ 00025 00036 typedef struct _MgdStyle{ 00037 GList *stack; 00038 GHashTable *styles; 00039 GHashTable *page_elements; 00040 GHashTable *style_elements; 00041 }MgdStyle; 00042 00052 extern MgdStyle *midgard_style_new(midgard *mgd); 00053 00066 extern gboolean midgard_style_load_page(MgdStyle *style, MgdObject *object); 00067 00083 extern gboolean midgard_style_register(midgard *mgd, const gchar *name, MgdStyle *style); 00084 00097 extern gchar *midgard_style_get_element(MgdStyle *style, const gchar *name); 00098 00109 extern gboolean midgard_style_is_element_loaded(MgdStyle *style, const gchar *name); 00110 00120 extern void midgard_style_free(MgdStyle *style); 00121 00122 #endif /* MIDGARD_STYLE_H */
1.4.6