_XStandaloneDocumentInfo.java (ef39d40d) | _XStandaloneDocumentInfo.java (bb6af6bc) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 46 unchanged lines hidden (view full) --- 55 (Status.failed("Relation 'DOCURL' not found")); 56 } 57 } 58 59 String oldProp = null; 60 String newProp = null; 61 /** 62 * Sets new value of the property 'Author' and calls the method. <p> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 46 unchanged lines hidden (view full) --- 55 (Status.failed("Relation 'DOCURL' not found")); 56 } 57 } 58 59 String oldProp = null; 60 String newProp = null; 61 /** 62 * Sets new value of the property 'Author' and calls the method. <p> |
63 * Has <b> OK </b> status if no exception occured. | 63 * Has <b> OK </b> status if no exception occurred. |
64 */ 65 public void _storeIntoURL() { 66 try { 67 oObj.loadFromURL(url); 68 XPropertySet propSet = (XPropertySet) 69 UnoRuntime.queryInterface(XPropertySet.class, oObj); 70 oldProp = (String)propSet.getPropertyValue("Author"); 71 newProp = oldProp + "_"; --- 18 unchanged lines hidden (view full) --- 90 } catch(com.sun.star.beans.PropertyVetoException e) { 91 log.println("Couldn't get/set property 'Author':" + e); 92 tRes.tested("storeIntoURL()", false); 93 } 94 } 95 96 /** 97 * Calls the method and checks value of the property 'Author'. <p> | 64 */ 65 public void _storeIntoURL() { 66 try { 67 oObj.loadFromURL(url); 68 XPropertySet propSet = (XPropertySet) 69 UnoRuntime.queryInterface(XPropertySet.class, oObj); 70 oldProp = (String)propSet.getPropertyValue("Author"); 71 newProp = oldProp + "_"; --- 18 unchanged lines hidden (view full) --- 90 } catch(com.sun.star.beans.PropertyVetoException e) { 91 log.println("Couldn't get/set property 'Author':" + e); 92 tRes.tested("storeIntoURL()", false); 93 } 94 } 95 96 /** 97 * Calls the method and checks value of the property 'Author'. <p> |
98 * Has <b> OK </b> status if no exception occured and value of the property | 98 * Has <b> OK </b> status if no exception occurred and value of the property |
99 * 'Author' is equal to value that was set in the method 100 * <code>storeIntoURL</code>. 101 */ 102 public void _loadFromURL() { 103 requiredMethod("storeIntoURL()"); 104 try { 105 oObj.loadFromURL(url); 106 XPropertySet propSet = (XPropertySet) --- 21 unchanged lines hidden --- | 99 * 'Author' is equal to value that was set in the method 100 * <code>storeIntoURL</code>. 101 */ 102 public void _loadFromURL() { 103 requiredMethod("storeIntoURL()"); 104 try { 105 oObj.loadFromURL(url); 106 XPropertySet propSet = (XPropertySet) --- 21 unchanged lines hidden --- |