TestEnvironment tEnv = new TestEnvironment(xContr);
util.dbg.getSuppServices(xContr);
SOfficeFactory SOF=SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
XTextFrame first =null;
XTextFrame second =null;
Object oFrame1 = null;
Object oFrame2 = null;
try {
XText oText = xTextDoc.getText();
XTextCursor oCursor = oText.createTextCursor();
oFrame1 = SOF.createInstance
(xTextDoc, "com.sun.star.text.TextFrame" );
first = (XTextFrame)UnoRuntime.queryInterface
( XTextFrame.class, oFrame1);
oText.insertTextContent(oCursor,first, false);
first.getText().setString("Frame 1");
oFrame2 = SOF.createInstance(xTextDoc, "com.sun.star.text.TextFrame" );
second = (XTextFrame)UnoRuntime.queryInterface
( XTextFrame.class, oFrame2);
oText.insertTextContent(oCursor,second, false);
second.getText().setString("Frame 2");
oText.insertString( oCursor,
"SwXTextRanges...SwXTextRanges...SwXTextRanges", false);
oText.insertControlCharacter( oCursor,
ControlCharacter.PARAGRAPH_BREAK, false);
oText.insertString( oCursor,