/apps/files_reminders/src/services/

rg/xmlgraphics-fop.git/atom/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java?h=Temp_PDF_in_PDF' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfLineBreak.java
blob: d46294e4014c1778278d5af1ca56ab9a03a1bf06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * Copyright 1999-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* $Id$ */

package org.apache.fop.render.rtf.rtflib.rtfdoc;

/*
 * This file is part of the RTF library of the FOP project, which was originally
 * created by Bertrand Delacretaz <bdelacretaz@codeconsult.ch> and by other
 * contributors to the jfor project (www.jfor.org), who agreed to donate jfor to
 * the FOP project.
 */

import java.io.Writer;
import java.io.IOException;

/**  "Model" of an RTF line break
 *  @author Bertrand Delacretaz bdelacretaz@codeconsult.ch
 */

public class RtfLineBreak extends RtfElement {
    /** Create an RTF paragraph as a child of given container with default attributes */
    RtfLineBreak(IRtfTextContainer parent, Writer w) throws IOException {
        super((RtfContainer)parent, w);
    }

    /**
     * Overridden to write our attributes before our content
     * @throws IOException for I/O problems
     */
    protected void writeRtfContent() throws IOException {
        writeControlWord("line");
    }

    /** @return true if this element would generate no "useful" RTF content */
    public boolean isEmpty() {
        return false;
    }
}