Examples of XTextContent


Examples of com.sun.star.text.XTextContent

    try {
      ServiceObj = docMSF.createInstance( service );
    }
    catch( com.sun.star.uno.Exception cssuE ){
    }
    XTextContent PG = (XTextContent)UnoRuntime.queryInterface( ifcClass,
                                ServiceObj );
    return PG;
  }
View Full Code Here

Examples of com.sun.star.text.XTextContent

    protected synchronized TestEnvironment createTestEnvironment(
        TestParameters Param, PrintWriter log) {

        XInterface oObj = null;
        XText oText = null;
        XTextContent oContent = null;
        XInterface aField = null;
        XTextFieldsSupplier xTextFieldsSupp = null;

        try {
            // we want to create an instance of ScCellFieldObj.
View Full Code Here

Examples of com.sun.star.text.XTextContent

        oObj = (XInterface) oGObject;

        XText the_text = xTextDoc.getText();
        XTextCursor the_cursor = the_text.createTextCursor();
        XTextContent the_content = (XTextContent)
                            UnoRuntime.queryInterface(XTextContent.class,oObj);

       log.println( "inserting graphic" );
        try {
            the_text.insertTextContent(the_cursor,the_content,true);
View Full Code Here

Examples of com.sun.star.text.XTextContent

        XMultiServiceFactory oDocMSF = (XMultiServiceFactory)
            UnoRuntime.queryInterface(
                XMultiServiceFactory.class,
                xSpreadsheetDoc );

        XTextContent the_Field = null;
        try {
            oObj = (XInterface)
                oDocMSF.createInstance( "com.sun.star.text.TextField.Time" );

            the_Field = (XTextContent)
View Full Code Here

Examples of com.sun.star.text.XTextContent

                String sTableName = sTableNames[i];
                if (JavaTools.FieldInList(sLayoutTableNames, sTableName) > -1)
                {
                    if (!sTableName.equals(sLayoutTableNames[0]))
                    {
                        XTextContent xTextContent = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, oTextTableHandler.getByName(sTableName));
                        boolean bleaveloop = false;
                        while (!bleaveloop)
                        {
                            try
                            {
View Full Code Here

Examples of com.sun.star.text.XTextContent

        {
            XNamed xNamedTextSection = null;
            try
            {
                XInterface xTextSection = (XInterface) getDocumentServiceFactory().createInstance("com.sun.star.text.TextSection");
                XTextContent xTextSectionContent = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, xTextSection);
                xNamedTextSection = (XNamed) UnoRuntime.queryInterface(XNamed.class, xTextSection);
                xTextCursor.gotoEnd(false);
                xTextCursor.getText().insertTextContent(xTextCursor, xTextSectionContent, true);
                Helper.setUnoPropertyValue(xTextSection, "LinkRegion", sLinkRegion);
                if (CurDBColumn != null)
View Full Code Here

Examples of com.sun.star.text.XTextContent

    protected synchronized TestEnvironment createTestEnvironment(
        TestParameters Param, PrintWriter log) {

        XInterface oObj = null;
        XText oText = null;
        XTextContent oContent = null;
        XInterface aField = null;

        try {
            // we want to create an instance of ScCellFieldObj.
            // to do this we must get an MultiServiceFactory.
View Full Code Here

Examples of com.sun.star.text.XTextContent

            XSpreadsheetDocument xSheetDoc = (XSpreadsheetDocument)tEnv.getObjRelation("SPREADSHEET");

            XInterface oObj = null;
            XText oText = null;
            XTextContent oContent = null;
            XInterface aField = null;

            try {
                // we want to create an instance of ScCellFieldObj.
                // to do this we must get an MultiServiceFactory.
View Full Code Here

Examples of com.sun.star.text.XTextContent

            TestParameters tParam, PrintWriter log ) throws StatusException {
        XInterface oObj = null;
        SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );

        log.println( "creating a test environment" );
        XTextContent xTC = null;

        try {
            xTC = SOF.createIndex(xTextDoc,"com.sun.star.text.ContentIndex");
        }
        catch ( com.sun.star.uno.Exception e) {
View Full Code Here

Examples of com.sun.star.text.XTextContent

            throw new StatusException( "Couldn't get ReferenceMark", e);
        }

        XNamed oObjN = (XNamed) UnoRuntime.queryInterface(XNamed.class, oObj);
        oObjN.setName(Name);
        XTextContent oObjTC = (XTextContent)
            UnoRuntime.queryInterface(XTextContent.class, oObj);

        XTextCursor oCursor = oText.createTextCursor();
        try {
            oText.insertTextContent(oCursor, oObjTC, false);
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.