diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-12-28 17:27:59 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-12-28 17:27:59 -0500 |
commit | 2a6eb1e805c92143df4e93cd2a6cb26e921d8fee (patch) | |
tree | 27a1d35193e0b664b15286f0cc1e2ca9975d46f8 | |
parent | 116eaaf3669b83901bc3edffa034366dc2ef64e0 (diff) |
Terminate soffice.bin when the test program finishes.
-rw-r--r-- | source/main.cxx | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/source/main.cxx b/source/main.cxx index 2130bb5..ddc9900 100644 --- a/source/main.cxx +++ b/source/main.cxx @@ -1,28 +1,14 @@ #include "global.hxx" #include <iostream> -//Reference<XSpreadsheetDocument> loadComponent(const Reference<XDesktop>& xDesktop, const char* docPath) -//{ -// Reference<XSpreadsheetDocument> xSpDoc; -// Reference<frame::XComponentLoader> xLoader(xDesktop, UNO_QUERY_THROW); -// Sequence< beans::PropertyValue > args; -// Reference< XComponent > xComponent = xLoader->loadComponentFromURL( -// ascii(docPath), ascii("_default"), 0, args); -// -// if ( !xComponent.is() ) -// { -// printf("component failed to load\n"); -// return xSpDoc; -// } -// -// xSpDoc.set(xComponent, UNO_QUERY_THROW); -// return xSpDoc; -//} +using ::com::sun::star::uno::Reference; +using ::com::sun::star::frame::XDesktop; using namespace std; int main() { cout << "test program begins" << endl; - ::test::bootstrap(); + Reference<XDesktop> xDesktop = ::test::bootstrap(); + xDesktop->terminate(); } |