Examples of XFormsSupplier


Examples of com.sun.star.form.XFormsSupplier

    /* ------------------------------------------------------------------ */
    /** retrieves the root of the hierarchy of form components
    */
    protected XNameContainer getFormComponentTreeRoot( ) throws com.sun.star.uno.Exception
    {
        XFormsSupplier xSuppForms = (XFormsSupplier)UnoRuntime.queryInterface(
            XFormsSupplier.class, getMainDrawPage( ) );

        XNameContainer xFormsCollection = null;
        if ( null != xSuppForms )
        {
            xFormsCollection = xSuppForms.getForms();
        }
        return xFormsCollection;
    }
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

    }

    /* ------------------------------------------------------------------ */
    public FormComponent( XDrawPage drawPage )
    {
        XFormsSupplier supp = (XFormsSupplier)UnoRuntime.queryInterface(
            XFormsSupplier.class, drawPage );
        m_component = supp.getForms();

        m_nameAccess = (XNameAccess)m_component;
        m_indexAccess = (XIndexAccess)UnoRuntime.queryInterface(
            XIndexAccess.class, m_component );
        m_child = (XChild)UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

    /* ------------------------------------------------------------------ */
    /** retrieves the root of the hierarchy of form components
    */
    protected XNameContainer getFormComponentTreeRoot( ) throws com.sun.star.uno.Exception
    {
        XFormsSupplier xSuppForms = (XFormsSupplier)UnoRuntime.queryInterface(
            XFormsSupplier.class, getMainDrawPage( ) );

        XNameContainer xFormsCollection = null;
        if ( null != xSuppForms )
        {
            xFormsCollection = xSuppForms.getForms();
        }
        return xFormsCollection;
    }
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

    }

    /* ------------------------------------------------------------------ */
    public FormComponent( XDrawPage drawPage )
    {
        XFormsSupplier supp = (XFormsSupplier)UnoRuntime.queryInterface(
            XFormsSupplier.class, drawPage );
        m_component = supp.getForms();

        m_nameAccess = (XNameAccess)m_component;
        m_indexAccess = (XIndexAccess)UnoRuntime.queryInterface(
            XIndexAccess.class, m_component );
        m_child = (XChild)UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

   * @date 26.01.2007
   */
  public IForm[] getForms(String formName) throws NOAException {
    try {
      if (formName != null) {
        XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime
            .queryInterface(XFormsSupplier.class, xDrawPage);
        if (formsSupplier != null) {
          XNameContainer nameContainer = formsSupplier.getForms();
          XIndexContainer indexContainer = (XIndexContainer) UnoRuntime
              .queryInterface(XIndexContainer.class,
                  nameContainer);
          int len = indexContainer.getCount();
          List forms = new ArrayList();
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

   */
  public XEventAttacherManager getXEventAttacherManager(IForm form)
      throws NOAException {
    try {
      if (form != null) {
        XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime
            .queryInterface(XFormsSupplier.class, xDrawPage);
        if (formsSupplier != null) {
          XNameContainer nameContainer = formsSupplier.getForms();
          XIndexContainer indexContainer = (XIndexContainer) UnoRuntime
              .queryInterface(XIndexContainer.class,
                  nameContainer);
          int len = indexContainer.getCount();
          for (int i = 0; i < len; i++) {
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

   */
  public int getIndexInForm(IForm form, IFormComponent formComponent)
      throws NOAException {
    try {
      if (form != null && formComponent != null) {
        XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime
            .queryInterface(XFormsSupplier.class, xDrawPage);
        if (formsSupplier != null) {
          XNameContainer nameContainer = formsSupplier.getForms();
          XIndexContainer indexContainer = (XIndexContainer) UnoRuntime
              .queryInterface(XIndexContainer.class,
                  nameContainer);
          int len = indexContainer.getCount();
          for (int i = 0; i < len; i++) {
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

  public boolean hasForms() throws NOAException {
    XFormsSupplier2 formsSupplier2 = ((XFormsSupplier2) UnoRuntime
        .queryInterface(XFormsSupplier2.class, xDrawPage));
    if (formsSupplier2 != null)
      return formsSupplier2.hasForms();
    XFormsSupplier formsSupplier = ((XFormsSupplier) UnoRuntime
        .queryInterface(XFormsSupplier.class, xDrawPage));
    if (formsSupplier != null)
      return formsSupplier.getForms().hasElements();
    return false;
  }
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

   * @date 26.01.2007
   */
  public IForm[] getForms(String formName) throws NOAException {
    try {
      if(formName != null) {
        XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime.queryInterface(XFormsSupplier.class, xDrawPage);
        if(formsSupplier != null) {
          XNameContainer nameContainer = formsSupplier.getForms();
          XIndexContainer indexContainer = (XIndexContainer) UnoRuntime.queryInterface(XIndexContainer.class, nameContainer);
          int len = indexContainer.getCount();
          List forms = new ArrayList();
          for(int i = 0; i < len; i++) {
            Object tmpForm = indexContainer.getByIndex(i);
View Full Code Here

Examples of com.sun.star.form.XFormsSupplier

   * @date 26.01.2007
   */
  public XEventAttacherManager getXEventAttacherManager(IForm form) throws NOAException {
    try {
      if(form != null) {
        XFormsSupplier formsSupplier = (XFormsSupplier) UnoRuntime.queryInterface(XFormsSupplier.class, xDrawPage);
        if(formsSupplier != null) {
          XNameContainer nameContainer = formsSupplier.getForms();
          XIndexContainer indexContainer = (XIndexContainer) UnoRuntime.queryInterface(XIndexContainer.class, nameContainer);
          int len = indexContainer.getCount();
          for(int i = 0; i < len; i++) {
            XForm tmpForm = (XForm) UnoRuntime.queryInterface(XForm.class, indexContainer.getByIndex(i));
            if(tmpForm != null && UnoRuntime.areSame(form.getXFormComponent(),tmpForm)) {
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.