diff options
Diffstat (limited to 'src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java')
-rw-r--r-- | src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java index b5088fa0a..2abc9c664 100644 --- a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java +++ b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/ParagraphKeeptogetherContext.java @@ -60,7 +60,7 @@ package org.apache.fop.rtf.rtflib.rtfdoc; /** * - * This context is used to manage the "keepn" RTF attribute + * This context is used to manage the "keepn" RTF attribute * Used by ParagraphBuilder and JforCmd * */ @@ -69,51 +69,51 @@ public class ParagraphKeeptogetherContext { private static int m_paraKeepTogetherOpen=0; private static boolean m_paraResetProperties=false; - private static ParagraphKeeptogetherContext m_instance = null; + private static ParagraphKeeptogetherContext m_instance = null; - ParagraphKeeptogetherContext() { - } + ParagraphKeeptogetherContext() { + } - /** - * Singelton. - * - * @return The instance of ParagraphKeeptogetherContext - */ - public static ParagraphKeeptogetherContext getInstance() { - if (m_instance==null) m_instance = new ParagraphKeeptogetherContext(); - return m_instance; - } + /** + * Singelton. + * + * @return The instance of ParagraphKeeptogetherContext + */ + public static ParagraphKeeptogetherContext getInstance() { + if (m_instance==null) m_instance = new ParagraphKeeptogetherContext(); + return m_instance; + } - /** Return the level of current "keep whith next" paragraph */ - public static int getKeepTogetherOpenValue() { - return m_paraKeepTogetherOpen; - } + /** Return the level of current "keep whith next" paragraph */ + public static int getKeepTogetherOpenValue() { + return m_paraKeepTogetherOpen; + } - /** Open a new "keep whith next" paragraph */ - public static void KeepTogetherOpen() { - m_paraKeepTogetherOpen++; - } + /** Open a new "keep whith next" paragraph */ + public static void KeepTogetherOpen() { + m_paraKeepTogetherOpen++; + } - /** Close a "keep whith next" paragraph */ - public static void KeepTogetherClose() { - if(m_paraKeepTogetherOpen > 0) { - m_paraKeepTogetherOpen--; + /** Close a "keep whith next" paragraph */ + public static void KeepTogetherClose() { + if(m_paraKeepTogetherOpen > 0) { + m_paraKeepTogetherOpen--; - //If the \pard control word is not present, the current paragraph inherits all paragraph properties. - //Also the next paragraph must reset the properties otherwise the \keepn don't stop. - m_paraResetProperties= (m_paraKeepTogetherOpen==0); - } - } + //If the \pard control word is not present, the current paragraph inherits all paragraph properties. + //Also the next paragraph must reset the properties otherwise the \keepn don't stop. + m_paraResetProperties= (m_paraKeepTogetherOpen==0); + } + } - /** Determine if the next paragraph must reset the properites */ - public static boolean paragraphResetProperties() { - return m_paraResetProperties; - } + /** Determine if the next paragraph must reset the properites */ + public static boolean paragraphResetProperties() { + return m_paraResetProperties; + } - /** Reset the flag if the paragraph properties have been resested */ - public static void setParagraphResetPropertiesUsed() { - m_paraResetProperties=false; - } + /** Reset the flag if the paragraph properties have been resested */ + public static void setParagraphResetPropertiesUsed() { + m_paraResetProperties=false; + } } |