aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-06-30 00:20:09 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-06-30 00:20:09 +0000
commit5ec179464d44850bb52c474ede389376084e7986 (patch)
tree9bf719f192eb2fdaf3f3d5a35ecbfdeb2c17a059 /src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
parent811b58dfb133359e5c30744417605ba01c891b88 (diff)
downloadxmlgraphics-fop-5ec179464d44850bb52c474ede389376084e7986.tar.gz
xmlgraphics-fop-5ec179464d44850bb52c474ede389376084e7986.zip
Convert all tab characters to spaces to comply with style requirements.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java')
-rw-r--r--src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
index c02af9849..a4a23cd16 100644
--- a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
+++ b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfPage.java
@@ -63,39 +63,39 @@ import java.io.*;
import java.util.*;
import java.io.IOException;
/** Specifies rtf control words. Is the container for page attributes.
- * Overrides okToWriteRtf.
+ * Overrides okToWriteRtf.
* @author Christopher Scott, scottc@westinghouse.com
*/
public class RtfPage
extends RtfContainer{
- private final RtfAttributes m_attrib;
+ private final RtfAttributes m_attrib;
- /**RtfPage attributes*/
- public final static String PAGE_WIDTH = "paperw";
- public final static String PAGE_HEIGHT = "paperh";
+ /**RtfPage attributes*/
+ public final static String PAGE_WIDTH = "paperw";
+ public final static String PAGE_HEIGHT = "paperh";
- public final static String MARGIN_TOP = "margt";
- public final static String MARGIN_BOTTOM = "margb";
- public final static String MARGIN_LEFT = "margl";
- public final static String MARGIN_RIGHT = "margr";
+ public final static String MARGIN_TOP = "margt";
+ public final static String MARGIN_BOTTOM = "margb";
+ public final static String MARGIN_LEFT = "margl";
+ public final static String MARGIN_RIGHT = "margr";
- public final static String[] PAGE_ATTR = new String[]{
- PAGE_WIDTH, PAGE_HEIGHT, MARGIN_TOP, MARGIN_BOTTOM,
- MARGIN_LEFT, MARGIN_RIGHT
- };
+ public final static String[] PAGE_ATTR = new String[]{
+ PAGE_WIDTH, PAGE_HEIGHT, MARGIN_TOP, MARGIN_BOTTOM,
+ MARGIN_LEFT, MARGIN_RIGHT
+ };
- /** RtfPage creates new page attributes with the parent container, the writer
- and the attributes*/
- RtfPage(RtfPageArea parent, Writer w, RtfAttributes attrs) throws IOException {
- super((RtfContainer)parent,w);
- m_attrib = attrs;
- }
+ /** RtfPage creates new page attributes with the parent container, the writer
+ and the attributes*/
+ RtfPage(RtfPageArea parent, Writer w, RtfAttributes attrs) throws IOException {
+ super((RtfContainer)parent,w);
+ m_attrib = attrs;
+ }
- /** RtfPage writes the attributes the attributes contained in the string
- PAGE_ATTR, if not null */
- protected void writeRtfContent() throws IOException {
- writeAttributes(m_attrib, PAGE_ATTR);
+ /** RtfPage writes the attributes the attributes contained in the string
+ PAGE_ATTR, if not null */
+ protected void writeRtfContent() throws IOException {
+ writeAttributes(m_attrib, PAGE_ATTR);
if (m_attrib != null)
{
@@ -108,19 +108,19 @@ extends RtfContainer{
writeControlWord( "landscape" );
}
}
- }
+ }
- /** RtfPage - attributes accessor */
- public RtfAttributes getAttributes(){
- return m_attrib;
- }
+ /** RtfPage - attributes accessor */
+ public RtfAttributes getAttributes(){
+ return m_attrib;
+ }
- /** RtfPage - is overwritten here because page attributes have no content
- only attributes. RtfContainer is defined not to write when empty.
- Therefore must make this true to print.*/
- protected boolean okToWriteRtf()
- {
- return true;
- }
+ /** RtfPage - is overwritten here because page attributes have no content
+ only attributes. RtfContainer is defined not to write when empty.
+ Therefore must make this true to print.*/
+ protected boolean okToWriteRtf()
+ {
+ return true;
+ }
}