diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-25 15:18:26 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:58:04 -0400 |
commit | 9832505e0dedccbfbe349af4605cf31cbcb11b46 (patch) | |
tree | fb128889959e0cd2350a018adbb904ac4d56bf6b /sc/source | |
parent | f0561d3f3d28506a1351cebdd1bbe8d80b67892f (diff) |
Now we can lump all these service names together.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index e726f7b7ec72..23047b3b4bb6 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -424,6 +424,8 @@ ScEditFieldObj::FieldType getFieldType(sal_uInt16 nOldType) { switch (nOldType) { + case SC_SERVICE_URLFIELD: + return ScEditFieldObj::URL; case SC_SERVICE_PAGEFIELD: return ScEditFieldObj::Page; case SC_SERVICE_PAGESFIELD: @@ -441,7 +443,8 @@ ScEditFieldObj::FieldType getFieldType(sal_uInt16 nOldType) default: ; } - return ScEditFieldObj::URL; + + return ScEditFieldObj::URL; // default to URL for no reason whatsoever. } } @@ -457,12 +460,6 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( xRet.set((sheet::XSpreadsheet*)new ScTableSheetObj(NULL,0)); break; case SC_SERVICE_URLFIELD: - { - uno::Reference<text::XTextRange> xNullContent; - xRet.set(static_cast<text::XTextField*>( - new ScEditFieldObj(xNullContent, NULL, ScEditFieldObj::URL, ESelection()))); - } - break; case SC_SERVICE_PAGEFIELD: case SC_SERVICE_PAGESFIELD: case SC_SERVICE_DATEFIELD: |