diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-14 10:35:45 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-14 12:09:57 -0400 |
commit | 204555c107ae455b5bf2c84e450b2da37e5b06db (patch) | |
tree | c347a8d7afcc80475e5ea48e03c4a77244faf815 /sc | |
parent | n#760294 svtools: allow border gap < 1pt (diff) | |
download | core-204555c107ae455b5bf2c84e450b2da37e5b06db.tar.gz core-204555c107ae455b5bf2c84e450b2da37e5b06db.zip |
Renamed FILE to DOCINFO_TITLE, which is more appropriate for this field.
Change-Id: I1267629da8b66fc21c4ae2e78634c2093274aa61
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/editutil.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx index 54ab2f635cec..dad6a7a3af52 100644 --- a/sc/source/core/tool/editutil.cxx +++ b/sc/source/core/tool/editutil.cxx @@ -670,7 +670,7 @@ String ScHeaderEditEngine::CalcFieldValue( const SvxFieldItem& rField, case text::textfield::Type::TIME: aRet = ScGlobal::pLocaleData->getTime(aData.aTime); break; - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: aRet = aData.aTitle; break; case text::textfield::Type::EXTENDED_FILE: @@ -766,7 +766,7 @@ String ScFieldEditEngine::CalcFieldValue( const SvxFieldItem& rField, aRet = ScGlobal::pLocaleData->getDate(aDate); } break; - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: { SfxObjectShell* pDocShell = mpDoc->GetDocumentShell(); aRet = pDocShell->getDocProperties()->getTitle(); diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 9699945a20f2..99d5ddd640f8 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -693,7 +693,7 @@ SvxFieldData* ScEditFieldObj::getData() mpData.reset(new SvxExtTimeField); } break; - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: mpData.reset(new SvxFileField); break; case text::textfield::Type::URL: @@ -1156,7 +1156,7 @@ ScEditFieldObj::ScEditFieldObj( { switch (meType) { - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: pPropSet = getEmptyPropertySet(); break; case text::textfield::Type::EXTENDED_FILE: @@ -1349,7 +1349,7 @@ void SAL_CALL ScEditFieldObj::setPropertyValue( case text::textfield::Type::TABLE: setPropertyValueSheet(aPropertyName, aValue); break; - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: default: throw beans::UnknownPropertyException(); } @@ -1397,7 +1397,7 @@ uno::Any SAL_CALL ScEditFieldObj::getPropertyValue( const rtl::OUString& aProper case text::textfield::Type::TIME: case text::textfield::Type::EXTENDED_TIME: return getPropertyValueDateTime(aPropertyName); - case text::textfield::Type::FILE: + case text::textfield::Type::DOCINFO_TITLE: default: throw beans::UnknownPropertyException(); } diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index 32cfb755cc45..c106409eb77a 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -441,7 +441,7 @@ sal_Int32 getFieldType(sal_uInt16 nOldType) case SC_SERVICE_EXT_TIMEFIELD: return text::textfield::Type::EXTENDED_TIME; case SC_SERVICE_TITLEFIELD: - return text::textfield::Type::FILE; + return text::textfield::Type::DOCINFO_TITLE; case SC_SERVICE_FILEFIELD: return text::textfield::Type::EXTENDED_FILE; case SC_SERVICE_SHEETFIELD: |