KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > render > rtf > rtflib > rtfdoc > ITableAttributes


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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
18 /* $Id: ITableAttributes.java 426576 2006-07-28 15:44:37Z jeremias $ */
19
20 package org.apache.fop.render.rtf.rtflib.rtfdoc;
21
22 /* $Id: ITableAttributes.java 426576 2006-07-28 15:44:37Z jeremias $ */
23
24
25 /*
26  * This file is part of the RTF library of the FOP project, which was originally
27  * created by Bertrand Delacretaz <bdelacretaz@codeconsult.ch> and by other
28  * contributors to the jfor project (www.jfor.org), who agreed to donate jfor to
29  * the FOP project.
30  */

31
32 /**
33  * Constants for RTF table attribute names
34  * @author unascribed
35  * @author Boris POUDEROUS
36  * @author Chris Scott, Westinghouse
37  */

38 public interface ITableAttributes {
39     /** to process column spanning */
40     String JavaDoc COLUMN_SPAN = "number-columns-spanned";
41     /** to process row spanning */
42     String JavaDoc ROW_SPAN = "number-rows-spanned";
43
44 // RTF 1.5 attributes (word 97)
45

46     /** half the space between the cells of a table row in twips */
47     String JavaDoc ATTR_RTF_15_TRGAPH = "trgaph";
48     
49     /**
50      * Position of the leftmost edge of the table with respect to the
51      * left edge of its column
52      */

53     String JavaDoc ATTR_ROW_LEFT_INDENT = "trleft";
54     
55     /** table row header */
56     String JavaDoc ATTR_HEADER = "trhdr";
57
58 // RTF 1.6 Row and table attributes
59
/** table row padding, top */
60     String JavaDoc ATTR_ROW_PADDING_TOP = "trpaddt";
61     /** table row padding, bottom */
62     String JavaDoc ATTR_ROW_PADDING_BOTTOM = "trpaddb";
63     /** table row padding, left */
64     String JavaDoc ATTR_ROW_PADDING_LEFT = "trpaddl";
65     /** table row padding, right */
66     String JavaDoc ATTR_ROW_PADDING_RIGHT = "trpaddr";
67
68     /** table row padding, top */
69     String JavaDoc ATTR_ROW_U_PADDING_TOP = "trpaddft";
70     /** table row padding, bottom */
71     String JavaDoc ATTR_ROW_U_PADDING_BOTTOM = "trpaddfb";
72     /** table row padding, left */
73     String JavaDoc ATTR_ROW_U_PADDING_LEFT = "trpaddfl";
74     /** table row padding, right */
75     String JavaDoc ATTR_ROW_U_PADDING_RIGHT = "trpaddfr";
76
77     /**
78      * List of ALL ROW PADDING attributes, used to select them when writing
79      * attributes
80      */

81     String JavaDoc[] ATTRIB_ROW_PADDING = {
82         ATTR_ROW_PADDING_TOP, ATTR_ROW_U_PADDING_TOP,
83         ATTR_ROW_PADDING_BOTTOM, ATTR_ROW_U_PADDING_BOTTOM,
84         ATTR_ROW_PADDING_LEFT, ATTR_ROW_U_PADDING_LEFT,
85         ATTR_ROW_PADDING_RIGHT, ATTR_ROW_U_PADDING_RIGHT,
86         ATTR_RTF_15_TRGAPH, ATTR_ROW_LEFT_INDENT
87     };
88
89 // Cell attributes
90
/** cell padding, top */
91     String JavaDoc ATTR_CELL_PADDING_TOP = "clpadt";
92     /** cell padding, bottom */
93     String JavaDoc ATTR_CELL_PADDING_BOTTOM = "clpadb";
94     /** cell padding, left */
95     String JavaDoc ATTR_CELL_PADDING_LEFT = "clpadl";
96     /** cell padding, right */
97     String JavaDoc ATTR_CELL_PADDING_RIGHT = "clpadr";
98
99     /** cell padding, top */
100     String JavaDoc ATTR_CELL_U_PADDING_TOP = "clpadft";
101     /** cell padding, bottom */
102     String JavaDoc ATTR_CELL_U_PADDING_BOTTOM = "clpadfb";
103     /** cell padding, left */
104     String JavaDoc ATTR_CELL_U_PADDING_LEFT = "clpadfl";
105     /** cell padding, right */
106     String JavaDoc ATTR_CELL_U_PADDING_RIGHT = "clpadfr";
107
108 // for border style file
109
/** cell border, top */
110     String JavaDoc CELL_BORDER_TOP = "clbrdrt";
111     /** cell border, bottom */
112     String JavaDoc CELL_BORDER_BOTTOM = "clbrdrb";
113     /** cell border, left */
114     String JavaDoc CELL_BORDER_LEFT = "clbrdrl";
115     /** cell border, right */
116     String JavaDoc CELL_BORDER_RIGHT = "clbrdrr";
117
118 //Table row border attributes
119
/** row border, top */
120     String JavaDoc ROW_BORDER_TOP = "trbrdrt";
121     /** row border, bottom */
122     String JavaDoc ROW_BORDER_BOTTOM = "trbrdrb";
123     /** row border, left */
124     String JavaDoc ROW_BORDER_LEFT = "trbrdrl";
125     /** row border, right */
126     String JavaDoc ROW_BORDER_RIGHT = "trbrdrr";
127     /** row border, horizontal */
128     String JavaDoc ROW_BORDER_HORIZONTAL = "trbrdrh";
129     /** row border, vertical */
130     String JavaDoc ROW_BORDER_VERTICAL = "trbrdrv";
131
132 //Table row attributes
133
/** row attribute, keep-together */
134     String JavaDoc ROW_KEEP_TOGETHER = "trkeep";
135     
136     /** Height of a table row in twips */
137     String JavaDoc ROW_HEIGHT = "trrh";
138
139     /**
140      * This control word is nonexistent in RTF, used to simulate the
141      * FO:keep-with-next attribute.
142      */

143     String JavaDoc ROW_KEEP_WITH_NEXT = "knext";
144
145     /**
146      * This control word is nonexistent in RTF, used to simulate the
147      * FO:keep-with-previous attribute.
148      */

149     String JavaDoc ROW_KEEP_WITH_PREVIOUS = "kprevious";
150
151     /** cell shading, a unit-based attribute */
152     String JavaDoc CELL_SHADE = "clshdng";
153     /** cell background color, a unit-based attribute */
154     String JavaDoc CELL_COLOR_BACKGROUND = "clcbpat";
155     /** cell foreground color, a unit-based attribute */
156     String JavaDoc CELL_COLOR_FOREGROUND = "clcfpat";
157
158     /**
159      * List of ALL CELL PADDING attributes, used to select them when writing
160      * attributes
161      */

162     String JavaDoc[] ATTRIB_CELL_PADDING = {
163         ATTR_CELL_PADDING_TOP, ATTR_CELL_U_PADDING_TOP,
164         ATTR_CELL_PADDING_BOTTOM, ATTR_CELL_U_PADDING_BOTTOM,
165         ATTR_CELL_PADDING_LEFT, ATTR_CELL_U_PADDING_LEFT,
166         ATTR_CELL_PADDING_RIGHT, ATTR_CELL_U_PADDING_RIGHT,
167     };
168
169     /**
170      * List of ALL CELL BORDER attributes, used to select them when writing
171      * attributes
172      */

173     String JavaDoc[] CELL_BORDER = {
174         CELL_BORDER_TOP, CELL_BORDER_BOTTOM,
175         CELL_BORDER_LEFT, CELL_BORDER_RIGHT
176     };
177
178     /**
179      * List of ALL ROW BORDER attributes, used to select them when writing
180      * attributes
181      */

182     String JavaDoc[] ROW_BORDER = {
183         ROW_BORDER_TOP, ROW_BORDER_BOTTOM, ROW_BORDER_LEFT,
184         ROW_BORDER_RIGHT, ROW_BORDER_HORIZONTAL, ROW_BORDER_VERTICAL
185     };
186
187     /**
188      * List of ALL CELL SHADING AND COLOR attributes, used to select them when
189      * writing attributes
190      */

191     String JavaDoc[] CELL_COLOR = {
192         CELL_SHADE, CELL_COLOR_BACKGROUND, CELL_COLOR_FOREGROUND
193     };
194 }
195
Popular Tags