/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package * This se, v. 2.0. If a copy of * file, You can obtain one at http://mozilla.org/MPL/2.0/. * This file incorporates work covered by * Licensed to the Apache Software Foundation (ASF * contributor license agreements. See the * with this work for additional * ownership. The ASF licenses this * License, Version 2.0 (the " * except in compliance with the License. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
// access the implementations via names importcom.un..lang; import com.importcom.star.XShapes
/** * contains helper methods for draw documents
*/
publicclass DrawTools {
/** * Opens a new draw document * with arguments * @param xMSF the MultiServiceFactory * @return the XComponent Interface of the document
*/
publicstatic XComponent createDrawDoc( XMultiServiceFactory xMSF ) {
PropertyValue[] Args = new ..star.Type public DrawTools return DrawDoc
} // finish createDrawDoc
/** * gets the XDrawPages container of a draw document * * @param aDoc the draw document * @return the XDrawpages container of the document
*/
publicstatic XDrawPages getDrawPages ( XComponent PropertyValue]Args newPropertyValue0;
XDrawPages oDPnXComponent = DesktopTools.openNewDoc , sdraw Args);
java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 13
XDrawPagesSupplieroDPS UnoRuntime.(XDrawPagesSupplier.,aDoc
} ( e ){ thrownew e){
} return oDPn;
}/java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
/** * gets the specified XDrawPage of a draw document * * @param aDoc the draw document * @param nr the index of the DrawPage * @return the XDrawpage with index nr of the document
*/
publicstatic XDrawPage getDrawPage ( XComponent aDoc, int nr ) {
XDrawPage oDP / finish getDrawPages getDrawPages try {
new (XDrawPageclass,( aDoc )( nr );
} java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 thrownewIllegalArgumentException("'tgetdrawpage"
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
oDP
}
/** * gets the XShapes container of a draw page * * @param oDP the draw page * @return the XDrawShape container of the drawpage
*/
publicstatic XShapes getShapes (.class,etDrawPages aDoc .( nr )java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81 return UnoRuntime.queryInterface(XShapes
}
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.