From 4a8b1355d87b3e3457b61c050192557f742f6eb6 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Fri, 15 Oct 2010 23:39:06 +0200 Subject: undoapi: tests for Draw docs' Undo --- test/source/java/org/openoffice/test/tools/OfficeDocument.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/source/java/org/openoffice/test/tools/OfficeDocument.java b/test/source/java/org/openoffice/test/tools/OfficeDocument.java index 96db51138d67..2a051fddad46 100644 --- a/test/source/java/org/openoffice/test/tools/OfficeDocument.java +++ b/test/source/java/org/openoffice/test/tools/OfficeDocument.java @@ -297,6 +297,14 @@ public class OfficeDocument return (XInterface)xORB.createInstance( serviceSpecifier ); } + /* ------------------------------------------------------------------ */ + /** creates a component at the service factory provided by the document, queried for a given interface type + */ + public T createInstance( String i_serviceSpecifier, Class i_interfaceClass ) throws com.sun.star.uno.Exception + { + return UnoRuntime.queryInterface( i_interfaceClass, createInstance( i_serviceSpecifier ) ); + } + /* ------------------------------------------------------------------ */ /** creates a component at the service factory provided by the document */ -- cgit