Package kameleon.document

Examples of kameleon.document.Title


        TextParagraph tp = (TextParagraph) p ;
        if (p.isProperty(ElementPropertiesDefaultNames.STYLE)) {
          String style = (String) p.getProperty(ElementPropertiesDefaultNames.STYLE) ;
          int titleLevel = Main.getTitleLevel(style) ;
          if (titleLevel > 0) {
            Title title = new Title() ;
            title.setProperty(ElementPropertiesDefaultNames.TEXT_ALIGNMENT,
                title.getProperty(ElementPropertiesDefaultNames.TEXT_ALIGNMENT)) ;
            title.setProperty(ElementPropertiesDefaultNames.TITLE_LEVEL,
                titleLevel) ;
            title.setProperty(ElementPropertiesDefaultNames.TEXT_BODY,
                Main.getTextBody(tp)) ;
            replacement.put(index, title) ;
            //          System.out.printf("Ajout d'un titre à l'indice %d, contenu '%s'\n",
            //              index, title.getProperty(ElementPropertiesDefaultNames.TEXT_BODY)) ;
          }// if
View Full Code Here

TOP

Related Classes of kameleon.document.Title

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.