Package org.docx4j.openpackaging.parts

Examples of org.docx4j.openpackaging.parts.PartName


    super(partName);
    init();
  }

  public SharedStrings() throws InvalidFormatException {
    super(new PartName("/xl/sharedStrings.xml"));
    init();
  }
View Full Code Here


    super(partName);
    init();
  }

  public PrinterSettings() throws InvalidFormatException {
    super(new PartName("/xl/printerSettings/printerSettings1.bin"));
    init();
  }
View Full Code Here

        // TODO - if this is already in our hashmap, skip
        // to the next       
        if (!false) {
          log.info("Getting part /" + resolvedPartUri );
         
          Part part = packageIn.getParts().get(new PartName("/" + resolvedPartUri));
         
          if (part==null) {
            log.error("Part " + resolvedPartUri + " not found!");
          } else {
            log.info(part.getClass().getName() );
View Full Code Here

    super(partName);
    init();
  }

  public PivotCacheDefinition() throws InvalidFormatException {
    super(new PartName("/xl/pivotCache/pivotCacheDefinition1.xml"));
    init();
  }
View Full Code Here

    super(partName);
    init();
  }

  public ConnectionsPart() throws InvalidFormatException {
    super(new PartName("/xl/connections.xml"));
    init();
  }
View Full Code Here

    super(partName);
    setJAXBContext(Context.jcSML);           
  }

  public JaxbSmlPart() throws InvalidFormatException {
    super(new PartName("/xl/blagh.xml"));
    setJAXBContext(Context.jcSML);           
  }
View Full Code Here

  public static Part newPartForContentType(String contentType, String partName)
  throws InvalidFormatException, PartUnrecognisedException {
       
    if (contentType.equals(ContentTypes.SPREADSHEETML_PRINTER_SETTINGS)) {
      return new PrinterSettings(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_STYLES)) {
      return new Styles(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_WORKSHEET)) {
      return new WorksheetPart(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_CALC_CHAIN)) {
      return new CalcChain(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_SHARED_STRINGS)) {
      return new SharedStrings(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_PIVOT_TABLE)) {
      return new PivotTable(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_PIVOT_CACHE_DEFINITION)) {
      return new PivotCacheDefinition(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_PIVOT_CACHE_RECORDS)) {
      return new PivotCacheRecords(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_COMMENTS)) {
      return new CommentsPart(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_CONNECTIONS)) {
      return new ConnectionsPart(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_TABLE)) {
      return new TablePart(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_QUERY_TABLE)) {
      return new QueryTablePart(new PartName(partName));
    } else if (contentType.equals(ContentTypes.SPREADSHEETML_EXTERNAL_LINK)) {
      return new ExternalLinkPart(new PartName(partName));
    } else {
      throw new PartUnrecognisedException("No subclass found for "
          + partName + " (content type '" + contentType + "')");
    }
  } 
View Full Code Here

    super(partName);
    init();
  }

  public PivotCacheRecords() throws InvalidFormatException {
    super(new PartName("/xl/pivotCache/pivotCacheRecords1.xml"));
    init();
  }
View Full Code Here

    super(partName);
    init();
  }

  public WorksheetPart() throws InvalidFormatException {
    super(new PartName("/xl/worksheets/sheet1.xml"));
    init();
  }
View Full Code Here

    super(partName);
    init();
  }

  public CalcChain() throws InvalidFormatException {
    super(new PartName("/xl/calcChain.xml"));
    init();
  }
View Full Code Here

TOP

Related Classes of org.docx4j.openpackaging.parts.PartName

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.