OSDN Git Service

* Added test code of the qs_get_checked_attr() function.
[modchxj/mod_chxj.git] / include / chxj_tag_util.h
1 /*
2  * Copyright (C) 2005-2008 Atsushi Konno All rights reserved.
3  * Copyright (C) 2005 QSDN,Inc. All rights reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __CHXJ_TAG_UTIL_H__
18 #define __CHXJ_TAG_UTIL_H__
19
20 #include "mod_chxj.h"
21
22 /*----------------------------------------------------------------------------*/
23 /* prototype declare                                                          */
24 /*----------------------------------------------------------------------------*/
25 extern char *qs_get_value_attr(Doc *doc, Node *tag, apr_pool_t *pool);
26 extern char *qs_get_checked_attr(Doc *doc, Node *tag, apr_pool_t *pool);
27
28 extern char* qs_get_type_attr(
29   Doc*                doc,
30   Node*               tag,
31   request_rec*        r);
32
33 extern char* qs_get_name_attr(
34   Doc*         doc,
35   Node*        tag,
36   request_rec* r);
37
38 extern char* qs_get_istyle_attr(
39   Doc*         doc,
40   Node*        tag,
41   request_rec* r);
42
43 extern char* qs_get_maxlength_attr(
44   Doc*         doc, 
45   Node*        tag, 
46   request_rec* r);
47
48 extern char* qs_get_size_attr(
49   Doc*         doc, 
50   Node*        tag, 
51   request_rec* r);
52
53 extern char* qs_get_accesskey_attr(
54   Doc*         doc, 
55   Node*        tag, 
56   request_rec* r);
57
58 extern int qs_is_checked_checkbox_attr(
59   Doc*         doc, 
60   Node*        tag, 
61   request_rec* r);
62
63 extern char* qs_get_selected_value_text(
64   Doc*         doc, 
65   Node*        node, 
66   request_rec* r);
67
68 extern char* qs_get_selected_value(
69   Doc*         doc, 
70   Node*        node,
71   request_rec* r);
72
73 extern char* qs_alloc_zero_byte_string(
74   request_rec* r);
75
76 extern char *qs_trim_string(apr_pool_t *p, char *s);
77
78 extern int   chxj_chxjif_is_mine(
79   device_table* spec, 
80   Doc*          doc, 
81   Node*         tag);
82
83 extern char* qs_get_destlang_attr(
84   Doc* doc, 
85   Node* tag, 
86   request_rec* r);
87
88 extern char* qs_get_parse_attr(
89   Doc*         doc, 
90   Node*        tag, 
91   request_rec* r);
92
93 #endif
94 /*
95  * vim:ts=2 et
96  */