diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-05-13 21:55:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-13 22:54:10 -0400 |
commit | a19af69c93d2ca8e319a1327aba6cf042deec25b (patch) | |
tree | 3c09be2a11b4555357ecfee40ac8a0e9582818de /sc/source/filter/xml/xmldrani.cxx | |
parent | e89ef0e0a60dbaae07e73fb0503aa1d3bb80fbc4 (diff) |
Fixed incorrect exporting of global named database ranges.
Diffstat (limited to 'sc/source/filter/xml/xmldrani.cxx')
-rw-r--r-- | sc/source/filter/xml/xmldrani.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmldrani.cxx b/sc/source/filter/xml/xmldrani.cxx index f2f7c32e7958..c125e21dd108 100644 --- a/sc/source/filter/xml/xmldrani.cxx +++ b/sc/source/filter/xml/xmldrani.cxx @@ -151,7 +151,7 @@ ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext( ScXMLImport& rImport, bFilterSkipDuplicates(false), bFilterUseRegularExpressions(false), bFilterConditionSourceRange(false), - meRangeType(GlobalNamed) + meRangeType(ScDBCollection::GlobalNamed) { nSourceType = sheet::DataImportMode_NONE; sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; @@ -223,9 +223,9 @@ ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext( ScXMLImport& rImport, } if (sDatabaseRangeName.matchAsciiL(STR_DB_LOCAL_NONAME, strlen(STR_DB_LOCAL_NONAME))) - meRangeType = SheetAnonymous; + meRangeType = ScDBCollection::SheetAnonymous; else if (sDatabaseRangeName.matchAsciiL(STR_DB_GLOBAL_NONAME, strlen(STR_DB_GLOBAL_NONAME))) - meRangeType = GlobalAnonymous; + meRangeType = ScDBCollection::GlobalAnonymous; } ScXMLDatabaseRangeContext::~ScXMLDatabaseRangeContext() @@ -476,7 +476,7 @@ void ScXMLDatabaseRangeContext::EndElement() if (!pDoc) return; - if (meRangeType == SheetAnonymous) + if (meRangeType == ScDBCollection::SheetAnonymous) { OUString aName(RTL_CONSTASCII_USTRINGPARAM(STR_DB_LOCAL_NONAME)); ::std::auto_ptr<ScDBData> pData(ConvertToDBData(aName)); @@ -491,7 +491,7 @@ void ScXMLDatabaseRangeContext::EndElement() } return; } - else if (meRangeType == GlobalAnonymous) + else if (meRangeType == ScDBCollection::GlobalAnonymous) { OUString aName(RTL_CONSTASCII_USTRINGPARAM(STR_DB_GLOBAL_NONAME)); ::std::auto_ptr<ScDBData> pData(ConvertToDBData(aName)); @@ -503,7 +503,7 @@ void ScXMLDatabaseRangeContext::EndElement() } return; } - else if (meRangeType == GlobalNamed) + else if (meRangeType == ScDBCollection::GlobalNamed) { ::std::auto_ptr<ScDBData> pData(ConvertToDBData(sDatabaseRangeName)); |