Package ag.ion.bion.officelayer.internal.text

Examples of ag.ion.bion.officelayer.internal.text.TextRange


        ITextRange newTextRange = textDocument.getViewCursorService()
            .getViewCursor().getStartTextRange();
        XTextCursor cursor = newTextRange.getXTextRange().getText()
            .createTextCursor();
        cursor.gotoEnd(false);
        newTextRange = new TextRange(textDocument, cursor);
        paragraphs[0].getCloneService().cloneToPosition(
            new CloneDestinationPosition(newTextRange, newTextRange
                .getClass()), true, null);

        textDocument.close();
View Full Code Here


   * @date 09.07.2006
   */
  public ITextRange[] getTextRanges() {
    if(xInterface != null) {
      XTextRange textRange = (XTextRange)UnoRuntime.queryInterface(XTextRange.class, xInterface);
      return new ITextRange[] {new TextRange(document, textRange)};
    }
    else {
      List list = new ArrayList();
      for(int i=0, n=xIndexAccess.getCount(); i<n; i++) {
        try {
          Any any = (Any)xIndexAccess.getByIndex(i);
          XTextRange textRange = (XTextRange)UnoRuntime.queryInterface(XTextRange.class, any);
          if(textRange != null)
            list.add(new TextRange(document, textRange));
        }
        catch(Throwable throwable) {
          //do not consume
        }
      }
View Full Code Here

   */
  public ITextRange[] getTextRanges() {
    if (xInterface != null) {
      XTextRange textRange = (XTextRange) UnoRuntime.queryInterface(
          XTextRange.class, xInterface);
      return new ITextRange[] { new TextRange(document, textRange) };
    } else {
      List list = new ArrayList();
      for (int i = 0, n = xIndexAccess.getCount(); i < n; i++) {
        try {
          Any any = (Any) xIndexAccess.getByIndex(i);
          XTextRange textRange = (XTextRange) UnoRuntime
              .queryInterface(XTextRange.class, any);
          if (textRange != null)
            list.add(new TextRange(document, textRange));
        } catch (Throwable throwable) {
          // do not consume
        }
      }
      return (ITextRange[]) list.toArray(new ITextRange[list.size()]);
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public ITextRange getTextRange() {
    return new TextRange(textDocument, xDependentTextField.getAnchor());
 
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public ITextRange getTextRange() {
    return new TextRange(textDocument, xDependentTextField.getAnchor());
  }
View Full Code Here

   */
  public ITextRange getStartTextRange() throws NOAException {
    XTextContent textContent = (XTextContent) UnoRuntime.queryInterface(
        XTextContent.class, xControlShape);
    if (textContent != null)
      return new TextRange(document, textContent.getAnchor());
    return null;
  }
View Full Code Here

   * @date 25.01.2007
   */
  public ITextRange getStartTextRange() throws NOAException {
    XTextContent textContent = (XTextContent) UnoRuntime.queryInterface(XTextContent.class,xControlShape);
    if(textContent != null)
      return new TextRange(document,textContent.getAnchor());
    return null;
  }
View Full Code Here

       
       
        ITextRange newTextRange = textDocument.getViewCursorService().getViewCursor().getStartTextRange();
        XTextCursor cursor = newTextRange.getXTextRange().getText().createTextCursor();
        cursor.gotoEnd(false);
        newTextRange = new TextRange(textDocument, cursor);
        paragraphs[0].getCloneService().cloneToPosition(new CloneDestinationPosition(newTextRange, newTextRange.getClass()), true, null);
               
        textDocument.close();
        localOfficeApplication.deactivate();
      }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.text.TextRange

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.