01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: ImageConstants.java 426576 2006-07-28 15:44:37Z jeremias $ */
19:
20: /*
21: * This file is part of the RTF library of the FOP project, which was originally
22: * created by Bertrand Delacretaz <bdelacretaz@codeconsult.ch> and by other
23: * contributors to the jfor project (www.jfor.org), who agreed to donate jfor to
24: * the FOP project.
25: */
26:
27: package org.apache.fop.render.rtf.rtflib.tools;
28:
29: /** Here will be defined all supported image formats.
30: * This class belongs to the <fo:external-graphic> tag processing.
31: * @author a.putz@skynamics.com (Andreas Putz)
32: */
33:
34: public class ImageConstants {
35: //////////////////////////////////////////////////
36: // @@ Symbolic constants
37: //////////////////////////////////////////////////
38:
39: /** Defines the case, if image is not supported */
40: public static final int I_NOT_SUPPORTED = -1;
41: /** Integer equivalent for EMF */
42: public static final int I_EMF = 0;
43: /** Integer equivalent for PNG */
44: public static final int I_PNG = 1;
45: /** Integer equivalent for JPG */
46: public static final int I_JPG = 2;
47: /** Integer equivalent for BMP */
48: public static final int I_BMP = 3;
49:
50: /** Integer equivalent for GIF */
51: public static final int I_GIF = 50;
52: /** Integer equivalent for JPEG C (??) */
53: public static final int I_JPG_C = 51;
54:
55: /** EMF file extension */
56: public static final String EMF_EXT = "emf";
57: /** PNG file extension */
58: public static final String PNG_EXT = "png";
59: /** JPG file extension */
60: public static final String JPG_EXT = "jpg";
61: /** JPEG file extension */
62: public static final String JPEG_EXT = "jpeg";
63: /** GIF file extension */
64: public static final String GIF_EXT = "gif";
65:
66: //////////////////////////////////////////////////
67: // @@ Construction
68: //////////////////////////////////////////////////
69:
70: /**
71: * Private constructor.
72: */
73: private ImageConstants() {
74: }
75: }
|