summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/notesuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/notesuno.cxx')
-rw-r--r--sc/source/ui/unoobj/notesuno.cxx35
1 files changed, 1 insertions, 34 deletions
diff --git a/sc/source/ui/unoobj/notesuno.cxx b/sc/source/ui/unoobj/notesuno.cxx
index dd754206220e..1ed78c914fde 100644
--- a/sc/source/ui/unoobj/notesuno.cxx
+++ b/sc/source/ui/unoobj/notesuno.cxx
@@ -399,40 +399,7 @@ void SAL_CALL ScAnnotationShapeObj::insertTextContent( const uno::Reference< tex
ScEditFieldObj* pField = ScEditFieldObj::getImplementation(xContent);
uno::Reference<text::XTextContent> xContent2 = xContent;
if (pField)
- {
- switch (pField->GetFieldType())
- {
- case ScEditFieldObj::Date:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::DATE));
- break;
- case ScEditFieldObj::File:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::EXTENDED_FILE));
- break;
- case ScEditFieldObj::Page:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::PAGE));
- break;
- case ScEditFieldObj::Pages:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::PAGES));
- break;
- case ScEditFieldObj::Sheet:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::TABLE));
- break;
- case ScEditFieldObj::Time:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::TIME));
- break;
- case ScEditFieldObj::ExtTime:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::EXTENDED_TIME));
- break;
- case ScEditFieldObj::Title:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::FILE));
- break;
- case ScEditFieldObj::URL:
- xContent2.set(new SvxUnoTextField(text::textfield::Type::URL));
- break;
- default:
- ;
- }
- }
+ xContent2.set(new SvxUnoTextField(pField->GetFieldType()));
GetUnoText().insertTextContent(xRange, xContent2, bAbsorb);
}