Examples of XTextField


Examples of com.sun.star.text.XTextField

          .getTextFields();
      XEnumeration xEnumeration = xEnumerationAccess.createEnumeration();
      ArrayList arrayList = new ArrayList();
      while (xEnumeration.hasMoreElements()) {
        Object object = xEnumeration.nextElement();
        XTextField xTextField = (XTextField) UnoRuntime.queryInterface(
            XTextField.class, object);
        arrayList.add(new TextField(textDocument, xTextField));
      }
      return (ITextField[]) arrayList.toArray(new ITextField[arrayList
          .size()]);
View Full Code Here

Examples of com.sun.star.text.XTextField

          .getTextFields();
      XEnumeration xEnumeration = xEnumerationAccess.createEnumeration();
      ArrayList arrayList = new ArrayList();
      while (xEnumeration.hasMoreElements()) {
        Object object = xEnumeration.nextElement();
        XTextField xTextField = (XTextField) UnoRuntime.queryInterface(
            XTextField.class, object);
        XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface(
            XServiceInfo.class, xTextField);
        if (xInfo
            .supportsService(ITextFieldService.PLACEHOLDER_TEXTFIELD_ID)) {
View Full Code Here

Examples of com.sun.star.text.XTextField

          .queryInterface(XMultiServiceFactory.class, textDocument
              .getXTextDocument());
      Object textField = xMultiServiceFactory
          .createInstance(ITextFieldService.PLACEHOLDER_TEXTFIELD_ID);

      XTextField xTextField = (XTextField) UnoRuntime.queryInterface(
          XTextField.class, textField);

      XPropertySet xPropertySet = (XPropertySet) UnoRuntime
          .queryInterface(XPropertySet.class, xTextField);
View Full Code Here

Examples of com.sun.star.text.XTextField

    XTextRangeCompare xTextRangeCompare = (XTextRangeCompare)UnoRuntime.queryInterface(XTextRangeCompare.class, xTextRange.getText());
    try {     
      while(xTextRangeCompare.compareRegionEnds(textCursor.getStart(), xTextRange.getEnd()) != -1) {
        XPropertySet propertySet = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, textCursor);
        Any any = (Any)propertySet.getPropertyValue("TextField");
        XTextField xTextField = (XTextField)any.getObject()
        if(xTextField != null)
          arrayList.add(new TextField(textDocument, xTextField));
        if(!textCursor.goRight((short)1, false))
          break;
      }
View Full Code Here

Examples of com.sun.star.text.XTextField

   * @param xEventListener the event listener wrapper to be added
   *
   * @author Sebastian R�sgen
   */
  private void addEventListener(XEventListener xEventListener) {
    XTextField xTextField = (XTextField)UnoRuntime.queryInterface(XTextField.class, xDependentTextField);
    xTextField.addEventListener(wrapper);
  }
View Full Code Here

Examples of com.sun.star.text.XTextField

   * @param xEventListener the event listener wrapper to be removed
   *
   * @author Sebastian R�sgen
   */
  private void removeEventListener(XEventListener xEventListener) {
    XTextField xTextField = (XTextField)UnoRuntime.queryInterface(XTextField.class, xDependentTextField);
    xTextField.removeEventListener(wrapper);
  }
View Full Code Here

Examples of com.sun.star.text.XTextField

    {
        try
        {
            // Use the text document's factory to create a DateTime text field,
            // and access it's XTextField interface
            XTextField xDateField = (XTextField) UnoRuntime.queryInterface (
                XTextField.class, mxDocFactory.createInstance (
                    "com.sun.star.text.TextField.DateTime" ) );

            // Insert it at the end of the document
            mxDocText.insertTextContent ( mxDocText.getEnd(), xDateField, false );
View Full Code Here

Examples of com.sun.star.text.XTextField

                        Object objectTextField =
                            xMSFTextField.createInstance(
                                "com.sun.star.text.TextField.URL" );
                       
                        // Querying for the interface XTextField
                        XTextField xtextfield = ( XTextField )
                            UnoRuntime.queryInterface( XTextField.class,
                                                       objectTextField );
                       
                        // Querying for the interface XPropertySet
                        XPropertySet xpropertysetTextField = ( XPropertySet )
View Full Code Here

Examples of com.sun.star.text.XTextField

    {
        try
        {
            // Use the text document's factory to create a DateTime text field,
            // and access it's XTextField interface
            XTextField xDateField = (XTextField) UnoRuntime.queryInterface (
                XTextField.class, mxDocFactory.createInstance (
                    "com.sun.star.text.TextField.DateTime" ) );

            // Insert it at the end of the document
            mxDocText.insertTextContent ( mxDocText.getEnd(), xDateField, false );
View Full Code Here

Examples of com.sun.star.text.XTextField

            try
            {
                    // Use the text document's factory to create a DateTime text field,
                    // and access it's
                    // XTextField interface
                    XTextField xDateField = (XTextField) UnoRuntime.queryInterface (
                            XTextField.class, mxDocFactory.createInstance (
                                    "com.sun.star.text.TextField.DateTime" ) );

                    // Insert it at the end of the document
                    mxDocText.insertTextContent ( mxDocText.getEnd(), xDateField, false );
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.