Package com.sun.star.resource

Examples of com.sun.star.resource.XStringResourceWithLocation


    }

    public String getDialogPropertyValue( String sDialog, String name){
        String result = null;
        String m_resRootUrl = getPackageLocation() + "/dialogs/";
        XStringResourceWithLocation xResources = null;
        try {
            xResources = StringResourceWithLocation.create(m_xContext, m_resRootUrl, true, getController().getLocation(), sDialog, "", null);
        } catch (IllegalArgumentException ex) {
              ex.printStackTrace();
        }
        // map properties
        if(xResources != null){
            String[] ids = xResources.getResourceIDs();
            for (int i = 0; i < ids.length; i++) {
                if(ids[i].contains(name))
                    result = xResources.resolveString(ids[i]);
            }
        }
        return result;
    }
View Full Code Here


   
    public String getDialogPropertyValue(String name){
        String result = null;
        try {
            String m_resRootUrl = getPackageLocation() + "/dialogs/";
            XStringResourceWithLocation xResources = StringResourceWithLocation.create(m_xContext, m_resRootUrl, true, getController().getLocation(), "WWindow", "", null);
            String[] ids = xResources.getResourceIDs();
     
            for (int i = 0; i < ids.length; i++) {
                if(ids[i].contains(name))
                    result = xResources.resolveString(ids[i]);
            }

        } catch (IllegalArgumentException ex) {
            ex.printStackTrace();
        }
View Full Code Here

        }
    }

    public String getDialogPropertyValue(String dialogName, String propertyName){
        String result = null;
        XStringResourceWithLocation xResources = null;
        String m_resRootUrl = getPackageLocation() + "/dialogs/";
        try {
            xResources = StringResourceWithLocation.create(m_xContext, m_resRootUrl, true, getController().getLocation(), dialogName, "", null);
        } catch (IllegalArgumentException ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        // map properties
        if(xResources != null){
            String[] ids = xResources.getResourceIDs();
            for (int i = 0; i < ids.length; i++)
                if(ids[i].contains(propertyName))
                    result = xResources.resolveString(ids[i]);
        }
        return result;
    }
View Full Code Here

  

    public String getDialogPropertyValue(String dialogName, String propertyName){
        String result = null;
        XStringResourceWithLocation xResources = null;
        String resRootUrl = m_xPIP.getPackageLocation("oxygenoffice.extensions.smart.SmART") + "/dialogs/";
        try {
            xResources = StringResourceWithLocation.create(m_xContext, resRootUrl, true, getLocation(), dialogName, "", null);
        } catch (IllegalArgumentException ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        if(xResources != null){
            String[] ids = xResources.getResourceIDs();
            for (int i = 0; i < ids.length; i++)
                if(ids[i].contains(propertyName))
                    result = xResources.resolveString(ids[i]);
        }
        return result;
    }
View Full Code Here

        return xDialogProv;
    }

    public String getDialogPropertyValue(String dialogName, String propertyName){
        String result = null;
        XStringResourceWithLocation xResources = null;
        String m_resRootUrl = getPackageLocation() + "/dialogs/";
        try {
            xResources = StringResourceWithLocation.create(m_xContext, m_resRootUrl, true, getController().getLocation(), dialogName, "", null);
        } catch (IllegalArgumentException ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        // map properties
        if(xResources != null){
            String[] ids = xResources.getResourceIDs();
            for (int i = 0; i < ids.length; i++)
                if(ids[i].contains(propertyName))
                    result = xResources.resolveString(ids[i]);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of com.sun.star.resource.XStringResourceWithLocation

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.