summaryrefslogtreecommitdiff
path: root/test/source/unoapi_test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/unoapi_test.cxx')
-rw-r--r--test/source/unoapi_test.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx
index 0a6f4aa4adf0..2d9292a87041 100644
--- a/test/source/unoapi_test.cxx
+++ b/test/source/unoapi_test.cxx
@@ -28,6 +28,8 @@
#include "test/unoapi_test.hxx"
+#include <com/sun/star/util/XCloseable.hpp>
+
UnoApiTest::UnoApiTest()
: m_aBaseString(RTL_CONSTASCII_USTRINGPARAM("/sc/qa/extras/testdocuments"))
{
@@ -64,4 +66,10 @@ void UnoApiTest::createFileURL(const rtl::OUString& aFileBase, rtl::OUString& rF
rFilePath = aBuffer.makeStringAndClear();
}
+void UnoApiTest::closeDocument( uno::Reference< lang::XComponent > xDocument )
+{
+ uno::Reference< util::XCloseable > xCloseable(xDocument, UNO_QUERY_THROW);
+ xCloseable->close(false);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */