00001 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */ 00002 00003 /* 00004 * This file is part of The Croco Library 00005 * 00006 * Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of version 2.1 of the 00010 * GNU Lesser General Public 00011 * License as published by the Free Software Foundation. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the 00019 * GNU Lesser General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 * USA 00023 */ 00024 00025 #ifndef __CR_LAY_ENG_H__ 00026 #define __CR_LAY_ENG_H__ 00027 00028 #include <libxml/tree.h> 00029 #include "cr-utils.h" 00030 #include "cr-cascade.h" 00031 #include "cr-box.h" 00032 00033 /** 00034 *@file 00035 *the declaration of the #CRLayEng class. 00036 */ 00037 00038 G_BEGIN_DECLS 00039 00040 typedef struct _CRLayEngPriv CRLayEngPriv ; 00041 00042 /** 00043 *The abstraction of the Layout engine of libcroco. 00044 */ 00045 typedef struct 00046 { 00047 CRLayEngPriv *priv ; 00048 } CRLayEng ; 00049 00050 00051 00052 void 00053 cr_lay_eng_init (glong a_argc, gchar ** a_argv) ; 00054 00055 CRLayEng * 00056 cr_lay_eng_new (GtkLayout *a_layout) ; 00057 00058 enum CRStatus 00059 cr_lay_eng_create_box_model (CRLayEng *a_this, 00060 xmlDoc *a_xml_doc, 00061 CRCascade *a_cascade, 00062 CRBoxModel **a_box_model) ; 00063 00064 enum CRStatus 00065 cr_lay_eng_layout_box_tree (CRLayEng *a_this, 00066 CRBox *a_box_tree) ; 00067 00068 void 00069 cr_lay_eng_destroy (CRLayEng *a_this) ; 00070 00071 G_END_DECLS 00072 00073 #endif /*__CR_LAYOUT_ENG_H__*/