summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-11-06 16:19:36 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-11-06 16:19:36 +0000
commite04218b93c8d5897aa3c64b496a4801780e013d6 (patch)
tree9d83f1d48fbd80be72079e0376696ac8067d01ff
parentf55ff791be6dc399cf5ec5107f468252302b78fe (diff)
#94334# Now preselected range is checked for supported services
-rw-r--r--wizards/source/euro/ConvertRun.xba10
1 files changed, 6 insertions, 4 deletions
diff --git a/wizards/source/euro/ConvertRun.xba b/wizards/source/euro/ConvertRun.xba
index d917343d1..aeaab396f 100644
--- a/wizards/source/euro/ConvertRun.xba
+++ b/wizards/source/euro/ConvertRun.xba
@@ -232,8 +232,11 @@ Dim oLocRange as Object
oSelRanges = oDocument.createInstance(&quot;com.sun.star.sheet.SheetCellRanges&quot;)
&apos; Check if a Currency-Range has been selected
oLocRange = oDocument.CurrentController.Selection
- oSelRanges.InsertbyName(&quot;&quot;,oLocRange)
- AddSelectedRangeToSelRangesEnum() = oLocRange
+ bPreSelected = oLocRange.SupportsService(&quot;com.sun.star.sheet.SheetCellRange&quot;)
+ If bPreSelected Then
+ oSelRanges.InsertbyName(&quot;&quot;,oLocRange)
+ AddSelectedRangeToSelRangesEnum() = oLocRange
+ End If
End Function
@@ -243,7 +246,7 @@ Dim OldCurrSymbolList(2) as String
Dim OldCurrIndex as Integer
Dim OldCurExtension(2) as String
oPreSelRange = AddSelectedRangeToSelRangesEnum()
- bPreSelected = True
+ DialogModel.chkComplete.State = Abs(Not(bPreSelected))
If bPreSelected Then
DialogModel.optSelRange.State = 1
AddRangeToListbox(oPreSelRange)
@@ -252,7 +255,6 @@ Dim OldCurExtension(2) as String
CreateStyleEnumeration()
End If
EnableStep1DialogControls(True, bPreSelected, True)
- DialogModel.chkComplete.State = Abs(Not(bPreSelected))
DialogModel.optSelRange.Enabled = bPreSelected
End Sub