diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-12-29 16:16:08 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-12-29 16:16:08 -0500 |
commit | ebe7585632553bf6323210b976792dccd10d8778 (patch) | |
tree | eaf41ae5a383e0a10554f026b8ff5af21fead537 | |
parent | bcf65a5a6f3110ac6fac3b309812806278661528 (diff) |
Added some comments.
-rw-r--r-- | source/main.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/main.cxx b/source/main.cxx index 9ff36ab..2473373 100644 --- a/source/main.cxx +++ b/source/main.cxx @@ -100,6 +100,8 @@ public: void operator() (const OUString& rFile) const { + // load a control xls document. + OUStringBuffer aBuf; aBuf.appendAscii("file://"); aBuf.append(maInPath); @@ -109,6 +111,8 @@ public: cout << "loading " << rtl::OUStringToOString(aInFile, RTL_TEXTENCODING_UTF8).getStr() << endl; Reference<XSpreadsheetDocument> xDoc = loadComponent(mxDesktop, aInFile); + // store to a control export location. + aBuf.appendAscii("file://"); aBuf.append(maOutPath); aBuf.appendAscii("/"); @@ -121,6 +125,8 @@ public: props[0].Value = toAny(ascii("MS Excel 97")); xStorable->storeAsURL(aOutFile, props); + // close the window. + Reference<util::XCloseable> xCloseable(xDoc, UNO_QUERY_THROW); xCloseable->close(true); } |