diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-20 21:09:41 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-21 16:35:36 -0400 |
commit | 4a9003c9c7a169561ff0fd9bb9ece82ea38e802a (patch) | |
tree | a471793e90d1c4475ff1be122cdcddb965fe197d /sc/source/filter/xml | |
parent | 273eb00e8949606f295ab3c1a1d650b9c36e29c6 (diff) |
Let's use constant uno name for these.
Change-Id: I5e34f4d7561ef7f4f7b8b3b4d7d06cca072831c7
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 5 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 2aa6c1473d03..813190d6f62a 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -69,6 +69,7 @@ #include "editattributemap.hxx" #include "documentimport.hxx" #include "pivotsource.hxx" +#include <unonames.hxx> #include <comphelper/extract.hxx> @@ -2253,8 +2254,8 @@ void ScXMLImport::initialize( const css::uno::Sequence<css::uno::Any>& aArgument if (!xInfoSetInfo.is()) return; - if (xInfoSetInfo->hasPropertyByName("LockSolarMutex")) - xInfoSet->getPropertyValue("LockSolarMutex") >>= mbLockSolarMutex; + if (xInfoSetInfo->hasPropertyByName(SC_UNO_ODS_LOCK_SOLAR_MUTEX)) + xInfoSet->getPropertyValue(SC_UNO_ODS_LOCK_SOLAR_MUTEX) >>= mbLockSolarMutex; } SvXMLImportContext *ScXMLImport::CreateFontDeclsContext(const sal_uInt16 nPrefix, const OUString& rLocalName, diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 6282b9ff9566..cc1cbff2b4a0 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -71,6 +71,7 @@ #include "sheetdata.hxx" #include "XMLCodeNameProvider.hxx" #include <docsh.hxx> +#include <unonames.hxx> using namespace com::sun::star; @@ -343,12 +344,12 @@ bool ScXMLImportWrapper::Import(bool bStylesOnly, ErrCode& nError) { OUString("OrganizerMode"), 0, ::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 }, { OUString("SourceStorage"), 0, cppu::UnoType<embed::XStorage>::get(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 }, - { OUString("LockSolarMutex"), 0, getBooleanCppuType(), css::beans::PropertyAttribute::MAYBEVOID, 0 }, + { OUString(SC_UNO_ODS_LOCK_SOLAR_MUTEX), 0, getBooleanCppuType(), css::beans::PropertyAttribute::MAYBEVOID, 0 }, { OUString(), 0, css::uno::Type(), 0, 0 } }; uno::Reference< beans::XPropertySet > xInfoSet( comphelper::GenericPropertySet_CreateInstance( new comphelper::PropertySetInfo( aImportInfoMap ) ) ); - xInfoSet->setPropertyValue("LockSolarMutex", uno::makeAny(false)); + xInfoSet->setPropertyValue(SC_UNO_ODS_LOCK_SOLAR_MUTEX, uno::makeAny(false)); // ---- get BuildId from parent container if available |