source: trunk/third/gtkhtml/src/htmlenumutils.c @ 16767

Revision 16767, 1.5 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
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., 59 Temple Place - Suite 330,
18   Boston, MA 02111-1307, USA.
19
20   Author: Radek Doulik <rodo@helixcode.com>
21
22*/
23
24#include "htmlenumutils.h"
25
26const gchar *
27html_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
44const gchar *
45html_halign_name (HTMLHAlignType ha)
46{
47        switch (ha) {
48        case HTML_HALIGN_LEFT:
49                return "left";
50        case HTML_HALIGN_CENTER:
51                return "center";
52        case HTML_HALIGN_RIGHT:
53                return "right";
54        case HTML_HALIGN_NONE:
55                return "none";
56        default:
57                return "unknown";
58        }
59}
Note: See TracBrowser for help on using the repository browser.