Package org.odftoolkit.odfdom.incubator.doc.office

Examples of org.odftoolkit.odfdom.incubator.doc.office.OdfOfficeStyles.appendChild()


            OdfStyle p1 = styles.newStyle("P1", OdfStyleFamily.Paragraph);
            p1.setProperty(StyleTextPropertiesElement.FontSize, "42pt");

            OdfStyle clone = (OdfStyle) p1.cloneNode(true);
            clone.setStyleNameAttribute("p1-clone");
            styles.appendChild(clone);

            OdfStyle p1clone = styles.getStyle("p1-clone", OdfStyleFamily.Paragraph);
            Assert.assertNotNull(p1clone);
            Assert.assertEquals(p1clone.getProperty(StyleTextPropertiesElement.FontSize), p1.getProperty(StyleTextPropertiesElement.FontSize));
        } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.