Class IndesignUtility


  • public class IndesignUtility
    extends java.lang.Object
    • Constructor Detail

      • IndesignUtility

        public IndesignUtility​(java.util.Properties properties)
        Create a new InDesign Utility and specify the InDesign specific configuration
        Parameters:
        properties - The InDesign specific configuration
    • Method Detail

      • getProperties

        public java.util.Properties getProperties()
        Returns the InDesign specific configuration that is declared in the file "indesign.properties"
        Returns:
        The InDesign specific configuration that is declared in the file "indesign.properties"
      • initializeParaStyle

        public static void initializeParaStyle​(AbstractNode node,
                                               java.lang.String styleName)
      • initializeCharStyle

        public static java.lang.String initializeCharStyle​(AbstractNode node)
      • closeParentsTags

        public static java.lang.String closeParentsTags​(AbstractNode node)
        Get back the close tags of the node's open parents
        Check if the parent tag is already closed
        Example:
        Parameters:
        node - the actual node
        Returns:
        the close tags of the node's open parents as string
      • closeForcedParentsTags

        public static java.lang.String closeForcedParentsTags​(AbstractNode node)
        Get back the close tags of the node's open parents
        Example:
        Parameters:
        node - the actual node
        Returns:
        the close tags of the node's open parents as string
      • openParentsTags

        public static java.lang.String openParentsTags​(AbstractNode node)
        Get back the open tags of the node's closed parents
        Check if the parent tag is already closed
        Example:
        Parameters:
        node - the actual node
        Returns:
        the open tags of the node's closed parents as string
      • openForcedParentsTags

        public static java.lang.String openForcedParentsTags​(AbstractNode node)
        Get back the open tags of the node's closed parents
        Example:
        Parameters:
        node - the actual node
        Returns:
        the open tags of the node's closed parents as string
      • parentTags

        protected static java.lang.String parentTags​(AbstractNode node,
                                                     boolean checkOpenTags,
                                                     boolean openClose)
        Get back the tags of the node's parents according to the openClose parameter
        This method runs recursively up thru the node tree to find the parents
        Parameters:
        node - the actual node
        checkOpenTags - should be checked if the parent tag is already open (true - yes, false - no)
        openClose - true - open tags; false - closed tags
        Returns:
        the tags of the node's parents as string according to the openClose parameter
      • parentIsMain

        public static boolean parentIsMain​(AbstractNode node)
      • getBorder

        public java.lang.String getBorder​(AbstractNode node)
      • getCellpadding

        public static java.lang.String getCellpadding​(AbstractNode node)
      • getCellspacing

        public static java.lang.String getCellspacing​(AbstractNode node)
      • getColumnWidth

        public static java.lang.String getColumnWidth​(AbstractNode node,
                                                      int column)
        This method
        Parameters:
        node - a TableNode
        column - current column count starting from 0
        Returns:
        indesign tag that define width for column
      • cellIsRenderable

        public static boolean cellIsRenderable​(AbstractNode node)