summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-29 16:18:16 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-29 16:18:16 -0500
commit3c72e47a77d126b7960de9a1581ddd840c6e6eec (patch)
treed3c1728923a2d781dbb7a0f43a34750b192ae444
parentebe7585632553bf6323210b976792dccd10d8778 (diff)
Set overwrite flag to true though the filter itself always overwrites the existing file.
-rw-r--r--source/main.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/main.cxx b/source/main.cxx
index 2473373..a526234 100644
--- a/source/main.cxx
+++ b/source/main.cxx
@@ -120,9 +120,11 @@ public:
OUString aOutFile = aBuf.makeStringAndClear();
Reference<XStorable> xStorable(xDoc, UNO_QUERY_THROW);
cout << "storing to " << rtl::OUStringToOString(aOutFile, RTL_TEXTENCODING_UTF8).getStr() << endl;
- Sequence<beans::PropertyValue> props(1);
+ Sequence<beans::PropertyValue> props(2);
props[0].Name = ascii("FilterName");
props[0].Value = toAny(ascii("MS Excel 97"));
+ props[1].Name = ascii("Overwrite");
+ props[1].Value <<= sal_True;
xStorable->storeAsURL(aOutFile, props);
// close the window.