Package org.apache.poi.hslf.record

Examples of org.apache.poi.hslf.record.StyleTextProp9Atom


  }
  private void checkSlide(final Slide s) {
    final StyleTextProp9Atom[] numberedListArray = s.getNumberedListInfo();
    assertNotNull(numberedListArray);
    assertEquals(1, numberedListArray.length);
    final StyleTextProp9Atom numberedListInfoForTextBox = numberedListArray[0];
    assertNotNull(numberedListInfoForTextBox);
    final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox.getAutoNumberTypes();
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber());
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used
    assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme());
   
    final TextRun[] textRuns = s.getTextRuns();
View Full Code Here


  }
  private void checkSlide0(final Slide s) {
    final StyleTextProp9Atom[] numberedListArray = s.getNumberedListInfo();
    assertNotNull(numberedListArray);
    assertEquals(1, numberedListArray.length);//Just one text box here
    final StyleTextProp9Atom numberedListInfo = numberedListArray[0];
    assertNotNull(numberedListInfo);
    final TextPFException9[] autoNumbers = numberedListInfo.getAutoNumberTypes();
    assertNotNull(autoNumbers);
    assertEquals(4, autoNumbers.length);
    assertTrue(4 == autoNumbers[0].getAutoNumberStartNumber());
    assertNull(autoNumbers[1].getAutoNumberStartNumber());
    assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber());
View Full Code Here

  }
  private void checkSlide1(final Slide s) {
    final StyleTextProp9Atom[] numberedListArray = s.getNumberedListInfo();
    assertNotNull(numberedListArray);
    assertEquals(1, numberedListArray.length);//Just one text box here
    final StyleTextProp9Atom numberedListInfo = numberedListArray[0];
    assertNotNull(numberedListInfo);
    final TextPFException9[] autoNumbers = numberedListInfo.getAutoNumberTypes();
    assertNotNull(autoNumbers);
    assertEquals(4, autoNumbers.length);
    assertTrue(9 == autoNumbers[0].getAutoNumberStartNumber());
    assertNull(autoNumbers[1].getAutoNumberStartNumber());
    assertTrue(3 == autoNumbers[2].getAutoNumberStartNumber());
View Full Code Here

  }
  private void checkSlide0(final Slide s) {
    final StyleTextProp9Atom[] numberedListArray = s.getNumberedListInfo();
    assertNotNull(numberedListArray);
    assertEquals(2, numberedListArray.length);
    final StyleTextProp9Atom numberedListInfoForTextBox0 = numberedListArray[0];
    final StyleTextProp9Atom numberedListInfoForTextBox1 = numberedListArray[1];
    assertNotNull(numberedListInfoForTextBox0);
    assertNotNull(numberedListInfoForTextBox1);
    final TextPFException9[] autoNumbersOfTextBox0 = numberedListInfoForTextBox0.getAutoNumberTypes();
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getfBulletHasAutoNumber());
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox0[0].getAutoNumberStartNumber());//Default value = 1 will be used
    assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox0[0].getAutoNumberScheme());
    final TextPFException9[] autoNumbersOfTextBox1 = numberedListInfoForTextBox1.getAutoNumberTypes();
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox1[0].getfBulletHasAutoNumber());
    assertEquals(Short.valueOf((short)6), autoNumbersOfTextBox1[0].getAutoNumberStartNumber());//Default value = 1 will be used
    assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox1[0].getAutoNumberScheme());

   
View Full Code Here

  }
  private void checkSlide1(final Slide s) {
    final StyleTextProp9Atom[] numberedListArray = s.getNumberedListInfo();
    assertNotNull(numberedListArray);
    assertEquals(1, numberedListArray.length);
    final StyleTextProp9Atom numberedListInfoForTextBox = numberedListArray[0];
    assertNotNull(numberedListInfoForTextBox);
    final TextPFException9[] autoNumbersOfTextBox = numberedListInfoForTextBox.getAutoNumberTypes();
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getfBulletHasAutoNumber());
    assertEquals(Short.valueOf((short)1), autoNumbersOfTextBox[0].getAutoNumberStartNumber());//Default value = 1 will be used
    assertTrue(TextAutoNumberSchemeEnum.ANM_ArabicPeriod == autoNumbersOfTextBox[0].getAutoNumberScheme());
     
    TextRun[] textRuns = s.getTextRuns();
View Full Code Here

TOP

Related Classes of org.apache.poi.hslf.record.StyleTextProp9Atom

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.