Package ag.ion.bion.officelayer.text

Examples of ag.ion.bion.officelayer.text.ITextDocumentTextShape


      xProps.setPropertyValue("HoriOrient", Short.valueOf(textInfo.getHorizontalAlignment()));
      xProps.setPropertyValue("VertOrient", Short.valueOf(textInfo.getVerticalAlignment()));
      xProps.setPropertyValue("BackColor", new Integer(0xffffffff));
      xProps.setPropertyValue("BackColorTransparency", new Short(( short ) 100));

      ITextDocumentTextShape textDocumentTextShape = new TextDocumentTextShape(
          textDocument, xTextShape, textInfo);

      ////////
      XText xShapeText = ( XText ) UnoRuntime.queryInterface(XText.class, textShape);
      textDocumentTextShape.setXText(xShapeText);
      ////////
     
      if (textShapeToTextShapeIds == null)
        textShapeToTextShapeIds = new HashMap<ITextDocumentTextShape, String>();
      textShapeToTextShapeIds.put(textDocumentTextShape, tempId);
View Full Code Here


    ITextDocument textDocument = (ITextDocument) ooDocument.getDocument();
    ITextRange textRange = position.getTextRange();

    ITextContentService textContentService = textDocument.getTextService().getTextContentService();

    ITextDocumentTextShape textDocumentTextShape = null;
    try {
      textDocumentTextShape = textContentService.constructNewTextShape(textInfo);
      textContentService.insertTextContent(textRange, textDocumentTextShape);
      insertRenderedRTF(textDocument, textDocumentTextShape, textInfo);

    } catch (TextException e) {
      textDocumentTextShape = null;
      e.printStackTrace();
    }

    if (textDocumentTextShape == null)
      return null;

    String id = textInfo.getID();

    setXName(textDocumentTextShape.getXTextContent(), id);
    return id;
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.text.ITextDocumentTextShape

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.