Examples of XFrames


Examples of com.sun.star.frame.XFrames

        } else {
            XFrame xF = (XFrame) UnoRuntime.queryInterface(XFrame.class, Desktop.getDesktop(xMSF));
            xFrame = xF.findFrame(FrameName, 0);
            if (listener != null) {
                XFramesSupplier xFS = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, xF);
                XFrames xFF = xFS.getFrames();
                xFF.remove(xFrame);
                XDesktop xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, xF);
                xDesktop.addTerminateListener(listener);
            }
        }
        return xFrame;
View Full Code Here

Examples of com.sun.star.frame.XFrames

                                UnoRuntime.queryInterface(
                                XComponentLoader.class, xMSF.createInstance(
                                "com.sun.star.frame.Desktop"));
            XFramesSupplier xFrameSupp = (XFramesSupplier)UnoRuntime.queryInterface(XFramesSupplier.class, xCompLoader);
            // close all existing frames
            XFrames xFrames = xFrameSupp.getFrames();
            XIndexAccess xAcc = (XIndexAccess)UnoRuntime.queryInterface(XIndexAccess.class, xFrames);
            for ( int i=0; i<xAcc.getCount(); i++ ) {
                XCloseable xClose = (XCloseable)UnoRuntime.queryInterface(XCloseable.class, xAcc.getByIndex(i));
                try {
                    if ( xClose != null ) {
View Full Code Here

Examples of com.sun.star.frame.XFrames

            xFrame.setName("ObjectInspector");
            xFrame.initialize(xWindow);
           
            XFramesSupplier xFramesSup = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, StarDesktop);
           
            XFrames xFrames = xFramesSup.getFrames();
            xFrames.append(xFrame);
           
           
            log.println("attach ObjectInspector to floating frame...");
           
            XInitialization xOII = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xInspectorModel);
View Full Code Here

Examples of com.sun.star.frame.XFrames

      object  = mServiceFactory.createInstance( "com.sun.star.frame.Frame");
    mFrame = (XFrame)UnoRuntime.queryInterface( XFrame.class, object );
    mFrame.initialize(window);
    mFrame.setName( mFrame.toString() );
    mDesktop = mServiceFactory.createInstance( "com.sun.star.frame.Desktop");
    XFrames xFrames = ( (XFramesSupplier)UnoRuntime.queryInterface(
        XFramesSupplier.class, mDesktop ) ).getFrames();
    xFrames.append( mFrame );

    // Initializes the slot command execution environment.
    object  = mServiceFactory.createInstance( "com.sun.star.util.URLTransformer");
    mURLTransformer  = (XURLTransformer)UnoRuntime.queryInterface(
      XURLTransformer.class, object);
View Full Code Here

Examples of com.sun.star.frame.XFrames

            xFrame.setName("ObjectInspector");
            xFrame.initialize(xWindow);
           
            XFramesSupplier xFramesSup = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, StarDesktop);
           
            XFrames xFrames = xFramesSup.getFrames();
            xFrames.append(xFrame);
           
           
            log.println("attach ObjectInspector to floating frame...");
           
            XInitialization xOII = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xInspectorModel);
View Full Code Here

Examples of com.sun.star.frame.XFrames

            XFrame xF = UnoRuntime.queryInterface(XFrame.class, Desktop.getDesktop(xMSF));
            xFrame = xF.findFrame(FrameName, 0);
            if (listener != null)
            {
                XFramesSupplier xFS = UnoRuntime.queryInterface(XFramesSupplier.class, xF);
                XFrames xFF = xFS.getFrames();
                xFF.remove(xFrame);
                XDesktop xDesktop = UnoRuntime.queryInterface(XDesktop.class, xF);
                xDesktop.addTerminateListener(listener);
            }
        }
        return xFrame;
View Full Code Here

Examples of com.sun.star.frame.XFrames

        {
            // create component loaader
            XComponentLoader xCompLoader = UnoRuntime.queryInterface(XComponentLoader.class, xMSF.createInstance("com.sun.star.frame.Desktop"));
            XFramesSupplier xFrameSupp = UnoRuntime.queryInterface(XFramesSupplier.class, xCompLoader);
            // close all existing frames
            XFrames xFrames = xFrameSupp.getFrames();
            XIndexAccess xAcc = UnoRuntime.queryInterface(XIndexAccess.class, xFrames);
            for (int i = 0; i < xAcc.getCount(); i++)
            {
                XCloseable xClose = UnoRuntime.queryInterface(XCloseable.class, xAcc.getByIndex(i));
                try
View Full Code Here

Examples of com.sun.star.frame.XFrames

            xFrame.setName("ObjectInspector");
            xFrame.initialize(xWindow);
           
            XFramesSupplier xFramesSup = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, StarDesktop);
           
            XFrames xFrames = xFramesSup.getFrames();
            xFrames.append(xFrame);
           
           
            log.println("attach ObjectInspector to floating frame...");
           
            XInitialization xOII = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xInspectorModel);
View Full Code Here

Examples of com.sun.star.frame.XFrames

            XFrame xF = (XFrame) UnoRuntime.queryInterface(XFrame.class, Desktop.getDesktop(xMSF));
            xFrame = xF.findFrame(FrameName, 0);
            if (listener != null)
            {
                XFramesSupplier xFS = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, xF);
                XFrames xFF = xFS.getFrames();
                xFF.remove(xFrame);
                XDesktop xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, xF);
                xDesktop.addTerminateListener(listener);
            }
        }
        return xFrame;
View Full Code Here

Examples of com.sun.star.frame.XFrames

                                UnoRuntime.queryInterface(
                                XComponentLoader.class, xMSF.createInstance(
                                "com.sun.star.frame.Desktop"));
            XFramesSupplier xFrameSupp = (XFramesSupplier)UnoRuntime.queryInterface(XFramesSupplier.class, xCompLoader);
            // close all existing frames
            XFrames xFrames = xFrameSupp.getFrames();
            XIndexAccess xAcc = (XIndexAccess)UnoRuntime.queryInterface(XIndexAccess.class, xFrames);
            for ( int i=0; i<xAcc.getCount(); i++ ) {
                XCloseable xClose = (XCloseable)UnoRuntime.queryInterface(XCloseable.class, xAcc.getByIndex(i));
                try {
                    if ( xClose != null ) {
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.