Examples of OOArtefactPosition


Examples of spatschorke.da.ooconnector.OOArtefactPosition

          if (!shape.getType().equals(IShape.TEXT_SHAPE))
            continue;
          ITextShape textShape = (ITextShape) shape;
          String content = textShape.getText().getText();
          if (content.matches(XMLArtefact.TAG_PATTERN)) {
            OOArtefactPosition position = new PresentationPosition(
                ooDocument, page, textShape);
            positions.add(position);
          }
        }
      } catch (PresentationException e) {
View Full Code Here

Examples of spatschorke.da.ooconnector.OOArtefactPosition

    ISearchResult searchResult = textDocument.getSearchService().findAll(
        searchDescriptor);

    List<IArtefactPosition> positions = new ArrayList<IArtefactPosition>();
    for (ITextRange textRange : searchResult.getTextRanges()) {
      OOArtefactPosition position = new TextPosition(ooDocument,
          textRange);
      positions.add(position);
    }
    return positions;
  }
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.