1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3 * Copyright (C) 2000 Helix Code, Inc.
4 *
5 * The Gnome Library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
9 *
10 * The Gnome Library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with the Gnome Library; see the file COPYING.LIB. If not,
17 * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 * Author: Radek Doulik <rodo@helixcode.com>
21 *
22 */
23
24 #include "htmlenumutils.h"
25
26 const gchar *
html_valign_name(HTMLVAlignType va)27 html_valign_name (HTMLVAlignType va)
28 {
29 switch (va) {
30 case HTML_VALIGN_TOP:
31 return "top";
32 case HTML_VALIGN_MIDDLE:
33 return "middle";
34 case HTML_VALIGN_BOTTOM:
35 return "bottom";
36 case HTML_VALIGN_NONE:
37 return "none";
38 default:
39 return "unknown";
40 }
41 }
42
43 const gchar *
html_halign_name(HTMLHAlignType ha)44 html_halign_name (HTMLHAlignType ha)
45 {
46 switch (ha) {
47 case HTML_HALIGN_LEFT:
48 return "left";
49 case HTML_HALIGN_CENTER:
50 return "center";
51 case HTML_HALIGN_RIGHT:
52 return "right";
53 case HTML_HALIGN_NONE:
54 return "none";
55 default:
56 return "unknown";
57 }
58 }
59