String obj = (String) tEnv.getObjRelation("NoPos"); if (obj != null) {
log.println("Can't be used with "+obj);
result = true;
tRes.tested("getPosition()", result); return;
}
log.println("get the position");
pOld = oObj.getPosition();
result = true;
String obj = (String) tEnv.getObjRelation("NoSetSize"); if (obj != null) {
log.println("Can't be used with " + obj);
tRes.tested("setSize()", true); return;
} // get the current thread's holder
sNew = new Size(sOld.Width + 10,sOld.Height + 10) ;
//set new size
log.println("change the size"); try {
oObj.setSize(sNew);
} catch (com.sun.star.beans.PropertyVetoException e) {
log.println("Exception while calling the method :" + e);
result = true ;
}
//errors in calculation from points/twips less than 1 are acceptable
result &= (sNew.Height-gSize.Height <= 2) && (sNew.Width-gSize.Width <= 2);
if (result && ((sNew.Height-gSize.Height != 0) || (sNew.Width-gSize.Width != 0))){
log.println("NOTE: there is a difference between the expected and the gotten value. " + "This might be ok because of problems in calculation from points <-> twips");
}
tRes.tested("setSize()", result);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.