Package com.sun.star.frame

Examples of com.sun.star.frame.XLayoutManager


            ((XSelectionSupplier)UnoRuntime.queryInterface(
                    XSelectionSupplier.class,m_xFrame.getController()))
                    .addSelectionChangeListener(selectionChangeListener);

            /* Get UI elements from frames layout manager */
            XLayoutManager xLM = (XLayoutManager) ((Any)(((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,m_xFrame)).getPropertyValue("LayoutManager"))).getObject();
            for (com.sun.star.ui.XUIElement a:Arrays.asList(xLM.getElements())){
                myLogger.log(
                    Level.FINEST, "UIElements " + Arrays.asList(
                        ((XTypeProvider)UnoRuntime.queryInterface(
                        XTypeProvider.class,a.getRealInterface())).getTypes()));
                XWindow2 xw2 = (XWindow2)UnoRuntime.queryInterface(
View Full Code Here


   */
  public ILayoutManager getLayoutManager() throws NOAException {
    try {
      XPropertySet propertySet = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xFrame);
      Object object = propertySet.getPropertyValue("LayoutManager");
      XLayoutManager layoutManager = (XLayoutManager)UnoRuntime.queryInterface(XLayoutManager.class, object);
      if(layoutManager != null)
        return new LayoutManager(layoutManager);
    }
    catch(Throwable throwable) {
      throw new NOAException(throwable);
View Full Code Here

  public ILayoutManager getLayoutManager() throws NOAException {
    try {
      XPropertySet propertySet = (XPropertySet) UnoRuntime
          .queryInterface(XPropertySet.class, xFrame);
      Object object = propertySet.getPropertyValue("LayoutManager");
      XLayoutManager layoutManager = (XLayoutManager) UnoRuntime
          .queryInterface(XLayoutManager.class, object);
      if (layoutManager != null)
        return new LayoutManager(layoutManager);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
View Full Code Here

TOP

Related Classes of com.sun.star.frame.XLayoutManager

Copyright © 2018 www.massapicom. 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.