Examples of XVclWindowPeer


Examples of com.sun.star.awt.XVclWindowPeer

            //load default text document to get an active frame
            xComp = oMessageBox.createDefaultTextDocument();
           
            XWindowPeer xWindowPeer = oMessageBox.getWindowPeerOfFrame(xComp);
            if (xWindowPeer != null) {
                XVclWindowPeer xVclWindowPeer = (XVclWindowPeer) UnoRuntime.queryInterface(XVclWindowPeer.class, xWindowPeer);
                boolean bisHighContrast = oMessageBox.isHighContrastModeActivated(xVclWindowPeer);
                oMessageBox.showErrorMessageBox(xWindowPeer, "My Sampletitle", "HighContrastMode is enabled: " + bisHighContrast);
            } else{
                System.out.println("Could not retrieve current frame");
            }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

            //load default text document to get an active frame
            xComp = oMessageBox.createDefaultTextDocument();
           
            XWindowPeer xWindowPeer = oMessageBox.getWindowPeerOfFrame(xComp);
            if (xWindowPeer != null) {
                XVclWindowPeer xVclWindowPeer = (XVclWindowPeer) UnoRuntime.queryInterface(XVclWindowPeer.class, xWindowPeer);
                boolean bisHighContrast = oMessageBox.isHighContrastModeActivated(xVclWindowPeer);
                oMessageBox.showErrorMessageBox(xWindowPeer, "My Sampletitle", "HighContrastMode is enabled: " + bisHighContrast);
            } else{
                System.out.println("Could not retrieve current frame");
            }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

  private synchronized void aquireSystemWindow()
  {
    if ( !bPeer )
    {
      // set real parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(getNativeWindow()) );
      bPeer = true;

             // show document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( true );
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

             // hide document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( false );

      // set null parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(0) );
      bPeer = false;
    }
  }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

            //load default text document to get an active frame
            xComp = oMessageBox.createDefaultTextDocument();
           
            XWindowPeer xWindowPeer = oMessageBox.getWindowPeerOfFrame(xComp);
            if (xWindowPeer != null) {
                XVclWindowPeer xVclWindowPeer = (XVclWindowPeer) UnoRuntime.queryInterface(XVclWindowPeer.class, xWindowPeer);
                boolean bisHighContrast = oMessageBox.isHighContrastModeActivated(xVclWindowPeer);
                oMessageBox.showErrorMessageBox(xWindowPeer, "My Sampletitle", "HighContrastMode is enabled: " + bisHighContrast);
            } else{
                System.out.println("Could not retrieve current frame");
            }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

  private void aquireSystemWindow()
  {
    if ( !bPeer )
    {
      // set real parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(getNativeWindow()) );
      bPeer = true;

             // show document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( true );
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

             // hide document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( false );

      // set null parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(0) );
      bPeer = false;
    }
  }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

  private synchronized void aquireSystemWindow()
  {
    if ( !bPeer )
    {
      // set real parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);

      xVclWindowPeer.setProperty( "PluginParent", getWrappedWindowHandle());
      bPeer = true;
            // show document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( true );
    }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

             // hide document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( false );

      // set null parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(0) );
      bPeer = false;
    }
  }
View Full Code Here

Examples of com.sun.star.awt.XVclWindowPeer

  private void aquireSystemWindow()
  {
    if ( !bPeer )
    {
      // set real parent
      XVclWindowPeer xVclWindowPeer = (XVclWindowPeer)UnoRuntime.queryInterface(
                               XVclWindowPeer.class, mWindow);
      xVclWindowPeer.setProperty( "PluginParent", new Long(getNativeWindow()) );
      bPeer = true;

             // show document window
      XWindow aWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, mWindow);
      aWindow.setVisible( true );
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.