Examples of supportsService()


Examples of com.sun.star.lang.XServiceInfo.supportsService()

            return "";
        } else if (sInfo.supportsService("com.sun.star.sheet.SpreadsheetDocument")) {
        return "scalc";
        } else if (sInfo.supportsService("com.sun.star.text.TextDocument")) {
        return "swriter";
        } else if (sInfo.supportsService("com.sun.star.drawing.DrawingDocument")) {
        return "sdraw";
        } else if (sInfo.supportsService("com.sun.star.presentation.PresentationDocument")) {
        return "simpress";
        } else if (sInfo.supportsService("com.sun.star.formula.FormulaProperties")) {
        return "smath";
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

        return "scalc";
        } else if (sInfo.supportsService("com.sun.star.text.TextDocument")) {
        return "swriter";
        } else if (sInfo.supportsService("com.sun.star.drawing.DrawingDocument")) {
        return "sdraw";
        } else if (sInfo.supportsService("com.sun.star.presentation.PresentationDocument")) {
        return "simpress";
        } else if (sInfo.supportsService("com.sun.star.formula.FormulaProperties")) {
        return "smath";
        } else {
            return null;
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

        return "swriter";
        } else if (sInfo.supportsService("com.sun.star.drawing.DrawingDocument")) {
        return "sdraw";
        } else if (sInfo.supportsService("com.sun.star.presentation.PresentationDocument")) {
        return "simpress";
        } else if (sInfo.supportsService("com.sun.star.formula.FormulaProperties")) {
        return "smath";
        } else {
            return null;
        }
    }
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

    {
        XComponent document = implLoadAsComponent( orb, documentOrFactoryURL );

        XServiceInfo xSI = (XServiceInfo)UnoRuntime.queryInterface( XServiceInfo.class,
            document );
        if ( xSI.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
            return new SpreadsheetDocument( orb, document );
        return new DocumentHelper( orb, document );
    }

    /* ------------------------------------------------------------------ */
 
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

    public DocumentType classify( )
    {
        XServiceInfo xSI = (XServiceInfo)UnoRuntime.queryInterface(
            XServiceInfo.class, m_documentComponent );

        if ( xSI.supportsService( "com.sun.star.text.TextDocument" ) )
            return DocumentType.WRITER;
        else if ( xSI.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
            return DocumentType.CALC;
        else if ( xSI.supportsService( "com.sun.star.drawing.DrawingDocument" ) )
            return DocumentType.DRAWING;
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

        XServiceInfo xSI = (XServiceInfo)UnoRuntime.queryInterface(
            XServiceInfo.class, m_documentComponent );

        if ( xSI.supportsService( "com.sun.star.text.TextDocument" ) )
            return DocumentType.WRITER;
        else if ( xSI.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
            return DocumentType.CALC;
        else if ( xSI.supportsService( "com.sun.star.drawing.DrawingDocument" ) )
            return DocumentType.DRAWING;

        return DocumentType.UNKNOWN;
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

        if ( xSI.supportsService( "com.sun.star.text.TextDocument" ) )
            return DocumentType.WRITER;
        else if ( xSI.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
            return DocumentType.CALC;
        else if ( xSI.supportsService( "com.sun.star.drawing.DrawingDocument" ) )
            return DocumentType.DRAWING;

        return DocumentType.UNKNOWN;
    }
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

    private String getFormatExtension(Object _xComponent /* int _nType*/ )
         {
             String sExtension;
             XServiceInfo xServiceInfo = (XServiceInfo) UnoRuntime.queryInterface( XServiceInfo.class, _xComponent );
             if ( xServiceInfo.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
             {
                 // calc
                 sExtension = ".ods";
             }
             else if (xServiceInfo.supportsService("com.sun.star.text.TextDocument"))
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

             if ( xServiceInfo.supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) )
             {
                 // calc
                 sExtension = ".ods";
             }
             else if (xServiceInfo.supportsService("com.sun.star.text.TextDocument"))
             {
                 //writer
                 sExtension = ".odt";
             }
             else
View Full Code Here

Examples of com.sun.star.lang.XServiceInfo.supportsService()

        XEnumeration xParaEnum = xParaAccess.createEnumeration();
        while (retval == null && xParaEnum.hasMoreElements()){
            Object elt = xParaEnum.nextElement();
            XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface(
                    XServiceInfo.class, elt);
            if (xInfo.supportsService("com.sun.star.text.TextTable")) {
                XTextTable xTable = (XTextTable) UnoRuntime.queryInterface(
                        XTextTable.class, elt);
                if (xTable == table) {
                    if (textRange != null){
//                     elt = xParaEnum.nextElement();
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.