01: /**
02: * $Id: RtfField.java 2655 2007-03-15 19:26:36Z xlv $
03: *
04: * Copyright 2002 by
05: * <a href="http://www.smb-tec.com">SMB</a>
06: * Steffen.Stundzig (Steffen.Stundzig@smb-tec.com)
07: *
08: * The contents of this file are subject to the Mozilla Public License Version 1.1
09: * (the "License"); you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
11: *
12: * Software distributed under the License is distributed on an "AS IS" basis,
13: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14: * for the specific language governing rights and limitations under the License.
15: *
16: * The Original Code is 'iText, a free JAVA-PDF library'.
17: *
18: * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
19: * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
20: * All Rights Reserved.
21: * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
22: * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
23: *
24: * Contributor(s): all the names of the contributors are added in the source code
25: * where applicable.
26: *
27: * Alternatively, the contents of this file may be used under the terms of the
28: * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the
29: * provisions of LGPL are applicable instead of those above. If you wish to
30: * allow use of your version of this file only under the terms of the LGPL
31: * License and not to allow others to use your version of this file under
32: * the MPL, indicate your decision by deleting the provisions above and
33: * replace them with the notice and other provisions required by the LGPL.
34: * If you do not delete the provisions above, a recipient may use your version
35: * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.
36:
37: *
38: * This library is free software; you can redistribute it and/or modify it
39: * under the terms of the MPL as stated above or under the terms of the GNU
40: * Library General Public License as published by the Free Software Foundation;
41: * either version 2 of the License, or any later version.
42: *
43: * This library is distributed in the hope that it will be useful, but WITHOUT
44: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
45: * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more
46: * details.
47: *
48: * If you didn't download this code from the following link, you should check if
49: * you aren't using an obsolete version:
50: * http://www.lowagie.com/iText/
51: */package com.lowagie.text.rtf;
52:
53: import java.io.IOException;
54: import java.io.OutputStream;
55:
56: /**
57: * This interface should mark classes, that can be represented
58: * as RTF fields, such as pagenumber, toc entries and so on.
59: *
60: * ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.
61: *
62: * This class is based on the RtfWriter-package from Mark Hall.
63: * @author Steffen.Stundzig (Steffen.Stundzig@smb-tec.com)
64: * @version $Revision: 2655 $Date: 2006/09/14 23:10:54 $
65: * @deprecated Please move to the RtfWriter2 and associated classes.
66: */
67: public interface RtfField {
68:
69: /**
70: * Writes an RTF field.
71: * @param writer
72: * @param out
73: * @throws IOException
74: */
75: public void write(RtfWriter writer, OutputStream out)
76: throws IOException;
77: }
|