Examples of XDispatchProviderInterception


Examples of com.sun.star.frame.XDispatchProviderInterception

        Interceptor aInterceptor = new Interceptor();
        XDispatchProviderInterceptor xInterceptor = UnoRuntime.queryInterface(XDispatchProviderInterceptor.class, aInterceptor);

        XFrame xFrame = impl_createNewFrame();
        XDispatchProviderInterception xInterception = UnoRuntime.queryInterface(XDispatchProviderInterception.class, xFrame);

        xInterception.registerDispatchProviderInterceptor(xInterceptor);
        impl_closeFrame(xFrame);

        int nRegCount = aInterceptor.getRegistrationCount();
        boolean bIsRegistered = aInterceptor.isRegistered();
View Full Code Here

Examples of com.sun.star.frame.XDispatchProviderInterception

        System.out.println("create and initialize frame ...");
        XFrame xFrame = impl_createNewFrame();
        impl_loadIntoFrame(xFrame, "private:factory/swriter", null);

        XDispatchProviderInterception xInterception = UnoRuntime.queryInterface(XDispatchProviderInterception.class, xFrame);

        System.out.println("register interceptor ...");
        xInterception.registerDispatchProviderInterceptor(xInterceptor);

        System.out.println("deregister interceptor ...");
        xInterception.releaseDispatchProviderInterceptor(xInterceptor);
    }
View Full Code Here

Examples of com.sun.star.frame.XDispatchProviderInterception

   * @author Markus Kr�ger
   * @date 07.07.2006
   */
  public void updateDispatches() {
    if(dispatchProviderInterceptor != null) {
      XDispatchProviderInterception xDispatchProviderInterception = (XDispatchProviderInterception)UnoRuntime.queryInterface(XDispatchProviderInterception.class, xFrame);
      if(xDispatchProviderInterception != null) {
        xDispatchProviderInterception.releaseDispatchProviderInterceptor(dispatchProviderInterceptor);
        dispatchProviderInterceptor = null;
      }
    }
     
    if(dispatchProviderInterceptor == null) {
      XDispatchProviderInterception xDispatchProviderInterception = (XDispatchProviderInterception)UnoRuntime.queryInterface(XDispatchProviderInterception.class, xFrame);
      if(xDispatchProviderInterception != null) {
        dispatchProviderInterceptor = new DispatchProviderInterceptor();
        xDispatchProviderInterception.registerDispatchProviderInterceptor(dispatchProviderInterceptor);
      }
    }   
  } 
View Full Code Here

Examples of com.sun.star.frame.XDispatchProviderInterception

   * @author Markus Kr�ger
   * @date 07.07.2006
   */
  public void updateDispatches() {
    if (dispatchProviderInterceptor != null) {
      XDispatchProviderInterception xDispatchProviderInterception = (XDispatchProviderInterception) UnoRuntime
          .queryInterface(XDispatchProviderInterception.class, xFrame);
      if (xDispatchProviderInterception != null) {
        xDispatchProviderInterception
            .releaseDispatchProviderInterceptor(dispatchProviderInterceptor);
        dispatchProviderInterceptor = null;
      }
    }

    if (dispatchProviderInterceptor == null) {
      XDispatchProviderInterception xDispatchProviderInterception = (XDispatchProviderInterception) UnoRuntime
          .queryInterface(XDispatchProviderInterception.class, xFrame);
      if (xDispatchProviderInterception != null) {
        dispatchProviderInterceptor = new DispatchProviderInterceptor();
        xDispatchProviderInterception
            .registerDispatchProviderInterceptor(dispatchProviderInterceptor);
      }
    }
  }
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.