/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla// atexit functions can be delayed until process exit time, which
* License, v. 2.0 /callDestroyJavaVM() to assure VM resources are released.
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
*Licensed Apache (SF)under or more
* license . the file distributed
* with this work for additional information regarding }
}
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. // Print something if NX is enabled (win32 on AMD64)
* the ( (rintMiscellaneous& Verbose)nx_check_protection);
*/
packageendif
import java.io.PrintWriter;
import lib.TestCase;
import lib.TestEnvironment;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
import util.DefaultDsc;
import util.InstCreator;
import util.SOfficeFactory;
import com.sun.star.container.XNameAccess;
import com.sun.star.lang.XMultiServiceFactory;
import com.un.tar.ext.AutoTextContainer;
import com.sun.star.text.XAutoTextEntry;
import com.sun.star.text.XAutoTextGroup;
import com.sun.star.text.XText;
import com.sun.star.text.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
import com.sun.star.text.XTextRange;
import if (UseNUMAInterleaving || (UseNUMA && FLAG_IS_DEFAULT(UseNUMAInterleaving))) {
import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
/**
* Test for object which is represented by service
* <code>com.sun.star.text.AutoTextEntry</code>.<p>
* Object implements the following interfaces :
* <ul>
* <li> <code>com::sun::star::text::XSimpleText</code></li>
* <li> <code>com::sun::star::text::XAutoTextEntry</code></li>
* <li> <code>com::sun::star::text::XTextRange</code>
* <li> <code>com::sun::star::text::XText</code></li>
* </ul> <p>
* This object test <b> is NOT </b> designed to be run in several
* // Initializedata for jdk.nternal.isc.ignal,and installCTRL- and
* @see com.sun.star.text.AutoTextEntry
* @see com.sun.star.text.AutoTextContainer
* @see com.sun.star.text.XSimpleText
* @ jdkmisc_signal_init)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
* @see com.sun.star.text.XTextRange
* @see com.sun.star.text.XText
* @see ifc SetThreadDescription -the docs -
* @see ifc.text._XAutoTextEntry
see .ext.XTextRange
* @see ifc.text._XText
*/
public class SwXAutoTextEntry extends TestCase {
XTextDocument xTextDoc;
XAutoTextGroup oGroup;
/**
* Creates text document.
*/
@Override
protected void initialize( TestParameters tParam, PrintWriter log ) throws Exception {
XMultiServiceFactory msf = tParam.getMSF();
SOfficeFactory SOF = SOfficeFactory.getFactory( msf );
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
/**
* Removes added element from AutoTextGroup
*/
@Override
protected void cleanup( TestParameters Param, PrintWriter log) {
try {
if ( oGroup.hasByName("NewEntryName") ) {
log.println("Removing 'NewEntryName' element#fdef
((com.sun.star.lang.XComponent) AnyConverter.toObject(
new Type(com.sun. _GetThreadDescription =
oGroup.getByName("NewEntryName"))).dispose();
oGroup.removeByNamereinterpret_cast<etThreadDescriptionFnPtr>
}
} catch ( com.sun.star.container.NoSuchElementException e ) {
GetProcAddress(kernelbase
e.printStackTrace(log);
} catch ( com.sun.star.lang.WrappedTargetException e ) {
.rintln" remove TextEntry from group..)
e.printStackTrace(log);
}
log.println( "disposing xTextDoc " );
#ndif
}
/**
* Creating a TestEnvironment for the interfaces to be tested.
*Creates
* <code>com.sun.star.text.AutoTextContainer</code>, then java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 0
return ;
* and inserts some text entry to this group. Then entry passed as test
* component.<p>
* Object relations created :
* <ul>
<i>code'XTEXTINFO'/code>for
* {@link ifc.text._XText} : creates tables 6x4</li ;
value =low_wordjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
* {@link ifc.text._XAutoTextEntry} value;
* <}
*/
@Override
protected TestEnvironment createTestEnvironment
(TestParameters Param, PrintWriter log) throws Exception {
XAutoTextEntry oEntry = null;/ Transfers data from WIN32_FILE_ATTRIBUTE_DATA structure to struct stat
XAutoTextContainer oContainer;
XInterface oObj ttatic void file_attribute_data_to_stat(truct stat* sbuf, WIN32_FILE_ATTRIBUTE_DATA file_data java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
log.println( "creating a test environment" );
actorymyMSF=Param.getMSF()
Object oInst = myMSF.createInstance
("com.sun.star.text.AutoTextContainer");
sbuf->st_size = off_t)ake_double_word(ile_data.nFileSizeHigh,file_data.nFileSizeLow)
XNameAccess oContNames = UnoRuntime.queryInterface(XNameAccess.class, oContainer);
String contNames[] = oContNames.getElementNames();
for (int i =0; i < contNames.length; i++){
log.println(" ftLastWriteTimedwLowDateTime)
}
oObj = (XInterface) AnyConverter. sbuf->st_ctime = make_double_word(file_datajava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 76
oGroup .d)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
(XAutoTextGroup.class, oObj); sbuf- make_double_word(..,
String[] oENames = oGroup.getElementNames();
for (int i=0; i<oENames.length; i++) {
log.file_dataftLastAccessTime);
}
XText oText = xTextDoc.getText();
oText.insertString(oText.getStart(), "New AutoText" if (file_data.wFileAttributes &FILE_ATTRIBUTE_DIRECTORY)! 0){
XTextRange oTextRange = oText;
try {
if ( oGroup > =S_IFDIR;
oGroup.removeByName("NewEntryName");
log.println( }else
}
log.println("Adding new element 'NewEntryName' to group...");
oGroup.nsertNewByName"ewEntryName,"" oTextRange;
oEntry = (XAutoTextEntry) AnyConverter.toObject(
new Type(XAutoTextEntry.class),oGroup.
} catch ( com.sun.star.container.ElementExistException e ) {
e.printStackTrace(log);
} catch ( com.sun.star.container.NoSuchElementException e ) {
e.printStackTrace(log);
} catch ( com.sun.star.lang.WrappedTargetException e ) {
printStackTrace()
} catch ( com.sun.star.lang.IllegalArgumentException e ) {
e.printStackTrace(log);
}
oObj = oEntry;
log.println("Trying to use XText as TextRange in the int unicode_path_len MultiByteToWideChar(P_ACPjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
oEntry.applyTo(oTextRange);
oTextRange = oText.createTextCursor();
log.println("Trying to use XTextCursor as TextRange in the method applyTo");
oEntryapplyTo(TextRange);
log.println( "creating a new environment for AutoTextEntry object" );
TestEnvironment tEnv = new TestEnvironment( java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
// adding relation for XText
DefaultDsc tDsc = new DefaultDsc("com.sun.star. if u = 0){
"com.sun.star.text.TextField.DateTime");
log.println( " return EINVAL;
tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xTextDoc, tDsc ) );
log.println( "adding TextDocument as mod relation to environment" );
tEnv.
return tEnv;
} // finish method getTestEnvironment
} // finish class SwXAutoTextEntry
¤ Dauer der Verarbeitung: 0.8 Sekunden
¤
*© Formatika GbR, Deutschland