View | Details | Raw Unified | Return to bug 53400
Collapse All | Expand All

(-)src/documentation/content/xdocs/trunk/running.xml (-1 / +3 lines)
Lines 109-115 Link Here
109
      </p>
109
      </p>
110
      <source><![CDATA[
110
      <source><![CDATA[
111
USAGE
111
USAGE
112
Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>
112
Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-odt|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>
113
 [OPTIONS]
113
 [OPTIONS]
114
  -version          print FOP version and exit
114
  -version          print FOP version and exit
115
  -d                debug mode
115
  -d                debug mode
Lines 164-169 Link Here
164
  -pdfa1b outfile   input will be rendered as PDF/A-1b compliant PDF
164
  -pdfa1b outfile   input will be rendered as PDF/A-1b compliant PDF
165
                    (outfile req'd, same as "-pdf outfile -pdfprofile PDF/A-1b")
165
                    (outfile req'd, same as "-pdf outfile -pdfprofile PDF/A-1b")
166
  -awt              input will be displayed on screen
166
  -awt              input will be displayed on screen
167
  -odt outfile      input will be rendered as ODT (outfile req'd)
167
  -rtf outfile      input will be rendered as RTF (outfile req'd)
168
  -rtf outfile      input will be rendered as RTF (outfile req'd)
168
  -pcl outfile      input will be rendered as PCL (outfile req'd)
169
  -pcl outfile      input will be rendered as PCL (outfile req'd)
169
  -ps outfile       input will be rendered as PostScript (outfile req'd)
170
  -ps outfile       input will be rendered as PostScript (outfile req'd)
Lines 197-202 Link Here
197
  fop -xml foo.xml -xsl foo.xsl -foout foo.fo
198
  fop -xml foo.xml -xsl foo.xsl -foout foo.fo
198
  fop -xml - -xsl foo.xsl -pdf -
199
  fop -xml - -xsl foo.xsl -pdf -
199
  fop foo.fo -mif foo.mif
200
  fop foo.fo -mif foo.mif
201
  fop foo.fo -odt foo.odt
200
  fop foo.fo -rtf foo.rtf
202
  fop foo.fo -rtf foo.rtf
201
  fop foo.fo -print
203
  fop foo.fo -print
202
  fop foo.fo -awt]]></source>
204
  fop foo.fo -awt]]></source>
(-)src/documentation/content/xdocs/trunk/output.xml (+9 lines)
Lines 1111-1116 Link Here
1111
      </section>
1111
      </section>
1112
    </section>
1112
    </section>
1113
  </section>
1113
  </section>
1114
<section id="odt">
1115
  <title>ODT</title>
1116
  <p>
1117
    An open source XSL-FO to ODT converter has been integrated into Apache FOP.
1118
    This will create an ODT (rich text format) document that will
1119
    attempt to contain as much information from the XSL-FO document as
1120
    possible.
1121
  </p>
1122
</section>
1114
<section id="rtf">
1123
<section id="rtf">
1115
  <title>RTF</title>
1124
  <title>RTF</title>
1116
  <p>
1125
  <p>
(-)src/java/org/apache/fop/render/odf/FopOdfConverter.java (+47 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf;
19
20
import java.io.OutputStream;
21
22
import org.apache.fop.fo.FONode;
23
24
/**
25
 * Renderer that renders areas to odt.
26
 */
27
public interface FopOdfConverter {
28
29
    /**
30
     * Initialisation of converter
31
     * @throws OdfException
32
     */
33
    void init() throws OdfException;
34
35
    /**
36
     * Write created odf document to the output stream
37
     * @param os output stream
38
     */
39
    void writeToOutputStream(OutputStream os);
40
41
    /**
42
     * Convert FONode with its children to odf document holden by converter
43
     * @param foNode node of xslfo
44
     */
45
    void convertRecursively(FONode foNode);
46
47
}
(-)src/java/org/apache/fop/render/odf/OdfException.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf;
19
20
import org.apache.avalon.framework.CascadingException;
21
22
public class OdfException extends CascadingException {
23
24
    /**
25
     *
26
     */
27
    private static final long serialVersionUID = 6464226563894799824L;
28
29
    public OdfException(String message, Throwable throwable) {
30
        super(message, throwable);
31
    }
32
}
(-)src/java/org/apache/fop/render/odf/ODTHandler.java (+74 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf;
19
20
import java.io.OutputStream;
21
22
import org.xml.sax.SAXException;
23
24
import org.apache.fop.apps.FOUserAgent;
25
import org.apache.fop.fo.FOEventHandler;
26
import org.apache.fop.fo.pagination.PageSequence;
27
28
import org.apache.fop.render.odf.odt.FopOdtConverter;
29
30
/**
31
 * ODT Handler: generates ODT output
32
 */
33
public class ODTHandler extends FOEventHandler {
34
35
    private FopOdfConverter converter = new FopOdtConverter();
36
37
    private final OutputStream os;
38
39
    /**
40
     * Constructor : keeping output stream
41
     */
42
    public ODTHandler(FOUserAgent userAgent, OutputStream os) {
43
        super(userAgent);
44
        this.os = os;
45
    }
46
47
    /**
48
     * {@inheritDoc}
49
     */
50
    @Override
51
    public void startDocument() throws SAXException {
52
        try {
53
            converter.init();
54
        } catch (OdfException e) {
55
            e.printStackTrace();
56
        }
57
    }
58
59
    /**
60
     * {@inheritDoc}
61
     */
62
    @Override
63
    public void endDocument() throws SAXException {
64
        converter.writeToOutputStream(os);
65
    }
66
67
    /**
68
     * {@inheritDoc}
69
     */
70
    @Override
71
    public void endPageSequence(PageSequence pageSeq) {
72
        converter.convertRecursively(pageSeq);
73
    }
74
}
(-)src/java/org/apache/fop/render/odf/odt/FopOdtConverter.java (+115 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt;
19
20
import java.io.OutputStream;
21
import java.util.Iterator;
22
23
import org.odftoolkit.odfdom.doc.OdfTextDocument;
24
25
import org.apache.fop.fo.FONode;
26
27
import org.apache.fop.render.odf.FopOdfConverter;
28
import org.apache.fop.render.odf.FopTagType;
29
import org.apache.fop.render.odf.OdfException;
30
import org.apache.fop.render.odf.odt.tags.RootTag;
31
import org.apache.fop.render.odf.odt.tags.Tag;
32
import org.apache.fop.render.odf.odt.tags.TagFactory;
33
34
/**
35
 * Renderer that renders areas to odt.
36
 */
37
public class FopOdtConverter implements FopOdfConverter {
38
39
    OdfTextDocument odt = null;
40
41
    private TagFactory factory = new TagFactory();
42
43
    private Tag actualTag = null;
44
45
    /**
46
     * {@inheritDoc}
47
     * @throws OdfException
48
     */
49
    public void init() throws OdfException {
50
51
        try {
52
            odt = OdfTextDocument.newTextDocument();
53
        } catch (Exception e) {
54
            throw new OdfException("Can't initialize the document", e);
55
        }
56
57
        actualTag = new RootTag(odt);
58
    }
59
60
    /**
61
     * {@inheritDoc}
62
     */
63
    public void writeToOutputStream(OutputStream os) {
64
65
        try {
66
            odt.save(os);
67
        } catch (Exception e) {
68
            System.err.println(e.getMessage());
69
            e.printStackTrace();
70
        }
71
    }
72
73
    /**
74
     * {@inheritDoc}
75
     */
76
    public void convertRecursively(FONode foNode) {
77
        this.convert(foNode, FopTagType.START);
78
79
        if (foNode.getChildNodes() != null) {
80
            for (Iterator<?> it = foNode.getChildNodes(); it.hasNext();) {
81
                FONode fn = (FONode) it.next();
82
                convertRecursively(fn);
83
            }
84
        }
85
86
        this.convert(foNode, FopTagType.END);
87
    }
88
89
    /**
90
     * Convert one tag to the element of odt.
91
     * @param image the image which will be painted
92
     * @param context the renderer context for the current renderer
93
     */
94
    private void convert(FONode foNode, FopTagType type) {
95
        if (type == FopTagType.START) {
96
            try {
97
                actualTag = factory.getTag(this, foNode, actualTag);
98
            } catch (OdfException e1) {
99
                e1.printStackTrace();
100
            }
101
            try {
102
                actualTag.execute();
103
            } catch (OdfException e) {
104
                e.printStackTrace();
105
            }
106
        } else if (type == FopTagType.END) {
107
            try {
108
                actualTag.closeIntercept();
109
            } catch (OdfException e) {
110
                e.printStackTrace();
111
            }
112
            actualTag = actualTag.getParent();
113
        }
114
    }
115
}
(-)src/java/org/apache/fop/render/odf/odt/Namespace.java (+40 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt;
19
20
/**
21
 * Defines namespeces used for odf attributes.
22
 */
23
public final class Namespace {
24
25
    public static final String OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
26
27
    public static final String FO     = "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0";
28
29
    public static final String XLINK  = "http://www.w3.org/1999/xlink";
30
31
    public static final String SVG    = "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0";
32
33
    public static final String TABLE  = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
34
35
    public static final String STYLE = "urn:oasis:names:tc:opendocument:xmlns:style:1.0";
36
37
    public static final String TEXT  = "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
38
39
    private Namespace() {  }
40
}
(-)src/java/org/apache/fop/render/odf/odt/OdtStyleGenerator.java (+38 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt;
19
20
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
21
22
import org.apache.fop.render.odf.odt.tags.BlockTag;
23
24
public final class OdtStyleGenerator {
25
26
    static OdtStyleGenerator instance = new OdtStyleGenerator();
27
28
    public static OdtStyleGenerator getInstance() {
29
        return instance;
30
    }
31
32
    private OdtStyleGenerator() { }
33
34
    public StyleStyleElement getOdtStyle(BlockTag blockTag) {
35
        return null;
36
    }
37
38
}
(-)src/java/org/apache/fop/render/odf/odt/Style.java (+84 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt;
19
20
import java.util.HashMap;
21
import java.util.Map;
22
import java.util.Map.Entry;
23
24
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
25
26
import org.apache.fop.render.odf.properties.Properties;
27
import org.apache.fop.render.odf.properties.Property;
28
29
/**
30
 * Main class for style management.
31
 */
32
public class Style {
33
34
    private Map<Property, String> parameters = new HashMap<Property, String>();
35
36
    private Style parentStyle = null;
37
38
    /**
39
     * Constructor
40
     */
41
    public Style(Style parentStyle) {
42
        this.parentStyle = parentStyle;
43
    }
44
45
    /**
46
     * Constructor Style for the root tag. Setting default style parameters
47
     */
48
    public Style() {
49
        parameters.put(Properties.FONT_FAMILY, "Times New Roman");
50
        parameters.put(Properties.FONT_SIZE, "12pt");
51
        parameters.put(Properties.COLOR, "#000000");
52
        parameters.put(Properties.TEXT_ALIGN, "left");
53
    }
54
55
    /**
56
     * Get all style parameters
57
     */
58
    public Map<Property, String> getParameters() {
59
        return parameters;
60
    }
61
62
    /**
63
     * get an object from parameters.
64
     */
65
    public String get(Property property) {
66
        String value = parameters.get(property);
67
68
        if (value == null && parentStyle != null) {
69
            value = parentStyle.get(property);
70
        }
71
72
        return value;
73
    }
74
75
    public static String getStyleName(Map<String, StyleStyleElement> styles, StyleStyleElement sse) {
76
        for (Entry<String, StyleStyleElement> entry : styles.entrySet()) {
77
            StyleStyleElement style = entry.getValue();
78
            if (style.equals(sse)) {
79
                return entry.getKey();
80
            }
81
        }
82
        return null;
83
    }
84
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BasicLinkTag.java (+210 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.odftoolkit.odfdom.dom.element.text.TextAElement;
23
import org.odftoolkit.odfdom.dom.element.text.TextBookmarkRefElement;
24
import org.odftoolkit.odfdom.pkg.OdfElement;
25
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
26
27
import org.w3c.dom.DOMException;
28
29
import org.apache.fop.fo.flow.BasicLink;
30
31
import org.apache.fop.render.odf.OdfException;
32
import org.apache.fop.render.odf.odt.Namespace;
33
import org.apache.fop.render.odf.properties.Properties;
34
import org.apache.fop.render.odf.properties.Property;
35
36
/**
37
 * VasicLink converter
38
 */
39
public class BasicLinkTag extends Tag {
40
41
    protected BasicLink bl = null;
42
43
    protected OdfElement oe = null;
44
45
    /**
46
     * Constructor.
47
     */
48
    public BasicLinkTag(Tag parent, BasicLink bl) {
49
        super(parent);
50
        this.bl = bl;
51
        Map<Property, String> params = this.currentStyle.getParameters();
52
53
        params.put(Properties.ALIGNMENT_ADJUST,                    null);
54
        params.put(Properties.ALIGNMENT_BASELINE,                  null);
55
        params.put(Properties.BASELINE_SHIFT,                      null);
56
        params.put(Properties.DOMINANT_BASELINE,                   null);
57
        params.put(Properties.LINE_HEIGHT,                         null);
58
        params.put(Properties.SOURCE_DOCUMENT,                     null);
59
        params.put(Properties.ROLE,                                null);
60
        params.put(Properties.AZIMUTH,                             null);
61
        params.put(Properties.CUE_AFTER,                           null);
62
        params.put(Properties.CUE_BEFORE,                          null);
63
        params.put(Properties.ELEVATION,                           null);
64
        params.put(Properties.PAUSE_AFTER,                         null);
65
        params.put(Properties.PAUSE_BEFORE,                        null);
66
        params.put(Properties.PITCH,                               null);
67
        params.put(Properties.PITCH_RANGE,                         null);
68
        params.put(Properties.PLAY_DURING,                         null);
69
        params.put(Properties.RICHNESS,                            null);
70
        params.put(Properties.SPEAK,                               null);
71
        params.put(Properties.SPEAK_HEADER,                        null);
72
        params.put(Properties.SPEAK_NUMERAL,                       null);
73
        params.put(Properties.SPEAK_PUNCTUATION,                   null);
74
        params.put(Properties.SPEECH_RATE,                         null);
75
        params.put(Properties.STRESS,                              null);
76
        params.put(Properties.VOICE_FAMILY,                        null);
77
        params.put(Properties.VOLUME,                              null);
78
        params.put(Properties.BACKGROUND_ATTACHMENT,               null);
79
        params.put(Properties.BACKGROUND_COLOR,                    Properties.BACKGROUND_COLOR.getColor(bl.getCommonBorderPaddingBackground()));
80
        params.put(Properties.BACKGROUND_IMAGE,                    null);
81
        params.put(Properties.BACKGROUND_REPEAT,                   null);
82
        params.put(Properties.BACKGROUND_POSITION_HORIZONTAL,      null);
83
        params.put(Properties.BACKGROUND_POSITION_VERTICAL,        null);
84
        params.put(Properties.BORDER_BEFORE_COLOR,                 null);
85
        params.put(Properties.BORDER_BEFORE_STYLE,                 null);
86
        params.put(Properties.BORDER_BEFORE_WIDTH,                 null);
87
        params.put(Properties.BORDER_AFTER_COLOR,                  null);
88
        params.put(Properties.BORDER_AFTER_STYLE,                  null);
89
        params.put(Properties.BORDER_AFTER_WIDTH,                  null);
90
        params.put(Properties.BORDER_START_COLOR,                  null);
91
        params.put(Properties.BORDER_START_STYLE,                  null);
92
        params.put(Properties.BORDER_START_WIDTH,                  null);
93
        params.put(Properties.BORDER_END_COLOR,                    null);
94
        params.put(Properties.BORDER_END_STYLE,                    null);
95
        params.put(Properties.BORDER_END_WIDTH,                    null);
96
        params.put(Properties.BORDER_TOP_COLOR,                    null);
97
        params.put(Properties.BORDER_TOP_STYLE,                    null);
98
        params.put(Properties.BORDER_TOP_WIDTH,                    null);
99
        params.put(Properties.BORDER_BOTTOM_COLOR,                 null);
100
        params.put(Properties.BORDER_BOTTOM_STYLE,                 null);
101
        params.put(Properties.BORDER_BOTTOM_WIDTH,                 null);
102
        params.put(Properties.BORDER_LEFT_COLOR,                   null);
103
        params.put(Properties.BORDER_LEFT_STYLE,                   null);
104
        params.put(Properties.BORDER_LEFT_WIDTH,                   null);
105
        params.put(Properties.BORDER_RIGHT_COLOR,                  null);
106
        params.put(Properties.BORDER_RIGHT_STYLE,                  null);
107
        params.put(Properties.BORDER_RIGHT_WIDTH,                  null);
108
        params.put(Properties.PADDING_BEFORE,                      null);
109
        params.put(Properties.PADDING_AFTER,                       null);
110
        params.put(Properties.PADDING_START,                       null);
111
        params.put(Properties.PADDING_END,                         null);
112
        params.put(Properties.PADDING_TOP,                         null);
113
        params.put(Properties.PADDING_BOTTOM,                      null);
114
        params.put(Properties.PADDING_LEFT,                        null);
115
        params.put(Properties.PADDING_RIGHT,                       null);
116
        params.put(Properties.MARGIN_TOP_INLINE,                   null);
117
        params.put(Properties.MARGIN_BOTTOM_INLINE,                null);
118
        params.put(Properties.MARGIN_LEFT_INLINE,                  null);
119
        params.put(Properties.MARGIN_RIGHT_INLINE,                 null);
120
        params.put(Properties.TOP_R,                               null);
121
        params.put(Properties.RIGHT_R,                             null);
122
        params.put(Properties.BOTTOM_R,                            null);
123
        params.put(Properties.LEFT_R,                              null);
124
        params.put(Properties.RELATIVE_POSITION,                   null);
125
        params.put(Properties.KEEP_TOGETHER,                       null);
126
        params.put(Properties.KEEP_WITH_NEXT,                      null);
127
        params.put(Properties.KEEP_WITH_PREVIOUS,                  null);
128
        params.put(Properties.ID,                                  null);
129
        params.put(Properties.DESTINATION_PLACEMENT_OFFSET,        null);
130
        params.put(Properties.EXTERNAL_DESTINATION,                null);
131
        params.put(Properties.INDICATE_DESTINATION,                null);
132
        params.put(Properties.INTERNAL_DESTINATION,                null);
133
        params.put(Properties.SHOW_DESTINATION,                    null);
134
        params.put(Properties.TARGET_PRESENTATION_CONTEXT,         null);
135
        params.put(Properties.TARGET_PROCESSING_CONTEXT,           null);
136
        params.put(Properties.TARGET_STYLESHEET,                   null);
137
        params.put(Properties.INDEX_CLASS,                         null);
138
        params.put(Properties.INDEX_KEY,                           null);
139
        params.put(Properties.PAGE_NUMBER_TREATMENT,               null);
140
141
        // Not in the specification
142
        params.put(Properties.FONT_FAMILY,                         Properties.FONT_FAMILY.getFont(bl.getCommonFont()));
143
        params.put(Properties.FONT_STYLE,                          Properties.FONT_STYLE.getFontStyle(bl.getCommonFont()));
144
        params.put(Properties.FONT_WEIGHT,                         Properties.FONT_WEIGHT.getFontWeight(bl.getCommonFont()));
145
        params.put(Properties.FONT_SIZE,                           Properties.FONT_SIZE.getFontSize(bl.getCommonFont()));
146
        params.put(Properties.COLOR,                               Properties.COLOR.getColor(bl.getColor()));
147
    }
148
149
    public OdfElement getLinkElement() {
150
        return oe;
151
    }
152
153
    @Override
154
    protected OdfElement getTextContainer() {
155
        if (this.oe != null) {
156
            return this.oe;
157
        } else {
158
            return parent.getTextContainer();
159
        }
160
    }
161
162
    /**
163
     * {@inheritDoc}
164
     */
165
    @Override
166
    public void execute() {
167
        if (bl.hasExternalDestination()) {
168
            try {
169
                oe = (TextAElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextAElement.ELEMENT_NAME);
170
            } catch (Exception e1) {
171
                e1.printStackTrace();
172
            }
173
            String url = bl.getExternalDestination();
174
            if (url.startsWith("url")) {
175
                url = url.substring(5, url.length() - 2);
176
            }
177
            oe.setAttributeNS(Namespace.XLINK, "xlink:href", url);
178
            oe.setAttributeNS(Namespace.XLINK, "xlink:type", "simple");
179
        } else if (bl.hasInternalDestination()) {
180
            try {
181
                oe = (TextBookmarkRefElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextBookmarkRefElement.ELEMENT_NAME);
182
            } catch (Exception e) {
183
                e.printStackTrace();
184
            }
185
            oe.setAttributeNS(Namespace.TEXT, "text:ref-name", bl.getInternalDestination());
186
            oe.setAttributeNS(Namespace.TEXT, "text:reference-format", "page");
187
        }
188
    }
189
190
    /**
191
     * {@inheritDoc}
192
     * @throws OdfException
193
     */
194
    @Override
195
    public void closeIntercept() throws OdfException {
196
        try {
197
            parent.getTextContainer().appendChild(oe);
198
        } catch (DOMException e) {
199
            e.printStackTrace();
200
        }
201
    }
202
203
    /**
204
     * {@inheritDoc}
205
     * @throws OdfException
206
     */
207
    public void executeFromParent(TagExecutable child) throws OdfException {
208
        child.execute(this);
209
    }
210
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BidiOverrideTag.java (+90 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.BidiOverride;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class BidiOverrideTag extends Tag {
28
29
    protected BidiOverride bo = null;
30
31
    protected BidiOverrideTag(Tag parent, BidiOverride bo) {
32
        super(parent);
33
        this.bo = bo;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.LINE_HEIGHT,             null);
37
//        params.put(Properties.letter_Spacing,          null);
38
//        params.put(Properties.word_Spacing,            null);
39
//        params.put(Properties.color,                  null);
40
//        params.put(Properties.azimuth,                null);
41
//        params.put(Properties.cue_After,               null);
42
//        params.put(Properties.cue_Before,              null);
43
//        params.put(Properties.elevation,              null);
44
//        params.put(Properties.pause_After,             null);
45
//        params.put(Properties.pause_Before,            null);
46
//        params.put(Properties.pitch,                  null);
47
//        params.put(Properties.pitch_Range,             null);
48
//        params.put(Properties.play_During,             null);
49
//        params.put(Properties.richness,               null);
50
//        params.put(Properties.speak,                  null);
51
//        params.put(Properties.speak_Header,            null);
52
//        params.put(Properties.speak_Numeral,           null);
53
//        params.put(Properties.speak_Punctuation,       null);
54
//        params.put(Properties.speech_Rate,             null);
55
//        params.put(Properties.stress,                 null);
56
//        params.put(Properties.voice_Family,            null);
57
//        params.put(Properties.volume,                 null);
58
//        params.put(Properties.font_Family,             null);
59
//        params.put(Properties.font_Selection_Strategy,  null);
60
//        params.put(Properties.font_Size,               null);
61
//        params.put(Properties.font_Stretch,            null);
62
//        params.put(Properties.font_Size_Adjust,         null);
63
//        params.put(Properties.font_Style,              null);
64
//        params.put(Properties.fontVariant,            null);
65
//        params.put(Properties.fontWeight,             null);
66
//        params.put(Properties.topR,                   null);
67
//        params.put(Properties.rightR,                 null);
68
//        params.put(Properties.bottomR,                null);
69
//        params.put(Properties.leftR,                  null);
70
//        params.put(Properties.relativePosition,       null);
71
//        params.put(Properties.id,                     null);
72
//        params.put(Properties.scoreSpaces,            null);
73
//        params.put(Properties.indexClass,             null);
74
//        params.put(Properties.indexKey,               null);
75
//        params.put(Properties.direction,              null);
76
//        params.put(Properties.unicodeBidi,            null);
77
78
    }
79
80
    @Override
81
    public void execute() throws OdfException {
82
        // TODO Auto-generated method stub
83
84
    }
85
86
    public void executeFromParent(TagExecutable child) throws OdfException {
87
        child.execute(this);
88
    }
89
90
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BlockContainerTag.java (+133 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.BlockContainer;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
/**
28
 * BlockContainer converter
29
 */
30
public class BlockContainerTag extends Tag {
31
32
    protected BlockContainer bc = null;
33
34
    /**
35
     * Constructor
36
     */
37
    protected BlockContainerTag(Tag parent, BlockContainer bc) {
38
        super(parent);
39
        this.bc = bc;
40
        Map<Property, String> params = this.currentStyle.getParameters();
41
42
//        params.put(Properties.displayAlign,                         null);
43
//        params.put(Properties.blockProgressionDimension,            null);
44
//        params.put(Properties.contentWidth,                         null);
45
//        params.put(Properties.height,                               null);
46
//        params.put(Properties.inlineProgressionDimension,           null);
47
//        params.put(Properties.width,                                null);
48
//        params.put(Properties.absolutePosition,                     null);
49
//        params.put(Properties.top,                                  null);
50
//        params.put(Properties.right,                                null);
51
//        params.put(Properties.bottom,                               null);
52
//        params.put(Properties.left,                                 null);
53
//        params.put(Properties.backgroundAttachment,                 null);
54
        params.put(Properties.BACKGROUND_COLOR,                      Properties.BACKGROUND_COLOR.getColor(bc.getCommonBorderPaddingBackground()));
55
//        params.put(Properties.backgroundImage,                      null);
56
//        params.put(Properties.backgroundRepeat,                     null);
57
//        params.put(Properties.backgroundPositionHorizontal,         null);
58
//        params.put(Properties.backgroundPositionVertical,           null);
59
//        params.put(Properties.borderBeforeColor,                    null);
60
//        params.put(Properties.borderBeforeStyle,                    null);
61
//        params.put(Properties.borderBeforeWidth,                    null);
62
//        params.put(Properties.borderAfterColor,                     null);
63
//        params.put(Properties.borderAfterStyle,                     null);
64
//        params.put(Properties.borderAfterWidth,                     null);
65
//        params.put(Properties.borderStartColor,                     null);
66
//        params.put(Properties.borderStartStyle,                     null);
67
//        params.put(Properties.borderStartWidth,                     null);
68
//        params.put(Properties.borderEndColor,                       null);
69
//        params.put(Properties.borderEndStyle,                       null);
70
//        params.put(Properties.borderEndWidth,                       null);
71
//        params.put(Properties.borderTopColor,                       null);
72
//        params.put(Properties.borderTopStyle,                       null);
73
//        params.put(Properties.borderTopWidth,                       null);
74
//        params.put(Properties.borderBottomColor,                    null);
75
//        params.put(Properties.borderBottomStyle,                    null);
76
//        params.put(Properties.borderBottomWidth,                    null);
77
//        params.put(Properties.borderLeftColor,                      null);
78
//        params.put(Properties.borderLeftStyle,                      null);
79
//        params.put(Properties.borderLeftWidth,                      null);
80
//        params.put(Properties.borderRightColor,                     null);
81
//        params.put(Properties.borderRightStyle,                     null);
82
//        params.put(Properties.borderRightWidth,                     null);
83
//        params.put(Properties.paddingBefore,                        null);
84
//        params.put(Properties.paddingAfter,                         null);
85
//        params.put(Properties.paddingStart,                         null);
86
//        params.put(Properties.paddingEnd,                           null);
87
//        params.put(Properties.paddingTop,                           null);
88
//        params.put(Properties.paddingBottom,                        null);
89
//        params.put(Properties.paddingLeft,                          null);
90
//        params.put(Properties.paddingRight,                         null);
91
//        params.put(Properties.marginTopBlock,                       null);
92
//        params.put(Properties.marginBottomBlock,                    null);
93
        params.put(Properties.MARGIN_LEFT_BLOCK,                      Properties.MARGIN_LEFT_BLOCK.getMargin(bc.getCommonMarginBlock()));
94
        params.put(Properties.MARGIN_RIGHT_BLOCK,                     Properties.MARGIN_RIGHT_BLOCK.getMargin(bc.getCommonMarginBlock()));
95
//        params.put(Properties.spaceBeforeBlock,                     null);
96
//        params.put(Properties.spaceAfterBlock,                      null);
97
//        params.put(Properties.startIndentBlock,                     null);
98
//        params.put(Properties.endIndentBlock,                       null);
99
//        params.put(Properties.clear,                                null);
100
//        params.put(Properties.intrusionDisplace,                    null);
101
//        params.put(Properties.breakAfter,                           null);
102
//        params.put(Properties.breakBefore,                          null);
103
//        params.put(Properties.keepTogether,                         null);
104
//        params.put(Properties.keepWithNext,                         null);
105
//        params.put(Properties.keepWithPrevious,                     null);
106
//        params.put(Properties.clip,                                 null);
107
//        params.put(Properties.overflow,                             null);
108
//        params.put(Properties.referenceOrientation,                 null);
109
//        params.put(Properties.span,                                 null);
110
//        params.put(Properties.id,                                   null);
111
//        params.put(Properties.zIndex,                               null);
112
//        params.put(Properties.indexClass,                           null);
113
//        params.put(Properties.indexKey,                             null);
114
//        params.put(Properties.writingMode,                          null);
115
    }
116
117
    /**
118
     * {@inheritDoc}
119
     */
120
    @Override
121
    public void execute() {
122
123
    }
124
125
    /**
126
     * {@inheritDoc}
127
     * @throws OdfException
128
     */
129
    public void executeFromParent(TagExecutable child) throws OdfException {
130
        child.execute(this);
131
    }
132
133
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BlockTag.java (+329 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Iterator;
21
import java.util.Map;
22
23
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
24
import org.odftoolkit.odfdom.dom.element.table.TableTableCellElement;
25
import org.odftoolkit.odfdom.dom.element.text.TextBookmarkElement;
26
import org.odftoolkit.odfdom.dom.element.text.TextLineBreakElement;
27
import org.odftoolkit.odfdom.dom.element.text.TextListItemElement;
28
import org.odftoolkit.odfdom.dom.element.text.TextPElement;
29
import org.odftoolkit.odfdom.pkg.OdfElement;
30
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
31
32
import org.apache.fop.fo.FONode;
33
import org.apache.fop.fo.FOText;
34
import org.apache.fop.fo.flow.Block;
35
import org.apache.fop.fo.flow.ListBlock;
36
import org.apache.fop.fo.flow.table.Table;
37
import org.apache.fop.layoutmgr.BlockLayoutManager;
38
import org.apache.fop.render.odf.OdfException;
39
import org.apache.fop.render.odf.odt.Namespace;
40
import org.apache.fop.render.odf.properties.Properties;
41
import org.apache.fop.render.odf.properties.Property;
42
/**
43
 * Block converter
44
 */
45
public class BlockTag extends Tag {
46
47
    private Block bl = null;
48
49
    private TextPElement paragraph = null;
50
51
    private OdfElement paragraphContainer = null;
52
53
    @Override
54
    protected OdfElement getTextContainer() {
55
        if (this.paragraph != null) {
56
            return this.paragraph;
57
        } else {
58
            return parent.getTextContainer();
59
        }
60
    }
61
62
    /**
63
     * {@inheritDoc}
64
     * @throws OdfException
65
     */
66
    @Override
67
    protected TextPElement getParagraph() throws OdfException {
68
        if (this.paragraph != null) {
69
            return this.paragraph;
70
        } else {
71
            return parent.getParagraph();
72
        }
73
    }
74
75
    /**
76
     * {@inheritDoc}
77
     */
78
    @Override
79
    protected OdfElement getParagraphContainer() {
80
        if (paragraphContainer != null) {
81
            return this.paragraphContainer;
82
        } else {
83
            return parent.getParagraphContainer();
84
        }
85
    }
86
87
    /**
88
     * Constructor
89
     * @throws OdfException
90
     */
91
    BlockTag(Tag parent, Block bl) throws OdfException {
92
        super(parent);
93
        this.bl = bl;
94
        Map<Property, String> params = this.currentStyle.getParameters();
95
96
        params.put(Properties.HYPHENATION_KEEP,                    null);
97
        params.put(Properties.HYPHENATION_LADDER_COUNT,             null);
98
        params.put(Properties.LAST_LINE_END_INDENT,                  null);
99
        params.put(Properties.LINE_HEIGHT,                         null);
100
        params.put(Properties.LINE_HEIGHT_SHIFT_ADJUSTMENT,          null);
101
        params.put(Properties.LINE_STACKING_STRATEGY,               null);
102
        params.put(Properties.LINEFEED_TREATMENT,                  null);
103
        params.put(Properties.WHITE_SPACE_TREATMENT,                null);
104
        params.put(Properties.TEXT_ALIGN,                          Properties.TEXT_ALIGN.getTextAlign(bl.getTextAlign()));
105
        params.put(Properties.TEXT_ALIGN_LAST,                      null);
106
        params.put(Properties.TEXT_INDENT,                         null);
107
        params.put(Properties.WHITE_SPACE_COLLAPSE,                 null);
108
        params.put(Properties.WRAP_OPTION,                         null);
109
        params.put(Properties.COLOR,                              Properties.COLOR.getColor(bl.getColor()));
110
        params.put(Properties.SOURCE_DOCUMENT,                     null);
111
//        params.put(Properties.role,                               null);
112
//        params.put(Properties.azimuth,                            null);
113
//        params.put(Properties.cueAfter,                           null);
114
//        params.put(Properties.cueBefore,                          null);
115
//        params.put(Properties.elevation,                          null);
116
//        params.put(Properties.pauseAfter,                         null);
117
//        params.put(Properties.pauseBefore,                        null);
118
//        params.put(Properties.pitch,                              null);
119
//        params.put(Properties.pitchRange,                         null);
120
//        params.put(Properties.playDuring,                         null);
121
//        params.put(Properties.richness,                           null);
122
//        params.put(Properties.speak,                              null);
123
//        params.put(Properties.speakHeader,                        null);
124
//        params.put(Properties.speakNumeral,                       null);
125
//        params.put(Properties.speakPunctuation,                   null);
126
//        params.put(Properties.speechRate,                         null);
127
//        params.put(Properties.stress,                             null);
128
//        params.put(Properties.voiceFamily,                        null);
129
//        params.put(Properties.volume,                             null);
130
//        params.put(Properties.backgroundAttachment,               null);
131
        params.put(Properties.BACKGROUND_COLOR,                    Properties.BACKGROUND_COLOR.getColor(bl.getCommonBorderPaddingBackground()));
132
//        params.put(Properties.backgroundImage,                    null);
133
//        params.put(Properties.backgroundRepeat,                   null);
134
//        params.put(Properties.backgroundPositionHorizontal,       null);
135
//        params.put(Properties.backgroundPositionVertical,         null);
136
//        params.put(Properties.borderBeforeColor,                  null);
137
//        params.put(Properties.borderBeforeStyle,                  null);
138
//        params.put(Properties.borderBeforeWidth,                  null);
139
//        params.put(Properties.borderAfterColor,                   null);
140
//        params.put(Properties.borderAfterStyle,                   null);
141
//        params.put(Properties.borderAfterWidth,                   null);
142
//        params.put(Properties.borderStartColor,                   null);
143
//        params.put(Properties.borderStartStyle,                   null);
144
//        params.put(Properties.borderStartWidth,                   null);
145
//        params.put(Properties.borderEndColor,                     null);
146
//        params.put(Properties.borderEndStyle,                     null);
147
//        params.put(Properties.borderEndWidth,                     null);
148
//        params.put(Properties.borderTopColor,                     null);
149
//        params.put(Properties.borderTopStyle,                     null);
150
//        params.put(Properties.borderTopWidth,                     null);
151
//        params.put(Properties.borderBottomColor,                  null);
152
//        params.put(Properties.borderBottomStyle,                  null);
153
//        params.put(Properties.borderBottomWidth,                  null);
154
//        params.put(Properties.borderLeftColor,                    null);
155
//        params.put(Properties.borderLeftStyle,                    null);
156
//        params.put(Properties.borderLeftWidth,                    null);
157
//        params.put(Properties.borderRightColor,                   null);
158
//        params.put(Properties.borderRightStyle,                   null);
159
//        params.put(Properties.borderRightWidth,                   null);
160
//        params.put(Properties.paddingBefore,                      null);
161
//        params.put(Properties.paddingAfter,                       null);
162
//        params.put(Properties.paddingStart,                       null);
163
//        params.put(Properties.paddingEnd,                         null);
164
//        params.put(Properties.paddingTop,                         null);
165
//        params.put(Properties.paddingBottom,                      null);
166
//        params.put(Properties.paddingLeft,                        null);
167
//        params.put(Properties.paddingRight,                       null);
168
        params.put(Properties.FONT_FAMILY,                         Properties.FONT_FAMILY.getFont(bl.getCommonFont()));
169
        params.put(Properties.FONT_SELECTION_STRATEGY,              null);
170
        params.put(Properties.FONT_SIZE,                           Properties.FONT_SIZE.getFontSize(bl.getCommonFont()));
171
        params.put(Properties.FONT_STRETCH,                        null);
172
        params.put(Properties.FONT_SIZE_ADJUST,                     null);
173
        params.put(Properties.FONT_STYLE,                          Properties.FONT_STYLE.getFontStyle(bl.getCommonFont()));
174
        params.put(Properties.FONT_VARIANT,                        null);
175
        params.put(Properties.FONT_WEIGHT,                         Properties.FONT_WEIGHT.getFontWeight(bl.getCommonFont()));
176
        params.put(Properties.COUNTRY,                            null);
177
        params.put(Properties.LANGUAGE,                           null);
178
        params.put(Properties.SCRIPT,                             null);
179
        params.put(Properties.HYPHENATE,                          null);
180
        params.put(Properties.HYPHENATION_CHARACTER,               null);
181
        params.put(Properties.HYPHENATION_PUSH_CHARACTER_COUNT,      null);
182
        params.put(Properties.HYPHENATION_RAMAIN_CHARACTER_COUNT,    null);
183
        params.put(Properties.MARGIN_TOP_BLOCK,                     null);
184
        params.put(Properties.MARGIN_BOTTOM_BLOCK,                  null);
185
        params.put(Properties.MARGIN_LEFT_BLOCK,                    Properties.MARGIN_LEFT_BLOCK.getMargin(bl.getCommonMarginBlock()));
186
        params.put(Properties.MARGIN_RIGHT_BLOCK,                   Properties.MARGIN_RIGHT_BLOCK.getMargin(bl.getCommonMarginBlock()));
187
        params.put(Properties.SPACE_BEFORE_BLOCK,                   Properties.SPACE_BEFORE_BLOCK.getSpace(bl.getCommonMarginBlock(), new BlockLayoutManager(bl)));
188
        params.put(Properties.SPACE_AFTER_BLOCK,                    Properties.SPACE_AFTER_BLOCK.getSpace(bl.getCommonMarginBlock(), new BlockLayoutManager(bl)));
189
//        params.put(Properties.startIndentBlock,                   null);
190
//        params.put(Properties.endIndentBlock,                     null);
191
//        params.put(Properties.topR,                               null);
192
//        params.put(Properties.rightR,                             null);
193
//        params.put(Properties.bottomR,                            null);
194
//        params.put(Properties.leftR,                              null);
195
//        params.put(Properties.relativePosition,                   null);
196
//        params.put(Properties.clear,                              null);
197
//        params.put(Properties.intrusionDisplace,                  null);
198
//        params.put(Properties.breakAfter,                         null);
199
//        params.put(Properties.breakBefore,                        null);
200
//        params.put(Properties.keepTogether,                       null);
201
//        params.put(Properties.keepWithNext,                       null);
202
//        params.put(Properties.keepWithPrevious,                   null);
203
//        params.put(Properties.orphans,                            null);
204
//        params.put(Properties.windows,                            null);
205
//        params.put(Properties.span,                               null);
206
//        params.put(Properties.id,                                 null);
207
//        params.put(Properties.visibility,                         null);
208
//        params.put(Properties.indexClass,                         null);
209
//        params.put(Properties.indexKey,                           null);
210
//        params.put(Properties.textAltitude,                       null);
211
//        params.put(Properties.textDepth,                          null);
212
213
        registerFont(this.currentStyle.getParameters().get(Properties.FONT_FAMILY));
214
    }
215
216
    /**
217
     * {@inheritDoc}
218
     * @throws OdfException
219
     */
220
    @Override
221
    public void execute() throws OdfException {
222
        parent.executeFromParent(this);
223
    }
224
225
    /**
226
     * {@inheritDoc}
227
     * @throws OdfException
228
     */
229
    @Override
230
    public void execute(Tag tag) throws OdfException {
231
232
        if (!bl.hasChildren()) {
233
            addLineBreak();
234
        } else {
235
            if (!childrenAreOnlyBlocks(this.bl)) {
236
                this.paragraph = this.newParagraph(parent.getParagraphContainer());
237
                StyleStyleElement sse = this.generateOdtStyle(this.currentStyle);
238
                sse.setAttributeNS(Namespace.STYLE, "style:family", "paragraph");
239
                this.paragraph.setStyleName(this.appendNewStyle(sse));
240
241
                if (bl.getId() != null) {
242
                    insertBookmark(bl.getId());
243
                }
244
            }
245
        }
246
    }
247
248
    private void insertBookmark(String id) throws OdfException {
249
        TextBookmarkElement tbe = null;
250
        try {
251
            tbe = (TextBookmarkElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextBookmarkElement.ELEMENT_NAME);
252
        } catch (Exception e) {
253
            throw new OdfException("Can't create link intern.", e);
254
        }
255
        tbe.setAttributeNS(Namespace.TEXT, "text:name", id);
256
        this.paragraph.appendChild(tbe);
257
    }
258
259
    /**
260
     * {@inheritDoc}
261
     * @throws OdfException
262
     */
263
    @Override
264
    public void execute(TableCellTag tag) throws OdfException {
265
        TableTableCellElement ttce = tag.getTableCellElement();
266
267
        this.paragraphContainer = ttce;
268
269
        if (!childrenAreOnlyBlocks(this.bl)) {
270
            this.paragraph = this.newParagraph(this.paragraphContainer);
271
        }
272
    }
273
274
    /**
275
     * {@inheritDoc}
276
     * @throws OdfException
277
     */
278
    @Override
279
    public void execute(ListItemTag tag) throws OdfException {
280
        TextListItemElement tlie = tag.getTextListItemElement();
281
282
        this.paragraphContainer = tlie;
283
284
        if (!childrenAreOnlyBlocks(this.bl)) {
285
            this.paragraph = this.newParagraph(this.paragraphContainer);
286
        }
287
    }
288
289
    private void addLineBreak() throws OdfException {
290
        TextLineBreakElement tlb = null;
291
        try {
292
            tlb = (TextLineBreakElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextLineBreakElement.ELEMENT_NAME);
293
        } catch (Exception e) {
294
            e.printStackTrace();
295
        }
296
297
        this.getParagraph().appendChild(tlb);
298
    }
299
300
    private boolean childrenAreOnlyBlocks(Block bl) {
301
302
        if (bl.hasChildren()) {
303
            for (Iterator<?> it = bl.getChildNodes(); it.hasNext();) {
304
                FONode next = (FONode) it.next();
305
                if (!(next instanceof Block || next instanceof ListBlock || next instanceof Table) ) {
306
                    if (next instanceof FOText) {
307
                        if ( ((FOText) next).length() != 0) {
308
                            return false;
309
                        }
310
                    } else {
311
                        return false;
312
                    }
313
                }
314
            }
315
        } else {
316
            return false;
317
        }
318
319
        return true;
320
    }
321
322
    /**
323
     * {@inheritDoc}
324
     * @throws OdfException
325
     */
326
    public void executeFromParent(TagExecutable child) throws OdfException {
327
        child.execute(this);
328
    }
329
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BookmarkTag.java (+54 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.pagination.bookmarks.Bookmark;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class BookmarkTag extends Tag {
28
29
    protected Bookmark bm = null;
30
31
    protected BookmarkTag(Tag parent, Bookmark bm) {
32
        super(parent);
33
        this.bm = bm;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.SOURCE_DOCUMENT,                        null);
37
        params.put(Properties.ROLE,                                  null);
38
        params.put(Properties.EXTERNAL_DESTINATION,                   null);
39
        params.put(Properties.INTERNAL_DESTINATION,                   null);
40
        params.put(Properties.STARTING_STATE,                         null);
41
42
    }
43
44
    @Override
45
    public void execute() throws OdfException {
46
        // TODO Auto-generated method stub
47
48
    }
49
50
    public void executeFromParent(TagExecutable child) throws OdfException {
51
        child.execute(this);
52
    }
53
54
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BookmarkTitleTag.java (+54 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.pagination.bookmarks.BookmarkTitle;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class BookmarkTitleTag extends Tag {
28
29
    protected BookmarkTitle bt = null;
30
31
    public BookmarkTitleTag(Tag parent, BookmarkTitle bt) {
32
        super(parent);
33
        this.bt = bt;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.COLOR,                                  null);
37
        params.put(Properties.SOURCE_DOCUMENT,                        null);
38
        params.put(Properties.ROLE,                                   null);
39
        params.put(Properties.FONT_STYLE,                             null);
40
        params.put(Properties.FONT_WEIGHT,                            null);
41
42
    }
43
44
    @Override
45
    public void execute() throws OdfException {
46
        // TODO Auto-generated method stub
47
48
    }
49
50
    public void executeFromParent(TagExecutable child) throws OdfException {
51
        child.execute(this);
52
    }
53
54
}
(-)src/java/org/apache/fop/render/odf/odt/tags/BookmarkTreeTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.bookmarks.BookmarkTree;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class BookmarkTreeTag extends Tag {
24
25
    protected BookmarkTree bt = null;
26
27
    protected BookmarkTreeTag(Tag parent, BookmarkTree bt) {
28
        super(parent);
29
        this.bt = bt;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ChangeBarBeginTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class ChangeBarBeginTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected ChangeBarBeginTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ChangeBarEndTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class ChangeBarEndTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected ChangeBarEndTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/CharacterTag.java (+161 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.Character;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
/**
28
 * Character converter
29
 */
30
public class CharacterTag extends Tag {
31
32
    protected Character c = null;
33
34
    CharacterTag(Tag actualTag, Character c) {
35
        super(actualTag);
36
        this.c = c;
37
        Map<Property, String> params = this.currentStyle.getParameters();
38
39
        params.put(Properties.ALIGNMENT_ADJUST,                    null);
40
        params.put(Properties.ALIGNMENT_BASELINE,                  null);
41
        params.put(Properties.BASELINE_SHIFT,                      null);
42
        params.put(Properties.DOMINANT_BASELINE,                   null);
43
        params.put(Properties.LINE_HEIGHT,                         null);
44
        params.put(Properties.CHARACTER,                          null);
45
        params.put(Properties.LETTER_SPACING,                      null);
46
        params.put(Properties.SUPPRESS_AT_LINE_BREAK,                null);
47
        params.put(Properties.TEXT_DECORATION,                     null);
48
        params.put(Properties.TEXT_SHADOW,                         null);
49
        params.put(Properties.TEXT_TRANSFORM,                      null);
50
        params.put(Properties.TREAT_AS_WORD_SPACE,                   null);
51
        params.put(Properties.COLOR,                              null);
52
        params.put(Properties.AZIMUTH,                            null);
53
//        params.put(Properties.cueAfter,                           null);
54
//        params.put(Properties.cueBefore,                          null);
55
//        params.put(Properties.elevation,                          null);
56
//        params.put(Properties.pauseAfter,                         null);
57
//        params.put(Properties.pauseBefore,                        null);
58
//        params.put(Properties.pitch,                              null);
59
//        params.put(Properties.pitchRange,                         null);
60
//        params.put(Properties.playDuring,                         null);
61
//        params.put(Properties.richness,                           null);
62
//        params.put(Properties.speak,                              null);
63
//        params.put(Properties.speakHeader,                        null);
64
//        params.put(Properties.speakNumeral,                       null);
65
//        params.put(Properties.speakPunctuation,                   null);
66
//        params.put(Properties.speechRate,                         null);
67
//        params.put(Properties.stress,                             null);
68
//        params.put(Properties.voiceFamily,                        null);
69
//        params.put(Properties.volume,                             null);
70
//        params.put(Properties.backgroundAttachment,               null);
71
        params.put(Properties.BACKGROUND_COLOR,                    Properties.BACKGROUND_COLOR.getColor(c.getCommonBorderPaddingBackground()));
72
        params.put(Properties.BACKGROUND_IMAGE,                    null);
73
//        params.put(Properties.backgroundRepeat,                   null);
74
//        params.put(Properties.backgroundPositionHorizontal,       null);
75
//        params.put(Properties.backgroundPositionVertical,         null);
76
//        params.put(Properties.borderBeforeColor,                  null);
77
//        params.put(Properties.borderBeforeStyle,                  null);
78
//        params.put(Properties.borderBeforeWidth,                  null);
79
//        params.put(Properties.borderAfterColor,                   null);
80
//        params.put(Properties.borderAfterStyle,                   null);
81
//        params.put(Properties.borderAfterWidth,                   null);
82
//        params.put(Properties.borderStartColor,                   null);
83
//        params.put(Properties.borderStartStyle,                   null);
84
//        params.put(Properties.borderStartWidth,                   null);
85
//        params.put(Properties.borderEndColor,                     null);
86
//        params.put(Properties.borderEndStyle,                     null);
87
//        params.put(Properties.borderEndWidth,                     null);
88
//        params.put(Properties.borderTopColor,                     null);
89
//        params.put(Properties.borderTopStyle,                     null);
90
//        params.put(Properties.borderTopWidth,                     null);
91
//        params.put(Properties.borderBottomColor,                  null);
92
//        params.put(Properties.borderBottomStyle,                  null);
93
//        params.put(Properties.borderBottomWidth,                  null);
94
//        params.put(Properties.borderLeftColor,                    null);
95
//        params.put(Properties.borderLeftStyle,                    null);
96
//        params.put(Properties.borderLeftWidth,                    null);
97
//        params.put(Properties.borderRightColor,                   null);
98
//        params.put(Properties.borderRightStyle,                   null);
99
//        params.put(Properties.borderRightWidth,                   null);
100
//        params.put(Properties.paddingBefore,                      null);
101
//        params.put(Properties.paddingAfter,                       null);
102
//        params.put(Properties.paddingStart,                       null);
103
//        params.put(Properties.paddingEnd,                         null);
104
//        params.put(Properties.paddingTop,                         null);
105
//        params.put(Properties.paddingBottom,                      null);
106
//        params.put(Properties.paddingLeft,                        null);
107
//        params.put(Properties.paddingRight,                       null);
108
//        params.put(Properties.fontFamily,                         null);
109
//        params.put(Properties.fontSelectionStrategy,              null);
110
//        params.put(Properties.fontSize,                           null);
111
//        params.put(Properties.fontStretch,                        null);
112
//        params.put(Properties.fontSizeAdjust,                     null);
113
//        params.put(Properties.fontStyle,                          null);
114
//        params.put(Properties.fontVariant,                        null);
115
//        params.put(Properties.fontWeight,                         null);
116
//        params.put(Properties.country,                            null);
117
//        params.put(Properties.language,                           null);
118
//        params.put(Properties.script,                             null);
119
//        params.put(Properties.hyphenate,                          null);
120
//        params.put(Properties.hyphenationCharacter,               null);
121
//        params.put(Properties.hyphenationPushCharacterCount,      null);
122
//        params.put(Properties.hyphenationRamainCharacterCount,    null);
123
//        params.put(Properties.marginTopInline,                    null);
124
//        params.put(Properties.marginBottomInline,                 null);
125
//        params.put(Properties.marginLeftInline,                   null);
126
//        params.put(Properties.marginRightInline,                  null);
127
//        params.put(Properties.spaceEndInline,                     null);
128
//        params.put(Properties.spaceStartInline,                   null);
129
//        params.put(Properties.topR,                               null);
130
//        params.put(Properties.rightR,                             null);
131
//        params.put(Properties.bottomR,                            null);
132
//        params.put(Properties.leftR,                              null);
133
//        params.put(Properties.relativePosition,                   null);
134
//        params.put(Properties.keepWithNext,                       null);
135
//        params.put(Properties.keepWithPrevious,                   null);
136
//        params.put(Properties.id,                                 null);
137
//        params.put(Properties.scoreSpaces,                        null);
138
//        params.put(Properties.visibility,                         null);
139
//        params.put(Properties.indexClass,                         null);
140
//        params.put(Properties.indexKey,                           null);
141
//        params.put(Properties.glyphOrientationHorizontal,         null);
142
//        params.put(Properties.glyphOrientationVertical,           null);
143
//        params.put(Properties.textAltitude,                       null);
144
//        params.put(Properties.textDepth,                          null);
145
    }
146
147
    /**
148
     * {@inheritDoc}
149
     */
150
    @Override
151
    public void execute() { }
152
153
    /**
154
     * {@inheritDoc}
155
     * @throws OdfException
156
     */
157
    public void executeFromParent(TagExecutable child) throws OdfException {
158
        child.execute(this);
159
    }
160
161
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ColorProfileTag.java (+49 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.pagination.ColorProfile;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class ColorProfileTag extends Tag {
28
29
    protected ColorProfile cp = null;
30
31
    protected ColorProfileTag(Tag parent, ColorProfile cp) {
32
        super(parent);
33
        this.cp = cp;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.SRC,   null);
37
    }
38
39
    @Override
40
    public void execute() throws OdfException {
41
        // TODO Auto-generated method stub
42
43
    }
44
45
    public void executeFromParent(TagExecutable child) throws OdfException {
46
        child.execute(this);
47
    }
48
49
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ConditionalPageMasterReferenceTag.java (+53 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.pagination.ConditionalPageMasterReference;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class ConditionalPageMasterReferenceTag extends Tag {
28
29
    protected ConditionalPageMasterReference cpmr = null;
30
31
    protected ConditionalPageMasterReferenceTag(Tag parent, ConditionalPageMasterReference cpmr) {
32
        super(parent);
33
        this.cpmr = cpmr;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.BLANK_OR_NOT_BLANK,                     null);
37
        params.put(Properties.MASTER_REFERENCE,                       null);
38
        params.put(Properties.ODD_OR_EVEN,                            null);
39
        params.put(Properties.PAGE_POSITION,                          null);
40
41
    }
42
43
    @Override
44
    public void execute() throws OdfException {
45
        // TODO Auto-generated method stub
46
47
    }
48
49
    public void executeFromParent(TagExecutable child) throws OdfException {
50
        child.execute(this);
51
    }
52
53
}
(-)src/java/org/apache/fop/render/odf/odt/tags/DeclarationsTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.Declarations;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class DeclarationsTag extends Tag {
24
25
    protected Declarations d = null;
26
27
    protected DeclarationsTag(Tag parent, Declarations d) {
28
        super(parent);
29
        this.d = d;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ExternalGraphicTag.java (+350 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.io.IOException;
21
import java.io.InputStream;
22
import java.util.Map;
23
import java.util.Random;
24
25
import org.odftoolkit.odfdom.dom.element.draw.DrawFrameElement;
26
import org.odftoolkit.odfdom.dom.element.draw.DrawImageElement;
27
import org.odftoolkit.odfdom.dom.element.text.TextParagraphElementBase;
28
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
29
30
import org.apache.commons.io.IOUtils;
31
32
import org.apache.xmlgraphics.image.loader.Image;
33
import org.apache.xmlgraphics.image.loader.ImageFlavor;
34
import org.apache.xmlgraphics.image.loader.ImageInfo;
35
import org.apache.xmlgraphics.image.loader.ImageManager;
36
import org.apache.xmlgraphics.image.loader.ImageSessionContext;
37
import org.apache.xmlgraphics.image.loader.impl.ImageRawStream;
38
import org.apache.xmlgraphics.image.loader.util.ImageUtil;
39
40
import org.apache.fop.apps.FOUserAgent;
41
42
import org.apache.fop.datatypes.LengthBase;
43
import org.apache.fop.fo.FObj;
44
import org.apache.fop.fo.flow.AbstractGraphics;
45
import org.apache.fop.fo.flow.ExternalGraphic;
46
import org.apache.fop.layoutmgr.inline.ImageLayout;
47
import org.apache.fop.render.odf.OdfException;
48
import org.apache.fop.render.odf.odt.Namespace;
49
import org.apache.fop.render.odf.properties.Properties;
50
import org.apache.fop.render.odf.properties.Property;
51
52
/**
53
 * External Graphic converter
54
 */
55
public class ExternalGraphicTag extends Tag {
56
57
    public static class PercentBaseContext implements org.apache.fop.datatypes.PercentBaseContext {
58
59
        Image image = null;
60
61
        public PercentBaseContext(Image image) {
62
            this.image = image;
63
        }
64
65
        public int getBaseLength(int lengthBase, FObj fobj) {
66
67
            final ImageInfo info = image.getInfo();
68
69
            switch (lengthBase) {
70
            case LengthBase.IMAGE_INTRINSIC_WIDTH:
71
                return info.getSize().getWidthMpt();
72
            case LengthBase.IMAGE_INTRINSIC_HEIGHT:
73
                return info.getSize().getHeightMpt();
74
            default:
75
                return info.getSize().getHeightMpt();
76
            }
77
        }
78
    }
79
80
    public static final String ODT_IMAGES_PATH = "Pictures/";
81
82
    ExternalGraphic eg = null;
83
84
    ExternalGraphicTag(Tag parent, ExternalGraphic eg) {
85
        super(parent);
86
        this.eg = eg;
87
        Map<Property, String> params = this.currentStyle.getParameters();
88
89
//        params.put(Properties.alignmentAdjust,                       null);
90
//        params.put(Properties.alignmentBaseline,                     null);
91
//        params.put(Properties.baselineShift,                         null);
92
//        params.put(Properties.displayAlign,                          null);
93
//        params.put(Properties.dominantBaseline,                      null);
94
//        params.put(Properties.allowedHeightScale,                   null);
95
//        params.put(Properties.allowedWidthScale,                    null);
96
//        params.put(Properties.blockProgressionDimension,            null);
97
//        params.put(Properties.contentHeight,                         null);
98
//        params.put(Properties.contentWidth,                          null);
99
//        params.put(Properties.height,                                 null);
100
//        params.put(Properties.inlineProgressionDimension,           null);
101
//        params.put(Properties.scaling,                                null);
102
//        params.put(Properties.scalingMethod,                         null);
103
//        params.put(Properties.width,                                  null);
104
//        params.put(Properties.lineHeight,                            null);
105
//        params.put(Properties.textAlign,                             null);
106
//        params.put(Properties.sourceDocument,                        null);
107
//        params.put(Properties.role,                                   null);
108
//        params.put(Properties.azimuth,                                null);
109
//        params.put(Properties.cueAfter,                              null);
110
//        params.put(Properties.cueBefore,                             null);
111
//        params.put(Properties.elevation,                              null);
112
//        params.put(Properties.pauseAfter,                            null);
113
//        params.put(Properties.pauseBefore,                           null);
114
//        params.put(Properties.pitch,                                  null);
115
//        params.put(Properties.pitchRange,                            null);
116
//        params.put(Properties.playDuring,                            null);
117
//        params.put(Properties.richness,                               null);
118
//        params.put(Properties.speak,                                  null);
119
//        params.put(Properties.speakHeader,                           null);
120
//        params.put(Properties.speakNumeral,                   null);
121
//        params.put(Properties.speakPunctuation,               null);
122
//        params.put(Properties.speechRate,                     null);
123
//        params.put(Properties.stress,                         null);
124
//        params.put(Properties.voiceFamily,                    null);
125
//        params.put(Properties.volume,                         null);
126
//        params.put(Properties.backgroundAttachment,           null);
127
        params.put(Properties.BACKGROUND_COLOR,                Properties.BACKGROUND_COLOR.getColor(eg.getCommonBorderPaddingBackground()));
128
//        params.put(Properties.backgroundImage,                null);
129
//        params.put(Properties.backgroundRepeat,               null);
130
//        params.put(Properties.backgroundPositionHorizontal,   null);
131
//        params.put(Properties.backgroundPositionVertical,     null);
132
//        params.put(Properties.borderBeforeColor,              null);
133
//        params.put(Properties.borderBeforeStyle,              null);
134
//        params.put(Properties.borderBeforeWidth,              null);
135
//        params.put(Properties.borderAfterColor,               null);
136
//        params.put(Properties.borderAfterStyle,               null);
137
//        params.put(Properties.borderAfterWidth,               null);
138
//        params.put(Properties.borderStartColor,               null);
139
//        params.put(Properties.borderStartStyle,               null);
140
//        params.put(Properties.borderStartWidth,               null);
141
//        params.put(Properties.borderEndColor,                 null);
142
//        params.put(Properties.borderEndStyle,                 null);
143
//        params.put(Properties.borderEndWidth,                 null);
144
//        params.put(Properties.borderTopColor,                       null);
145
//        params.put(Properties.borderTopStyle,                       null);
146
//        params.put(Properties.borderTopWidth,                       null);
147
//        params.put(Properties.borderBottomColor,                    null);
148
//        params.put(Properties.borderBottomStyle,                    null);
149
//        params.put(Properties.borderBottomWidth,                    null);
150
//        params.put(Properties.borderLeftColor,                      null);
151
//        params.put(Properties.borderLeftStyle,                      null);
152
//        params.put(Properties.borderLeftWidth,                      null);
153
//        params.put(Properties.borderRightColor,                     null);
154
//        params.put(Properties.borderRightStyle,                     null);
155
//        params.put(Properties.borderRightWidth,                     null);
156
//        params.put(Properties.paddingBefore,                         null);
157
//        params.put(Properties.paddingAfter,                          null);
158
//        params.put(Properties.paddingStart,                          null);
159
//        params.put(Properties.paddingEnd,                            null);
160
//        params.put(Properties.paddingTop,                            null);
161
//        params.put(Properties.paddingBottom,                         null);
162
//        params.put(Properties.paddingLeft,                           null);
163
//        params.put(Properties.paddingRight,                          null);
164
//        params.put(Properties.marginTopInline,                      null);
165
//        params.put(Properties.marginBottomInline,                   null);
166
//        params.put(Properties.marginLeftInline,                     null);
167
//        params.put(Properties.marginRightInline,                    null);
168
//        params.put(Properties.spaceEndInline,                       null);
169
//        params.put(Properties.spaceStartInline,                     null);
170
//        params.put(Properties.topR,                                  null);
171
//        params.put(Properties.rightR,                                null);
172
//        params.put(Properties.bottomR,                               null);
173
//        params.put(Properties.leftR,                                 null);
174
//        params.put(Properties.relativePosition,                      null);
175
//        params.put(Properties.keepWithNext,                         null);
176
//        params.put(Properties.keepWithPrevious,                     null);
177
//        params.put(Properties.clip,                                   null);
178
//        params.put(Properties.overflow,                               null);
179
//        params.put(Properties.id,                                     null);
180
//        params.put(Properties.src,                                    null);
181
//        params.put(Properties.indexClass,                            null);
182
//        params.put(Properties.indexKey,                              null);
183
184
    }
185
186
    /**
187
     * {@inheritDoc}
188
     * @throws OdfException
189
     */
190
    @Override
191
    public void execute() throws OdfException {
192
193
        ImageInfo info = null;
194
        FOUserAgent userAgent = eg.getUserAgent();
195
        ImageManager manager = userAgent.getImageManager();
196
197
        try {
198
            info = manager.getImageInfo(eg.getURL(), userAgent.getImageSessionContext());
199
            putGraphic(eg, info);
200
        } catch (Exception e) {
201
            throw new OdfException("Can't create an image.", e);
202
        }
203
    }
204
205
    private static final ImageFlavor[] FLAVORS = new ImageFlavor[] {
206
        ImageFlavor.RAW_EMF,
207
        ImageFlavor.RAW_PNG,
208
        ImageFlavor.RAW_JPEG
209
    };
210
211
    private void putGraphic(AbstractGraphics abstractGraphic, ImageInfo info)
212
            throws OdfException {
213
214
            FOUserAgent userAgent = abstractGraphic.getUserAgent();
215
            ImageManager manager = userAgent.getImageManager();
216
            ImageSessionContext sessionContext = userAgent.getImageSessionContext();
217
            Map<?, ?> hints = ImageUtil.getDefaultHints(sessionContext);
218
            Image image;
219
            try {
220
                image = manager.getImage(info, FLAVORS, hints, sessionContext);
221
            } catch (Exception e) {
222
                throw new OdfException("Can't create an image.", e);
223
            }
224
225
            putGraphic(abstractGraphic, image);
226
    }
227
228
    private void putGraphic(AbstractGraphics abstractGraphic, Image image)
229
            throws OdfException {
230
231
        byte[] rawData;
232
        try {
233
            rawData = getRawData(image);
234
        } catch (IOException e) {
235
            throw new OdfException("Can't create an image.", e);
236
        }
237
238
        if (rawData == null) {
239
            return;
240
        }
241
242
        ImageLayout layout = getImageLayout(abstractGraphic, image);
243
244
        String imageType = image.getInfo().getMimeType().split("/")[1];
245
246
        String filename = createFilename(imageType);
247
248
        putImageFileIntoOdt(rawData, filename, imageType);
249
250
        DrawImageElement die = createImage();
251
252
        die.setAttributeNS(Namespace.XLINK, "xlink:href", ODT_IMAGES_PATH + filename);
253
        die.setAttributeNS(Namespace.XLINK, "xlink:type", "simple");
254
        die.setAttributeNS(Namespace.XLINK, "xlink:show", "embed");
255
        die.setAttributeNS(Namespace.XLINK, "xlink:actuate", "onLoad");
256
257
        DrawFrameElement dfe = createImageFrame();
258
259
        dfe.setAttributeNS(Namespace.SVG, "svg:width", Double.valueOf(layout.getViewportSize().getWidth() / 1000) + "pt");
260
        dfe.setAttributeNS(Namespace.SVG, "svg:height", Double.valueOf(layout.getViewportSize().getHeight() / 1000) + "pt");
261
262
        addImageToImageFrame(die, dfe);
263
264
        addImageFrameToParagraph(dfe, this.getParagraph());
265
    }
266
267
    private byte[] getRawData(Image image) throws IOException {
268
269
        byte[] rawData = null;
270
271
        if (image instanceof ImageRawStream) {
272
            ImageRawStream rawImage = (ImageRawStream)image;
273
            InputStream in = rawImage.createInputStream();
274
            try {
275
                rawData = IOUtils.toByteArray(in);
276
            } finally {
277
                IOUtils.closeQuietly(in);
278
            }
279
        }
280
        return rawData;
281
    }
282
283
    private ImageLayout getImageLayout(AbstractGraphics abstractGraphic, Image image) {
284
285
        PercentBaseContext pContext = new ExternalGraphicTag.PercentBaseContext(image);
286
287
        return new ImageLayout( abstractGraphic,
288
                                pContext,
289
                                image.getInfo().getSize().getDimensionMpt());
290
    }
291
292
    private void putImageFileIntoOdt(byte[] rawData, String filename, String imageType) {
293
        this.getOdt().getPackage().insert(rawData, ODT_IMAGES_PATH + filename, imageType);
294
    }
295
296
    private String createFilename(String imageType) {
297
        String filename = null;
298
299
        do {
300
            Random randomGenerator = new Random();
301
            filename = randomGenerator.nextInt(100) + "." + imageType;
302
        } while(this.getOdt().getPackage().contains(ODT_IMAGES_PATH + filename));
303
304
        return filename;
305
    }
306
307
    private DrawImageElement createImage() throws OdfException {
308
        DrawImageElement die = null;
309
        try {
310
            die = (DrawImageElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), DrawImageElement.ELEMENT_NAME);
311
        } catch (Exception e) {
312
            throw new OdfException("Can't create an image.", e);
313
        }
314
        return die;
315
    }
316
317
    private DrawFrameElement createImageFrame() {
318
        DrawFrameElement dfe = null;
319
        try {
320
            dfe = (DrawFrameElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), DrawFrameElement.ELEMENT_NAME);
321
        } catch (Exception e) {
322
            e.printStackTrace();
323
        }
324
        return dfe;
325
    }
326
327
    private void addImageToImageFrame(DrawImageElement die, DrawFrameElement dfe) throws OdfException {
328
        try {
329
            dfe.appendChild(die);
330
        } catch (Exception e) {
331
            throw new OdfException("Can't create an image.", e);
332
        }
333
    }
334
335
    private void addImageFrameToParagraph(DrawFrameElement dfe, TextParagraphElementBase tpeb) {
336
        try {
337
            tpeb.appendChild(dfe);
338
        } catch (Exception e) {
339
            e.printStackTrace();
340
        }
341
    }
342
343
    /**
344
     * {@inheritDoc}
345
     * @throws OdfException
346
     */
347
    public void executeFromParent(TagExecutable child) throws OdfException {
348
        child.execute(this);
349
    }
350
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FloatTag.java (+53 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.Float;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class FloatTag extends Tag {
28
29
    protected Float f = null;
30
31
    protected FloatTag(Tag parent, Float f) {
32
        super(parent);
33
        this.f = f;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.CLEAR,                null);
37
        params.put(Properties.FLOAT_PROPERTY,        null);
38
        params.put(Properties.ID,                   null);
39
        params.put(Properties.INDEX_CLASS,           null);
40
        params.put(Properties.INDEX_KEY,             null);
41
    }
42
43
    @Override
44
    public void execute() throws OdfException {
45
        // TODO Auto-generated method stub
46
47
    }
48
49
    public void executeFromParent(TagExecutable child) throws OdfException {
50
        child.execute(this);
51
    }
52
53
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowAssignmentTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class FlowAssignmentTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected FlowAssignmentTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowMapTag.java (+48 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
public class FlowMapTag extends Tag {
27
28
    protected Object o = null;
29
30
    protected FlowMapTag(Tag parent, Object o) {
31
        super(parent);
32
        this.o = o;
33
        Map<Property, String> params = this.currentStyle.getParameters();
34
35
        params.put(Properties.FLOW_MAP_NAME,                          null);
36
    }
37
38
    @Override
39
    public void execute() throws OdfException {
40
        // TODO Auto-generated method stub
41
42
    }
43
44
    public void executeFromParent(TagExecutable child) throws OdfException {
45
        child.execute(this);
46
    }
47
48
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowNameSpecifierTag.java (+48 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
public class FlowNameSpecifierTag extends Tag {
27
28
    protected Object o = null;
29
30
    protected FlowNameSpecifierTag(Tag parent, Object o) {
31
        super(parent);
32
        this.o = o;
33
        Map<Property, String> params = this.currentStyle.getParameters();
34
35
        params.put(Properties.FLOW_NAME_REFERENCE,                    null);
36
    }
37
38
    @Override
39
    public void execute() throws OdfException {
40
        // TODO Auto-generated method stub
41
42
    }
43
44
    public void executeFromParent(TagExecutable child) throws OdfException {
45
        child.execute(this);
46
    }
47
48
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowSourceListTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class FlowSourceListTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected FlowSourceListTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowTag.java (+58 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.pagination.Flow;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
/**
28
 * Flow converter.
29
 */
30
public class FlowTag extends Tag {
31
32
    protected Flow f = null;
33
34
    FlowTag(Tag parent, Flow f) {
35
        super(parent);
36
        this.f = f;
37
        Map<Property, String> params = this.currentStyle.getParameters();
38
39
        params.put(Properties.ID,                                    null);
40
        params.put(Properties.FLOW_NAME,                              null);
41
        params.put(Properties.INDEX_CLASS,                            null);
42
        params.put(Properties.INDEX_KEY,                              null);
43
    }
44
45
    /**
46
     * {@inheritDoc}
47
     */
48
    @Override
49
    public void execute() { }
50
51
    /**
52
     * {@inheritDoc}
53
     * @throws OdfException
54
     */
55
    public void executeFromParent(TagExecutable child) throws OdfException {
56
        child.execute(this);
57
    }
58
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FlowTargetListTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class FlowTargetListTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected FlowTargetListTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FolioPrefixTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class FolioPrefixTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected FolioPrefixTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FolioSuffixTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class FolioSuffixTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected FolioSuffixTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FootnoteBodyTag.java (+60 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.FootnoteBody;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
/**
28
 * FootnoteBodyConverter
29
 */
30
public class FootnoteBodyTag extends Tag {
31
32
    protected FootnoteBody fb = null;
33
34
    protected FootnoteBodyTag(Tag parent, FootnoteBody fb) {
35
        super(parent);
36
        this.fb = fb;
37
        Map<Property, String> params = this.currentStyle.getParameters();
38
39
        params.put(Properties.SOURCE_DOCUMENT,                        null);
40
        params.put(Properties.ROLE,                                   null);
41
        params.put(Properties.ID,                                     null);
42
        params.put(Properties.INDEX_CLASS,                            null);
43
        params.put(Properties.INDEX_KEY,                              null);
44
    }
45
46
    /**
47
     * {@inheritDoc}
48
     */
49
    @Override
50
    public void execute() { }
51
52
    /**
53
     * {@inheritDoc}
54
     * @throws OdfException
55
     */
56
    public void executeFromParent(TagExecutable child) throws OdfException {
57
        child.execute(this);
58
    }
59
60
}
(-)src/java/org/apache/fop/render/odf/odt/tags/FootnoteTag.java (+66 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.Footnote;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
/**
28
 * Footnote converter
29
 */
30
public class FootnoteTag extends Tag {
31
32
    protected Footnote fn = null;
33
34
    FootnoteTag(Tag parent, Footnote fn) {
35
        super(parent);
36
        this.fn = fn;
37
        Map<Property, String> params = this.currentStyle.getParameters();
38
39
        params.put(Properties.SOURCE_DOCUMENT,                        null);
40
        params.put(Properties.ROLE,                                  null);
41
        params.put(Properties.ID,                                    null);
42
        params.put(Properties.INDEX_CLASS,                            null);
43
        params.put(Properties.INDEX_KEY,                              null);
44
    }
45
46
    /**
47
     * {@inheritDoc}
48
     */
49
    @Override
50
    public void execute() {
51
        /*Footnote fn = (Footnote)foNode;
52
53
        recurseFONode(fn.getFootnoteCitation());
54
        recurseFONode(fn.getFootnoteBody()); */
55
56
    }
57
58
    /**
59
     * {@inheritDoc}
60
     * @throws OdfException
61
     */
62
    public void executeFromParent(TagExecutable child) throws OdfException {
63
        child.execute(this);
64
    }
65
66
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexKeyReferenceTag.java (+56 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
/**
27
 * FootnoteBodyConverter
28
 */
29
public class IndexKeyReferenceTag extends Tag {
30
31
    protected Object o = null;
32
33
    protected IndexKeyReferenceTag(Tag parent, Object o) {
34
        super(parent);
35
        this.o = o;
36
        Map<Property, String> params = this.currentStyle.getParameters();
37
38
        params.put(Properties.PAGE_NUMBER_TREATMENT,                  null);
39
        params.put(Properties.REF_INDEX_KEY,                          null);
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     */
45
    @Override
46
    public void execute() { }
47
48
    /**
49
     * {@inheritDoc}
50
     * @throws OdfException
51
     */
52
    public void executeFromParent(TagExecutable child) throws OdfException {
53
        child.execute(this);
54
    }
55
56
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexPageCitationListSeparatorTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class IndexPageCitationListSeparatorTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected IndexPageCitationListSeparatorTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexPageCitationListTag.java (+50 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
public class IndexPageCitationListTag extends Tag {
27
28
    protected Object o = null;
29
30
    protected IndexPageCitationListTag(Tag parent, Object o) {
31
        super(parent);
32
        this.o = o;
33
        Map<Property, String> params = this.currentStyle.getParameters();
34
35
        params.put(Properties.MERGE_RANGES_ACROSS_INDEX_KEY_REFERENCES, null);
36
        params.put(Properties.MERGE_SEQUENTIAL_PAGE_NUMBERS,          null);
37
        params.put(Properties.MERGE_PAGES_ACROSS_INDEX_KEY_REFERENCES,  null);
38
    }
39
40
    @Override
41
    public void execute() throws OdfException {
42
        // TODO Auto-generated method stub
43
44
    }
45
46
    public void executeFromParent(TagExecutable child) throws OdfException {
47
        child.execute(this);
48
    }
49
50
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexPageCitationRangeSeparatorTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class IndexPageCitationRangeSeparatorTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected IndexPageCitationRangeSeparatorTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexPageNumberPrefixTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class IndexPageNumberPrefixTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected IndexPageNumberPrefixTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexPagePageNumberSuffixTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class IndexPagePageNumberSuffixTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected IndexPagePageNumberSuffixTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexRangeBeginTag.java (+50 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
public class IndexRangeBeginTag extends Tag {
27
28
    protected Object o = null;
29
30
    protected IndexRangeBeginTag(Tag parent, Object o) {
31
        super(parent);
32
        this.o = o;
33
        Map<Property, String> params = this.currentStyle.getParameters();
34
35
        params.put(Properties.ID,                                    null);
36
        params.put(Properties.INDEX_CLASS,                            null);
37
        params.put(Properties.INDEX_KEY,                              null);
38
    }
39
40
    @Override
41
    public void execute() throws OdfException {
42
        // TODO Auto-generated method stub
43
44
    }
45
46
    public void executeFromParent(TagExecutable child) throws OdfException {
47
        child.execute(this);
48
    }
49
50
}
(-)src/java/org/apache/fop/render/odf/odt/tags/IndexRangeEndTag.java (+48 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.render.odf.OdfException;
23
import org.apache.fop.render.odf.properties.Properties;
24
import org.apache.fop.render.odf.properties.Property;
25
26
public class IndexRangeEndTag extends Tag {
27
28
    protected Object o = null;
29
30
    protected IndexRangeEndTag(Tag parent, Object o) {
31
        super(parent);
32
        this.o = o;
33
        Map<Property, String> params = this.currentStyle.getParameters();
34
35
        params.put(Properties.REF_ID,                                 null);
36
    }
37
38
    @Override
39
    public void execute() throws OdfException {
40
        // TODO Auto-generated method stub
41
42
    }
43
44
    public void executeFromParent(TagExecutable child) throws OdfException {
45
        child.execute(this);
46
    }
47
48
}
(-)src/java/org/apache/fop/render/odf/odt/tags/InitialPropertySetTag.java (+127 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.apache.fop.fo.flow.InitialPropertySet;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.properties.Properties;
25
import org.apache.fop.render.odf.properties.Property;
26
27
public class InitialPropertySetTag extends Tag {
28
29
    protected InitialPropertySet ips = null;
30
31
    protected InitialPropertySetTag(Tag parent, InitialPropertySet ips) {
32
        super(parent);
33
        this.ips = ips;
34
        Map<Property, String> params = this.currentStyle.getParameters();
35
36
        params.put(Properties.LINE_HEIGHT,                            null);
37
//        params.put(Properties.letterSpacing,                         null);
38
//        params.put(Properties.textDecoration,                        null);
39
//        params.put(Properties.textShadow,                            null);
40
//        params.put(Properties.textTransform,                         null);
41
//        params.put(Properties.wordSpacing,                           null);
42
//        params.put(Properties.color,                                  null);
43
//        params.put(Properties.sourceDocument,                        null);
44
//        params.put(Properties.role,                                   null);
45
//        params.put(Properties.azimuth,                                null);
46
//        params.put(Properties.cueAfter,                              null);
47
//        params.put(Properties.cueBefore,                             null);
48
//        params.put(Properties.elevation,                              null);
49
//        params.put(Properties.pauseAfter,                            null);
50
//        params.put(Properties.pauseBefore,                           null);
51
//        params.put(Properties.pitch,                                  null);
52
//        params.put(Properties.pitchRange,                            null);
53
//        params.put(Properties.playDuring,                            null);
54
//        params.put(Properties.richness,                               null);
55
//        params.put(Properties.speak,                                  null);
56
//        params.put(Properties.speakHeader,                           null);
57
//        params.put(Properties.speakNumeral,                          null);
58
//        params.put(Properties.speakPunctuation,                      null);
59
//        params.put(Properties.speechRate,                            null);
60
//        params.put(Properties.stress,                                 null);
61
//        params.put(Properties.voiceFamily,                           null);
62
//        params.put(Properties.volume,                                 null);
63
//        params.put(Properties.backgroundAttachment,                  null);
64
//        params.put(Properties.backgroundColor,                       null);
65
//        params.put(Properties.backgroundImage,                       null);
66
//        params.put(Properties.backgroundRepeat,                      null);
67
//        params.put(Properties.backgroundPositionHorizontal,         null);
68
//        params.put(Properties.backgroundPositionVertical,           null);
69
//        params.put(Properties.borderBeforeColor,                    null);
70
//        params.put(Properties.borderBeforeStyle,                    null);
71
//        params.put(Properties.borderBeforeWidth,                    null);
72
//        params.put(Properties.borderAfterColor,                     null);
73
//        params.put(Properties.borderAfterStyle,                     null);
74
//        params.put(Properties.borderAfterWidth,                     null);
75
//        params.put(Properties.borderStartColor,                     null);
76
//        params.put(Properties.borderStartStyle,                     null);
77
//        params.put(Properties.borderStartWidth,                     null);
78
//        params.put(Properties.borderEndColor,                       null);
79
//        params.put(Properties.borderEndStyle,                       null);
80
//        params.put(Properties.borderEndWidth,                       null);
81
//        params.put(Properties.borderTopColor,                       null);
82
//        params.put(Properties.borderTopStyle,                       null);
83
//        params.put(Properties.borderTopWidth,                       null);
84
//        params.put(Properties.borderBottomColor,                    null);
85
//        params.put(Properties.borderBottomStyle,                    null);
86
//        params.put(Properties.borderBottomWidth,                    null);
87
//        params.put(Properties.borderLeftColor,                      null);
88
//        params.put(Properties.borderLeftStyle,                      null);
89
//        params.put(Properties.borderLeftWidth,                      null);
90
//        params.put(Properties.borderRightColor,                     null);
91
//        params.put(Properties.borderRightStyle,                     null);
92
//        params.put(Properties.borderRightWidth,                     null);
93
//        params.put(Properties.paddingBefore,                         null);
94
//        params.put(Properties.paddingAfter,                          null);
95
//        params.put(Properties.paddingStart,                          null);
96
//        params.put(Properties.paddingEnd,                            null);
97
//        params.put(Properties.paddingTop,                            null);
98
//        params.put(Properties.paddingBottom,                         null);
99
//        params.put(Properties.paddingLeft,                           null);
100
//        params.put(Properties.paddingRight,                          null);
101
//        params.put(Properties.fontFamily,                            null);
102
//        params.put(Properties.fontSelectionStrategy,                null);
103
//        params.put(Properties.fontSize,                              null);
104
//        params.put(Properties.fontStretch,                           null);
105
//        params.put(Properties.fontSizeAdjust,                       null);
106
//        params.put(Properties.fontStyle,                             null);
107
//        params.put(Properties.fontVariant,                           null);
108
//        params.put(Properties.fontWeight,                            null);
109
//        params.put(Properties.topR,                                  null);
110
//        params.put(Properties.rightR,                                null);
111
//        params.put(Properties.bottomR,                               null);
112
//        params.put(Properties.leftR,                                 null);
113
//        params.put(Properties.relativePosition,                      null);
114
//        params.put(Properties.scoreSpaces,                           null);
115
    }
116
117
    @Override
118
    public void execute() throws OdfException {
119
        // TODO Auto-generated method stub
120
121
    }
122
123
    public void executeFromParent(TagExecutable child) throws OdfException {
124
        child.execute(this);
125
    }
126
127
}
(-)src/java/org/apache/fop/render/odf/odt/tags/InlineContainerTag.java (+200 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.odftoolkit.odfdom.dom.OdfContentDom;
23
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
24
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
25
import org.odftoolkit.odfdom.dom.element.text.TextSpanElement;
26
import org.odftoolkit.odfdom.pkg.OdfElement;
27
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
28
import org.w3c.dom.Node;
29
30
import org.apache.fop.fo.flow.InlineContainer;
31
import org.apache.fop.render.odf.OdfException;
32
import org.apache.fop.render.odf.odt.Namespace;
33
import org.apache.fop.render.odf.properties.Properties;
34
import org.apache.fop.render.odf.properties.Property;
35
36
/**
37
 * Inline converter
38
 */
39
public class InlineContainerTag extends Tag {
40
41
    protected InlineContainer ic = null;
42
43
    protected TextSpanElement tse = null;
44
45
    InlineContainerTag(Tag parent, InlineContainer ic) throws OdfException {
46
        super(parent);
47
        this.ic = ic;
48
        Map<Property, String> params = this.currentStyle.getParameters();
49
50
        params.put(Properties.ALIGNMENT_ADJUST,                       null);
51
//        params.put(Properties.alignmentBaseline,                     null);
52
//        params.put(Properties.baselineShift,                         null);
53
//        params.put(Properties.displayAlign,                          null);
54
//        params.put(Properties.dominantBaseline,                      null);
55
//        params.put(Properties.blockProgressionDimension,            null);
56
//        params.put(Properties.height,                                 null);
57
//        params.put(Properties.inlineProgressionDimension,           null);
58
//        params.put(Properties.width,                                  null);
59
//        params.put(Properties.lineHeight,                            null);
60
//        params.put(Properties.backgroundAttachment,                  null);
61
//        params.put(Properties.backgroundColor,                       null);
62
//        params.put(Properties.backgroundImage,                       null);
63
//        params.put(Properties.backgroundRepeat,                      null);
64
//        params.put(Properties.backgroundPositionHorizontal,         null);
65
//        params.put(Properties.backgroundPositionVertical,           null);
66
//        params.put(Properties.borderBeforeColor,                    null);
67
//        params.put(Properties.borderBeforeStyle,                    null);
68
//        params.put(Properties.borderBeforeWidth,                    null);
69
//        params.put(Properties.borderAfterColor,                     null);
70
//        params.put(Properties.borderAfterStyle,                     null);
71
//        params.put(Properties.borderAfterWidth,                     null);
72
//        params.put(Properties.borderStartColor,                     null);
73
//        params.put(Properties.borderStartStyle,                     null);
74
//        params.put(Properties.borderStartWidth,                     null);
75
//        params.put(Properties.borderEndColor,                       null);
76
//        params.put(Properties.borderEndStyle,                       null);
77
//        params.put(Properties.borderEndWidth,                       null);
78
//        params.put(Properties.borderTopColor,                       null);
79
//        params.put(Properties.borderTopStyle,                       null);
80
//        params.put(Properties.borderTopWidth,                       null);
81
//        params.put(Properties.borderBottomColor,                    null);
82
//        params.put(Properties.borderBottomStyle,                    null);
83
//        params.put(Properties.borderBottomWidth,                    null);
84
//        params.put(Properties.borderLeftColor,                      null);
85
//        params.put(Properties.borderLeftStyle,                      null);
86
//        params.put(Properties.borderLeftWidth,                      null);
87
//        params.put(Properties.borderRightColor,                     null);
88
//        params.put(Properties.borderRightStyle,                     null);
89
//        params.put(Properties.borderRightWidth,                     null);
90
//        params.put(Properties.paddingBefore,                         null);
91
//        params.put(Properties.paddingAfter,                          null);
92
//        params.put(Properties.paddingStart,                          null);
93
//        params.put(Properties.paddingEnd,                            null);
94
//        params.put(Properties.paddingTop,                            null);
95
//        params.put(Properties.paddingBottom,                         null);
96
//        params.put(Properties.paddingLeft,                           null);
97
//        params.put(Properties.paddingRight,                          null);
98
//        params.put(Properties.marginTopInline,                      null);
99
//        params.put(Properties.marginBottomInline,                   null);
100
//        params.put(Properties.marginLeftInline,                     null);
101
//        params.put(Properties.marginRightInline,                    null);
102
//        params.put(Properties.spaceEndInline,                       null);
103
//        params.put(Properties.spaceStartInline,                     null);
104
//        params.put(Properties.topR,                                  null);
105
//        params.put(Properties.rightR,                                null);
106
//        params.put(Properties.bottomR,                               null);
107
//        params.put(Properties.leftR,                                 null);
108
//        params.put(Properties.relativePosition,                      null);
109
//        params.put(Properties.keepTogether,                          null);
110
//        params.put(Properties.keepWithNext,                         null);
111
//        params.put(Properties.keepWithPrevious,                     null);
112
//        params.put(Properties.clip,                                   null);
113
//        params.put(Properties.overflow,                               null);
114
//        params.put(Properties.referenceOrientation,                  null);
115
//        params.put(Properties.id,                                     null);
116
//        params.put(Properties.indexClass,                            null);
117
//        params.put(Properties.indexKey,                              null);
118
//        params.put(Properties.writingMode,                           null);
119
120
        registerFont(this.currentStyle.getParameters().get(Properties.FONT_FAMILY));
121
    }
122
123
    public TextSpanElement getTextSpanElement() {
124
        return tse;
125
    }
126
127
    @Override
128
    protected OdfElement getTextContainer() {
129
        if (this.tse != null) {
130
            return this.tse;
131
        } else {
132
            return parent.getTextContainer();
133
        }
134
    }
135
    /**
136
     * {@inheritDoc}
137
     * @throws OdfException
138
     */
139
    @Override
140
    public void execute() throws OdfException {
141
        try {
142
            tse = (TextSpanElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextSpanElement.ELEMENT_NAME);
143
        } catch (Exception e) {
144
            throw new OdfException("Can't create text span.", e);
145
        }
146
147
        StyleStyleElement sse = null;
148
        try {
149
            sse = (StyleStyleElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleStyleElement.ELEMENT_NAME);
150
        } catch (Exception e) {
151
            throw new OdfException("Can't create new style for text span.", e);
152
        }
153
154
        sse.setAttributeNS(Namespace.STYLE, "style:family", "text");
155
156
        StyleTextPropertiesElement stpe = null;
157
158
        try {
159
            stpe = (StyleTextPropertiesElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleTextPropertiesElement.ELEMENT_NAME);
160
        } catch (Exception e) {
161
            throw new OdfException("Can't create new style for text span.", e);
162
        }
163
164
        stpe.setAttributeNS(Namespace.FO,    "fo:font-size",    this.currentStyle.get(Properties.FONT_SIZE));
165
        stpe.setAttributeNS(Namespace.FO,    "fo:font-weight",  this.currentStyle.get(Properties.FONT_WEIGHT));
166
        stpe.setAttributeNS(Namespace.FO,    "fo:font-style",   this.currentStyle.get(Properties.FONT_STYLE));
167
        stpe.setAttributeNS(Namespace.FO,    "fo:color",        this.currentStyle.get(Properties.COLOR));
168
        stpe.setAttributeNS(Namespace.STYLE, "style:font-name", this.currentStyle.get(Properties.FONT_FAMILY));
169
170
        sse.appendChild(stpe);
171
172
        try {
173
            OdfContentDom odf = this.getOdt().getContentDom();
174
            Node odfstyles = odf.getElementsByTagNameNS(Namespace.OFFICE, "automatic-styles").item(0);
175
            odfstyles.appendChild(sse);
176
        } catch (Exception e) {
177
            throw new OdfException("Can't create new style.", e);
178
        }
179
180
        tse.setStyleName(this.appendNewStyle(sse));
181
    }
182
183
    /**
184
     * {@inheritDoc}
185
     * @throws OdfException
186
     */
187
    @Override
188
    public void closeIntercept() throws OdfException {
189
        parent.getTextContainer().appendChild(tse);
190
    }
191
192
    /**
193
     * {@inheritDoc}
194
     * @throws OdfException
195
     */
196
    public void executeFromParent(TagExecutable child) throws OdfException {
197
        child.execute(this);
198
    }
199
200
}
(-)src/java/org/apache/fop/render/odf/odt/tags/InlineTag.java (+209 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
22
import org.odftoolkit.odfdom.dom.OdfContentDom;
23
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
24
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
25
import org.odftoolkit.odfdom.dom.element.text.TextSpanElement;
26
import org.odftoolkit.odfdom.pkg.OdfElement;
27
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
28
import org.w3c.dom.Node;
29
30
import org.apache.fop.fo.flow.Inline;
31
import org.apache.fop.render.odf.OdfException;
32
import org.apache.fop.render.odf.odt.Namespace;
33
import org.apache.fop.render.odf.properties.Properties;
34
import org.apache.fop.render.odf.properties.Property;
35
36
/**
37
 * Inline converter
38
 */
39
public class InlineTag extends Tag {
40
41
    protected Inline inl = null;
42
43
    protected TextSpanElement tse = null;
44
45
    InlineTag(Tag parent, Inline inl) throws OdfException {
46
        super(parent);
47
        this.inl = inl;
48
        Map<Property, String> params = this.currentStyle.getParameters();
49
50
//        params.put(Properties.alignmentAdjust,                       null);
51
//        params.put(Properties.alignmentBaseline,                     null);
52
//        params.put(Properties.baselineShift,                         null);
53
//        params.put(Properties.dominantBaseline,                      null);
54
//        params.put(Properties.blockProgressionDimension,            null);
55
//        params.put(Properties.height,                                 null);
56
//        params.put(Properties.inlineProgressionDimension,           null);
57
//        params.put(Properties.width,                                  null);
58
//        params.put(Properties.lineHeight,                            null);
59
//        params.put(Properties.wrapOption,                            null);
60
//        params.put(Properties.textDecoration,                        null);
61
        params.put(Properties.COLOR,                                Properties.COLOR.getColor(inl.getColor()));
62
//        params.put(Properties.sourceDocument,                        null);
63
//        params.put(Properties.role,                                   null);
64
//        params.put(Properties.backgroundAttachment,                  null);
65
//        params.put(Properties.backgroundColor,                       null);
66
//        params.put(Properties.backgroundImage,                       null);
67
//        params.put(Properties.backgroundRepeat,                      null);
68
//        params.put(Properties.backgroundPositionHorizontal,         null);
69
//        params.put(Properties.backgroundPositionVertical,           null);
70
//        params.put(Properties.borderBeforeColor,                    null);
71
//        params.put(Properties.borderBeforeStyle,                    null);
72
//        params.put(Properties.borderBeforeWidth,                    null);
73
//        params.put(Properties.borderAfterColor,                     null);
74
//        params.put(Properties.borderAfterStyle,                     null);
75
//        params.put(Properties.borderAfterWidth,                     null);
76
//        params.put(Properties.borderStartColor,                     null);
77
//        params.put(Properties.borderStartStyle,                     null);
78
//        params.put(Properties.borderStartWidth,                     null);
79
//        params.put(Properties.borderEndColor,                       null);
80
//        params.put(Properties.borderEndStyle,                       null);
81
//        params.put(Properties.borderEndWidth,                       null);
82
//        params.put(Properties.borderTopColor,                       null);
83
//        params.put(Properties.borderTopStyle,                       null);
84
//        params.put(Properties.borderTopWidth,                       null);
85
//        params.put(Properties.borderBottomColor,                    null);
86
//        params.put(Properties.borderBottomStyle,                    null);
87
//        params.put(Properties.borderBottomWidth,                    null);
88
//        params.put(Properties.borderLeftColor,                      null);
89
//        params.put(Properties.borderLeftStyle,                      null);
90
//        params.put(Properties.borderLeftWidth,                      null);
91
//        params.put(Properties.borderRightColor,                     null);
92
//        params.put(Properties.borderRightStyle,                     null);
93
//        params.put(Properties.borderRightWidth,                     null);
94
//        params.put(Properties.paddingBefore,                         null);
95
//        params.put(Properties.paddingAfter,                          null);
96
//        params.put(Properties.paddingStart,                          null);
97
//        params.put(Properties.paddingEnd,                            null);
98
//        params.put(Properties.paddingTop,                            null);
99
//        params.put(Properties.paddingBottom,                         null);
100
//        params.put(Properties.paddingLeft,                           null);
101
//        params.put(Properties.paddingRight,                          null);
102
        params.put(Properties.FONT_FAMILY,                           Properties.FONT_FAMILY.getFont(inl.getCommonFont()));
103
        params.put(Properties.FONT_SELECTION_STRATEGY,                null);
104
        params.put(Properties.FONT_SIZE,                             Properties.FONT_SIZE.getFontSize(inl.getCommonFont()));
105
        params.put(Properties.FONT_STRETCH,                          null);
106
        params.put(Properties.FONT_SIZE_ADJUST,                       null);
107
        params.put(Properties.FONT_STYLE,                            Properties.FONT_STYLE.getFontStyle(inl.getCommonFont()));
108
        params.put(Properties.FONT_VARIANT,                          null);
109
        params.put(Properties.FONT_WEIGHT,                           Properties.FONT_WEIGHT.getFontWeight(inl.getCommonFont()));
110
//        params.put(Properties.marginTopInline,                      null);
111
//        params.put(Properties.marginBottomInline,                   null);
112
//        params.put(Properties.marginLeftInline,                     null);
113
//        params.put(Properties.marginRightInline,                    null);
114
//        params.put(Properties.spaceEndInline,                       null);
115
//        params.put(Properties.spaceStartInline,                     null);
116
//        params.put(Properties.topR,                                  null);
117
//        params.put(Properties.rightR,                                null);
118
//        params.put(Properties.bottomR,                               null);
119
//        params.put(Properties.leftR,                                 null);
120
//        params.put(Properties.relativePosition,                      null);
121
//        params.put(Properties.keepTogether,                          null);
122
//        params.put(Properties.keepWithNext,                         null);
123
//        params.put(Properties.keepWithPrevious,                     null);
124
//        params.put(Properties.id,                                     null);
125
//        params.put(Properties.visibility,                             null);
126
//        params.put(Properties.indexClass,                            null);
127
//        params.put(Properties.indexKey,                              null);
128
129
        registerFont(this.currentStyle.getParameters().get(Properties.FONT_FAMILY));
130
    }
131
132
    public TextSpanElement getTextSpanElement() {
133
        return tse;
134
    }
135
136
    @Override
137
    protected OdfElement getTextContainer() {
138
        if (this.tse != null) {
139
            return this.tse;
140
        } else {
141
            return parent.getTextContainer();
142
        }
143
    }
144
    /**
145
     * {@inheritDoc}
146
     * @throws OdfException
147
     */
148
    @Override
149
    public void execute() throws OdfException {
150
        try {
151
            tse = (TextSpanElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextSpanElement.ELEMENT_NAME);
152
        } catch (Exception e) {
153
            throw new OdfException("Can't create text span.", e);
154
        }
155
156
        StyleStyleElement sse = null;
157
        try {
158
            sse = (StyleStyleElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleStyleElement.ELEMENT_NAME);
159
        } catch (Exception e) {
160
            throw new OdfException("Can't create new style for text span.", e);
161
        }
162
163
        sse.setAttributeNS(Namespace.STYLE, "style:family", "text");
164
165
        StyleTextPropertiesElement stpe = null;
166
167
        try {
168
            stpe = (StyleTextPropertiesElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleTextPropertiesElement.ELEMENT_NAME);
169
        } catch (Exception e) {
170
            throw new OdfException("Can't create new style for text span.", e);
171
        }
172
173
        stpe.setAttributeNS(Namespace.FO,    "fo:font-size",    this.currentStyle.get(Properties.FONT_SIZE));
174
        stpe.setAttributeNS(Namespace.FO,    "fo:font-weight",  this.currentStyle.get(Properties.FONT_WEIGHT));
175
        stpe.setAttributeNS(Namespace.FO,    "fo:font-style",   this.currentStyle.get(Properties.FONT_STYLE));
176
        stpe.setAttributeNS(Namespace.FO,    "fo:color",        this.currentStyle.get(Properties.COLOR));
177
        stpe.setAttributeNS(Namespace.STYLE, "style:font-name", this.currentStyle.get(Properties.FONT_FAMILY));
178
179
        sse.appendChild(stpe);
180
181
        try {
182
            OdfContentDom odf = this.getOdt().getContentDom();
183
            Node odfstyles = odf.getElementsByTagNameNS(Namespace.OFFICE, "automatic-styles").item(0);
184
            odfstyles.appendChild(sse);
185
        } catch (Exception e) {
186
            throw new OdfException("Can't create new style.", e);
187
        }
188
189
        tse.setStyleName(this.appendNewStyle(sse));
190
    }
191
192
    /**
193
     * {@inheritDoc}
194
     * @throws OdfException
195
     */
196
    @Override
197
    public void closeIntercept() throws OdfException {
198
        parent.getTextContainer().appendChild(tse);
199
    }
200
201
    /**
202
     * {@inheritDoc}
203
     * @throws OdfException
204
     */
205
    public void executeFromParent(TagExecutable child) throws OdfException {
206
        child.execute(this);
207
    }
208
209
}
(-)src/java/org/apache/fop/render/odf/odt/tags/InstreamForeignObjectTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.InstreamForeignObject;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * InstreamForeignObject converter
25
 */
26
public class InstreamForeignObjectTag extends Tag {
27
28
    InstreamForeignObjectTag(Tag parent, InstreamForeignObject foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/LayoutMasterSetTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class LayoutMasterSetTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected LayoutMasterSetTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/LeaderTag.java (+49 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.Leader;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * Leader converter
25
 */
26
public class LeaderTag extends Tag {
27
28
    protected LeaderTag(Tag parent, Leader foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() {
37
        // TODO Auto-generated method stub
38
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     * @throws OdfException
44
     */
45
    public void executeFromParent(TagExecutable child) throws OdfException {
46
        child.execute(this);
47
    }
48
49
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ListBlockTag.java (+71 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.text.TextListElement;
21
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
22
23
import org.apache.fop.fo.flow.ListBlock;
24
import org.apache.fop.render.odf.OdfException;
25
26
/**
27
 * ListBlock converter
28
 */
29
public class ListBlockTag extends Tag {
30
31
    protected TextListElement tle = null;
32
33
    ListBlockTag(Tag parent, ListBlock foNode) {
34
        super(parent);
35
    }
36
37
    public TextListElement getTextListElement() {
38
        return tle;
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     * @throws OdfException
44
     */
45
    @Override
46
    public void execute() throws OdfException {
47
        try {
48
            tle = (TextListElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextListElement.ELEMENT_NAME);
49
        } catch (Exception e) {
50
            throw new OdfException("Can't create the list", e);
51
        }
52
    }
53
54
    @Override
55
    public void closeIntercept() throws OdfException {
56
        try {
57
            this.getParagraphContainer().appendChild(tle);
58
        } catch (Exception e) {
59
            throw new OdfException("Can't create the list", e);
60
        }
61
     }
62
63
    /**
64
     * {@inheritDoc}
65
     * @throws OdfException
66
     */
67
    public void executeFromParent(TagExecutable child) throws OdfException {
68
        child.execute(this);
69
    }
70
71
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ListItemBodyTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.ListItemBody;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * ListItemBody converter
25
 */
26
public class ListItemBodyTag extends Tag {
27
28
    protected ListItemBodyTag(Tag parent, ListItemBody foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        parent.executeFromParent(child);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ListItemLabelTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.ListItemLabel;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * ListItemLabel converter
25
 */
26
public class ListItemLabelTag extends Tag {
27
28
    ListItemLabelTag(Tag parent, ListItemLabel foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ListItemTag.java (+90 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.text.TextListItemElement;
21
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
22
23
import org.apache.fop.fo.flow.ListItem;
24
import org.apache.fop.render.odf.OdfException;
25
import org.apache.fop.render.odf.odt.FopOdtConverter;
26
27
/**
28
 * ListItem converter
29
 */
30
public class ListItemTag extends Tag {
31
32
    private ListItem xslfoListItem = null;
33
34
    private TextListItemElement tlie = null;
35
36
    private FopOdtConverter converter = null;
37
38
    ListItemTag(Tag parent, ListItem foNode, FopOdtConverter converter) {
39
        super(parent);
40
        this.xslfoListItem = foNode;
41
        this.converter = converter;
42
    }
43
44
    public ListItem getXslfoListItem() {
45
        return xslfoListItem;
46
    }
47
48
    public TextListItemElement getTextListItemElement() {
49
        return tlie;
50
    }
51
52
    /**
53
     * {@inheritDoc}
54
     * @throws OdfException
55
     */
56
    @Override
57
    public void execute() throws OdfException {
58
        try {
59
            tlie = (TextListItemElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextListItemElement.ELEMENT_NAME);
60
        } catch (Exception e) {
61
            throw new OdfException("Can't create List Item", e);
62
        }
63
64
        parent.executeFromParent(this);
65
66
        converter.convertRecursively(xslfoListItem.getBody());
67
    }
68
69
    /**
70
     * {@inheritDoc}
71
     * @throws OdfException
72
     */
73
    @Override
74
    public void execute(ListBlockTag tag) throws OdfException {
75
        try {
76
            tag.getTextListElement().appendChild(tlie);
77
        } catch (Exception e) {
78
            throw new OdfException("Can't create List Item", e);
79
        }
80
    }
81
82
    /**
83
     * {@inheritDoc}
84
     * @throws OdfException
85
     */
86
    public void executeFromParent(TagExecutable child) throws OdfException {
87
        child.execute(this);
88
    }
89
90
}
(-)src/java/org/apache/fop/render/odf/odt/tags/MarkerTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class MarkerTag extends Tag {
23
24
    protected Object o = null;
25
26
    MarkerTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/MultiCaseTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.MultiCase;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class MultiCaseTag extends Tag {
24
25
    protected MultiCase mc = null;
26
27
    MultiCaseTag(Tag parent, MultiCase mc) {
28
        super(parent);
29
        this.mc = mc;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/MultiPropertiesTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.MultiProperties;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class MultiPropertiesTag extends Tag {
24
25
    protected MultiProperties mp = null;
26
27
    MultiPropertiesTag(Tag parent, MultiProperties mp) {
28
        super(parent);
29
        this.mp = mp;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/MultiSwitchTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.MultiSwitch;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class MultiSwitchTag extends Tag {
24
25
    protected MultiSwitch ms = null;
26
27
    MultiSwitchTag(Tag parent, MultiSwitch ms) {
28
        super(parent);
29
        this.ms = ms;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/MultiToggleTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.MultiToggle;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class MultiToggleTag extends Tag {
24
25
    protected MultiToggle mt = null;
26
27
    MultiToggleTag(Tag parent, MultiToggle mt) {
28
        super(parent);
29
        this.mt = mt;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageNumberCitationLastTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.PageNumberCitationLast;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * PageNumberCitation converter
25
 */
26
public class PageNumberCitationLastTag extends Tag {
27
28
    PageNumberCitationLastTag(Tag parent, PageNumberCitationLast foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageNumberCitationTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.PageNumberCitation;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * PageNumberCitation converter
25
 */
26
public class PageNumberCitationTag extends Tag {
27
28
    PageNumberCitationTag(Tag parent, PageNumberCitation foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageNumberTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.PageNumber;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * PageNumber converter
25
 */
26
public class PageNumberTag extends Tag {
27
28
    PageNumberTag(Tag parent, PageNumber foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageSequenceMasterTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.PageSequenceMaster;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * PageNumberCitation converter
25
 */
26
public class PageSequenceMasterTag extends Tag {
27
28
    PageSequenceMasterTag(Tag parent, PageSequenceMaster foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageSequenceTag.java (+113 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.PageSequence;
21
import org.apache.fop.fo.pagination.PageSequenceMaster;
22
import org.apache.fop.fo.pagination.SimplePageMaster;
23
import org.apache.fop.render.odf.OdfException;
24
import org.apache.fop.render.odf.odt.FopOdtConverter;
25
26
/**
27
 * Defines a number of standard constants (keys) for use by the RendererContext class.
28
 */
29
public class PageSequenceTag extends Tag {
30
31
    protected PageSequence pageSeq = null;
32
33
    protected FopOdtConverter converter = null;
34
35
    protected SimplePageMaster pagemaster = null;
36
37
    PageSequenceTag(Tag parent, PageSequence pageSeq, FopOdtConverter converter) {
38
        super(parent);
39
        this.pageSeq = pageSeq;
40
        this.converter = converter;
41
42
        String reference = pageSeq.getMasterReference();
43
        this.pagemaster = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference);
44
        if (pagemaster == null) {
45
            PageSequenceMaster master = pageSeq.getRoot().getLayoutMasterSet().getPageSequenceMaster(reference);
46
            this.pagemaster = master.getNextSimplePageMaster(false, false, false, false, "");
47
        }
48
49
        //if(!isFirstPageSequence()) this.getOdt().addPageBreak();
50
51
        //read page size and margins, if specified
52
        //only simple-page-master supported, so pagemaster may be null
53
54
        //builderContext.pushContainer(sect);
55
56
        //Calculate usable page width for this flow
57
        //int useAblePageWidth = pagemaster.getPageWidth().getValue()
58
        //    - pagemaster.getCommonMarginBlock().marginLeft.getValue()
59
        //    - pagemaster.getCommonMarginBlock().marginRight.getValue()
60
        //percentManager.setDimension(pageSeq, useAblePageWidth);
61
62
        //bHeaderSpecified = false;
63
        //bFooterSpecified = false;
64
65
        /*Region regionBefore = pagemaster.getRegion(Constants.FO_REGION_BEFORE);
66
        if (regionBefore != null) {
67
            FONode staticBefore = (FONode) pageSequence.getFlowMap().get(regionBefore.getRegionName());
68
            if (staticBefore != null) recurseFONode(staticBefore);
69
        }
70
71
        Region regionAfter = pagemaster.getRegion(Constants.FO_REGION_AFTER);
72
        if (regionAfter != null) {
73
            FONode staticAfter = (FONode) pageSequence.getFlowMap().get(regionAfter.getRegionName());
74
            if (staticAfter != null) recurseFONode(staticAfter);
75
        }*/
76
    }
77
78
    //private boolean isFirstPageSequence() {
79
        // TODO Auto-generated method stub
80
    //    return false;
81
    //}
82
83
    /**
84
     * {@inheritDoc}
85
     */
86
    @Override
87
    public void execute() {
88
        setMargins();
89
        converter.convertRecursively(pageSeq.getMainFlow());
90
    }
91
92
    private void setMargins() {
93
        //int a = this.pagemaster.getPageWidth().getValue();
94
        //int b = this.pagemaster.getPageHeight().getValue();
95
        //int c = this.pagemaster.getCommonMarginBlock().marginLeft.getValue();
96
        //int d = this.pagemaster.getCommonMarginBlock().marginRight.getValue();
97
    }
98
99
    /**
100
     * {@inheritDoc}
101
     */
102
    @Override
103
    public void closeIntercept() {
104
    }
105
106
    /**
107
     * {@inheritDoc}
108
     * @throws OdfException
109
     */
110
    public void executeFromParent(TagExecutable child) throws OdfException {
111
        child.execute(this);
112
    }
113
}
(-)src/java/org/apache/fop/render/odf/odt/tags/PageSequenceWrapperTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.PageSequenceWrapper;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * PageNumberCitation converter
25
 */
26
public class PageSequenceWrapperTag extends Tag {
27
28
    PageSequenceWrapperTag(Tag parent, PageSequenceWrapper foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionAfterTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RegionAfter;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RegionAfterTag extends Tag {
24
25
    protected RegionAfter ra = null;
26
27
    protected RegionAfterTag(Tag parent, RegionAfter ra) {
28
        super(parent);
29
        this.ra = ra;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionBeforeTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RegionBefore;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RegionBeforeTag extends Tag {
24
25
    protected RegionBefore rb = null;
26
27
    protected RegionBeforeTag(Tag parent, RegionBefore rb) {
28
        super(parent);
29
        this.rb = rb;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionBodyTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RegionBody;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RegionBodyTag extends Tag {
24
25
    protected RegionBody rb = null;
26
27
    protected RegionBodyTag(Tag parent, RegionBody rb) {
28
        super(parent);
29
        this.rb = rb;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionEndTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RegionEnd;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RegionEndTag extends Tag {
24
25
    protected RegionEnd re = null;
26
27
    protected RegionEndTag(Tag parent, RegionEnd re) {
28
        super(parent);
29
        this.re = re;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionNameSpecifierTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class RegionNameSpecifierTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected RegionNameSpecifierTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RegionStartTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RegionStart;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RegionStartTag extends Tag {
24
25
    protected RegionStart rs = null;
26
27
    protected RegionStartTag(Tag parent, RegionStart rs) {
28
        super(parent);
29
        this.rs = rs;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RepeatablePageMasterAlternativesTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RepeatablePageMasterAlternatives;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RepeatablePageMasterAlternativesTag extends Tag {
24
25
    protected RepeatablePageMasterAlternatives rpma = null;
26
27
    protected RepeatablePageMasterAlternativesTag(Tag parent, RepeatablePageMasterAlternatives rpma) {
28
        super(parent);
29
        this.rpma = rpma;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RepeatablePageMasterReferenceTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.RepeatablePageMasterReference;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class RepeatablePageMasterReferenceTag extends Tag {
24
25
    protected RepeatablePageMasterReference rpmr = null;
26
27
    protected RepeatablePageMasterReferenceTag(Tag parent, RepeatablePageMasterReference rpmr) {
28
        super(parent);
29
        this.rpmr = rpmr;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RetriveMarkerTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class RetriveMarkerTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected RetriveMarkerTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RetriveTableMarkerTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class RetriveTableMarkerTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected RetriveTableMarkerTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/RootTag.java (+93 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.HashMap;
21
import java.util.Map;
22
import java.util.Vector;
23
24
import org.odftoolkit.odfdom.doc.OdfTextDocument;
25
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
26
import org.odftoolkit.odfdom.dom.element.text.TextPElement;
27
import org.odftoolkit.odfdom.pkg.OdfElement;
28
29
import org.apache.fop.render.odf.OdfException;
30
31
/**
32
 *
33
 */
34
public class RootTag extends Tag {
35
36
    private OdfTextDocument outputOdt = null;
37
38
    private Map<String, StyleStyleElement> usedStyles = new HashMap<String, StyleStyleElement>();
39
40
    private Vector<String> usedFonts = new Vector<String>();
41
42
    private TextPElement paragraph = null;
43
44
    public RootTag(OdfTextDocument odt) {
45
        super(null);
46
        this.outputOdt = odt;
47
    }
48
49
    protected OdfTextDocument getOdt() {
50
        return outputOdt;
51
    }
52
53
    @Override
54
    public Map<String, StyleStyleElement> getUsedStyles() {
55
        return usedStyles;
56
    }
57
58
    @Override
59
    public Vector<String> getUsedFonts() {
60
        return usedFonts;
61
    }
62
63
    @Override
64
    protected TextPElement getParagraph() throws OdfException {
65
        this.paragraph = this.newParagraph(getParagraphContainer());
66
        return this.paragraph;
67
    }
68
69
    @Override
70
    protected OdfElement getParagraphContainer() {
71
        try {
72
            return outputOdt.getContentRoot();
73
        } catch (Exception e) {
74
            e.printStackTrace();
75
        }
76
        return null;
77
    }
78
79
    /**
80
     * {@inheritDoc}
81
     */
82
    @Override
83
    public void execute() { }
84
85
    /**
86
     * {@inheritDoc}
87
     * @throws OdfException
88
     */
89
    public void executeFromParent(TagExecutable child) throws OdfException {
90
        child.execute(this);
91
    }
92
93
}
(-)src/java/org/apache/fop/render/odf/odt/tags/ScalingValueCitationTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class ScalingValueCitationTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected ScalingValueCitationTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/SimplePageMasterReferenceTag.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
public class SimplePageMasterReferenceTag extends Tag {
23
24
    protected Object o = null;
25
26
    protected SimplePageMasterReferenceTag(Tag parent, Object o) {
27
        super(parent);
28
        this.o = o;
29
    }
30
31
    @Override
32
    public void execute() throws OdfException {
33
        // TODO Auto-generated method stub
34
35
    }
36
37
    public void executeFromParent(TagExecutable child) throws OdfException {
38
        child.execute(this);
39
    }
40
41
}
(-)src/java/org/apache/fop/render/odf/odt/tags/SimplePageMasterTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.SimplePageMaster;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class SimplePageMasterTag extends Tag {
24
25
    protected SimplePageMaster spm = null;
26
27
    protected SimplePageMasterTag(Tag parent, SimplePageMaster spm) {
28
        super(parent);
29
        this.spm = spm;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/StaticContentTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.StaticContent;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 *
25
 */
26
public class StaticContentTag extends Tag {
27
28
    protected StaticContentTag(Tag parent, StaticContent foNode) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/StaticTag.java (+37 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
/**
23
 *
24
 */
25
public class StaticTag extends Tag {
26
27
    protected StaticTag(Tag parent) {
28
        super(parent);
29
    }
30
31
    @Override
32
    public void execute() { }
33
34
    public void executeFromParent(TagExecutable child) throws OdfException {
35
        child.execute(this);
36
    }
37
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableAndCaptionTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableAndCaption;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class TableAndCaptionTag extends Tag {
24
25
    protected TableAndCaption tac = null;
26
27
    protected TableAndCaptionTag(Tag parent, TableAndCaption tac) {
28
        super(parent);
29
        this.tac = tac;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableBodyTag.java (+45 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableBody;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * TableBody converter
25
 */
26
public class TableBodyTag extends Tag {
27
28
    TableBodyTag(Tag parent, TableBody tblBody) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        parent.executeFromParent(child);
44
    }
45
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableCaptionTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableCaption;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class TableCaptionTag extends Tag {
24
25
    protected TableCaption tc = null;
26
27
    protected TableCaptionTag(Tag parent, TableCaption tc) {
28
        super(parent);
29
        this.tc = tc;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableCellTag.java (+138 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
21
import org.odftoolkit.odfdom.dom.element.style.StyleTableCellPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.table.TableTableCellElement;
23
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
24
25
import org.apache.fop.fo.flow.table.TableCell;
26
import org.apache.fop.render.odf.OdfException;
27
import org.apache.fop.render.odf.odt.Namespace;
28
29
/**
30
 * TableCell converter
31
 */
32
public class TableCellTag extends Tag {
33
34
    private TableCell tblCell = null;
35
36
    private TableTableCellElement tce = null;
37
38
    TableCellTag(Tag parent, TableCell tblCell) {
39
        super(parent);
40
        this.tblCell = tblCell;
41
    }
42
43
    public TableCell getTableCell() {
44
        return tblCell;
45
    }
46
47
    public TableTableCellElement getTableCellElement() {
48
        return tce;
49
    }
50
51
    /**
52
     * {@inheritDoc}
53
     * @throws OdfException
54
     */
55
    @Override
56
    public void execute() throws OdfException {
57
58
        try {
59
            tce = (TableTableCellElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TableTableCellElement.ELEMENT_NAME);
60
        } catch (Exception e) {
61
            throw new OdfException("Can't create table cell", e);
62
        }
63
64
        StyleStyleElement sse = null;
65
        try {
66
            sse = (StyleStyleElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleStyleElement.ELEMENT_NAME);
67
        } catch (Exception e) {
68
            throw new OdfException("Can't create the style for new table cell", e);
69
        }
70
71
        sse.setAttributeNS(Namespace.STYLE, "style:family", "table-cell");
72
73
        StyleTableCellPropertiesElement stcpe = null;
74
75
        try {
76
            stcpe = (StyleTableCellPropertiesElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleTableCellPropertiesElement.ELEMENT_NAME);
77
        } catch (Exception e) {
78
            throw new OdfException("Can't create style fot table cell", e);
79
        }
80
81
        float borderSize = Math.round(((float)tblCell.getCommonBorderPaddingBackground().getBorderStartWidth(false)) / 100);
82
        borderSize = borderSize / 10;
83
        stcpe.setAttributeNS(Namespace.FO, "fo:border-left", Float.toString(borderSize) + "pt solid #000000");
84
85
        borderSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getBorderEndWidth(false) / 100);
86
        borderSize = borderSize / 10;
87
        stcpe.setAttributeNS(Namespace.FO, "fo:border-right", Float.toString(borderSize) + "pt solid #000000");
88
89
        borderSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getBorderBeforeWidth(false) / 100);
90
        borderSize = borderSize / 10;
91
        stcpe.setAttributeNS(Namespace.FO, "fo:border-top", Float.toString(borderSize) + "pt solid #000000");
92
93
        borderSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getBorderAfterWidth(false) / 100);
94
        borderSize = borderSize / 10;
95
        stcpe.setAttributeNS(Namespace.FO, "fo:border-bottom", Float.toString(borderSize) + "pt solid #000000");
96
97
        float paddingSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getPaddingLengthProperty(0).getLengthValue() / 100);
98
        paddingSize = paddingSize / 10;
99
        stcpe.setAttributeNS(Namespace.FO, "fo:padding-left", Float.toString(paddingSize) + "pt");
100
101
        paddingSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getPaddingLengthProperty(1).getLengthValue() / 100);
102
        paddingSize = paddingSize / 10;
103
        stcpe.setAttributeNS(Namespace.FO, "fo:padding-top", Float.toString(paddingSize) + "pt");
104
105
        paddingSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getPaddingLengthProperty(2).getLengthValue() / 100);
106
        paddingSize = paddingSize / 10;
107
        stcpe.setAttributeNS(Namespace.FO, "fo:padding-right", Float.toString(paddingSize) + "pt");
108
109
        paddingSize = Math.round((float)tblCell.getCommonBorderPaddingBackground().getPaddingLengthProperty(3).getLengthValue() / 100);
110
        paddingSize = paddingSize / 10;
111
        stcpe.setAttributeNS(Namespace.FO, "fo:padding-bottom", Float.toString(paddingSize) + "pt");
112
113
        sse.appendChild(stcpe);
114
115
        tce.setAttributeNS(Namespace.TABLE, "table:number-columns-spanned", Integer.toString(tblCell.getNumberColumnsSpanned()));
116
        tce.setAttributeNS(Namespace.TABLE, "table:number-rows-spanned",     Integer.toString(tblCell.getNumberRowsSpanned()));
117
118
        tce.setStyleName(this.appendNewStyle(sse));
119
120
        parent.executeFromParent(this);
121
    }
122
123
    @Override
124
    public void execute(TableRowTag tag) throws OdfException {
125
        try {
126
            tag.getTableRow().appendChild(tce);
127
        } catch (Exception e) {
128
            throw new OdfException("Can't create table cell", e);
129
        }
130
    }
131
132
    public void executeFromParent(TagExecutable child) throws OdfException {
133
        if (this != child) {
134
            child.execute(this);
135
        }
136
    }
137
138
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableColumnTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableColumn;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * TableColumn converter
25
 */
26
public class TableColumnTag extends Tag {
27
28
    TableColumnTag(Tag parent, TableColumn tblColumn) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableFooterTag.java (+39 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableFooter;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * TableFooter converter
25
 */
26
public class TableFooterTag extends Tag {
27
28
    TableFooterTag(Tag parent, TableFooter tblFooter) {
29
        super(parent);
30
    }
31
32
    @Override
33
    public void execute() { }
34
35
    public void executeFromParent(TagExecutable child) throws OdfException {
36
        child.execute(this);
37
    }
38
39
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableHeaderTag.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.table.TableHeader;
21
import org.apache.fop.render.odf.OdfException;
22
23
/**
24
 * TableHeader converter
25
 */
26
public class TableHeaderTag extends Tag {
27
28
    TableHeaderTag(Tag parent, TableHeader tblHeader) {
29
        super(parent);
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public void execute() { }
37
38
    /**
39
     * {@inheritDoc}
40
     * @throws OdfException
41
     */
42
    public void executeFromParent(TagExecutable child) throws OdfException {
43
        child.execute(this);
44
    }
45
46
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableRowTag.java (+75 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.table.TableTableRowElement;
21
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
22
23
import org.apache.fop.fo.flow.table.TableRow;
24
import org.apache.fop.render.odf.OdfException;
25
26
/**
27
 * TableRow converter
28
 */
29
public class TableRowTag extends Tag {
30
31
    private TableTableRowElement tre = null;
32
33
    TableRowTag(Tag parent, TableRow tblRow) {
34
        super(parent);
35
    }
36
37
    public TableTableRowElement getTableRow() {
38
        return this.tre;
39
    }
40
41
    /**
42
     * {@inheritDoc}
43
     * @throws OdfException
44
     */
45
    @Override
46
    public void execute() throws OdfException {
47
        try {
48
            tre = (TableTableRowElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TableTableRowElement.ELEMENT_NAME);
49
        } catch (Exception e) {
50
            throw new OdfException("Can't create table row.", e);
51
        }
52
53
        parent.executeFromParent(this);
54
    }
55
56
    /**
57
     * {@inheritDoc}
58
     */
59
    @Override
60
    public void execute(TableTag tag) {
61
        try {
62
            tag.getTable().appendChild(tre);
63
        } catch (Exception e) {
64
            e.printStackTrace();
65
        }
66
    }
67
68
    /**
69
     * {@inheritDoc}
70
     * @throws OdfException
71
     */
72
    public void executeFromParent(TagExecutable child) throws OdfException {
73
        child.execute(this);
74
    }
75
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TableTag.java (+98 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.table.TableTableColumnElement;
21
import org.odftoolkit.odfdom.dom.element.table.TableTableElement;
22
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
23
import org.w3c.dom.DOMException;
24
25
26
import org.apache.fop.fo.flow.table.Table;
27
import org.apache.fop.render.odf.OdfException;
28
import org.apache.fop.render.odf.odt.Namespace;
29
30
/**
31
 * Table converter
32
 */
33
public class TableTag extends Tag {
34
35
    private Table table = null;
36
37
    private TableTableElement tte = null;
38
39
    TableTag(Tag parent, Table table) {
40
        super(parent);
41
        this.table = table;
42
    }
43
44
    public TableTableElement getTable() {
45
        return tte;
46
    }
47
48
    /**
49
     * {@inheritDoc}
50
     * @throws OdfException
51
     */
52
    @Override
53
    public void execute() throws OdfException {
54
55
        try {
56
            tte = (TableTableElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TableTableElement.ELEMENT_NAME);
57
        } catch (Exception e) {
58
            throw new OdfException("Can't create new table.", e);
59
        }
60
        tte.setAttributeNS(Namespace.TABLE, "table:align", "margins");
61
62
        if (table.getColumns().size() > 1) {
63
            TableTableColumnElement tcne = null;
64
            try {
65
                tcne = (TableTableColumnElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TableTableColumnElement.ELEMENT_NAME);
66
            } catch (Exception e) {
67
                throw new OdfException("Can't create new table column.", e);
68
            }
69
            tcne.setAttributeNS(Namespace.TABLE,
70
                                "table:number-columns-repeated",
71
                                Integer.toString(table.getColumns().size()));
72
73
            try {
74
                tte.appendChild(tcne);
75
            } catch (Exception e) {
76
                throw new OdfException("Can't create table.", e);
77
            }
78
        }
79
    }
80
81
    /**
82
     * {@inheritDoc}
83
     */
84
    @Override
85
    public void closeIntercept() {
86
        try {
87
            this.getParagraphContainer().appendChild(tte);
88
        } catch (DOMException e) {
89
            e.printStackTrace();
90
        } catch (Exception e) {
91
            e.printStackTrace();
92
        }
93
    }
94
95
    public void executeFromParent(TagExecutable child) throws OdfException {
96
        child.execute(this);
97
    }
98
}
(-)src/java/org/apache/fop/render/odf/odt/tags/Tag.java (+250 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import java.util.Map;
21
import java.util.Map.Entry;
22
import java.util.Random;
23
import java.util.Vector;
24
25
import org.odftoolkit.odfdom.doc.OdfTextDocument;
26
import org.odftoolkit.odfdom.dom.OdfContentDom;
27
import org.odftoolkit.odfdom.dom.element.style.StyleFontFaceElement;
28
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
29
import org.odftoolkit.odfdom.dom.element.text.TextPElement;
30
import org.odftoolkit.odfdom.pkg.OdfElement;
31
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
32
import org.w3c.dom.DOMException;
33
import org.w3c.dom.Node;
34
35
import org.apache.fop.fo.pagination.Flow;
36
import org.apache.fop.render.odf.FopTagType;
37
import org.apache.fop.render.odf.OdfException;
38
import org.apache.fop.render.odf.odt.Namespace;
39
import org.apache.fop.render.odf.odt.Style;
40
import org.apache.fop.render.odf.properties.Property;
41
42
/**
43
 * Tag converter abstract class.
44
 */
45
public abstract class Tag implements TagExecutable, TagExecutor {
46
47
    protected Tag parent = null;
48
49
    protected Style currentStyle = null;
50
51
    private static Random rand = new Random();
52
53
    protected Tag(Tag parent) {
54
        this.parent = parent;
55
        if (parent != null) {
56
            currentStyle = new Style(parent.getStyle());
57
        } else {
58
            currentStyle = new Style();
59
        }
60
    }
61
62
    protected OdfTextDocument getOdt() {
63
        return parent != null ? parent.getOdt() : null;
64
    }
65
66
    protected Map<String, StyleStyleElement> getUsedStyles() {
67
        return parent.getUsedStyles();
68
    }
69
70
    protected Vector<String> getUsedFonts() {
71
        return parent.getUsedFonts();
72
    }
73
74
    protected void registerFont(String font) throws OdfException {
75
        if (!this.getUsedFonts().contains(font)) {
76
            StyleFontFaceElement sffe = null;
77
            try {
78
                sffe = (StyleFontFaceElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleFontFaceElement.ELEMENT_NAME);
79
            } catch (Exception e) {
80
                throw new OdfException("Can't create new style.", e);
81
            }
82
83
            if (isOnlyOneParagraph(this.getOdt())) {
84
                removeLastParagraph(this.getOdt());
85
            }
86
87
            sffe.setStyleNameAttribute(font);
88
            sffe.setAttributeNS(Namespace.SVG, "svg:font-family", font);
89
            try {
90
                this.getOdt().getContentDom().getElementsByTagNameNS(Namespace.OFFICE, "font-face-decls").item(0).appendChild(sffe);
91
            } catch (Exception e) {
92
                throw new OdfException("Can't register new font", e);
93
            }
94
            this.getUsedFonts().add(font);
95
        }
96
    }
97
98
    private boolean isOnlyOneParagraph(OdfTextDocument textDocument) {
99
        int i = 0;
100
        try {
101
            i = textDocument.getContentDom().getElementsByTagNameNS(Namespace.TEXT, "p").getLength();
102
        } catch (Exception e) {
103
            return false;
104
        }
105
        return i == 1 ? true : false;
106
    }
107
108
    private void removeLastParagraph(OdfTextDocument textDocument) {
109
        try {
110
            textDocument.getContentDom().getElementsByTagNameNS(Namespace.OFFICE, "text").item(0).removeChild(textDocument.getContentDom().getElementsByTagNameNS(Namespace.TEXT, "p").item(0));
111
        } catch (Exception e) {
112
            e.printStackTrace();
113
        }
114
    }
115
116
    protected Style getStyle() {
117
        return this.currentStyle;
118
    }
119
120
    public Tag getParent() {
121
        return parent;
122
    }
123
124
    protected OdfElement getTextContainer() {
125
        if (parent != null) {
126
            return parent.getTextContainer();
127
        } else {
128
            return null;
129
        }
130
    }
131
132
    protected TextPElement getParagraph() throws OdfException {
133
        return parent != null ? parent.getParagraph() : null;
134
    }
135
136
    protected OdfElement getParagraphContainer() {
137
        return parent != null ? parent.getParagraphContainer() : null;
138
    }
139
140
    protected TextPElement newParagraph(Node paragraphContainer) throws OdfException {
141
142
        TextPElement tpe = null;
143
144
        try {
145
            tpe = (TextPElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), TextPElement.ELEMENT_NAME);
146
        } catch (Exception e1) {
147
            throw new OdfException("Can't create new style.", e1);
148
        }
149
150
        try {
151
            paragraphContainer.appendChild(tpe);
152
        } catch (DOMException e) {
153
            throw new OdfException("Can't create new paragraph", e);
154
        }
155
156
        return tpe;
157
    }
158
159
    protected String appendNewStyle(StyleStyleElement sse) throws OdfException {
160
161
        sse.setAttributeNS(Namespace.STYLE, "style:name", "");
162
163
        String styleName = Style.getStyleName(this.getUsedStyles(), sse);
164
165
        if (styleName == null) {
166
            styleName = generateName();
167
            sse.setAttributeNS(Namespace.STYLE, "style:name", styleName);
168
169
            try {
170
                OdfContentDom odf = this.getOdt().getContentDom();
171
                Node odfstyles = odf.getElementsByTagNameNS(Namespace.OFFICE, "automatic-styles").item(0);
172
                odfstyles.appendChild(sse);
173
            } catch (Exception e) {
174
                throw new OdfException("Can't create new style.", e);
175
            }
176
177
            this.getUsedStyles().put(styleName, sse);
178
        }
179
180
        return styleName;
181
    }
182
183
    private String generateName() {
184
        return Integer.toString(rand.nextInt());
185
    }
186
187
    public abstract void execute() throws OdfException;
188
189
    public Tag execute(Flow fl, FopTagType type) {
190
        return this;
191
    }
192
193
    protected StyleStyleElement generateOdtStyle(Style currentStyle) throws OdfException {
194
        StyleStyleElement sse = null;
195
        try {
196
            sse = (StyleStyleElement) OdfXMLFactory.newOdfElement(this.getOdt().getContentDom(), StyleStyleElement.ELEMENT_NAME);
197
        } catch (Exception e) {
198
            throw new OdfException("Can't create new style for paragraph.", e);
199
        }
200
201
        Map<Property, String> params = this.currentStyle.getParameters();
202
203
        for (Entry<Property, String> e : params.entrySet()) {
204
            if (e.getKey().isInheritable()) {
205
                e.getKey().execute(sse, this.currentStyle.get(e.getKey()), this.getOdt());
206
            } else {
207
                e.getKey().execute(sse, e.getValue(), this.getOdt());
208
            }
209
        }
210
211
        return sse;
212
    }
213
214
    public void closeIntercept() throws OdfException { }
215
216
    public void execute(Tag tag) throws OdfException { }
217
218
    public void execute(BlockTag tag) throws OdfException {
219
        this.execute((Tag) tag);
220
    }
221
222
    public void execute(InlineTag tag) throws OdfException {
223
        this.execute((Tag) tag);
224
    }
225
226
    public void execute(BasicLinkTag tag) throws OdfException {
227
        this.execute((Tag) tag);
228
    }
229
230
    public void execute(TableTag tag) throws OdfException {
231
        this.execute((Tag) tag);
232
    }
233
234
    public void execute(TableRowTag tag) throws OdfException {
235
        this.execute((Tag) tag);
236
    }
237
238
    public void execute(TableCellTag tag) throws OdfException {
239
        this.execute((Tag) tag);
240
    }
241
242
    public void execute(ListBlockTag tag) throws OdfException {
243
        this.execute((Tag) tag);
244
    }
245
246
    public void execute(ListItemTag tag) throws OdfException {
247
        this.execute((Tag) tag);
248
    }
249
250
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TagExecutable.java (+44 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
/**
23
 * Interface for the class that accept parent visitor.
24
 */
25
public interface TagExecutable {
26
27
    void execute(Tag tag) throws OdfException;
28
29
    void execute(BlockTag tag) throws OdfException;
30
31
    void execute(InlineTag tag) throws OdfException;
32
33
    void execute(BasicLinkTag tag) throws OdfException;
34
35
    void execute(TableTag tag) throws OdfException;
36
37
    void execute(TableRowTag tag) throws OdfException;
38
39
    void execute(TableCellTag tag) throws OdfException;
40
41
    void execute(ListBlockTag tag) throws OdfException;
42
43
    void execute(ListItemTag tag) throws OdfException;
44
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TagExecutor.java (+28 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
/**
23
 * Interface of the converter class that wants to execute in order to its parent converter
24
 */
25
public interface TagExecutor {
26
27
    void executeFromParent(TagExecutable child) throws OdfException;
28
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TagFactory.java (+134 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.FONode;
21
import org.apache.fop.fo.FOText;
22
import org.apache.fop.fo.flow.BasicLink;
23
import org.apache.fop.fo.flow.BidiOverride;
24
import org.apache.fop.fo.flow.Block;
25
import org.apache.fop.fo.flow.BlockContainer;
26
import org.apache.fop.fo.flow.Character;
27
import org.apache.fop.fo.flow.ExternalGraphic;
28
import org.apache.fop.fo.flow.Footnote;
29
import org.apache.fop.fo.flow.FootnoteBody;
30
import org.apache.fop.fo.flow.Inline;
31
import org.apache.fop.fo.flow.InstreamForeignObject;
32
import org.apache.fop.fo.flow.Leader;
33
import org.apache.fop.fo.flow.ListBlock;
34
import org.apache.fop.fo.flow.ListItem;
35
import org.apache.fop.fo.flow.ListItemBody;
36
import org.apache.fop.fo.flow.ListItemLabel;
37
import org.apache.fop.fo.flow.PageNumber;
38
import org.apache.fop.fo.flow.PageNumberCitation;
39
import org.apache.fop.fo.flow.table.Table;
40
import org.apache.fop.fo.flow.table.TableBody;
41
import org.apache.fop.fo.flow.table.TableCell;
42
import org.apache.fop.fo.flow.table.TableColumn;
43
import org.apache.fop.fo.flow.table.TableFooter;
44
import org.apache.fop.fo.flow.table.TableHeader;
45
import org.apache.fop.fo.flow.table.TableRow;
46
import org.apache.fop.fo.pagination.ColorProfile;
47
import org.apache.fop.fo.pagination.Declarations;
48
import org.apache.fop.fo.pagination.Flow;
49
import org.apache.fop.fo.pagination.PageSequence;
50
import org.apache.fop.fo.pagination.StaticContent;
51
import org.apache.fop.fo.pagination.bookmarks.Bookmark;
52
import org.apache.fop.fo.pagination.bookmarks.BookmarkTitle;
53
import org.apache.fop.fo.pagination.bookmarks.BookmarkTree;
54
import org.apache.fop.render.odf.OdfException;
55
import org.apache.fop.render.odf.odt.FopOdtConverter;
56
57
/**
58
 * Factory that creates tag converters
59
 */
60
public class TagFactory {
61
62
    public Tag getTag(FopOdtConverter converter, FONode foNode, Tag actualTag) throws OdfException {
63
        if (foNode instanceof PageSequence)            {
64
            return new PageSequenceTag(actualTag, (PageSequence) foNode, converter);
65
        } else if (foNode instanceof Flow) {
66
            return new FlowTag(actualTag, (Flow) foNode);
67
        } else if (foNode instanceof StaticContent) {
68
            return new StaticContentTag(actualTag, (StaticContent) foNode);
69
        } else if (foNode instanceof ExternalGraphic) {
70
            return new ExternalGraphicTag(actualTag, (ExternalGraphic) foNode);
71
        } else if (foNode instanceof InstreamForeignObject) {
72
            return new InstreamForeignObjectTag(actualTag, (InstreamForeignObject) foNode);
73
        } else if (foNode instanceof Block) {
74
            return new BlockTag(actualTag, (Block) foNode);
75
        } else if (foNode instanceof BlockContainer) {
76
            return new BlockContainerTag(actualTag, (BlockContainer) foNode);
77
        } else if (foNode instanceof BasicLink) {
78
            return new BasicLinkTag(actualTag, (BasicLink) foNode);
79
        } else if (foNode instanceof Inline) {
80
            return new InlineTag(actualTag, (Inline) foNode);
81
        } else if (foNode instanceof FOText) {
82
            return new Text(actualTag, (FOText) foNode);
83
        } else if (foNode instanceof Character) {
84
            return new CharacterTag(actualTag, (Character) foNode);
85
        } else if (foNode instanceof PageNumber) {
86
            return new PageNumberTag(actualTag, (PageNumber) foNode);
87
        } else if (foNode instanceof Footnote) {
88
            return new FootnoteTag(actualTag, (Footnote) foNode);
89
        } else if (foNode instanceof FootnoteBody) {
90
            return new FootnoteBodyTag(actualTag, (FootnoteBody) foNode);
91
        } else if (foNode instanceof ListBlock) {
92
            return new ListBlockTag(actualTag, (ListBlock) foNode);
93
        } else if (foNode instanceof ListItemBody) {
94
            return new ListItemBodyTag(actualTag, (ListItemBody) foNode);
95
        } else if (foNode instanceof ListItem) {
96
            return new ListItemTag(actualTag, (ListItem) foNode, converter);
97
        } else if (foNode instanceof ListItemLabel) {
98
            return new ListItemLabelTag(actualTag, (ListItemLabel) foNode);
99
        } else if (foNode instanceof Table) {
100
            return new TableTag(actualTag, (Table) foNode);
101
        } else if (foNode instanceof TableHeader) {
102
            return new TableHeaderTag(actualTag, (TableHeader) foNode);
103
        } else if (foNode instanceof TableFooter) {
104
            return new TableFooterTag(actualTag, (TableFooter) foNode);
105
        } else if (foNode instanceof TableBody) {
106
            return new TableBodyTag(actualTag, (TableBody) foNode);
107
        } else if (foNode instanceof TableColumn) {
108
            return new TableColumnTag(actualTag, (TableColumn) foNode);
109
        } else if (foNode instanceof TableRow) {
110
            return new TableRowTag(actualTag, (TableRow) foNode);
111
        } else if (foNode instanceof TableCell) {
112
            return new TableCellTag(actualTag, (TableCell) foNode);
113
        } else if (foNode instanceof Leader) {
114
            return new LeaderTag(actualTag, (Leader) foNode);
115
        } else if (foNode instanceof PageNumberCitation) {
116
            return new PageNumberCitationTag(actualTag, (PageNumberCitation) foNode);
117
        } else if (foNode instanceof BidiOverride) {
118
            return new BidiOverrideTag(actualTag, (BidiOverride) foNode);
119
        } else if (foNode instanceof Bookmark) {
120
            return new BookmarkTag(actualTag, (Bookmark) foNode);
121
        } else if (foNode instanceof BookmarkTitle) {
122
            return new BookmarkTitleTag(actualTag, (BookmarkTitle) foNode);
123
        } else if (foNode instanceof BookmarkTree) {
124
            return new BookmarkTreeTag(actualTag, (BookmarkTree) foNode);
125
        } else if (foNode instanceof ColorProfile) {
126
            return new ColorProfileTag(actualTag, (ColorProfile) foNode);
127
        } else if (foNode instanceof Declarations) {
128
            return new DeclarationsTag(actualTag, (Declarations) foNode);
129
        } else {
130
            return new UnknownTag(actualTag);
131
        }
132
    }
133
134
}
(-)src/java/org/apache/fop/render/odf/odt/tags/Text.java (+132 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.odftoolkit.odfdom.dom.element.text.TextLineBreakElement;
21
import org.odftoolkit.odfdom.dom.element.text.TextSElement;
22
import org.odftoolkit.odfdom.dom.element.text.TextTabElement;
23
import org.odftoolkit.odfdom.pkg.OdfElement;
24
import org.odftoolkit.odfdom.pkg.OdfFileDom;
25
26
import org.apache.fop.fo.FOText;
27
import org.apache.fop.render.odf.OdfException;
28
29
/**
30
 * Text converter
31
 */
32
public class Text extends Tag {
33
34
    private String string = null;
35
36
    Text(Tag parent, FOText textFop) {
37
        super(parent);
38
        this.string = textFop.getCharSequence().toString();
39
    }
40
41
    @Override
42
    public void execute() throws OdfException {
43
44
        if (string.length() == 0) {
45
            return;
46
        }
47
48
        parent.executeFromParent(this);
49
    }
50
51
    @Override
52
    public void execute(Tag parent) throws OdfException {
53
        if (string != null && !string.equals("")) {
54
            appendTextElements(parent.getTextContainer(), string, true);
55
        }
56
    }
57
58
    public void executeFromParent(TagExecutable child) throws OdfException {
59
        if (this != child) {
60
            child.execute(this);
61
        }
62
    }
63
64
    /**
65
     * Function came from Apache simple-odf-0.6.6 (incubation)
66
     * Paragraph.java:667
67
     * http://incubator.apache.org/odftoolkit/simple/index.html
68
     * @param ownerElement
69
     * @param content
70
     * @param isWhitespaceCollapsed
71
     */
72
    private void appendTextElements(OdfElement ownerElement, String content, boolean isWhitespaceCollapsed) {
73
        OdfFileDom ownerDocument = (OdfFileDom) ownerElement.getOwnerDocument();
74
        if (isWhitespaceCollapsed) {
75
            int i = 0;
76
            int length = content.length();
77
            String str = "";
78
            while (i < length) {
79
                char ch = content.charAt(i);
80
                if (ch == ' ') {
81
                    int j = 1;
82
                    i++;
83
                    while ((i < length) && (content.charAt(i) == ' ')) {
84
                        j++;
85
                        i++;
86
                    }
87
                    if (j == 1) {
88
                        str += ' ';
89
                    } else {
90
                        str += ' ';
91
                        org.w3c.dom.Text textnode = ownerDocument.createTextNode(str);
92
                        ownerElement.appendChild(textnode);
93
                        str = "";
94
                        TextSElement spaceElement = ownerDocument.newOdfElement(TextSElement.class);
95
                        ownerElement.appendChild(spaceElement);
96
                        spaceElement.setTextCAttribute(j - 1);
97
                    }
98
                } else if (ch == '\n') {
99
                    if (str.length() > 0) {
100
                        org.w3c.dom.Text textnode = ownerDocument.createTextNode(str);
101
                        ownerElement.appendChild(textnode);
102
                        str = "";
103
                    }
104
                    TextLineBreakElement lineBreakElement = ownerDocument.newOdfElement(TextLineBreakElement.class);
105
                    ownerElement.appendChild(lineBreakElement);
106
                    i++;
107
                } else if (ch == '\t') {
108
                    if (str.length() > 0) {
109
                        org.w3c.dom.Text textnode = ownerElement.getOwnerDocument().createTextNode(str);
110
                        ownerElement.appendChild(textnode);
111
                        str = "";
112
                    }
113
                    TextTabElement tabElement = ownerDocument.newOdfElement(TextTabElement.class);
114
                    ownerElement.appendChild(tabElement);
115
                    i++;
116
                } else if (ch == '\r') {
117
                    i++;
118
                } else {
119
                    str += ch;
120
                    i++;
121
                }
122
            }
123
            if (str.length() > 0) {
124
                org.w3c.dom.Text textnode = ownerDocument.createTextNode(str);
125
                ownerElement.appendChild(textnode);
126
            }
127
        } else {
128
            org.w3c.dom.Text textnode = ownerDocument.createTextNode(content);
129
            ownerElement.appendChild(textnode);
130
        }
131
    }
132
}
(-)src/java/org/apache/fop/render/odf/odt/tags/TitleTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.pagination.Title;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class TitleTag extends Tag {
24
25
    protected Title t = null;
26
27
    protected TitleTag(Tag parent, Title t) {
28
        super(parent);
29
        this.t = t;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/odt/tags/UnknownTag.java (+38 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.render.odf.OdfException;
21
22
/**
23
 * Unknown tag converter
24
 */
25
public class UnknownTag extends Tag {
26
27
    protected UnknownTag(Tag parent) {
28
        super(parent);
29
    }
30
31
    @Override
32
    public void execute() { }
33
34
    public void executeFromParent(TagExecutable child) throws OdfException {
35
        child.execute(this);
36
    }
37
38
}
(-)src/java/org/apache/fop/render/odf/odt/tags/WrapperTag.java (+42 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.odt.tags;
19
20
import org.apache.fop.fo.flow.Wrapper;
21
import org.apache.fop.render.odf.OdfException;
22
23
public class WrapperTag extends Tag {
24
25
    protected Wrapper w = null;
26
27
    protected WrapperTag(Tag parent, Wrapper w) {
28
        super(parent);
29
        this.w = w;
30
    }
31
32
    @Override
33
    public void execute() throws OdfException {
34
        // TODO Auto-generated method stub
35
36
    }
37
38
    public void executeFromParent(TagExecutable child) throws OdfException {
39
        child.execute(this);
40
    }
41
42
}
(-)src/java/org/apache/fop/render/odf/FopTagType.java (+26 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf;
19
20
/**
21
 * Defines START and END tags helping to detect hierachical structure of xslfo.
22
 */
23
public enum FopTagType {
24
    START,
25
    END;
26
}
(-)src/java/org/apache/fop/render/odf/ODTFOEventHandlerMaker.java (+63 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf;
19
20
import java.io.OutputStream;
21
22
import org.apache.fop.apps.FOUserAgent;
23
import org.apache.fop.apps.MimeConstants;
24
import org.apache.fop.fo.FOEventHandler;
25
import org.apache.fop.render.AbstractFOEventHandlerMaker;
26
27
/**
28
 * Maker class for ODT support.
29
 */
30
public class ODTFOEventHandlerMaker extends AbstractFOEventHandlerMaker {
31
32
    private static final String[] MIMES = new String[] {
33
        MimeConstants.MIME_ODT
34
    };
35
36
37
    /**
38
     * {@inheritDoc}
39
     * @param ua FOUserAgent
40
     * @param out OutputStream
41
     * @return created ODTHandler
42
     */
43
    public FOEventHandler makeFOEventHandler(FOUserAgent ua, OutputStream out) {
44
        return new ODTHandler(ua, out);
45
    }
46
47
    /**
48
     * {@inheritDoc}
49
     * @return true, if an outputstream is needed
50
     */
51
    public boolean needsOutputStream() {
52
        return true;
53
    }
54
55
    /**
56
     * {@inheritDoc}
57
     * @return array of MIME types
58
     */
59
    public String[] getSupportedMimeTypes() {
60
        return MIMES;
61
    }
62
63
}
(-)src/java/org/apache/fop/render/odf/properties/AbsolutePosition.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AbsolutePosition extends Property {
21
22
    private static AbsolutePosition instance = new AbsolutePosition();
23
24
    public static AbsolutePosition getInstance() {
25
        return instance;
26
    }
27
28
    private AbsolutePosition() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/ActiveState.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ActiveState extends Property {
21
22
    private static ActiveState instance = new ActiveState();
23
24
    public static ActiveState getInstance() {
25
        return instance;
26
    }
27
28
    private ActiveState() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/AlignmentAdjust.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AlignmentAdjust extends Property {
21
22
    private static AlignmentAdjust instance = new AlignmentAdjust();
23
24
    public static AlignmentAdjust getInstance() {
25
        return instance;
26
    }
27
28
    private AlignmentAdjust() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/AlignmentBaseline.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AlignmentBaseline extends Property {
21
22
    private static AlignmentBaseline instance = new AlignmentBaseline();
23
24
    public static AlignmentBaseline getInstance() {
25
        return instance;
26
    }
27
28
    private AlignmentBaseline() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/AllowedHeightScale.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AllowedHeightScale extends Property {
21
22
    private static AllowedHeightScale instance = new AllowedHeightScale();
23
24
    public static AllowedHeightScale getInstance() {
25
        return instance;
26
    }
27
28
    private AllowedHeightScale() {
29
        this.inheritable = true;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/AllowedWidthScale.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AllowedWidthScale extends Property {
21
22
    private static AllowedWidthScale instance = new AllowedWidthScale();
23
24
    public static AllowedWidthScale getInstance() {
25
        return instance;
26
    }
27
28
    private AllowedWidthScale() {
29
        this.inheritable = true;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/AutoRestore.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class AutoRestore extends Property {
21
22
    private static AutoRestore instance = new AutoRestore();
23
24
    public static AutoRestore getInstance() {
25
        return instance;
26
    }
27
28
    private AutoRestore() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/Azimuth.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Azimuth extends Property {
21
22
    private static Azimuth instance = new Azimuth();
23
24
    public static Azimuth getInstance() {
25
        return instance;
26
    }
27
28
    private Azimuth() {
29
        this.inheritable = true;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundAttachment.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BackgroundAttachment extends Property {
21
22
    private static BackgroundAttachment instance = new BackgroundAttachment();
23
24
    public static BackgroundAttachment getInstance() {
25
        return instance;
26
    }
27
28
    private BackgroundAttachment() {
29
        this.inheritable = false;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundColor.java (+57 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import java.awt.Color;
21
22
import org.odftoolkit.odfdom.doc.OdfTextDocument;
23
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
24
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
25
26
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
27
import org.apache.fop.render.odf.OdfException;
28
import org.apache.fop.render.odf.odt.Namespace;
29
30
public final class BackgroundColor extends Property {
31
32
    private static BackgroundColor instance = new BackgroundColor();
33
34
    public static BackgroundColor getInstance() {
35
        return instance;
36
    }
37
38
    private BackgroundColor() {
39
        this.inheritable = false;
40
    }
41
42
    @Override
43
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
44
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
45
        sppe.setAttributeNS(Namespace.FO, "fo:background-color", value);
46
    }
47
48
    public String getColor(CommonBorderPaddingBackground commonBorderPaddingBackground) {
49
        Color color = commonBorderPaddingBackground.backgroundColor;
50
        if (color == null) {
51
            return null;
52
        }
53
        return "#" + Integer.toHexString(color.getRed())
54
                    + Integer.toHexString(color.getGreen())
55
                    + Integer.toHexString(color.getBlue());
56
    }
57
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundImage.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BackgroundImage extends Property {
21
22
    private static BackgroundImage instance = new BackgroundImage();
23
24
    public static BackgroundImage getInstance() {
25
        return instance;
26
    }
27
28
    private BackgroundImage() {
29
        this.inheritable = false;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundPositionHorizontal.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BackgroundPositionHorizontal extends Property {
21
22
    private static BackgroundPositionHorizontal instance = new BackgroundPositionHorizontal();
23
24
    public static BackgroundPositionHorizontal getInstance() {
25
        return instance;
26
    }
27
28
    private BackgroundPositionHorizontal() {
29
        this.inheritable = false;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundPositionVertical.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BackgroundPositionVertical extends Property {
21
22
    private static BackgroundPositionVertical instance = new BackgroundPositionVertical();
23
24
    public static BackgroundPositionVertical getInstance() {
25
        return instance;
26
    }
27
28
    private BackgroundPositionVertical() {
29
        this.inheritable = false;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BackgroundRepeat.java (+32 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BackgroundRepeat extends Property {
21
22
    private static BackgroundRepeat instance = new BackgroundRepeat();
23
24
    public static BackgroundRepeat getInstance() {
25
        return instance;
26
    }
27
28
    private BackgroundRepeat() {
29
        this.inheritable = false;
30
    }
31
32
}
(-)src/java/org/apache/fop/render/odf/properties/BaselineShift.java (+31 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BaselineShift extends Property {
21
22
    private static BaselineShift instance = new BaselineShift();
23
24
    public static BaselineShift getInstance() {
25
        return instance;
26
    }
27
28
    private BaselineShift() {
29
        this.inheritable = false;
30
    }
31
}
(-)src/java/org/apache/fop/render/odf/properties/BlankOrNotBlank.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BlankOrNotBlank extends Property {
21
22
    private static BlankOrNotBlank instance = new BlankOrNotBlank();
23
24
    public static BlankOrNotBlank getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BlockProgressionDimension.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BlockProgressionDimension extends Property {
21
22
    private static BlockProgressionDimension instance = new BlockProgressionDimension();
23
24
    public static BlockProgressionDimension getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderAfterColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderAfterColor extends Property {
21
22
    private static BorderAfterColor instance = new BorderAfterColor();
23
24
    public static BorderAfterColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderAfterPrecedence.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderAfterPrecedence extends Property {
21
22
    private static BorderAfterPrecedence instance = new BorderAfterPrecedence();
23
24
    public static BorderAfterPrecedence getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderAfterStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderAfterStyle extends Property {
21
22
    private static BorderAfterStyle instance = new BorderAfterStyle();
23
24
    public static BorderAfterStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderAfterWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderAfterWidth extends Property {
21
22
    private static BorderAfterWidth instance = new BorderAfterWidth();
23
24
    public static BorderAfterWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBeforeColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBeforeColor extends Property {
21
22
    private static BorderBeforeColor instance = new BorderBeforeColor();
23
24
    public static BorderBeforeColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBeforePrecedence.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBeforePrecedence extends Property {
21
22
    private static BorderBeforePrecedence instance = new BorderBeforePrecedence();
23
24
    public static BorderBeforePrecedence getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBeforeStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBeforeStyle extends Property {
21
22
    private static BorderBeforeStyle instance = new BorderBeforeStyle();
23
24
    public static BorderBeforeStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBeforeWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBeforeWidth extends Property {
21
22
    private static BorderBeforeWidth instance = new BorderBeforeWidth();
23
24
    public static BorderBeforeWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBottomColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBottomColor extends Property {
21
22
    private static BorderBottomColor instance = new BorderBottomColor();
23
24
    public static BorderBottomColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBottomStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBottomStyle extends Property {
21
22
    private static BorderBottomStyle instance = new BorderBottomStyle();
23
24
    public static BorderBottomStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderBottomWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderBottomWidth extends Property {
21
22
    private static BorderBottomWidth instance = new BorderBottomWidth();
23
24
    public static BorderBottomWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderCollapse.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderCollapse extends Property {
21
22
    private static BorderCollapse instance = new BorderCollapse();
23
24
    public static BorderCollapse getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderEndColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderEndColor extends Property {
21
22
    private static BorderEndColor instance = new BorderEndColor();
23
24
    public static BorderEndColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderEndPrecedence.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderEndPrecedence extends Property {
21
22
    private static BorderEndPrecedence instance = new BorderEndPrecedence();
23
24
    public static BorderEndPrecedence getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderEndStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderEndStyle extends Property {
21
22
    private static BorderEndStyle instance = new BorderEndStyle();
23
24
    public static BorderEndStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderEndWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderEndWidth extends Property {
21
22
    private static BorderEndWidth instance = new BorderEndWidth();
23
24
    public static BorderEndWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderLeftColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderLeftColor extends Property {
21
22
    private static BorderLeftColor instance = new BorderLeftColor();
23
24
    public static BorderLeftColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderLeftStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderLeftStyle extends Property {
21
22
    private static BorderLeftStyle instance = new BorderLeftStyle();
23
24
    public static BorderLeftStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderLeftWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderLeftWidth extends Property {
21
22
    private static BorderLeftWidth instance = new BorderLeftWidth();
23
24
    public static BorderLeftWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderRightColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderRightColor extends Property {
21
22
    private static BorderRightColor instance = new BorderRightColor();
23
24
    public static BorderRightColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderRightStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderRightStyle extends Property {
21
22
    private static BorderRightStyle instance = new BorderRightStyle();
23
24
    public static BorderRightStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderRightWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderRightWidth extends Property {
21
22
    private static BorderRightWidth instance = new BorderRightWidth();
23
24
    public static BorderRightWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderSeparation.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderSeparation extends Property {
21
22
    private static BorderSeparation instance = new BorderSeparation();
23
24
    public static BorderSeparation getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderStartColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderStartColor extends Property {
21
22
    private static BorderStartColor instance = new BorderStartColor();
23
24
    public static BorderStartColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderStartPrecedence.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderStartPrecedence extends Property {
21
22
    private static BorderStartPrecedence instance = new BorderStartPrecedence();
23
24
    public static BorderStartPrecedence getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BorderStartStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderStartStyle extends Property {
21
22
    private static BorderStartStyle instance = new BorderStartStyle();
23
24
    public static BorderStartStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderStartWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderStartWidth extends Property {
21
22
    private static BorderStartWidth instance = new BorderStartWidth();
23
24
    public static BorderStartWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderTopColor.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderTopColor extends Property {
21
22
    private static BorderTopColor instance = new BorderTopColor();
23
24
    public static BorderTopColor getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderTopStyle.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderTopStyle extends Property {
21
22
    private static BorderTopStyle instance = new BorderTopStyle();
23
24
    public static BorderTopStyle getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BorderTopWidth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BorderTopWidth extends Property {
21
22
    private static BorderTopWidth instance = new BorderTopWidth();
23
24
    public static BorderTopWidth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Bottom.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Bottom extends Property {
21
22
    private static Bottom instance = new Bottom();
23
24
    public static Bottom getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/BottomR.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BottomR extends Property {
21
22
    private static BottomR instance = new BottomR();
23
24
    public static BottomR getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BreakAfter.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BreakAfter extends Property {
21
22
    private static BreakAfter instance = new BreakAfter();
23
24
    public static BreakAfter getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/BreakBefore.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class BreakBefore extends Property {
21
22
    private static BreakBefore instance = new BreakBefore();
23
24
    public static BreakBefore getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/CaptionSide.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class CaptionSide extends Property {
21
22
    private static CaptionSide instance = new CaptionSide();
23
24
    public static CaptionSide getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/CaseName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class CaseName extends Property {
21
22
    private static CaseName instance = new CaseName();
23
24
    public static CaseName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/CaseTitle.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class CaseTitle extends Property {
21
22
    private static CaseTitle instance = new CaseTitle();
23
24
    public static CaseTitle getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarClass.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarClass extends Property {
21
22
    private static ChangeBarClass instance = new ChangeBarClass();
23
24
    public static ChangeBarClass getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarColor.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarColor extends Property {
21
22
    private static ChangeBarColor instance = new ChangeBarColor();
23
24
    public static ChangeBarColor getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarOffset.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarOffset extends Property {
21
22
    private static ChangeBarOffset instance = new ChangeBarOffset();
23
24
    public static ChangeBarOffset getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarPlacement.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarPlacement extends Property {
21
22
    private static ChangeBarPlacement instance = new ChangeBarPlacement();
23
24
    public static ChangeBarPlacement getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarStyle.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarStyle extends Property {
21
22
    private static ChangeBarStyle instance = new ChangeBarStyle();
23
24
    public static ChangeBarStyle getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ChangeBarWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ChangeBarWidth extends Property {
21
22
    private static ChangeBarWidth instance = new ChangeBarWidth();
23
24
    public static ChangeBarWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Character.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Character extends Property {
21
22
    private static Character instance = new Character();
23
24
    public static Character getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Clear.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Clear extends Property {
21
22
    private static Clear instance = new Clear();
23
24
    public static Clear getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Clip.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Clip extends Property {
21
22
    private static Clip instance = new Clip();
23
24
    public static Clip getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Color.java (+54 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
21
import org.odftoolkit.odfdom.doc.OdfTextDocument;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
24
25
import org.apache.fop.render.odf.OdfException;
26
import org.apache.fop.render.odf.odt.Namespace;
27
28
public final class Color extends Property {
29
30
    private static Color instance = new Color();
31
32
    public static Color getInstance() {
33
        return instance;
34
    }
35
36
    private Color() {
37
        this.inheritable = true;
38
    }
39
40
    public String getColor(java.awt.Color color) {
41
        if (color == null) {
42
            return null;
43
        }
44
        return "#" + String.format("%2s", Integer.toHexString(color.getRed())).replace(' ', '0')
45
                    + String.format("%2s", Integer.toHexString(color.getGreen())).replace(' ', '0')
46
                    + String.format("%2s", Integer.toHexString(color.getBlue())).replace(' ', '0');
47
    }
48
49
    @Override
50
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
51
        StyleTextPropertiesElement stpe = (StyleTextPropertiesElement) this.getElement(StyleTextPropertiesElement.class, StyleTextPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
52
        stpe.setAttributeNS(Namespace.FO, "fo:color", value);
53
    }
54
}
(-)src/java/org/apache/fop/render/odf/properties/ColorProfileName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ColorProfileName extends Property {
21
22
    private static ColorProfileName instance = new ColorProfileName();
23
24
    public static ColorProfileName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ColumnCount.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ColumnCount extends Property {
21
22
    private static ColumnCount instance = new ColumnCount();
23
24
    public static ColumnCount getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ColumnGap.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ColumnGap extends Property {
21
22
    private static ColumnGap instance = new ColumnGap();
23
24
    public static ColumnGap getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ColumnNumber.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ColumnNumber extends Property {
21
22
    private static ColumnNumber instance = new ColumnNumber();
23
24
    public static ColumnNumber getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ColumnWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ColumnWidth extends Property {
21
22
    private static ColumnWidth instance = new ColumnWidth();
23
24
    public static ColumnWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ContentHeight.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ContentHeight extends Property {
21
22
    private static ContentHeight instance = new ContentHeight();
23
24
    public static ContentHeight getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ContentType.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ContentType extends Property {
21
22
    private static ContentType instance = new ContentType();
23
24
    public static ContentType getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ContentWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ContentWidth extends Property {
21
22
    private static ContentWidth instance = new ContentWidth();
23
24
    public static ContentWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Country.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Country extends Property {
21
22
    private static Country instance = new Country();
23
24
    public static Country getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/CueAfter.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class CueAfter extends Property {
21
22
    private static CueAfter instance = new CueAfter();
23
24
    public static CueAfter getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/CueBefore.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class CueBefore extends Property {
21
22
    private static CueBefore instance = new CueBefore();
23
24
    public static CueBefore getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/DestinationPlacementOffset.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class DestinationPlacementOffset extends Property {
21
22
    private static DestinationPlacementOffset instance = new DestinationPlacementOffset();
23
24
    public static DestinationPlacementOffset getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Direction.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Direction extends Property {
21
22
    private static Direction instance = new Direction();
23
24
    public static Direction getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/DisplayAlign.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class DisplayAlign extends Property {
21
22
    private static DisplayAlign instance = new DisplayAlign();
23
24
    public static DisplayAlign getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/DominantBaseline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class DominantBaseline extends Property {
21
22
    private static DominantBaseline instance = new DominantBaseline();
23
24
    public static DominantBaseline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Elevation.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Elevation extends Property {
21
22
    private static Elevation instance = new Elevation();
23
24
    public static Elevation getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/EmptyCells.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class EmptyCells extends Property {
21
22
    private static EmptyCells instance = new EmptyCells();
23
24
    public static EmptyCells getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/EndIndentBlock.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class EndIndentBlock extends Property {
21
22
    private static EndIndentBlock instance = new EndIndentBlock();
23
24
    public static EndIndentBlock getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/EndsRow.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class EndsRow extends Property {
21
22
    private static EndsRow instance = new EndsRow();
23
24
    public static EndsRow getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Extent.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Extent extends Property {
21
22
    private static Extent instance = new Extent();
23
24
    public static Extent getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ExternalDestination.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ExternalDestination extends Property {
21
22
    private static ExternalDestination instance = new ExternalDestination();
23
24
    public static ExternalDestination getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FloatProperty.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FloatProperty extends Property {
21
22
    private static FloatProperty instance = new FloatProperty();
23
24
    public static FloatProperty getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FlowMapName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FlowMapName extends Property {
21
22
    private static FlowMapName instance = new FlowMapName();
23
24
    public static FlowMapName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FlowMapReference.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FlowMapReference extends Property {
21
22
    private static FlowMapReference instance = new FlowMapReference();
23
24
    public static FlowMapReference getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FlowName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FlowName extends Property {
21
22
    private static FlowName instance = new FlowName();
23
24
    public static FlowName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FlowNameReference.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FlowNameReference extends Property {
21
22
    private static FlowNameReference instance = new FlowNameReference();
23
24
    public static FlowNameReference getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/FontFamily.java (+49 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
23
24
import org.apache.fop.fo.properties.CommonFont;
25
import org.apache.fop.render.odf.OdfException;
26
import org.apache.fop.render.odf.odt.Namespace;
27
28
public final class FontFamily extends Property {
29
30
    private static FontFamily instance = new FontFamily();
31
32
    public static FontFamily getInstance() {
33
        return instance;
34
    }
35
36
    private FontFamily() {
37
        this.inheritable = true;
38
    }
39
40
    public String getFont(CommonFont commonFont) {
41
        return commonFont.getFirstFontFamily().split(",")[0];
42
    }
43
44
    @Override
45
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
46
        StyleTextPropertiesElement stpe = (StyleTextPropertiesElement) this.getElement(StyleTextPropertiesElement.class, StyleTextPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
47
        stpe.setAttributeNS(Namespace.STYLE, "style:font-name", value);
48
    }
49
}
(-)src/java/org/apache/fop/render/odf/properties/FontSelectionStrategy.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FontSelectionStrategy extends Property {
21
22
    private static FontSelectionStrategy instance = new FontSelectionStrategy();
23
24
    public static FontSelectionStrategy getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/FontSize.java (+57 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
21
import org.odftoolkit.odfdom.doc.OdfTextDocument;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
24
25
import org.apache.fop.datatypes.Length;
26
import org.apache.fop.fo.properties.CommonFont;
27
import org.apache.fop.render.odf.OdfException;
28
import org.apache.fop.render.odf.odt.Namespace;
29
30
public final class FontSize extends Property {
31
32
    private static FontSize instance = new FontSize();
33
34
    public static FontSize getInstance() {
35
        return instance;
36
    }
37
38
    private FontSize() {
39
        this.inheritable = true;
40
    }
41
42
    public String getFontSize(CommonFont commonFont) {
43
        Length l = commonFont.getFontSize();
44
        if (l == null) {
45
            return null;
46
        }
47
        Double value = Double.valueOf((double)l.getValue() / 1000);
48
        return value + "pt";
49
    }
50
51
    @Override
52
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
53
        StyleTextPropertiesElement stpe = (StyleTextPropertiesElement) this.getElement(StyleTextPropertiesElement.class, StyleTextPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
54
        stpe.setAttributeNS(Namespace.FO, "fo:font-size", value);
55
56
    }
57
}
(-)src/java/org/apache/fop/render/odf/properties/FontSizeAdjust.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FontSizeAdjust extends Property {
21
22
    private static FontSizeAdjust instance = new FontSizeAdjust();
23
24
    public static FontSizeAdjust getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/FontStretch.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FontStretch extends Property {
21
22
    private static FontStretch instance = new FontStretch();
23
24
    public static FontStretch getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/FontStyle.java (+50 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
23
24
import org.apache.fop.fo.Constants;
25
import org.apache.fop.fo.properties.CommonFont;
26
import org.apache.fop.render.odf.OdfException;
27
import org.apache.fop.render.odf.odt.Namespace;
28
29
public final class FontStyle extends Property {
30
31
    private static FontStyle instance = new FontStyle();
32
33
    public static FontStyle getInstance() {
34
        return instance;
35
    }
36
37
    private FontStyle() {
38
        this.inheritable = true;
39
    }
40
41
    public String getFontStyle(CommonFont commonFont) {
42
        return commonFont.getFontStyle() == Constants.EN_ITALIC ? "italic" : null;
43
    }
44
45
    @Override
46
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
47
        StyleTextPropertiesElement stpe = (StyleTextPropertiesElement) this.getElement(StyleTextPropertiesElement.class, StyleTextPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
48
        stpe.setAttributeNS(Namespace.FO, "fo:font-style", value);
49
    }
50
}
(-)src/java/org/apache/fop/render/odf/properties/FontVariant.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class FontVariant extends Property {
21
22
    private static FontVariant instance = new FontVariant();
23
24
    public static FontVariant getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/FontWeight.java (+50 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleTextPropertiesElement;
23
24
import org.apache.fop.fo.Constants;
25
import org.apache.fop.fo.properties.CommonFont;
26
import org.apache.fop.render.odf.OdfException;
27
import org.apache.fop.render.odf.odt.Namespace;
28
29
public final class FontWeight extends Property {
30
31
    private static FontWeight instance = new FontWeight();
32
33
    public static FontWeight getInstance() {
34
        return instance;
35
    }
36
37
    private FontWeight() {
38
        this.inheritable = true;
39
    }
40
41
    public String getFontWeight(CommonFont commonFont) {
42
        return commonFont.getFontWeight() >= Constants.EN_700 ? "bold" : null;
43
    }
44
45
    @Override
46
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
47
        StyleTextPropertiesElement stpe = (StyleTextPropertiesElement) this.getElement(StyleTextPropertiesElement.class, StyleTextPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
48
        stpe.setAttributeNS(Namespace.FO, "fo:font-weight", value);
49
    }
50
}
(-)src/java/org/apache/fop/render/odf/properties/ForcePageCount.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ForcePageCount extends Property {
21
22
    private static ForcePageCount instance = new ForcePageCount();
23
24
    public static ForcePageCount getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Format.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Format extends Property {
21
22
    private static Format instance = new Format();
23
24
    public static Format getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/GlyphOrientationHorizontal.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class GlyphOrientationHorizontal extends Property {
21
22
    private static GlyphOrientationHorizontal instance = new GlyphOrientationHorizontal();
23
24
    public static GlyphOrientationHorizontal getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/GlyphOrientationVertical.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class GlyphOrientationVertical extends Property {
21
22
    private static GlyphOrientationVertical instance = new GlyphOrientationVertical();
23
24
    public static GlyphOrientationVertical getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/GroupingSeparator.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class GroupingSeparator extends Property {
21
22
    private static GroupingSeparator instance = new GroupingSeparator();
23
24
    public static GroupingSeparator getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/GroupingSize.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class GroupingSize extends Property {
21
22
    private static GroupingSize instance = new GroupingSize();
23
24
    public static GroupingSize getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Height.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Height extends Property {
21
22
    private static Height instance = new Height();
23
24
    public static Height getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Hyphenate.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Hyphenate extends Property {
21
22
    private static Hyphenate instance = new Hyphenate();
23
24
    public static Hyphenate getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/HyphenationCharacter.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class HyphenationCharacter extends Property {
21
22
    private static HyphenationCharacter instance = new HyphenationCharacter();
23
24
    public static HyphenationCharacter getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/HyphenationKeep.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class HyphenationKeep extends Property {
21
22
    private static HyphenationKeep instance = new HyphenationKeep();
23
24
    public static HyphenationKeep getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/HyphenationLadderCount.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class HyphenationLadderCount extends Property {
21
22
    private static HyphenationLadderCount instance = new HyphenationLadderCount();
23
24
    public static HyphenationLadderCount getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/HyphenationPushCharacterCount.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class HyphenationPushCharacterCount extends Property {
21
22
    private static HyphenationPushCharacterCount instance = new HyphenationPushCharacterCount();
23
24
    public static HyphenationPushCharacterCount getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/HyphenationRamainCharacterCount.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class HyphenationRamainCharacterCount extends Property {
21
22
    private static HyphenationRamainCharacterCount instance = new HyphenationRamainCharacterCount();
23
24
    public static HyphenationRamainCharacterCount getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Id.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Id extends Property {
21
22
    private static Id instance = new Id();
23
24
    public static Id getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/IndexClass.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class IndexClass extends Property {
21
22
    private static IndexClass instance = new IndexClass();
23
24
    public static IndexClass getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/IndexKey.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class IndexKey extends Property {
21
22
    private static IndexKey instance = new IndexKey();
23
24
    public static IndexKey getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/IndicateDestination.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class IndicateDestination extends Property {
21
22
    private static IndicateDestination instance = new IndicateDestination();
23
24
    public static IndicateDestination getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/InitialPageNumber.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class InitialPageNumber extends Property {
21
22
    private static InitialPageNumber instance = new InitialPageNumber();
23
24
    public static InitialPageNumber getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/InlineProgressionDimension.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class InlineProgressionDimension extends Property {
21
22
    private static InlineProgressionDimension instance = new InlineProgressionDimension();
23
24
    public static InlineProgressionDimension getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/InternalDestination.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class InternalDestination extends Property {
21
22
    private static InternalDestination instance = new InternalDestination();
23
24
    public static InternalDestination getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/IntrinsicScaleValue.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class IntrinsicScaleValue extends Property {
21
22
    private static IntrinsicScaleValue instance = new IntrinsicScaleValue();
23
24
    public static IntrinsicScaleValue getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/IntrusionDisplace.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class IntrusionDisplace extends Property {
21
22
    private static IntrusionDisplace instance = new IntrusionDisplace();
23
24
    public static IntrusionDisplace getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/KeepTogether.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class KeepTogether extends Property {
21
22
    private static KeepTogether instance = new KeepTogether();
23
24
    public static KeepTogether getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/KeepWithNext.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class KeepWithNext extends Property {
21
22
    private static KeepWithNext instance = new KeepWithNext();
23
24
    public static KeepWithNext getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/KeepWithPrevious.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class KeepWithPrevious extends Property {
21
22
    private static KeepWithPrevious instance = new KeepWithPrevious();
23
24
    public static KeepWithPrevious getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Language.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Language extends Property {
21
22
    private static Language instance = new Language();
23
24
    public static Language getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LastLineEndIndent.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LastLineEndIndent extends Property {
21
22
    private static LastLineEndIndent instance = new LastLineEndIndent();
23
24
    public static LastLineEndIndent getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LeaderAlignment.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LeaderAlignment extends Property {
21
22
    private static LeaderAlignment instance = new LeaderAlignment();
23
24
    public static LeaderAlignment getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LeaderLength.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LeaderLength extends Property {
21
22
    private static LeaderLength instance = new LeaderLength();
23
24
    public static LeaderLength getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LeaderPattern.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LeaderPattern extends Property {
21
22
    private static LeaderPattern instance = new LeaderPattern();
23
24
    public static LeaderPattern getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LeaderPatternWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LeaderPatternWidth extends Property {
21
22
    private static LeaderPatternWidth instance = new LeaderPatternWidth();
23
24
    public static LeaderPatternWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Left.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Left extends Property {
21
22
    private static Left instance = new Left();
23
24
    public static Left getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LeftR.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LeftR extends Property {
21
22
    private static LeftR instance = new LeftR();
23
24
    public static LeftR getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LetterSpacing.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LetterSpacing extends Property {
21
22
    private static LetterSpacing instance = new LetterSpacing();
23
24
    public static LetterSpacing getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LetterValue.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LetterValue extends Property {
21
22
    private static LetterValue instance = new LetterValue();
23
24
    public static LetterValue getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/LineHeight.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LineHeight extends Property {
21
22
    private static LineHeight instance = new LineHeight();
23
24
    public static LineHeight getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LineHeightShiftAdjustment.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LineHeightShiftAdjustment extends Property {
21
22
    private static LineHeightShiftAdjustment instance = new LineHeightShiftAdjustment();
23
24
    public static LineHeightShiftAdjustment getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LineStackingStrategy.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LineStackingStrategy extends Property {
21
22
    private static LineStackingStrategy instance = new LineStackingStrategy();
23
24
    public static LineStackingStrategy getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/LinefeedTreatment.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class LinefeedTreatment extends Property {
21
22
    private static LinefeedTreatment instance = new LinefeedTreatment();
23
24
    public static LinefeedTreatment getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/MarginBottomBlock.java (+46 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
24
import org.apache.fop.render.odf.OdfException;
25
import org.apache.fop.render.odf.odt.Namespace;
26
27
public final class MarginBottomBlock extends Property {
28
29
    private static MarginBottomBlock instance = new MarginBottomBlock();
30
31
    public static MarginBottomBlock getInstance() {
32
        return instance;
33
    }
34
35
    private MarginBottomBlock() {
36
        this.inheritable = false;
37
    }
38
39
    @Override
40
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
41
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
42
        sppe.setAttributeNS(Namespace.FO, "fo:margin-bottom", value);
43
    }
44
45
46
}
(-)src/java/org/apache/fop/render/odf/properties/MarginBottomInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MarginBottomInline extends Property {
21
22
    private static MarginBottomInline instance = new MarginBottomInline();
23
24
    public static MarginBottomInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MarginLeftBlock.java (+58 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
24
import org.apache.fop.datatypes.Length;
25
import org.apache.fop.fo.properties.CommonMarginBlock;
26
import org.apache.fop.render.odf.OdfException;
27
import org.apache.fop.render.odf.odt.Namespace;
28
29
public final class MarginLeftBlock extends Property {
30
31
    private static MarginLeftBlock instance = new MarginLeftBlock();
32
33
    public static MarginLeftBlock getInstance() {
34
        return instance;
35
    }
36
37
    private MarginLeftBlock() {
38
        this.inheritable = false;
39
    }
40
41
    @Override
42
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
43
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
44
        sppe.setAttributeNS(Namespace.FO, "fo:margin-left", value);
45
    }
46
47
    public String getMargin(CommonMarginBlock commonMarginBlock) {
48
        Length l = commonMarginBlock.marginLeft;
49
        if (l == null) {
50
            return null;
51
        }
52
        Double value = Double.valueOf((double)l.getValue() / 1000);
53
        return value + "pt";
54
    }
55
56
57
58
}
(-)src/java/org/apache/fop/render/odf/properties/MarginLeftInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MarginLeftInline extends Property {
21
22
    private static MarginLeftInline instance = new MarginLeftInline();
23
24
    public static MarginLeftInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MarginRightBlock.java (+57 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
24
import org.apache.fop.datatypes.Length;
25
import org.apache.fop.fo.properties.CommonMarginBlock;
26
import org.apache.fop.render.odf.OdfException;
27
import org.apache.fop.render.odf.odt.Namespace;
28
29
public final class MarginRightBlock extends Property {
30
31
    private static MarginRightBlock instance = new MarginRightBlock();
32
33
    public static MarginRightBlock getInstance() {
34
        return instance;
35
    }
36
37
    private MarginRightBlock() {
38
        this.inheritable = false;
39
    }
40
41
    @Override
42
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
43
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
44
        sppe.setAttributeNS(Namespace.FO, "fo:margin-right", value);
45
46
    }
47
48
    public String getMargin(CommonMarginBlock commonMarginBlock) {
49
        Length l = commonMarginBlock.marginRight;
50
        if (l == null) {
51
            return null;
52
        }
53
        Double value = Double.valueOf((double)l.getValue() / 1000);
54
        return value + "pt";
55
    }
56
57
}
(-)src/java/org/apache/fop/render/odf/properties/MarginRightInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MarginRightInline extends Property {
21
22
    private static MarginRightInline instance = new MarginRightInline();
23
24
    public static MarginRightInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MarginTopBlock.java (+45 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
24
import org.apache.fop.render.odf.OdfException;
25
import org.apache.fop.render.odf.odt.Namespace;
26
27
public final class MarginTopBlock extends Property {
28
29
    private static MarginTopBlock instance = new MarginTopBlock();
30
31
    public static MarginTopBlock getInstance() {
32
        return instance;
33
    }
34
35
    private MarginTopBlock() {
36
        this.inheritable = false;
37
    }
38
39
    @Override
40
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
41
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
42
        sppe.setAttributeNS(Namespace.FO, "fo:margin-top", value);
43
44
    }
45
}
(-)src/java/org/apache/fop/render/odf/properties/MarginTopInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MarginTopInline extends Property {
21
22
    private static MarginTopInline instance = new MarginTopInline();
23
24
    public static MarginTopInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MarkerClassName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MarkerClassName extends Property {
21
22
    private static MarkerClassName instance = new MarkerClassName();
23
24
    public static MarkerClassName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MasterName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MasterName extends Property {
21
22
    private static MasterName instance = new MasterName();
23
24
    public static MasterName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MasterReference.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MasterReference extends Property {
21
22
    private static MasterReference instance = new MasterReference();
23
24
    public static MasterReference getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MaxHeight.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MaxHeight extends Property {
21
22
    private static MaxHeight instance = new MaxHeight();
23
24
    public static MaxHeight getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MaxWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MaxWidth extends Property {
21
22
    private static MaxWidth instance = new MaxWidth();
23
24
    public static MaxWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MaximumRepeats.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MaximumRepeats extends Property {
21
22
    private static MaximumRepeats instance = new MaximumRepeats();
23
24
    public static MaximumRepeats getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MediaUsage.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MediaUsage extends Property {
21
22
    private static MediaUsage instance = new MediaUsage();
23
24
    public static MediaUsage getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MergePagesAcrossIndexKeyReferences.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MergePagesAcrossIndexKeyReferences extends Property {
21
22
    private static MergePagesAcrossIndexKeyReferences instance = new MergePagesAcrossIndexKeyReferences();
23
24
    public static MergePagesAcrossIndexKeyReferences getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MergeRangesAcrossIndexKeyReferences.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MergeRangesAcrossIndexKeyReferences extends Property {
21
22
    private static MergeRangesAcrossIndexKeyReferences instance = new MergeRangesAcrossIndexKeyReferences();
23
24
    public static MergeRangesAcrossIndexKeyReferences getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MergeSequentialPageNumbers.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MergeSequentialPageNumbers extends Property {
21
22
    private static MergeSequentialPageNumbers instance = new MergeSequentialPageNumbers();
23
24
    public static MergeSequentialPageNumbers getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MinHeight.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MinHeight extends Property {
21
22
    private static MinHeight instance = new MinHeight();
23
24
    public static MinHeight getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/MinWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class MinWidth extends Property {
21
22
    private static MinWidth instance = new MinWidth();
23
24
    public static MinWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/NumberColumnsRepeated.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class NumberColumnsRepeated extends Property {
21
22
    private static NumberColumnsRepeated instance = new NumberColumnsRepeated();
23
24
    public static NumberColumnsRepeated getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/NumberColumnsSpanned.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class NumberColumnsSpanned extends Property {
21
22
    private static NumberColumnsSpanned instance = new NumberColumnsSpanned();
23
24
    public static NumberColumnsSpanned getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/NumberRowsSpanned.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class NumberRowsSpanned extends Property {
21
22
    private static NumberRowsSpanned instance = new NumberRowsSpanned();
23
24
    public static NumberRowsSpanned getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/OddOrEven.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class OddOrEven extends Property {
21
22
    private static OddOrEven instance = new OddOrEven();
23
24
    public static OddOrEven getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Orphans.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Orphans extends Property {
21
22
    private static Orphans instance = new Orphans();
23
24
    public static Orphans getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Overflow.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Overflow extends Property {
21
22
    private static Overflow instance = new Overflow();
23
24
    public static Overflow getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingAfter.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingAfter extends Property {
21
22
    private static PaddingAfter instance = new PaddingAfter();
23
24
    public static PaddingAfter getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingBefore.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingBefore extends Property {
21
22
    private static PaddingBefore instance = new PaddingBefore();
23
24
    public static PaddingBefore getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingBottom.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingBottom extends Property {
21
22
    private static PaddingBottom instance = new PaddingBottom();
23
24
    public static PaddingBottom getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingEnd.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingEnd extends Property {
21
22
    private static PaddingEnd instance = new PaddingEnd();
23
24
    public static PaddingEnd getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingLeft.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingLeft extends Property {
21
22
    private static PaddingLeft instance = new PaddingLeft();
23
24
    public static PaddingLeft getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingRight.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingRight extends Property {
21
22
    private static PaddingRight instance = new PaddingRight();
23
24
    public static PaddingRight getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingStart.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingStart extends Property {
21
22
    private static PaddingStart instance = new PaddingStart();
23
24
    public static PaddingStart getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PaddingTop.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PaddingTop extends Property {
21
22
    private static PaddingTop instance = new PaddingTop();
23
24
    public static PaddingTop getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PageCitationStrategy.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PageCitationStrategy extends Property {
21
22
    private static PageCitationStrategy instance = new PageCitationStrategy();
23
24
    public static PageCitationStrategy getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PageHeight.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PageHeight extends Property {
21
22
    private static PageHeight instance = new PageHeight();
23
24
    public static PageHeight getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PageNumberTreatment.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PageNumberTreatment extends Property {
21
22
    private static PageNumberTreatment instance = new PageNumberTreatment();
23
24
    public static PageNumberTreatment getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PagePosition.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PagePosition extends Property {
21
22
    private static PagePosition instance = new PagePosition();
23
24
    public static PagePosition getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PageWidth.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PageWidth extends Property {
21
22
    private static PageWidth instance = new PageWidth();
23
24
    public static PageWidth getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/PauseAfter.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PauseAfter extends Property {
21
22
    private static PauseAfter instance = new PauseAfter();
23
24
    public static PauseAfter getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PauseBefore.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PauseBefore extends Property {
21
22
    private static PauseBefore instance = new PauseBefore();
23
24
    public static PauseBefore getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Pitch.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Pitch extends Property {
21
22
    private static Pitch instance = new Pitch();
23
24
    public static Pitch getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PitchRange.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PitchRange extends Property {
21
22
    private static PitchRange instance = new PitchRange();
23
24
    public static PitchRange getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/PlayDuring.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class PlayDuring extends Property {
21
22
    private static PlayDuring instance = new PlayDuring();
23
24
    public static PlayDuring getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Precedence.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Precedence extends Property {
21
22
    private static Precedence instance = new Precedence();
23
24
    public static Precedence getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Properties.java (+280 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Properties {
21
22
    private Properties() { }
23
24
    public static final AlignmentAdjust                     ALIGNMENT_ADJUST                         = AlignmentAdjust.getInstance();
25
    public static final AlignmentBaseline                   ALIGNMENT_BASELINE                       = AlignmentBaseline.getInstance();
26
    public static final BaselineShift                       BASELINE_SHIFT                           = BaselineShift.getInstance();
27
    public static final DisplayAlign                        DISPLAY_ALIGN                            = DisplayAlign.getInstance();
28
    public static final DominantBaseline                    DOMINANT_BASELINE                        = DominantBaseline.getInstance();;
29
    public static final RelativeAlign                       RELATIVE_ALIGN                           = RelativeAlign.getInstance();
30
    public static final AllowedHeightScale                  ALLOWED_HEIGHT_SCALE                     = AllowedHeightScale.getInstance();
31
    public static final AllowedWidthScale                   ALLOWED_WIDTH_SCALE                      = AllowedWidthScale.getInstance();
32
    public static final BlockProgressionDimension           BLOCK_PROGRESSION_DIMENSION              = BlockProgressionDimension.getInstance();
33
    public static final ContentHeight                       CONTENT_HEIGHT                           = ContentHeight.getInstance();
34
    public static final ContentWidth                        CONTENT_WIDTH                            = ContentWidth.getInstance();
35
    public static final Height                              HEIGHT                                   = Height.getInstance();
36
    public static final InlineProgressionDimension          INLINE_PROGRESSION_DIMENSION             = InlineProgressionDimension.getInstance();
37
    public static final MaxHeight                           MAX_HEIGHT                               = MaxHeight.getInstance();
38
    public static final MaxWidth                            MAX_WIDTH                                = MaxWidth.getInstance();
39
    public static final MinHeight                           MIN_HEIGHT                               = MinHeight.getInstance();
40
    public static final MinWidth                            MIN_WIDTH                                = MinWidth.getInstance();
41
    public static final Scaling                             SCALING                                  = Scaling.getInstance();
42
    public static final ScalingMethod                       SCALING_METHOD                           = ScalingMethod.getInstance();
43
    public static final Width                               WIDTH                                    = Width.getInstance();
44
    public static final HyphenationKeep                     HYPHENATION_KEEP                         = HyphenationKeep.getInstance();
45
    public static final HyphenationLadderCount              HYPHENATION_LADDER_COUNT                 = HyphenationLadderCount.getInstance();
46
    public static final LastLineEndIndent                   LAST_LINE_END_INDENT                     = LastLineEndIndent.getInstance();
47
    public static final LineHeight                          LINE_HEIGHT                              = LineHeight.getInstance();
48
    public static final LineHeightShiftAdjustment           LINE_HEIGHT_SHIFT_ADJUSTMENT             = LineHeightShiftAdjustment.getInstance();
49
    public static final LineStackingStrategy                LINE_STACKING_STRATEGY                   = LineStackingStrategy.getInstance();
50
    public static final LinefeedTreatment                   LINEFEED_TREATMENT                       = LinefeedTreatment.getInstance();
51
    public static final WhiteSpaceTreatment                 WHITE_SPACE_TREATMENT                    = WhiteSpaceTreatment.getInstance();
52
    public static final TextAlign                           TEXT_ALIGN                               = TextAlign.getInstance();
53
    public static final TextAlignLast                       TEXT_ALIGN_LAST                          = TextAlignLast.getInstance();
54
    public static final TextIndent                          TEXT_INDENT                              = TextIndent.getInstance();
55
    public static final WhiteSpaceCollapse                  WHITE_SPACE_COLLAPSE                     = WhiteSpaceCollapse.getInstance();
56
    public static final WrapOption                          WRAP_OPTION                              = WrapOption.getInstance();
57
    public static final Character                           CHARACTER                                = Character.getInstance();
58
    public static final LetterSpacing                       LETTER_SPACING                           = LetterSpacing.getInstance();
59
    public static final SuppressAtLineBreak                 SUPPRESS_AT_LINE_BREAK                   = SuppressAtLineBreak.getInstance();
60
    public static final TextDecoration                      TEXT_DECORATION                          = TextDecoration.getInstance();
61
    public static final TextShadow                          TEXT_SHADOW                              = TextShadow.getInstance();
62
    public static final TextTransform                       TEXT_TRANSFORM                           = TextTransform.getInstance();
63
    public static final TreatAsWordSpace                    TREAT_AS_WORD_SPACE                      = TreatAsWordSpace.getInstance();
64
    public static final WordSpacing                         WORD_SPACING                             = WordSpacing.getInstance();
65
    public static final Color                               COLOR                                    = Color.getInstance();
66
    public static final ColorProfileName                    COLOR_PROFILE_NAME                       = ColorProfileName.getInstance();
67
    public static final RenderingIntent                     RENDERING_INTENT                         = RenderingIntent.getInstance();
68
    public static final AbsolutePosition                    ABSOLUTE_POSITION                        = AbsolutePosition.getInstance();
69
    public static final Top                                 TOP                                      = Top.getInstance();
70
    public static final Right                               RIGHT                                    = Right.getInstance();
71
    public static final Bottom                              BOTTOM                                   = Bottom.getInstance();
72
    public static final Left                                LEFT                                     = Left.getInstance();
73
    public static final SourceDocument                      SOURCE_DOCUMENT                          = SourceDocument.getInstance();
74
    public static final Role                                ROLE                                     = Role.getInstance();
75
    public static final Azimuth                             AZIMUTH                                  = Azimuth.getInstance();
76
    public static final CueAfter                            CUE_AFTER                                = CueAfter.getInstance();
77
    public static final CueBefore                           CUE_BEFORE                               = CueBefore.getInstance();
78
    public static final Elevation                           ELEVATION                                = Elevation.getInstance();
79
    public static final PauseAfter                          PAUSE_AFTER                              = PauseAfter.getInstance();
80
    public static final PauseBefore                         PAUSE_BEFORE                             = PauseBefore.getInstance();
81
    public static final Pitch                               PITCH                                    = Pitch.getInstance();
82
    public static final PitchRange                          PITCH_RANGE                              = PitchRange.getInstance();
83
    public static final PlayDuring                          PLAY_DURING                              = PlayDuring.getInstance();
84
    public static final Richness                            RICHNESS                                 = Richness.getInstance();
85
    public static final Speak                               SPEAK                                    = Speak.getInstance();
86
    public static final SpeakHeader                         SPEAK_HEADER                             = SpeakHeader.getInstance();
87
    public static final SpeakNumeral                        SPEAK_NUMERAL                            = SpeakNumeral.getInstance();
88
    public static final SpeakPunctuation                    SPEAK_PUNCTUATION                        = SpeakPunctuation.getInstance();
89
    public static final SpeechRate                          SPEECH_RATE                              = SpeechRate.getInstance();
90
    public static final Stress                              STRESS                                   = Stress.getInstance();
91
    public static final VoiceFamily                         VOICE_FAMILY                             = VoiceFamily.getInstance();
92
    public static final Volume                              VOLUME                                   = Volume.getInstance();
93
    public static final BackgroundAttachment                BACKGROUND_ATTACHMENT                    = BackgroundAttachment.getInstance();
94
    public static final BackgroundColor                     BACKGROUND_COLOR                         = BackgroundColor.getInstance();
95
    public static final BackgroundImage                     BACKGROUND_IMAGE                         = BackgroundImage.getInstance();
96
    public static final BackgroundRepeat                    BACKGROUND_REPEAT                        = BackgroundRepeat.getInstance();
97
    public static final BackgroundPositionHorizontal        BACKGROUND_POSITION_HORIZONTAL           = BackgroundPositionHorizontal.getInstance();
98
    public static final BackgroundPositionVertical          BACKGROUND_POSITION_VERTICAL             = BackgroundPositionVertical.getInstance();
99
    public static final BorderBeforeColor                   BORDER_BEFORE_COLOR                      = BorderBeforeColor.getInstance();
100
    public static final BorderBeforeStyle                   BORDER_BEFORE_STYLE                      = BorderBeforeStyle.getInstance();
101
    public static final BorderBeforeWidth                   BORDER_BEFORE_WIDTH                      = BorderBeforeWidth.getInstance();
102
    public static final BorderAfterColor                    BORDER_AFTER_COLOR                       = BorderAfterColor.getInstance();
103
    public static final BorderAfterStyle                    BORDER_AFTER_STYLE                       = BorderAfterStyle.getInstance();
104
    public static final BorderAfterWidth                    BORDER_AFTER_WIDTH                       = BorderAfterWidth.getInstance();
105
    public static final BorderStartColor                    BORDER_START_COLOR                       = BorderStartColor.getInstance();
106
    public static final BorderStartStyle                    BORDER_START_STYLE                       = BorderStartStyle.getInstance();
107
    public static final BorderStartWidth                    BORDER_START_WIDTH                       = BorderStartWidth.getInstance();
108
    public static final BorderEndColor                      BORDER_END_COLOR                         = BorderEndColor.getInstance();
109
    public static final BorderEndStyle                      BORDER_END_STYLE                         = BorderEndStyle.getInstance();
110
    public static final BorderEndWidth                      BORDER_END_WIDTH                         = BorderEndWidth.getInstance();
111
    public static final BorderTopColor                      BORDER_TOP_COLOR                         = BorderTopColor.getInstance();
112
    public static final BorderTopStyle                      BORDER_TOP_STYLE                         = BorderTopStyle.getInstance();
113
    public static final BorderTopWidth                      BORDER_TOP_WIDTH                         = BorderTopWidth.getInstance();
114
    public static final BorderBottomColor                   BORDER_BOTTOM_COLOR                      = BorderBottomColor.getInstance();
115
    public static final BorderBottomStyle                   BORDER_BOTTOM_STYLE                      = BorderBottomStyle.getInstance();
116
    public static final BorderBottomWidth                   BORDER_BOTTOM_WIDTH                      = BorderBottomWidth.getInstance();
117
    public static final BorderLeftColor                     BORDER_LEFT_COLOR                        = BorderLeftColor.getInstance();
118
    public static final BorderLeftStyle                     BORDER_LEFT_STYLE                        = BorderLeftStyle.getInstance();
119
    public static final BorderLeftWidth                     BORDER_LEFT_WIDTH                        = BorderLeftWidth.getInstance();
120
    public static final BorderRightColor                    BORDER_RIGHT_COLOR                       = BorderRightColor.getInstance();
121
    public static final BorderRightStyle                    BORDER_RIGHT_STYLE                       = BorderRightStyle.getInstance();
122
    public static final BorderRightWidth                    BORDER_RIGHT_WIDTH                       = BorderRightWidth.getInstance();
123
    public static final PaddingBefore                       PADDING_BEFORE                           = PaddingBefore.getInstance();
124
    public static final PaddingAfter                        PADDING_AFTER                            = PaddingAfter.getInstance();
125
    public static final PaddingStart                        PADDING_START                            = PaddingStart.getInstance();
126
    public static final PaddingEnd                          PADDING_END                              = PaddingEnd.getInstance();
127
    public static final PaddingTop                          PADDING_TOP                              = PaddingTop.getInstance();
128
    public static final PaddingBottom                       PADDING_BOTTOM                           = PaddingBottom.getInstance();
129
    public static final PaddingLeft                         PADDING_LEFT                             = PaddingLeft.getInstance();
130
    public static final PaddingRight                        PADDING_RIGHT                            = PaddingRight.getInstance();
131
    public static final FontFamily                          FONT_FAMILY                              = FontFamily.getInstance();
132
    public static final FontSelectionStrategy               FONT_SELECTION_STRATEGY                  = FontSelectionStrategy.getInstance();
133
    public static final FontSize                            FONT_SIZE                                = FontSize.getInstance();
134
    public static final FontStretch                         FONT_STRETCH                             = FontStretch.getInstance();
135
    public static final FontSizeAdjust                      FONT_SIZE_ADJUST                         = FontSizeAdjust.getInstance();
136
    public static final FontStyle                           FONT_STYLE                               = FontStyle.getInstance();
137
    public static final FontVariant                         FONT_VARIANT                             = FontVariant.getInstance();
138
    public static final FontWeight                          FONT_WEIGHT                              = FontWeight.getInstance();
139
    public static final Country                             COUNTRY                                  = Country.getInstance();
140
    public static final Language                            LANGUAGE                                 = Language.getInstance();
141
    public static final Script                              SCRIPT                                   = Script.getInstance();
142
    public static final Hyphenate                           HYPHENATE                                = Hyphenate.getInstance();
143
    public static final HyphenationCharacter                HYPHENATION_CHARACTER                    = HyphenationCharacter.getInstance();
144
    public static final HyphenationPushCharacterCount       HYPHENATION_PUSH_CHARACTER_COUNT         = HyphenationPushCharacterCount.getInstance();
145
    public static final HyphenationRamainCharacterCount     HYPHENATION_RAMAIN_CHARACTER_COUNT       = HyphenationRamainCharacterCount.getInstance();
146
    public static final MarginTopBlock                      MARGIN_TOP_BLOCK                         = MarginTopBlock.getInstance();
147
    public static final MarginBottomBlock                   MARGIN_BOTTOM_BLOCK                      = MarginBottomBlock.getInstance();
148
    public static final MarginLeftBlock                     MARGIN_LEFT_BLOCK                        = MarginLeftBlock.getInstance();
149
    public static final MarginRightBlock                    MARGIN_RIGHT_BLOCK                       = MarginRightBlock.getInstance();
150
    public static final SpaceBeforeBlock                    SPACE_BEFORE_BLOCK                       = SpaceBeforeBlock.getInstance();
151
    public static final SpaceAfterBlock                     SPACE_AFTER_BLOCK                        = SpaceAfterBlock.getInstance();
152
    public static final StartIndentBlock                    START_INDENT_BLOCK                       = StartIndentBlock.getInstance();
153
    public static final EndIndentBlock                      END_INDENT_BLOCK                         = EndIndentBlock.getInstance();
154
    public static final MarginTopInline                     MARGIN_TOP_INLINE                        = MarginTopInline.getInstance();
155
    public static final MarginBottomInline                  MARGIN_BOTTOM_INLINE                     = MarginBottomInline.getInstance();
156
    public static final MarginLeftInline                    MARGIN_LEFT_INLINE                       = MarginLeftInline.getInstance();
157
    public static final MarginRightInline                   MARGIN_RIGHT_INLINE                      = MarginRightInline.getInstance();
158
    public static final SpaceEndInline                      SPACE_END_INLINE                         = SpaceEndInline.getInstance();
159
    public static final SpaceStartInline                    SPACE_START_INLINE                       = SpaceStartInline.getInstance();
160
    public static final TopR                                TOP_R                                    = TopR.getInstance();
161
    public static final RightR                              RIGHT_R                                  = RightR.getInstance();
162
    public static final BottomR                             BOTTOM_R                                 = BottomR.getInstance();
163
    public static final LeftR                               LEFT_R                                   = LeftR.getInstance();
164
    public static final RelativePosition                    RELATIVE_POSITION                        = RelativePosition.getInstance();
165
    public static final Clear                               CLEAR                                    = Clear.getInstance();
166
    public static final FloatProperty                       FLOAT_PROPERTY                           = FloatProperty.getInstance();
167
    public static final IntrusionDisplace                   INTRUSION_DISPLACE                       = IntrusionDisplace.getInstance();
168
    public static final BreakAfter                          BREAK_AFTER                              = BreakAfter.getInstance();
169
    public static final BreakBefore                         BREAK_BEFORE                             = BreakBefore.getInstance();
170
    public static final KeepTogether                        KEEP_TOGETHER                            = KeepTogether.getInstance();
171
    public static final KeepWithNext                        KEEP_WITH_NEXT                           = KeepWithNext.getInstance();
172
    public static final KeepWithPrevious                    KEEP_WITH_PREVIOUS                       = KeepWithPrevious.getInstance();
173
    public static final Orphans                             ORPHANS                                  = Orphans.getInstance();
174
    public static final Windows                             WINDOWS                                  = Windows.getInstance();
175
    public static final Clip                                CLIP                                     = Clip.getInstance();
176
    public static final Overflow                            OVERFLOW                                 = Overflow.getInstance();
177
    public static final ReferenceOrientation                REFERENCE_ORIENTATION                    = ReferenceOrientation.getInstance();
178
    public static final Span                                SPAN                                     = Span.getInstance();
179
    public static final LeaderAlignment                     LEADER_ALIGNMENT                         = LeaderAlignment.getInstance();
180
    public static final LeaderPattern                       LEADER_PATTERN                           = LeaderPattern.getInstance();
181
    public static final LeaderPatternWidth                  LEADER_PATTERN_WIDTH                     = LeaderPatternWidth.getInstance();
182
    public static final LeaderLength                        LEADER_LENGTH                            = LeaderLength.getInstance();
183
    public static final RuleStyle                           RULE_STYLE                               = RuleStyle.getInstance();
184
    public static final RuleThickness                       RULE_THICKNESS                           = RuleThickness.getInstance();
185
    public static final ChangeBarClass                      CHANGE_BAR_CLASS                         = ChangeBarClass.getInstance();
186
    public static final ChangeBarColor                      CHANGE_BAR_COLOR                         = ChangeBarColor.getInstance();
187
    public static final ChangeBarOffset                     CHANGE_BAR_OFFSET                        = ChangeBarOffset.getInstance();
188
    public static final ChangeBarPlacement                  CHANGE_BAR_PLACEMENT                     = ChangeBarPlacement.getInstance();
189
    public static final ChangeBarStyle                      CHANGE_BAR_STYLE                         = ChangeBarStyle.getInstance();
190
    public static final ChangeBarWidth                      CHANGE_BAR_WIDTH                         = ChangeBarWidth.getInstance();
191
    public static final ContentType                         CONTENT_TYPE                             = ContentType.getInstance();
192
    public static final Id                                  ID                                       = Id.getInstance();
193
    public static final IntrinsicScaleValue                 INTRINSIC_SCALE_VALUE                    = IntrinsicScaleValue.getInstance();
194
    public static final PageCitationStrategy                PAGE_CITATION_STRATEGY                   = PageCitationStrategy.getInstance();
195
    public static final ProvisionalLabelSeparation          PROVISIONAL_LABEL_SEPARATION             = ProvisionalLabelSeparation.getInstance();
196
    public static final ProvisionalDistanceBetweenStarts    PROVISIONAL_DISTANCE_BETWEEN_STARTS      = ProvisionalDistanceBetweenStarts.getInstance();
197
    public static final RefId                               REF_ID                                   = RefId.getInstance();
198
    public static final ScaleOption                         SCALE_OPTION                             = ScaleOption.getInstance();
199
    public static final ScoreSpaces                         SCORE_SPACES                             = ScoreSpaces.getInstance();
200
    public static final Src                                 SRC                                      = Src.getInstance();
201
    public static final Visibility                          VISIBILITY                               = Visibility.getInstance();
202
    public static final ZIndex                              Z_INDEX                                  = ZIndex.getInstance();
203
    public static final BlankOrNotBlank                     BLANK_OR_NOT_BLANK                       = BlankOrNotBlank.getInstance();
204
    public static final ColumnCount                         COLUMN_COUNT                             = ColumnCount.getInstance();
205
    public static final ColumnGap                           COLUMN_GAP                               = ColumnGap.getInstance();
206
    public static final Extent                              EXTENT                                   = Extent.getInstance();
207
    public static final FlowName                            FLOW_NAME                                = FlowName.getInstance();
208
    public static final ForcePageCount                      FORCE_PAGE_COUNT                         = ForcePageCount.getInstance();
209
    public static final InitialPageNumber                   INITIAL_PAGE_NUMBER                      = InitialPageNumber.getInstance();
210
    public static final MasterName                          MASTER_NAME                              = MasterName.getInstance();
211
    public static final MasterReference                     MASTER_REFERENCE                         = MasterReference.getInstance();
212
    public static final MaximumRepeats                      MAXIMUM_REPEATS                          = MaximumRepeats.getInstance();
213
    public static final MediaUsage                          MEDIA_USAGE                              = MediaUsage.getInstance();
214
    public static final OddOrEven                           ODD_OR_EVEN                              = OddOrEven.getInstance();
215
    public static final PageHeight                          PAGE_HEIGHT                              = PageHeight.getInstance();
216
    public static final PagePosition                        PAGE_POSITION                            = PagePosition.getInstance();
217
    public static final PageWidth                           PAGE_WIDTH                               = PageWidth.getInstance();
218
    public static final Precedence                          PRECEDENCE                               = Precedence.getInstance();
219
    public static final RegionName                          REGION_NAME                              = RegionName.getInstance();
220
    public static final FlowMapName                         FLOW_MAP_NAME                            = FlowMapName.getInstance();
221
    public static final FlowMapReference                    FLOW_MAP_REFERENCE                       = FlowMapReference.getInstance();
222
    public static final FlowNameReference                   FLOW_NAME_REFERENCE                      = FlowNameReference.getInstance();
223
    public static final RegionNameReference                 REGION_NAME_REFERENCE                    = RegionNameReference.getInstance();
224
    public static final ActiveState                         ACTIVE_STATE                             = ActiveState.getInstance();
225
    public static final AutoRestore                         AUTO_RESTORE                             = AutoRestore.getInstance();
226
    public static final CaseName                            CASE_NAME                                = CaseName.getInstance();
227
    public static final CaseTitle                           CASE_TITLE                               = CaseTitle.getInstance();
228
    public static final DestinationPlacementOffset          DESTINATION_PLACEMENT_OFFSET             = DestinationPlacementOffset.getInstance();
229
    public static final ExternalDestination                 EXTERNAL_DESTINATION                     = ExternalDestination.getInstance();
230
    public static final IndicateDestination                 INDICATE_DESTINATION                     = IndicateDestination.getInstance();
231
    public static final InternalDestination                 INTERNAL_DESTINATION                     = InternalDestination.getInstance();
232
    public static final ShowDestination                     SHOW_DESTINATION                         = ShowDestination.getInstance();
233
    public static final StartingState                       STARTING_STATE                           = StartingState.getInstance();
234
    public static final SwitchTo                            SWITCH_TO                                = SwitchTo.getInstance();
235
    public static final TargetPresentationContext           TARGET_PRESENTATION_CONTEXT              = TargetPresentationContext.getInstance();
236
    public static final TargetProcessingContext             TARGET_PROCESSING_CONTEXT                = TargetProcessingContext.getInstance();
237
    public static final TargetStylesheet                    TARGET_STYLESHEET                        = TargetStylesheet.getInstance();
238
    public static final IndexClass                          INDEX_CLASS                              = IndexClass.getInstance();
239
    public static final IndexKey                            INDEX_KEY                                = IndexKey.getInstance();
240
    public static final PageNumberTreatment                 PAGE_NUMBER_TREATMENT                    = PageNumberTreatment.getInstance();
241
    public static final MergeRangesAcrossIndexKeyReferences MERGE_RANGES_ACROSS_INDEX_KEY_REFERENCES = MergeRangesAcrossIndexKeyReferences.getInstance();
242
    public static final MergeSequentialPageNumbers          MERGE_SEQUENTIAL_PAGE_NUMBERS            = MergeSequentialPageNumbers.getInstance();
243
    public static final MergePagesAcrossIndexKeyReferences  MERGE_PAGES_ACROSS_INDEX_KEY_REFERENCES  = MergePagesAcrossIndexKeyReferences.getInstance();
244
    public static final RefIndexKey                         REF_INDEX_KEY                            = RefIndexKey.getInstance();
245
    public static final Format                              FORMAT                                   = Format.getInstance();
246
    public static final GroupingSeparator                   GROUPING_SEPARATOR                       = GroupingSeparator.getInstance();
247
    public static final GroupingSize                        GROUPING_SIZE                            = GroupingSize.getInstance();
248
    public static final LetterValue                         LETTER_VALUE                             = LetterValue.getInstance();
249
    public static final MarkerClassName                     MARKER_CLASS_NAME                        = MarkerClassName.getInstance();
250
    public static final RetrieveBoundaryWithinTable         RETRIEVE_BOUNDARY_WITHIN_TABLE           = RetrieveBoundaryWithinTable.getInstance();
251
    public static final RetrieveClassName                   RETRIEVE_CLASS_NAME                      = RetrieveClassName.getInstance();
252
    public static final RetrievePosition                    RETRIEVE_POSITION                        = RetrievePosition.getInstance();
253
    public static final RetrieveBoundary                    RETRIEVE_BOUNDARY                        = RetrieveBoundary.getInstance();
254
    public static final RetrievePositionWithinTable         RETRIEVE_POSITION_WITHIN_TABLE           = RetrievePositionWithinTable.getInstance();
255
    public static final BorderAfterPrecedence               BORDER_AFTER_PRECEDENCE                  = BorderAfterPrecedence.getInstance();
256
    public static final BorderBeforePrecedence              BORDER_BEFORE_PRECEDENCE                 = BorderBeforePrecedence.getInstance();
257
    public static final BorderCollapse                      BORDER_COLLAPSE                          = BorderCollapse.getInstance();
258
    public static final BorderEndPrecedence                 BORDER_END_PRECEDENCE                    = BorderEndPrecedence.getInstance();
259
    public static final BorderSeparation                    BORDER_SEPARATION                        = BorderSeparation.getInstance();
260
    public static final BorderStartPrecedence               BORDER_START_PRECEDENCE                  = BorderStartPrecedence.getInstance();
261
    public static final CaptionSide                         CAPTION_SIDE                             = CaptionSide.getInstance();
262
    public static final ColumnNumber                        COLUMN_NUMBER                            = ColumnNumber.getInstance();
263
    public static final ColumnWidth                         COLUMN_WIDTH                             = ColumnWidth.getInstance();
264
    public static final EmptyCells                          EMPTY_CELLS                              = EmptyCells.getInstance();
265
    public static final EndsRow                             ENDS_ROW                                 = EndsRow.getInstance();
266
    public static final NumberColumnsRepeated               NUMBER_COLUMNS_REPEATED                  = NumberColumnsRepeated.getInstance();
267
    public static final NumberColumnsSpanned                NUMBER_COLUMNS_SPANNED                   = NumberColumnsSpanned.getInstance();
268
    public static final NumberRowsSpanned                   NUMBER_ROWS_SPANNED                      = NumberRowsSpanned.getInstance();
269
    public static final StartsRow                           STARTS_ROW                               = StartsRow.getInstance();
270
    public static final TableLayout                         TABLE_LAYOUT                             = TableLayout.getInstance();
271
    public static final TableOmitFooterAtBreak              TABLE_OMIT_FOOTER_AT_BREAK               = TableOmitFooterAtBreak.getInstance();
272
    public static final TableOmitHeaderAtBreak              TABLE_OMIT_HEADER_AT_BREAK               = TableOmitHeaderAtBreak.getInstance();
273
    public static final Direction                           DIRECTION                                = Direction.getInstance();
274
    public static final GlyphOrientationHorizontal          GLYPH_ORIENTATION_HORIZONTAL             = GlyphOrientationHorizontal.getInstance();
275
    public static final GlyphOrientationVertical            GLYPH_ORIENTATION_VERTICAL               = GlyphOrientationVertical.getInstance();
276
    public static final TextAltitude                        TEXT_ALTITUDE                            = TextAltitude.getInstance();
277
    public static final TextDepth                           TEXT_DEPTH                               = TextDepth.getInstance();
278
    public static final UnicodeBidi                         UNICODE_BIDI                             = UnicodeBidi.getInstance();
279
    public static final WritingMode                         WRITING_MODE                             = WritingMode.getInstance();
280
}
(-)src/java/org/apache/fop/render/odf/properties/Property.java (+60 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
21
import org.odftoolkit.odfdom.doc.OdfTextDocument;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
import org.odftoolkit.odfdom.pkg.OdfName;
24
import org.odftoolkit.odfdom.pkg.OdfXMLFactory;
25
import org.w3c.dom.Node;
26
27
import org.apache.fop.render.odf.OdfException;
28
29
public class Property {
30
31
    protected boolean inheritable = false;
32
33
    public boolean isInheritable() {
34
        return inheritable;
35
    }
36
37
    protected <T extends Node> Node getElement(Class<T> element, OdfName name, StyleStyleElement sse, OdfTextDocument odfTextDocument) throws OdfException {
38
        Node o = null;
39
40
        for (int i = 0; i < sse.getChildNodes().getLength(); i++) {
41
            if (sse.getChildNodes().item(i).getClass().equals(element)) {
42
                o = sse.getChildNodes().item(i);
43
            }
44
        }
45
46
        if (o == null) {
47
            try {
48
                o = OdfXMLFactory.newOdfElement(odfTextDocument.getContentDom(), name);
49
            } catch (Exception e) {
50
                throw new OdfException("Can't create new style for pragraph.", e);
51
            }
52
            sse.appendChild(o);
53
        }
54
55
        return o;
56
    }
57
58
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException { }
59
60
}
(-)src/java/org/apache/fop/render/odf/properties/ProvisionalDistanceBetweenStarts.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ProvisionalDistanceBetweenStarts extends Property {
21
22
    private static ProvisionalDistanceBetweenStarts instance = new ProvisionalDistanceBetweenStarts();
23
24
    public static ProvisionalDistanceBetweenStarts getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ProvisionalLabelSeparation.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ProvisionalLabelSeparation extends Property {
21
22
    private static ProvisionalLabelSeparation instance = new ProvisionalLabelSeparation();
23
24
    public static ProvisionalLabelSeparation getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RefId.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RefId extends Property {
21
22
    private static RefId instance = new RefId();
23
24
    public static RefId getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RefIndexKey.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RefIndexKey extends Property {
21
22
    private static RefIndexKey instance = new RefIndexKey();
23
24
    public static RefIndexKey getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ReferenceOrientation.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ReferenceOrientation extends Property {
21
22
    private static ReferenceOrientation instance = new ReferenceOrientation();
23
24
    public static ReferenceOrientation getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RegionName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RegionName extends Property {
21
22
    private static RegionName instance = new RegionName();
23
24
    public static RegionName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RegionNameReference.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RegionNameReference extends Property {
21
22
    private static RegionNameReference instance = new RegionNameReference();
23
24
    public static RegionNameReference getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RelativeAlign.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RelativeAlign extends Property {
21
22
    private static RelativeAlign instance = new RelativeAlign();
23
24
    public static RelativeAlign getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RelativePosition.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RelativePosition extends Property {
21
22
    private static RelativePosition instance = new RelativePosition();
23
24
    public static RelativePosition getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/RenderingIntent.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RenderingIntent extends Property {
21
22
    private static RenderingIntent instance = new RenderingIntent();
23
24
    public static RenderingIntent getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RetrieveBoundary.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RetrieveBoundary extends Property {
21
22
    private static RetrieveBoundary instance = new RetrieveBoundary();
23
24
    public static RetrieveBoundary getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RetrieveBoundaryWithinTable.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RetrieveBoundaryWithinTable extends Property {
21
22
    private static RetrieveBoundaryWithinTable instance = new RetrieveBoundaryWithinTable();
23
24
    public static RetrieveBoundaryWithinTable getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RetrieveClassName.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RetrieveClassName extends Property {
21
22
    private static RetrieveClassName instance = new RetrieveClassName();
23
24
    public static RetrieveClassName getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RetrievePosition.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RetrievePosition extends Property {
21
22
    private static RetrievePosition instance = new RetrievePosition();
23
24
    public static RetrievePosition getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RetrievePositionWithinTable.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RetrievePositionWithinTable extends Property {
21
22
    private static RetrievePositionWithinTable instance = new RetrievePositionWithinTable();
23
24
    public static RetrievePositionWithinTable getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Richness.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Richness extends Property {
21
22
    private static Richness instance = new Richness();
23
24
    public static Richness getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Right.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Right extends Property {
21
22
    private static Right instance = new Right();
23
24
    public static Right getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RightR.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RightR extends Property {
21
22
    private static RightR instance = new RightR();
23
24
    public static RightR getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Role.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Role extends Property {
21
22
    private static Role instance = new Role();
23
24
    public static Role getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/RuleStyle.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RuleStyle extends Property {
21
22
    private static RuleStyle instance = new RuleStyle();
23
24
    public static RuleStyle getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/RuleThickness.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class RuleThickness extends Property {
21
22
    private static RuleThickness instance = new RuleThickness();
23
24
    public static RuleThickness getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ScaleOption.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ScaleOption extends Property {
21
22
    private static ScaleOption instance = new ScaleOption();
23
24
    public static ScaleOption getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Scaling.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Scaling extends Property {
21
22
    private static Scaling instance = new Scaling();
23
24
    public static Scaling getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ScalingMethod.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ScalingMethod extends Property {
21
22
    private static ScalingMethod instance = new ScalingMethod();
23
24
    public static ScalingMethod getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ScoreSpaces.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ScoreSpaces extends Property {
21
22
    private static ScoreSpaces instance = new ScoreSpaces();
23
24
    public static ScoreSpaces getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Script.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Script extends Property {
21
22
    private static Script instance = new Script();
23
24
    public static Script getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/ShowDestination.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ShowDestination extends Property {
21
22
    private static ShowDestination instance = new ShowDestination();
23
24
    public static ShowDestination getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/SourceDocument.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SourceDocument extends Property {
21
22
    private static SourceDocument instance = new SourceDocument();
23
24
    public static SourceDocument getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SpaceAfterBlock.java (+39 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.apache.fop.fo.properties.CommonMarginBlock;
21
import org.apache.fop.layoutmgr.BlockLayoutManager;
22
23
public final class SpaceAfterBlock extends Property {
24
25
    private static SpaceAfterBlock instance = new SpaceAfterBlock();
26
27
    public static SpaceAfterBlock getInstance() {
28
        return instance;
29
    }
30
31
    public String getSpace(CommonMarginBlock commonMarginBlock, BlockLayoutManager blockLayoutManager) {
32
        if (commonMarginBlock.spaceAfter == null) {
33
            return null;
34
        }
35
        Double value = Double.valueOf((double) commonMarginBlock.spaceAfter.getLengthRange().toMinOptMax(blockLayoutManager).getOpt() / 1000);
36
        return value + "pt";
37
    }
38
39
}
(-)src/java/org/apache/fop/render/odf/properties/SpaceBeforeBlock.java (+41 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.apache.fop.fo.properties.CommonMarginBlock;
21
import org.apache.fop.layoutmgr.BlockLayoutManager;
22
23
public final class SpaceBeforeBlock extends Property {
24
25
    private static SpaceBeforeBlock instance = new SpaceBeforeBlock();
26
27
    public static SpaceBeforeBlock getInstance() {
28
        return instance;
29
    }
30
31
    public String getSpace(CommonMarginBlock commonMarginBlock, BlockLayoutManager blockLayoutManager) {
32
        if (commonMarginBlock.spaceBefore == null) {
33
            return null;
34
        }
35
        Double value = Double.valueOf((double) commonMarginBlock.spaceBefore.getLengthRange().toMinOptMax(blockLayoutManager).getOpt() / 1000);
36
        return value + "pt";
37
    }
38
39
40
41
}
(-)src/java/org/apache/fop/render/odf/properties/SpaceEndInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpaceEndInline extends Property {
21
22
    private static SpaceEndInline instance = new SpaceEndInline();
23
24
    public static SpaceEndInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/SpaceStartInline.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpaceStartInline extends Property {
21
22
    private static SpaceStartInline instance = new SpaceStartInline();
23
24
    public static SpaceStartInline getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Span.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Span extends Property {
21
22
    private static Span instance = new Span();
23
24
    public static Span getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Speak.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Speak extends Property {
21
22
    private static Speak instance = new Speak();
23
24
    public static Speak getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SpeakHeader.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpeakHeader extends Property {
21
22
    private static SpeakHeader instance = new SpeakHeader();
23
24
    public static SpeakHeader getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SpeakNumeral.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpeakNumeral extends Property {
21
22
    private static SpeakNumeral instance = new SpeakNumeral();
23
24
    public static SpeakNumeral getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SpeakPunctuation.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpeakPunctuation extends Property {
21
22
    private static SpeakPunctuation instance = new SpeakPunctuation();
23
24
    public static SpeakPunctuation getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SpeechRate.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SpeechRate extends Property {
21
22
    private static SpeechRate instance = new SpeechRate();
23
24
    public static SpeechRate getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Src.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Src extends Property {
21
22
    private static Src instance = new Src();
23
24
    public static Src getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/StartIndentBlock.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class StartIndentBlock extends Property {
21
22
    private static StartIndentBlock instance = new StartIndentBlock();
23
24
    public static StartIndentBlock getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/StartingState.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class StartingState extends Property {
21
22
    private static StartingState instance = new StartingState();
23
24
    public static StartingState getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/StartsRow.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class StartsRow extends Property {
21
22
    private static StartsRow instance = new StartsRow();
23
24
    public static StartsRow getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Stress.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Stress extends Property {
21
22
    private static Stress instance = new Stress();
23
24
    public static Stress getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/SuppressAtLineBreak.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SuppressAtLineBreak extends Property {
21
22
    private static SuppressAtLineBreak instance = new SuppressAtLineBreak();
23
24
    public static SuppressAtLineBreak getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/SwitchTo.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class SwitchTo extends Property {
21
22
    private static SwitchTo instance = new SwitchTo();
23
24
    public static SwitchTo getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TableLayout.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TableLayout extends Property {
21
22
    private static TableLayout instance = new TableLayout();
23
24
    public static TableLayout getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TableOmitFooterAtBreak.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TableOmitFooterAtBreak extends Property {
21
22
    private static TableOmitFooterAtBreak instance = new TableOmitFooterAtBreak();
23
24
    public static TableOmitFooterAtBreak getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TableOmitHeaderAtBreak.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TableOmitHeaderAtBreak extends Property {
21
22
    private static TableOmitHeaderAtBreak instance = new TableOmitHeaderAtBreak();
23
24
    public static TableOmitHeaderAtBreak getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TargetPresentationContext.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TargetPresentationContext extends Property {
21
22
    private static TargetPresentationContext instance = new TargetPresentationContext();
23
24
    public static TargetPresentationContext getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TargetProcessingContext.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TargetProcessingContext extends Property {
21
22
    private static TargetProcessingContext instance = new TargetProcessingContext();
23
24
    public static TargetProcessingContext getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TargetStylesheet.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TargetStylesheet extends Property {
21
22
    private static TargetStylesheet instance = new TargetStylesheet();
23
24
    public static TargetStylesheet getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TextAlign.java (+59 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
import org.odftoolkit.odfdom.doc.OdfTextDocument;
21
import org.odftoolkit.odfdom.dom.element.style.StyleParagraphPropertiesElement;
22
import org.odftoolkit.odfdom.dom.element.style.StyleStyleElement;
23
24
import org.apache.fop.fo.Constants;
25
import org.apache.fop.render.odf.OdfException;
26
import org.apache.fop.render.odf.odt.Namespace;
27
28
public final class TextAlign extends Property {
29
30
    private static TextAlign instance = new TextAlign();
31
32
    public static TextAlign getInstance() {
33
        return instance;
34
    }
35
36
    private TextAlign() {
37
        this.inheritable = true;
38
    }
39
40
    @Override
41
    public void execute(StyleStyleElement sse, String value, OdfTextDocument odfTextDocument) throws OdfException {
42
        StyleParagraphPropertiesElement sppe = (StyleParagraphPropertiesElement) this.getElement(StyleParagraphPropertiesElement.class, StyleParagraphPropertiesElement.ELEMENT_NAME, sse, odfTextDocument);
43
        sppe.setAttributeNS(Namespace.FO, "fo:text-align", value);
44
    }
45
46
    public String getTextAlign(int textAlign) {
47
        if (textAlign == Constants.EN_LEFT) {
48
            return "left";
49
        } else if (textAlign == Constants.EN_JUSTIFY) {
50
            return "justify";
51
        } else if (textAlign == Constants.EN_CENTER) {
52
            return "center";
53
        } else if (textAlign == 39) {
54
            return "right";
55
        } else {
56
            return null;
57
        }
58
    }
59
}
(-)src/java/org/apache/fop/render/odf/properties/TextAlignLast.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextAlignLast extends Property {
21
22
    private static TextAlignLast instance = new TextAlignLast();
23
24
    public static TextAlignLast getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/TextAltitude.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextAltitude extends Property {
21
22
    private static TextAltitude instance = new TextAltitude();
23
24
    public static TextAltitude getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/TextDecoration.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextDecoration extends Property {
21
22
    private static TextDecoration instance = new TextDecoration();
23
24
    public static TextDecoration getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TextDepth.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextDepth extends Property {
21
22
    private static TextDepth instance = new TextDepth();
23
24
    public static TextDepth getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/TextIndent.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextIndent extends Property {
21
22
    private static TextIndent instance = new TextIndent();
23
24
    public static TextIndent getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/TextShadow.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextShadow extends Property {
21
22
    private static TextShadow instance = new TextShadow();
23
24
    public static TextShadow getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TextTransform.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TextTransform extends Property {
21
22
    private static TextTransform instance = new TextTransform();
23
24
    public static TextTransform getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Top.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Top extends Property {
21
22
    private static Top instance = new Top();
23
24
    public static Top getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/TopR.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TopR extends Property {
21
22
    private static TopR instance = new TopR();
23
24
    public static TopR getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/TreatAsWordSpace.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class TreatAsWordSpace extends Property {
21
22
    private static TreatAsWordSpace instance = new TreatAsWordSpace();
23
24
    public static TreatAsWordSpace getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/UnicodeBidi.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class UnicodeBidi extends Property {
21
22
    private static UnicodeBidi instance = new UnicodeBidi();
23
24
    public static UnicodeBidi getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Visibility.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Visibility extends Property {
21
22
    private static Visibility instance = new Visibility();
23
24
    public static Visibility getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/VoiceFamily.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class VoiceFamily extends Property {
21
22
    private static VoiceFamily instance = new VoiceFamily();
23
24
    public static VoiceFamily getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Volume.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Volume extends Property {
21
22
    private static Volume instance = new Volume();
23
24
    public static Volume getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/WhiteSpaceCollapse.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class WhiteSpaceCollapse extends Property {
21
22
    private static WhiteSpaceCollapse instance = new WhiteSpaceCollapse();
23
24
    public static WhiteSpaceCollapse getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/WhiteSpaceTreatment.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class WhiteSpaceTreatment extends Property {
21
22
    private static WhiteSpaceTreatment instance = new WhiteSpaceTreatment();
23
24
    public static WhiteSpaceTreatment getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/Width.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Width extends Property {
21
22
    private static Width instance = new Width();
23
24
    public static Width getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/Windows.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class Windows extends Property {
21
22
    private static Windows instance = new Windows();
23
24
    public static Windows getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/WordSpacing.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class WordSpacing extends Property {
21
22
    private static WordSpacing instance = new WordSpacing();
23
24
    public static WordSpacing getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/WrapOption.java (+30 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class WrapOption extends Property {
21
22
    private static WrapOption instance = new WrapOption();
23
24
    public static WrapOption getInstance() {
25
        return instance;
26
    }
27
28
29
30
}
(-)src/java/org/apache/fop/render/odf/properties/WritingMode.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class WritingMode extends Property {
21
22
    private static WritingMode instance = new WritingMode();
23
24
    public static WritingMode getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/render/odf/properties/ZIndex.java (+27 lines)
Line 0 Link Here
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
package org.apache.fop.render.odf.properties;
19
20
public final class ZIndex extends Property {
21
22
    private static ZIndex instance = new ZIndex();
23
24
    public static ZIndex getInstance() {
25
        return instance;
26
    }
27
}
(-)src/java/org/apache/fop/cli/CommandLineOptions.java (-1 / +16 lines)
Lines 325-330 Link Here
325
                i = i + parsePDFOutputOption(args, i, "PDF/A-1b");
325
                i = i + parsePDFOutputOption(args, i, "PDF/A-1b");
326
            } else if (args[i].equals("-mif")) {
326
            } else if (args[i].equals("-mif")) {
327
                i = i + parseMIFOutputOption(args, i);
327
                i = i + parseMIFOutputOption(args, i);
328
            } else if (args[i].equals("-odt")) {
329
                i = i + parseODTOutputOption(args, i);
328
            } else if (args[i].equals("-rtf")) {
330
            } else if (args[i].equals("-rtf")) {
329
                i = i + parseRTFOutputOption(args, i);
331
                i = i + parseRTFOutputOption(args, i);
330
            } else if (args[i].equals("-tiff")) {
332
            } else if (args[i].equals("-tiff")) {
Lines 531-536 Link Here
531
        }
533
        }
532
    }
534
    }
533
535
536
    private int parseODTOutputOption(String[] args, int i) throws FOPException {
537
        setOutputMode(MimeConstants.MIME_ODT);
538
        if ((i + 1 == args.length)
539
                || (isOption(args[i + 1]))) {
540
            throw new FOPException("you must specify the ODT output file");
541
        } else {
542
            setOutputFile(args[i + 1]);
543
            return 1;
544
        }
545
    }
546
534
    private void setOutputFile(String filename) {
547
    private void setOutputFile(String filename) {
535
        if (isSystemInOutFile(filename)) {
548
        if (isSystemInOutFile(filename)) {
536
            this.useStdOut = true;
549
            this.useStdOut = true;
Lines 1204-1210 Link Here
1204
    public static void printUsage(PrintStream out) {
1217
    public static void printUsage(PrintStream out) {
1205
        out.println(
1218
        out.println(
1206
              "\nUSAGE\nfop [options] [-fo|-xml] infile [-xsl file] "
1219
              "\nUSAGE\nfop [options] [-fo|-xml] infile [-xsl file] "
1207
                    + "[-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>\n"
1220
                    + "[-awt|-pdf|-mif|-odt|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>\n"
1208
            + " [OPTIONS]  \n"
1221
            + " [OPTIONS]  \n"
1209
            + "  -version          print FOP version and exit\n"
1222
            + "  -version          print FOP version and exit\n"
1210
            + "  -d                debug mode   \n"
1223
            + "  -d                debug mode   \n"
Lines 1263-1268 Link Here
1263
            + "  -pdfa1b outfile   input will be rendered as PDF/A-1b compliant PDF\n"
1276
            + "  -pdfa1b outfile   input will be rendered as PDF/A-1b compliant PDF\n"
1264
            + "                    (outfile req'd, same as \"-pdf outfile -pdfprofile PDF/A-1b\")\n"
1277
            + "                    (outfile req'd, same as \"-pdf outfile -pdfprofile PDF/A-1b\")\n"
1265
            + "  -awt              input will be displayed on screen \n"
1278
            + "  -awt              input will be displayed on screen \n"
1279
            + "  -odt outfile      input will be rendered as ODT (outfile req'd)\n"
1266
            + "  -rtf outfile      input will be rendered as RTF (outfile req'd)\n"
1280
            + "  -rtf outfile      input will be rendered as RTF (outfile req'd)\n"
1267
            + "  -pcl outfile      input will be rendered as PCL (outfile req'd) \n"
1281
            + "  -pcl outfile      input will be rendered as PCL (outfile req'd) \n"
1268
            + "  -ps outfile       input will be rendered as PostScript (outfile req'd) \n"
1282
            + "  -ps outfile       input will be rendered as PostScript (outfile req'd) \n"
Lines 1298-1303 Link Here
1298
            + "  fop -xml foo.xml -xsl foo.xsl -foout foo.fo\n"
1312
            + "  fop -xml foo.xml -xsl foo.xsl -foout foo.fo\n"
1299
            + "  fop -xml - -xsl foo.xsl -pdf -\n"
1313
            + "  fop -xml - -xsl foo.xsl -pdf -\n"
1300
            + "  fop foo.fo -mif foo.mif\n"
1314
            + "  fop foo.fo -mif foo.mif\n"
1315
            + "  fop foo.fo -odt foo.odt\n"
1301
            + "  fop foo.fo -rtf foo.rtf\n"
1316
            + "  fop foo.fo -rtf foo.rtf\n"
1302
            + "  fop foo.fo -print\n"
1317
            + "  fop foo.fo -print\n"
1303
            + "  fop foo.fo -awt\n");
1318
            + "  fop foo.fo -awt\n");
(-)src/java/org/apache/fop/apps/MimeConstants.java (+2 lines)
Lines 34-37 Link Here
34
    String MIME_FOP_IF          = "application/X-fop-intermediate-format";
34
    String MIME_FOP_IF          = "application/X-fop-intermediate-format";
35
    /** Bitmap images */
35
    /** Bitmap images */
36
    String MIME_BITMAP          = "image/x-bitmap";
36
    String MIME_BITMAP          = "image/x-bitmap";
37
    /** Apache FOP's ODT format */
38
    String MIME_ODT             = "application/vnd.oasis.opendocument.text";
37
}
39
}
(-)src/java/META-INF/services/org.apache.fop.fo.FOEventHandler (-1 / +2 lines)
Line 1 Link Here
1
org.apache.fop.render.rtf.RTFFOEventHandlerMaker
1
org.apache.fop.render.rtf.RTFFOEventHandlerMaker
2
org.apache.fop.render.odf.ODTFOEventHandlerMaker
(-)lib/odfdom-java.LICENSE.txt (+202 lines)
Line 0 Link Here
1
2
                                 Apache License
3
                           Version 2.0, January 2004
4
                        http://www.apache.org/licenses/
5
6
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
8
   1. Definitions.
9
10
      "License" shall mean the terms and conditions for use, reproduction,
11
      and distribution as defined by Sections 1 through 9 of this document.
12
13
      "Licensor" shall mean the copyright owner or entity authorized by
14
      the copyright owner that is granting the License.
15
16
      "Legal Entity" shall mean the union of the acting entity and all
17
      other entities that control, are controlled by, or are under common
18
      control with that entity. For the purposes of this definition,
19
      "control" means (i) the power, direct or indirect, to cause the
20
      direction or management of such entity, whether by contract or
21
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
      outstanding shares, or (iii) beneficial ownership of such entity.
23
24
      "You" (or "Your") shall mean an individual or Legal Entity
25
      exercising permissions granted by this License.
26
27
      "Source" form shall mean the preferred form for making modifications,
28
      including but not limited to software source code, documentation
29
      source, and configuration files.
30
31
      "Object" form shall mean any form resulting from mechanical
32
      transformation or translation of a Source form, including but
33
      not limited to compiled object code, generated documentation,
34
      and conversions to other media types.
35
36
      "Work" shall mean the work of authorship, whether in Source or
37
      Object form, made available under the License, as indicated by a
38
      copyright notice that is included in or attached to the work
39
      (an example is provided in the Appendix below).
40
41
      "Derivative Works" shall mean any work, whether in Source or Object
42
      form, that is based on (or derived from) the Work and for which the
43
      editorial revisions, annotations, elaborations, or other modifications
44
      represent, as a whole, an original work of authorship. For the purposes
45
      of this License, Derivative Works shall not include works that remain
46
      separable from, or merely link (or bind by name) to the interfaces of,
47
      the Work and Derivative Works thereof.
48
49
      "Contribution" shall mean any work of authorship, including
50
      the original version of the Work and any modifications or additions
51
      to that Work or Derivative Works thereof, that is intentionally
52
      submitted to Licensor for inclusion in the Work by the copyright owner
53
      or by an individual or Legal Entity authorized to submit on behalf of
54
      the copyright owner. For the purposes of this definition, "submitted"
55
      means any form of electronic, verbal, or written communication sent
56
      to the Licensor or its representatives, including but not limited to
57
      communication on electronic mailing lists, source code control systems,
58
      and issue tracking systems that are managed by, or on behalf of, the
59
      Licensor for the purpose of discussing and improving the Work, but
60
      excluding communication that is conspicuously marked or otherwise
61
      designated in writing by the copyright owner as "Not a Contribution."
62
63
      "Contributor" shall mean Licensor and any individual or Legal Entity
64
      on behalf of whom a Contribution has been received by Licensor and
65
      subsequently incorporated within the Work.
66
67
   2. Grant of Copyright License. Subject to the terms and conditions of
68
      this License, each Contributor hereby grants to You a perpetual,
69
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
      copyright license to reproduce, prepare Derivative Works of,
71
      publicly display, publicly perform, sublicense, and distribute the
72
      Work and such Derivative Works in Source or Object form.
73
74
   3. Grant of Patent License. Subject to the terms and conditions of
75
      this License, each Contributor hereby grants to You a perpetual,
76
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
      (except as stated in this section) patent license to make, have made,
78
      use, offer to sell, sell, import, and otherwise transfer the Work,
79
      where such license applies only to those patent claims licensable
80
      by such Contributor that are necessarily infringed by their
81
      Contribution(s) alone or by combination of their Contribution(s)
82
      with the Work to which such Contribution(s) was submitted. If You
83
      institute patent litigation against any entity (including a
84
      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
      or a Contribution incorporated within the Work constitutes direct
86
      or contributory patent infringement, then any patent licenses
87
      granted to You under this License for that Work shall terminate
88
      as of the date such litigation is filed.
89
90
   4. Redistribution. You may reproduce and distribute copies of the
91
      Work or Derivative Works thereof in any medium, with or without
92
      modifications, and in Source or Object form, provided that You
93
      meet the following conditions:
94
95
      (a) You must give any other recipients of the Work or
96
          Derivative Works a copy of this License; and
97
98
      (b) You must cause any modified files to carry prominent notices
99
          stating that You changed the files; and
100
101
      (c) You must retain, in the Source form of any Derivative Works
102
          that You distribute, all copyright, patent, trademark, and
103
          attribution notices from the Source form of the Work,
104
          excluding those notices that do not pertain to any part of
105
          the Derivative Works; and
106
107
      (d) If the Work includes a "NOTICE" text file as part of its
108
          distribution, then any Derivative Works that You distribute must
109
          include a readable copy of the attribution notices contained
110
          within such NOTICE file, excluding those notices that do not
111
          pertain to any part of the Derivative Works, in at least one
112
          of the following places: within a NOTICE text file distributed
113
          as part of the Derivative Works; within the Source form or
114
          documentation, if provided along with the Derivative Works; or,
115
          within a display generated by the Derivative Works, if and
116
          wherever such third-party notices normally appear. The contents
117
          of the NOTICE file are for informational purposes only and
118
          do not modify the License. You may add Your own attribution
119
          notices within Derivative Works that You distribute, alongside
120
          or as an addendum to the NOTICE text from the Work, provided
121
          that such additional attribution notices cannot be construed
122
          as modifying the License.
123
124
      You may add Your own copyright statement to Your modifications and
125
      may provide additional or different license terms and conditions
126
      for use, reproduction, or distribution of Your modifications, or
127
      for any such Derivative Works as a whole, provided Your use,
128
      reproduction, and distribution of the Work otherwise complies with
129
      the conditions stated in this License.
130
131
   5. Submission of Contributions. Unless You explicitly state otherwise,
132
      any Contribution intentionally submitted for inclusion in the Work
133
      by You to the Licensor shall be under the terms and conditions of
134
      this License, without any additional terms or conditions.
135
      Notwithstanding the above, nothing herein shall supersede or modify
136
      the terms of any separate license agreement you may have executed
137
      with Licensor regarding such Contributions.
138
139
   6. Trademarks. This License does not grant permission to use the trade
140
      names, trademarks, service marks, or product names of the Licensor,
141
      except as required for reasonable and customary use in describing the
142
      origin of the Work and reproducing the content of the NOTICE file.
143
144
   7. Disclaimer of Warranty. Unless required by applicable law or
145
      agreed to in writing, Licensor provides the Work (and each
146
      Contributor provides its Contributions) on an "AS IS" BASIS,
147
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
      implied, including, without limitation, any warranties or conditions
149
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
      PARTICULAR PURPOSE. You are solely responsible for determining the
151
      appropriateness of using or redistributing the Work and assume any
152
      risks associated with Your exercise of permissions under this License.
153
154
   8. Limitation of Liability. In no event and under no legal theory,
155
      whether in tort (including negligence), contract, or otherwise,
156
      unless required by applicable law (such as deliberate and grossly
157
      negligent acts) or agreed to in writing, shall any Contributor be
158
      liable to You for damages, including any direct, indirect, special,
159
      incidental, or consequential damages of any character arising as a
160
      result of this License or out of the use or inability to use the
161
      Work (including but not limited to damages for loss of goodwill,
162
      work stoppage, computer failure or malfunction, or any and all
163
      other commercial damages or losses), even if such Contributor
164
      has been advised of the possibility of such damages.
165
166
   9. Accepting Warranty or Additional Liability. While redistributing
167
      the Work or Derivative Works thereof, You may choose to offer,
168
      and charge a fee for, acceptance of support, warranty, indemnity,
169
      or other liability obligations and/or rights consistent with this
170
      License. However, in accepting such obligations, You may act only
171
      on Your own behalf and on Your sole responsibility, not on behalf
172
      of any other Contributor, and only if You agree to indemnify,
173
      defend, and hold each Contributor harmless for any liability
174
      incurred by, or claims asserted against, such Contributor by reason
175
      of your accepting any such warranty or additional liability.
176
177
   END OF TERMS AND CONDITIONS
178
179
   APPENDIX: How to apply the Apache License to your work.
180
181
      To apply the Apache License to your work, attach the following
182
      boilerplate notice, with the fields enclosed by brackets "[]"
183
      replaced with your own identifying information. (Don't include
184
      the brackets!)  The text should be enclosed in the appropriate
185
      comment syntax for the file format. We also recommend that a
186
      file or class name and description of purpose be included on the
187
      same "printed page" as the copyright notice for easier
188
      identification within third-party archives.
189
190
   Copyright [yyyy] [name of copyright owner]
191
192
   Licensed under the Apache License, Version 2.0 (the "License");
193
   you may not use this file except in compliance with the License.
194
   You may obtain a copy of the License at
195
196
       http://www.apache.org/licenses/LICENSE-2.0
197
198
   Unless required by applicable law or agreed to in writing, software
199
   distributed under the License is distributed on an "AS IS" BASIS,
200
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
   See the License for the specific language governing permissions and
202
   limitations under the License.
(-)test/odf/odt/basic/text.fo (+28 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
5
  <fo:layout-master-set>
6
    <fo:simple-page-master master-name="simple"
7
                  page-height="29.7cm"
8
                  page-width="21cm"
9
                  margin-top="1cm"
10
                  margin-bottom="2cm"
11
                  margin-left="2.5cm"
12
                  margin-right="2.5cm">
13
      <fo:region-body margin-top="3cm"/>
14
      <fo:region-before extent="3cm"/>
15
      <fo:region-after extent="1.5cm"/>
16
    </fo:simple-page-master>
17
  </fo:layout-master-set>
18
19
  <fo:page-sequence master-reference="simple">
20
    <fo:flow flow-name="xsl-region-body">
21
      <fo:block font-size="12pt"
22
                font-family="sans-serif"
23
                line-height="15pt"
24
                space-after.optimum="3pt"
25
                text-align="justify">This is simple text.</fo:block>
26
    </fo:flow>
27
  </fo:page-sequence>
28
</fo:root>
(-)test/odf/odt/basic_link/basic_link.fo (+46 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-indent="1em" font-family="sans-serif"
15
				font-size="20pt" font-weight="bold"
16
				line-height="20mm">Links in PDF</fo:block>
17
			<fo:block space-before="2em" font-family="sans-serif"
18
				font-size="15pt" font-weight="bold">Example of a link to internal
19
				destination
20
			</fo:block>
21
			<fo:block>
22
				Refer to
23
				<fo:basic-link internal-destination="appendix">
24
					<fo:inline font-size="15pt" font-weight="bold"
25
						text-decoration="underline">internal</fo:inline>
26
				</fo:basic-link>
27
				.
28
			</fo:block>
29
			<fo:block space-before="2em" font-family="sans-serif"
30
				font-size="15pt" font-weight="bold">Example of a link to external
31
				destination
32
			</fo:block>
33
			<fo:block>
34
				Refer to
35
				<fo:basic-link external-destination="http://www.google.pl">
36
					<fo:inline font-size="15pt" font-weight="bold"
37
						text-decoration="underline">external</fo:inline>
38
				</fo:basic-link>
39
				.
40
			</fo:block>
41
			<fo:block break-before="page" id="appendix" font-family="sans-serif"
42
				font-size="15pt" font-weight="bold" space-after="3mm" text-align="center">Internal
43
			</fo:block>
44
		</fo:flow>
45
	</fo:page-sequence>
46
</fo:root>
(-)test/odf/odt/basic_link/board_padding_background.fo (+26 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-indent="1em" font-family="sans-serif"
15
				font-size="20pt" font-weight="bold"
16
				line-height="20mm">Common board, padding and background</fo:block>
17
18
			<fo:block>
19
				<fo:basic-link background-color="#123456" external-destination="http://www.google.pl">
20
					<fo:inline font-size="15pt" font-weight="bold"
21
						text-decoration="underline">external</fo:inline>
22
				</fo:basic-link>
23
			</fo:block>
24
		</fo:flow>
25
	</fo:page-sequence>
26
</fo:root>
(-)test/odf/odt/block/color.fo (+253 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block font-family="Arial" font-size="13pt" color="#00ff00">
15
				<fo:block font-size="20pt" color="black" >
16
					Julian Tuwim - Rzepka
17
				</fo:block>
18
				<fo:block>
19
					Zasadził dziadek rzepkę w ogrodzie,
20
					<fo:block />
21
					Chodził te rzepkę oglądać co dzień.
22
					<fo:block />
23
					Wyrosła rzepka jędrna i krzepka,
24
					<fo:block />
25
					Schrupać by rzepkę z kawałkiem chlebaka!
26
					<fo:block />
27
					Więc ciągnie rzepkę dziadek niebożę,
28
					<fo:block />
29
					Ciągnie i ciągnie, wyciągnąć nie może!
30
				</fo:block>
31
				<fo:block color="red">
32
					Zawołał dziadek na pomoc babcię:
33
					<fo:block />
34
					"Ja złapię rzepkę, ty za mnie złap się!"
35
					<fo:block />
36
					I biedny dziadek z babcią niebogą
37
					<fo:block />
38
					Ciągną i ciągną, wyciągnąć nie mogą!
39
					<fo:block />
40
					Babcia za dziadka,
41
					<fo:block />
42
					Dziadek za rzepkę,
43
					<fo:block />
44
					Oj, przydałby się ktoś na przyczepkę!
45
				</fo:block>
46
				<fo:block color="#445533">
47
					Przyleciał wnuczek, babci się złapał,
48
					<fo:block />
49
					Poci się, stęka, aż się zasapał!
50
					<fo:block />
51
					Wnuczek za babcię,
52
					<fo:block />
53
					Babcia za dziadka,
54
					<fo:block />
55
					Dziadek za rzepkę,
56
					<fo:block />
57
					Oj, przydałby się ktoś na przyczepkę!
58
					<fo:block />
59
					Pocą się, sapią, stękają srogo,
60
					<fo:block />
61
					Ciągną i ciągną, wyciągnąć nie mogą!
62
				</fo:block>
63
				<fo:block color="orange">
64
					Zawołał wnuczek szczeniaczka Mruczka,
65
					<fo:block />
66
					Przyleciał Mruczek i ciągnie wnuczka!
67
					<fo:block />
68
					Mruczek za wnuczka,
69
					<fo:block />
70
					Wnuczek za babcię,
71
					<fo:block />
72
					Babcia za dziadka,
73
					<fo:block />
74
					Dziadek za rzepkę,
75
					<fo:block />
76
					Oj, przydałby się ktoś na przyczepkę!
77
					<fo:block />
78
					Pocą się, sapią, stękają srogo,
79
					<fo:block />
80
					Ciągną i ciągną, wyciągnąć nie mogą!
81
				</fo:block>
82
				<fo:block color="#abcdef">
83
					Na kurkę czyhał kotek w ukryciu,
84
					<fo:block />
85
					Zaszczekał Mruczek: "Pomóż nam, Kiciu!"
86
					<fo:block />
87
					Kicia za Mruczka,
88
					<fo:block />
89
					Mruczek za wnuczka,
90
					<fo:block />
91
					Wnuczek za babcię,
92
					<fo:block />
93
					Babcia za dziadka,
94
					<fo:block />
95
					Dziadek za rzepkę,
96
					<fo:block />
97
					Oj, przydałby się ktoś na przyczepkę!
98
					<fo:block />
99
					Pocą się, sapią, stękają srogo,
100
					<fo:block />
101
					Ciągną i ciągną, wyciągnąć nie mogą!
102
				</fo:block>
103
				<fo:block color="#654321">
104
					Więc woła Kicia kurkę z podwórka,
105
					<fo:block />
106
					Wnet przyleciała usłużna kurka.
107
					<fo:block />
108
					Kurka za Kicię,
109
					<fo:block />
110
					Kicia za Mruczka,
111
					<fo:block />
112
					Mruczek za wnuczka,
113
					<fo:block />
114
					Wnuczek za babcię,
115
					<fo:block />
116
					Babcia za dziadka,
117
					<fo:block />
118
					Dziadek za rzepkę,
119
					<fo:block />
120
					Oj, przydałby się ktoś na przyczepkę!
121
					<fo:block />
122
					Pocą się, sapią, stękają srogo,
123
					<fo:block />
124
					Ciągną i ciągną, wyciągnąć nie mogą!
125
				</fo:block>
126
				<fo:block color="#123456">
127
					Szła sobie gąska ścieżynką wąską,
128
					<fo:block />
129
					Krzyknęła kurka: "ChodĽ no tu gąsko!"
130
					<fo:block />
131
					Gąska za kurkę,
132
					<fo:block />
133
					Kurka za Kicię,
134
					<fo:block />
135
					Kicia za Mruczka,
136
					<fo:block />
137
					Mruczek za wnuczka,
138
					<fo:block />
139
					Wnuczek za babcię,
140
					<fo:block />
141
					Babcia za dziadka,
142
					<fo:block />
143
					Dziadek za rzepkę,
144
					<fo:block />
145
					Oj, przydałby się ktoś na przyczepkę!
146
					<fo:block />
147
					Pocą się, sapią, stękają srogo,
148
					<fo:block />
149
					Ciągną i ciągną, wyciągnąć nie mogą!
150
				</fo:block>
151
				<fo:block color="#334411">
152
					Leciał wysoko bocian-długonos,
153
					<fo:block />
154
					"Fruńże tu, boćku, do nas na pomoc!"
155
					<fo:block />
156
					Bociek za gąskę,
157
					<fo:block />
158
					Gąska za kurkę,
159
					<fo:block />
160
					Kurka za Kicię,
161
					<fo:block />
162
					Kicia za Mruczka,
163
					<fo:block />
164
					Mruczek za wnuczka,
165
					<fo:block />
166
					Wnuczek za babcię,
167
					<fo:block />
168
					Babcia za dziadka,
169
					<fo:block />
170
					Dziadek za rzepkę,
171
					<fo:block />
172
					Oj, przydałby się ktoś na przyczepkę!
173
					<fo:block />
174
					Pocą się, sapią, stękają srogo,
175
					<fo:block />
176
					Ciągną i ciągną, wyciągnąć nie mogą!
177
				</fo:block>
178
				<fo:block color="#aabbcc">
179
					Skakała drogą zielona żabka,
180
					<fo:block />
181
					Złapała boćka - rzadka to gradka!
182
					<fo:block />
183
					Żabka za boćka,
184
					<fo:block />
185
					Bociek za gąskę,
186
					<fo:block />
187
					Gąska za kurkę,
188
					<fo:block />
189
					Kurka za Kicię,
190
					<fo:block />
191
					Kicia za Mruczka,
192
					<fo:block />
193
					Mruczek za wnuczka,
194
					<fo:block />
195
					Wnuczek za babcię,
196
					<fo:block />
197
					Babcia za dziadka,
198
					<fo:block />
199
					Dziadek za rzepkę,
200
					<fo:block />
201
					A na przyczepkę
202
					<fo:block />
203
					Kawka za żabkę
204
					<fo:block />
205
					Bo na tę rzepkę
206
					<fo:block />
207
					Też miała chrapkę.
208
				</fo:block>
209
				<fo:block color="yellow">
210
					Tak się zawzięli,
211
					<fo:block />
212
					Tak się nadęli,
213
					<fo:block />
214
					Ze nagle rzepkę
215
					<fo:block />
216
					Trrrach!! - wyciągnęli!
217
					<fo:block />
218
					Aż wstyd powiedzieć,
219
					<fo:block />
220
					Co było dalej!
221
					<fo:block />
222
					Wszyscy na siebie
223
					<fo:block />
224
					Poupadali:
225
					<fo:block />
226
					Rzepka na dziadka,
227
					<fo:block />
228
					Dziadek na babcię,
229
					<fo:block />
230
					Babcia na wnuczka,
231
					<fo:block />
232
					Wnuczek na Mruczka,
233
					<fo:block />
234
					Mruczek na Kicię,
235
					<fo:block />
236
					Kicia na kurkę,
237
					<fo:block />
238
					Kurka na gąskę,
239
					<fo:block />
240
					Gąska na boćka,
241
					<fo:block />
242
					Bociek na żabkę,
243
					<fo:block />
244
					Żabka na kawkę
245
					<fo:block />
246
					I na ostatku
247
					<fo:block />
248
					Kawka na trawkę.
249
				</fo:block>
250
			</fo:block>
251
		</fo:flow>
252
	</fo:page-sequence>
253
</fo:root>
(-)test/odf/odt/block/font_family.fo (+169 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
5
	<fo:layout-master-set>
6
		<fo:simple-page-master master-name="simple"
7
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
8
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
9
			<fo:region-body margin-top="3cm" />
10
			<fo:region-before extent="3cm" />
11
			<fo:region-after extent="1.5cm" />
12
		</fo:simple-page-master>
13
	</fo:layout-master-set>
14
15
	<fo:page-sequence master-reference="simple">
16
		<fo:flow flow-name="xsl-region-body">
17
			<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
18
				font-size="11pt">
19
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif">
20
					Lokomotywa
21
				</fo:block>
22
				<fo:block font-family="Helvetica, Symbol, sans-serif"
23
					font-size="11pt">
24
					Stoi na stacji lokomotywa,
25
					<fo:block />
26
					Ciężka, ogromna i pot z niej spływa -
27
					<fo:block />
28
					Tłusta oliwa.
29
					<fo:block />
30
					Stoi i sapie, dyszy i dmucha,
31
					<fo:block />
32
					Żar z rozgrzanego jej brzucha bucha:
33
					<fo:block />
34
					Buch - jak gorąco!
35
					<fo:block />
36
					Uch - jak gorąco!
37
					<fo:block />
38
					Puff - jak gorąco!
39
					<fo:block />
40
					Uff - jak gorąco!
41
					<fo:block />
42
					Już ledwo sapie, już ledwo zipie,
43
					<fo:block />
44
					A jeszcze palacz węgiel w nią sypie.
45
					<fo:block />
46
					Wagony do niej podoczepiali
47
					<fo:block />
48
					Wielkie i ciężkie, z żelaza, stali,
49
					<fo:block />
50
					I pełno ludzi w każdym wagonie,
51
					<fo:block />
52
					A w jednym krowy, a w drugim konie,
53
					<fo:block />
54
					A w trzecim siedzą same grubasy,
55
					<fo:block />
56
					Siedzą i jedzą tłuste kiełbasy.
57
					<fo:block />
58
					A czwarty wagon pełen bananów,
59
					<fo:block />
60
					A w piątym stoi sześć fortepianów,
61
					<fo:block />
62
					W szóstym armata, o! jaka wielka!
63
					<fo:block />
64
					Pod każdym kołem żelazna belka!
65
					<fo:block />
66
					W siódmym dębowe stoły i szafy,
67
					<fo:block />
68
					W ósmym słoń, niedźwiedź i dwie żyrafy,
69
					<fo:block />
70
					W dziewiątym - same tuczone świnie,
71
					<fo:block />
72
					W dziesiątym - kufry, paki i skrzynie,
73
					<fo:block />
74
					A tych wagonów jest ze czterdzieści,
75
					<fo:block />
76
					Sam nie wiem, co się w nich jeszcze mieści.
77
				</fo:block>
78
				<fo:block font-family="sans-serif" font-size="11pt">
79
					Lecz choćby przyszło tysiąc atletów
80
					<fo:block />
81
					I każdy zjadłby tysiąc kotletów,
82
					<fo:block />
83
					I każdy nie wiem jak się natężał,
84
					<fo:block />
85
					To nie udźwigną - taki to ciężar!
86
				</fo:block>
87
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
88
					font-size="11pt">
89
					Nagle - gwizd!
90
					<fo:block />
91
					Nagle - świst!
92
					<fo:block />
93
					Para - buch!
94
					<fo:block />
95
					Koła - w ruch!
96
				</fo:block>
97
				<fo:block font-family="Times new Roman" font-size="11pt">
98
					Najpierw
99
					<fo:block />
100
					powoli
101
					<fo:block />
102
					jak żółw
103
					<fo:block />
104
					ociężale
105
					<fo:block />
106
					Ruszyła
107
					<fo:block />
108
					maszyna
109
					<fo:block />
110
					po szynach
111
					<fo:block />
112
					ospale.
113
					<fo:block />
114
					Szarpnęła wagony i ciągnie z mozołem,
115
					<fo:block />
116
					I kręci się, kręci się koło za kołem,
117
					<fo:block />
118
					I biegu przyspiesza, i gna coraz prędzej,
119
					<fo:block />
120
					I dudni, i stuka, łomoce i pędzi.
121
				</fo:block>
122
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
123
					font-size="11pt">
124
					A dokąd? A dokąd? A dokąd? Na wprost!
125
					<fo:block />
126
					Po torze, po torze, po torze, przez most,
127
					<fo:block />
128
					Przez góry, przez tunel, przez pola, przez las
129
					<fo:block />
130
					I spieszy się, spieszy, by zdążyć na czas,
131
					<fo:block />
132
					Do taktu turkoce i puka, i stuka to:
133
					<fo:block />
134
					Tak to to, tak to to, tak to to, tak to to,
135
					<fo:block />
136
					Gładko tak, lekko tak toczy się w dal,
137
					<fo:block />
138
					Jak gdyby to była piłeczka, nie stal,
139
					<fo:block />
140
					Nie ciężka maszyna zziajana, zdyszana,
141
					<fo:block />
142
					Lecz raszka, igraszka, zabawka blaszana.
143
				</fo:block>
144
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
145
					font-size="11pt">
146
					A skądże to, jakże to, czemu tak gna?
147
					<fo:block />
148
					A co to to, co to to, kto to tak pcha?
149
					<fo:block />
150
					Że pędzi, że wali, że bucha, buch-buch?
151
					<fo:block />
152
					To para gorąca wprawiła to w ruch,
153
					<fo:block />
154
					To para, co z kotła rurami do tłoków,
155
					<fo:block />
156
					A tłoki kołami ruszają z dwóch boków
157
					<fo:block />
158
					I gnają, i pchają, i pociąg się toczy,
159
					<fo:block />
160
					Bo para te tłoki wciąż tłoczy i tłoczy,,
161
					<fo:block />
162
					I koła turkocą, i puka, i stuka to:
163
					<fo:block />
164
					Tak to to, tak to to, tak to to, tak to to!...
165
				</fo:block>
166
			</fo:block>
167
		</fo:flow>
168
	</fo:page-sequence>
169
</fo:root>
(-)test/odf/odt/block/font_size.fo (+164 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
5
	<fo:layout-master-set>
6
		<fo:simple-page-master master-name="simple"
7
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
8
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
9
			<fo:region-body margin-top="3cm" />
10
			<fo:region-before extent="3cm" />
11
			<fo:region-after extent="1.5cm" />
12
		</fo:simple-page-master>
13
	</fo:layout-master-set>
14
15
	<fo:page-sequence master-reference="simple">
16
		<fo:flow flow-name="xsl-region-body">
17
			<fo:block>
18
				<fo:block font-size="13pt">
19
					Lokomotywa
20
				</fo:block>
21
				<fo:block font-size="4pt">
22
					Stoi na stacji lokomotywa,
23
					<fo:block />
24
					Ciężka, ogromna i pot z niej spływa -
25
					<fo:block />
26
					Tłusta oliwa.
27
					<fo:block />
28
					Stoi i sapie, dyszy i dmucha,
29
					<fo:block />
30
					Żar z rozgrzanego jej brzucha bucha:
31
					<fo:block />
32
					Buch - jak gorąco!
33
					<fo:block />
34
					Uch - jak gorąco!
35
					<fo:block />
36
					Puff - jak gorąco!
37
					<fo:block />
38
					Uff - jak gorąco!
39
					<fo:block />
40
					Już ledwo sapie, już ledwo zipie,
41
					<fo:block />
42
					A jeszcze palacz węgiel w nią sypie.
43
					<fo:block />
44
					Wagony do niej podoczepiali
45
					<fo:block />
46
					Wielkie i ciężkie, z żelaza, stali,
47
					<fo:block />
48
					I pełno ludzi w każdym wagonie,
49
					<fo:block />
50
					A w jednym krowy, a w drugim konie,
51
					<fo:block />
52
					A w trzecim siedzą same grubasy,
53
					<fo:block />
54
					Siedzą i jedzą tłuste kiełbasy.
55
					<fo:block />
56
					A czwarty wagon pełen bananów,
57
					<fo:block />
58
					A w piątym stoi sześć fortepianów,
59
					<fo:block />
60
					W szóstym armata, o! jaka wielka!
61
					<fo:block />
62
					Pod każdym kołem żelazna belka!
63
					<fo:block />
64
					W siódmym dębowe stoły i szafy,
65
					<fo:block />
66
					W ósmym słoń, niedźwiedź i dwie żyrafy,
67
					<fo:block />
68
					W dziewiątym - same tuczone świnie,
69
					<fo:block />
70
					W dziesiątym - kufry, paki i skrzynie,
71
					<fo:block />
72
					A tych wagonów jest ze czterdzieści,
73
					<fo:block />
74
					Sam nie wiem, co się w nich jeszcze mieści.
75
				</fo:block>
76
				<fo:block font-size="6pt">
77
					Lecz choćby przyszło tysiąc atletów
78
					<fo:block />
79
					I każdy zjadłby tysiąc kotletów,
80
					<fo:block />
81
					I każdy nie wiem jak się natężał,
82
					<fo:block />
83
					To nie udźwigną - taki to ciężar!
84
				</fo:block>
85
				<fo:block font-size="15pt">
86
					Nagle - gwizd!
87
					<fo:block />
88
					Nagle - świst!
89
					<fo:block />
90
					Para - buch!
91
					<fo:block />
92
					Koła - w ruch!
93
				</fo:block>
94
				<fo:block font-size="8pt">
95
					Najpierw
96
					<fo:block />
97
					powoli
98
					<fo:block />
99
					jak żółw
100
					<fo:block />
101
					ociężale
102
					<fo:block />
103
					Ruszyła
104
					<fo:block />
105
					maszyna
106
					<fo:block />
107
					po szynach
108
					<fo:block />
109
					ospale.
110
					<fo:block />
111
					Szarpnęła wagony i ciągnie z mozołem,
112
					<fo:block />
113
					I kręci się, kręci się koło za kołem,
114
					<fo:block />
115
					I biegu przyspiesza, i gna coraz prędzej,
116
					<fo:block />
117
					I dudni, i stuka, łomoce i pędzi.
118
				</fo:block>
119
				<fo:block font-size="11pt">
120
					A dokąd? A dokąd? A dokąd? Na wprost!
121
					<fo:block />
122
					Po torze, po torze, po torze, przez most,
123
					<fo:block />
124
					Przez góry, przez tunel, przez pola, przez las
125
					<fo:block />
126
					I spieszy się, spieszy, by zdążyć na czas,
127
					<fo:block />
128
					Do taktu turkoce i puka, i stuka to:
129
					<fo:block />
130
					Tak to to, tak to to, tak to to, tak to to,
131
					<fo:block />
132
					Gładko tak, lekko tak toczy się w dal,
133
					<fo:block />
134
					Jak gdyby to była piłeczka, nie stal,
135
					<fo:block />
136
					Nie ciężka maszyna zziajana, zdyszana,
137
					<fo:block />
138
					Lecz raszka, igraszka, zabawka blaszana.
139
				</fo:block>
140
				<fo:block font-size="20pt">
141
					A skądże to, jakże to, czemu tak gna?
142
					<fo:block />
143
					A co to to, co to to, kto to tak pcha?
144
					<fo:block />
145
					Że pędzi, że wali, że bucha, buch-buch?
146
					<fo:block />
147
					To para gorąca wprawiła to w ruch,
148
					<fo:block />
149
					To para, co z kotła rurami do tłoków,
150
					<fo:block />
151
					A tłoki kołami ruszają z dwóch boków
152
					<fo:block />
153
					I gnają, i pchają, i pociąg się toczy,
154
					<fo:block />
155
					Bo para te tłoki wciąż tłoczy i tłoczy,,
156
					<fo:block />
157
					I koła turkocą, i puka, i stuka to:
158
					<fo:block />
159
					Tak to to, tak to to, tak to to, tak to to!...
160
				</fo:block>
161
			</fo:block>
162
		</fo:flow>
163
	</fo:page-sequence>
164
</fo:root>
(-)test/odf/odt/block/font_style.fo (+30 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block>
15
				<fo:block>
16
					O KOCIE
17
				</fo:block>
18
				<fo:block font-style="italic">
19
					Słyszał kto kiedy jako ciągą kota? 
20
					<fo:block/>
21
					Nie zawżdy szuka wody ta robota, 
22
					<fo:block/>
23
					Ciągnie go drugi nadobnie na suszy, 
24
					<fo:block/>
25
					Sukniej nie zmacza, ale wżdy mdło duszy.
26
				</fo:block>
27
			</fo:block>
28
		</fo:flow>
29
	</fo:page-sequence>
30
</fo:root>
(-)test/odf/odt/block/font_weight.fo (+33 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
5
	<fo:layout-master-set>
6
		<fo:simple-page-master master-name="simple"
7
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
8
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
9
			<fo:region-body margin-top="3cm" />
10
			<fo:region-before extent="3cm" />
11
			<fo:region-after extent="1.5cm" />
12
		</fo:simple-page-master>
13
	</fo:layout-master-set>
14
15
	<fo:page-sequence master-reference="simple">
16
		<fo:flow flow-name="xsl-region-body">
17
			<fo:block>
18
				<fo:block font-weight="bold">
19
					DO PANIEJ
20
				</fo:block>
21
				<fo:block>
22
					Co usty mówisz byś w sercu myśliła,
23
					<fo:block/>
24
					Barzo byś mię tym, Pani, zniewoliła. 
25
					<fo:block/>
26
					Ale kiedy mię swym miłym mianujesz, 
27
					<fo:block/>
28
					Podobno dawnym zwyczajom folgujesz.
29
				</fo:block>
30
			</fo:block>
31
		</fo:flow>
32
	</fo:page-sequence>
33
</fo:root>
(-)test/odf/odt/block/space_before_after.fo (+64 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block font-size="13pt" text-align="justify">
15
				<fo:block margin-left="10pt" space-before="10pt" space-after="6pt">
16
					Joad had moved
17
					into the imperfect shade of the molting leaves before
18
					the man heard
19
					him coming, stopped his song, and turned his head. It was a long
20
					head,
21
					bony; tight of
22
					skin, and set on a neck as stringy and muscular
23
					as a celery stalk. His
24
					eyeballs were
25
					heavy and protruding; the lids
26
					stretched to cover them, and the lids
27
					were raw and red.
28
					His cheeks
29
					were brown and shiny and hairless and his mouth
30
					full—humorous or
31
					sensual. The nose, beaked and hard, stretched the skin so tightly
32
					that the
33
					bridge showed
34
					white. There was no perspiration on the face,
35
					not even on the tall pale
36
					forehead. It was
37
					an abnormally high
38
					forehead, lined with delicate blue veins at the
39
					temples. Fully half
40
					of the face was above the eyes. His stiff gray hair was mussed back
41
					from his brow as
42
					though he had combed it back with his fingers. For
43
					clothes he wore
44
					overalls and a blue
45
					shirt. A denim coat with brass
46
					buttons and a spotted brown hat creased
47
					like a pork pie
48
					lay on the
49
					ground beside him. Canvas sneakers, gray with dust, lay
50
					near by
51
					where they
52
					had fallen when they were kicked off.
53
				</fo:block>
54
				<fo:block space-before="1pt" space-after="1pt">
55
					The man looked long at Joad. The light seemed to go far into his brown
56
					eyes, and it
57
					picked out little golden specks deep in the irises. The strained bundle
58
					of neck muscles
59
					stood out.
60
				</fo:block>
61
			</fo:block>
62
		</fo:flow>
63
	</fo:page-sequence>
64
</fo:root>
(-)test/odf/odt/block/text_align.fo (+77 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block font-size="13pt">
15
				<fo:block text-align="justify">
16
					Joad rolled the coat up more tightly. "An old turtle," he said. "Picked
17
					him up on the
18
					road. An old bulldozer. Thought I'd take 'im to my little brother. Kids
19
					like turtles."
20
				</fo:block>
21
				<fo:block text-align="left">
22
					The preacher nodded his head slowly. "Every kid got a turtle some time
23
					or other.
24
					Nobody can't keep a turtle though. They work at it and work at it, and at
25
					last one day
26
					they get out and away they go—off somewheres. It's like me. I wouldn't
27
					take the good
28
					ol' gospel that was just layin' there to my hand. I got to be pickin'
29
					at it an' workin' at it
30
					until I got it all tore down. Here I got the sperit sometimes an'
31
					nothin' to preach about. I
32
					got the call to lead people, an' no place to lead 'em."
33
				</fo:block>
34
				<fo:block text-align="right">
35
					"Lead 'em around and around," said Joad. "Sling 'em in the irrigation
36
					ditch. Tell 'em
37
					they'll burn in hell if they don't think like you. What the hell you want
38
					to lead 'em
39
					someplace for? Jus' lead 'em."
40
				</fo:block>
41
				<fo:block text-align="center">
42
					The straight trunk shade had stretched out along the ground. Joad
43
					moved gratefully
44
					into it and squatted on his hams and made a new smooth place on which
45
					to draw his
46
					thoughts with a stick. A thick-furred yellow shepherd dog came trotting
47
					down the road,
48
					head low, tongue lolling and dripping. Its tail hung limply curled, and
49
					it panted loudly.
50
					Joad whistled at it, but it only dropped its head an inch and trotted
51
					fast toward some
52
					definite destination. "Goin' someplace," Joad explained, a little piqued.
53
					"Goin' for
54
					home maybe."
55
				</fo:block>
56
				<fo:block>
57
					The preacher could not be thrown from his subject. "Goin' someplace,"
58
					he repeated.
59
					"That's right, he's goin' someplace. Me—I don't know where I'm goin'. Tell
60
					you what—
61
					I used ta get the people jumpin' an' talkin' in tongues and
62
					glory-shoutin' till they just
63
					fell down an' passed out. An' some I'd baptize to bring 'em to. An'
64
					then—you know
65
					what I'd do? I'd take one of them girls out in the grass, an' I'd lay
66
					with her. Done it
67
					ever' time. Then I'd feel bad, an' I'd pray an' pray, but it didn't do
68
					no good. Come the
69
					next time, them an' me was full of the sperit, I'd do it again. I
70
					figgered there just wasn't
71
					no hope for me, an' I was a damned ol' hypocrite. But I didn't mean
72
					to be."
73
				</fo:block>
74
			</fo:block>
75
		</fo:flow>
76
	</fo:page-sequence>
77
</fo:root>
(-)test/odf/odt/external_graphic/simple.fo (+27 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-align="justify">
15
				<fo:block font-size="15pt">
16
					Joad rolled the coat up more tightly. "An old turtle," he said. "Picked
17
					him up on the
18
					road. An old bulldozer. Thought I'd take 'im to my little brother. Kids
19
					like turtles."
20
				</fo:block>
21
				<fo:block>
22
					<fo:external-graphic src="./test/odf/odt/fo_external_graphic/img.jpg" />
23
				</fo:block>
24
			</fo:block>
25
		</fo:flow>
26
	</fo:page-sequence>
27
</fo:root>
(-)test/odf/odt/inline/color_font_size_style_weight.fo (+24 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-align="justify">
15
				<fo:block font-size="15pt" color="red">
16
					Joad <fo:inline font-weight="bold">rolled</fo:inline> the coat <fo:inline color="blue" font-size="20pt">up more</fo:inline> tightly. "An old turtle," he said. "Picked
17
					him up on the
18
					road. An old bulldozer. <fo:inline font-style="italic">Thought I'd </fo:inline>take 'im to my little brother. Kids
19
					like turtles."
20
				</fo:block>
21
			</fo:block>
22
		</fo:flow>
23
	</fo:page-sequence>
24
</fo:root>
(-)test/odf/odt/inline/with_basiclink.fo (+104 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block margin-left="0" text-align="left">
15
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
16
					color="#000000" keep-with-next="always" font-size="16pt"
17
					font-weight="bold" space-before="18pt" space-after="3pt"
18
					padding-after="3pt" border-bottom-width=".1mm" border-bottom-style="solid"
19
					border-bottom-color="black" text-align="center">Titre 3 : IF - Imposition
20
					forfaitaire sur les pylônes</fo:block>
21
			</fo:block>
22
			<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
23
				font-size="10pt" white-space-collapse="true" text-align="justify">
24
				<fo:block role="tableofcontent-196-PGP-6" />
25
				<fo:block font-size="9pt">
26
					<fo:leader />
27
				</fo:block>
28
				<fo:block font-family="Arial, Helvetica, sans-serif;"
29
					font-size="100%" white-space-collapse="true" text-align="justify"
30
					space-before="3pt" space-after="6pt" font-weight="normal" color="black"
31
					margin-left="1cm">
32
					<fo:inline font-weight="bold">1. Agrément de l’exploitant de la
33
						résidence hôtelière à vocation sociale et délai de
34
						mise en location</fo:inline>
35
				</fo:block>
36
				<fo:block font-family="Arial, Helvetica, sans-serif;"
37
					font-size="100%" white-space-collapse="true" text-align="justify"
38
					space-before="3pt" space-after="6pt" font-weight="normal" color="black"
39
					margin-left="1cm">
40
					<fo:inline font-weight="bold">
41
						2. Changement de l’exploitant de la résidence à l’initiative du
42
						propriétaire
43
						(
44
						<fo:basic-link external-destination="http://google.com"
45
							color="blue">
46
							CCH,
47
							<fo:inline font-style="italic">article R</fo:inline>
48
							. 631-13, I
49
						</fo:basic-link>
50
					</fo:inline>
51
				</fo:block>
52
				<fo:block font-family="Arial, Helvetica, sans-serif;"
53
					font-size="100%" white-space-collapse="true" text-align="justify"
54
					space-before="3pt" space-after="6pt" font-weight="normal" color="black"
55
					margin-left="1cm">
56
					<fo:inline font-weight="bold">
57
						3. Abandon de l’exploitation à l’initiative de l’exploitant de la
58
						résidence
59
						(
60
						<fo:basic-link external-destination="http://google.com"
61
							color="blue">CCH, article R. 631-13, III</fo:basic-link>
62
						)
63
					</fo:inline>
64
				</fo:block>
65
				<fo:block font-family="Arial, Helvetica, sans-serif;"
66
					font-size="100%" white-space-collapse="true" text-align="justify"
67
					space-before="3pt" space-after="6pt" font-weight="normal" color="black"
68
					margin-left="1cm">
69
					<fo:inline font-weight="bold">
70
						4. Retrait de l’agrément de l’exploitant de la résidence (CCH,
71
						articles
72
						<fo:basic-link external-destination="http://google.com"
73
							color="blue">
74
							R.
75
							<fo:inline font-style="italic"> 63</fo:inline>
76
							1-17
77
						</fo:basic-link>
78
						et
79
						<fo:basic-link external-destination="http://google.com"
80
							color="blue">R. 451-7</fo:basic-link>
81
						)
82
					</fo:inline>
83
				</fo:block>
84
				<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
85
					font-size="11pt" white-space-collapse="true" text-align="justify"
86
					space-before="3pt" space-after="6pt">1 Dans ce cas, le propriétaire de la
87
					résidence prend les dispositions nécessaires pour assurer le
88
					respect
89
					de ses engagements (prix de nuitée maximal et pourcentage
90
					des
91
					logements réservés aux personnes en difficulté, notamment) ainsi
92
					que la continuité de l’exploitation de la résidence au bénéfice des
93
					occupants de celle-ci.</fo:block>
94
				<fo:block font-family="Arial, Helvetica, sans-serif;"
95
					font-size="100%" white-space-collapse="true" text-align="justify"
96
					space-before="3pt" space-after="6pt" font-weight="normal" color="black"
97
					margin-left="1cm">
98
					<fo:inline font-weight="bold">5. Défaillance de l’exploitant</fo:inline>
99
				</fo:block>
100
			</fo:block>
101
		</fo:flow>
102
	</fo:page-sequence>
103
</fo:root>
104
(-)test/odf/odt/list_block/simple.fo (+53 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-align="justify">
15
				<fo:block font-size="15pt">
16
					Joad rolled the coat up more tightly.
17
					"An old turtle," he said. "Picked
18
					him up on the
19
					road. An old
20
					bulldozer. Thought I'd take 'im to my little brother. Kids
21
					like
22
					turtles."
23
				</fo:block>
24
				<fo:list-block>
25
					<fo:list-item>
26
						<fo:list-item-label>
27
							<fo:block>•</fo:block>
28
						</fo:list-item-label>
29
						<fo:list-item-body>
30
							<fo:block>item1</fo:block>
31
						</fo:list-item-body>
32
					</fo:list-item>
33
					<fo:list-item>
34
						<fo:list-item-label>
35
							<fo:block>•</fo:block>
36
						</fo:list-item-label>
37
						<fo:list-item-body>
38
							<fo:block>item2</fo:block>
39
						</fo:list-item-body>
40
					</fo:list-item>
41
					<fo:list-item>
42
						<fo:list-item-label>
43
							<fo:block>•</fo:block>
44
						</fo:list-item-label>
45
						<fo:list-item-body>
46
							<fo:block>item3</fo:block>
47
						</fo:list-item-body>
48
					</fo:list-item>
49
				</fo:list-block>
50
			</fo:block>
51
		</fo:flow>
52
	</fo:page-sequence>
53
</fo:root>
(-)test/odf/odt/table/simple.fo (+128 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
3
	<fo:layout-master-set>
4
		<fo:simple-page-master master-name="simple"
5
			page-height="29.7cm" page-width="21cm" margin-top="1cm"
6
			margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
7
			<fo:region-body margin-top="3cm" />
8
			<fo:region-before extent="3cm" />
9
			<fo:region-after extent="1.5cm" />
10
		</fo:simple-page-master>
11
	</fo:layout-master-set>
12
	<fo:page-sequence master-reference="simple">
13
		<fo:flow flow-name="xsl-region-body">
14
			<fo:block text-align="justify">
15
				<fo:block font-size="15pt">
16
					Joad rolled the coat up more tightly.
17
					"An old turtle," he said. "Picked
18
					him up on the
19
					road. An old
20
					bulldozer. Thought I'd take 'im to my little brother. Kids
21
					like
22
					turtles."
23
				</fo:block>
24
				<fo:block>
25
					<fo:table>
26
						<fo:table-body>
27
							<fo:table-row>
28
								<fo:table-cell border-style="solid" border-width=".1mm"
29
									padding="1mm">
30
									<fo:block>
31
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
32
											font-size="11pt" space-before="3pt" space-after="0cm">aa</fo:block>
33
									</fo:block>
34
								</fo:table-cell>
35
								<fo:table-cell border-style="solid" border-width=".1mm"
36
									padding="1mm">
37
									<fo:block>
38
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
39
											font-size="11pt" space-before="3pt" space-after="0cm">bb</fo:block>
40
									</fo:block>
41
								</fo:table-cell>
42
								<fo:table-cell border-style="solid" border-width=".1mm"
43
									padding="1mm">
44
									<fo:block>
45
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
46
											font-size="11pt" space-before="3pt" space-after="0cm">cc</fo:block>
47
									</fo:block>
48
								</fo:table-cell>
49
								<fo:table-cell border-style="solid" border-width=".1mm"
50
									padding="1mm">
51
									<fo:block>
52
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
53
											font-size="11pt" space-before="3pt" space-after="0cm">dd</fo:block>
54
									</fo:block>
55
								</fo:table-cell>
56
							</fo:table-row>
57
							<fo:table-row>
58
								<fo:table-cell border-style="solid" border-width=".1mm"
59
									padding="1mm">
60
									<fo:block>
61
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
62
											font-size="11pt" white-space-collapse="true" text-align="justify"
63
											space-before="3pt" space-after="0cm">ff</fo:block>
64
									</fo:block>
65
								</fo:table-cell>
66
								<fo:table-cell border-style="solid" border-width=".1mm"
67
									padding="1mm">
68
									<fo:block>
69
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
70
											font-size="11pt" space-before="3pt" space-after="0cm">gg</fo:block>
71
									</fo:block>
72
								</fo:table-cell>
73
								<fo:table-cell border-style="solid" border-width=".1mm"
74
									padding="1mm">
75
									<fo:block>
76
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
77
											font-size="11pt" space-before="3pt" space-after="0cm">hh</fo:block>
78
									</fo:block>
79
								</fo:table-cell>
80
								<fo:table-cell border-style="solid" border-width=".1mm"
81
									padding="1mm">
82
									<fo:block>
83
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
84
											font-size="11pt" space-before="3pt" space-after="0cm">ii</fo:block>
85
									</fo:block>
86
								</fo:table-cell>
87
							</fo:table-row>
88
							<fo:table-row>
89
								<fo:table-cell border-style="solid" border-width=".1mm"
90
									padding="1mm">
91
									<fo:block>
92
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
93
											font-size="11pt" space-before="3pt" space-after="0cm">jj</fo:block>
94
									</fo:block>
95
								</fo:table-cell>
96
								<fo:table-cell border-style="solid" border-width=".1mm"
97
									padding="1mm" number-rows-spanned="2">
98
									<fo:block>
99
										<fo:block font-family="Arial, Helvetica, Symbol, sans-serif"
100
											font-size="11pt" space-before="3pt" space-after="0cm">kk</fo:block>
101
									</fo:block>
102
								</fo:table-cell>
103
								<fo:table-cell border-style="solid" border-width=".1mm"
104
									padding="1mm" number-columns-spanned="2">
105
									<fo:block />
106
								</fo:table-cell>
107
							</fo:table-row>
108
							<fo:table-row>
109
								<fo:table-cell border-style="solid" border-width=".1mm"
110
									padding="1mm">
111
									<fo:block />
112
								</fo:table-cell>
113
								<fo:table-cell border-style="solid" border-width=".1mm"
114
									padding="1mm">
115
									<fo:block />
116
								</fo:table-cell>
117
								<fo:table-cell border-style="solid" border-width=".1mm"
118
									padding="1mm">
119
									<fo:block />
120
								</fo:table-cell>
121
							</fo:table-row>
122
						</fo:table-body>
123
					</fo:table>
124
				</fo:block>
125
			</fo:block>
126
		</fo:flow>
127
	</fo:page-sequence>
128
</fo:root>

Return to bug 53400