summaryrefslogtreecommitdiff
path: root/sc/sdi
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-04-30 12:40:20 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2017-05-01 01:29:32 +0300
commit1c6cb1e8386eb627adb0c70169582cc58fd76ec7 (patch)
tree20b273bf28da5ccf1f349a12fc3f396dcf10f97d /sc/sdi
parent20f33eb7c5ebf2611008f6173da870bd0d1693fc (diff)
Remove SlotType sdi property
sdi files have two ways to specify the type of a slot: (a) Put it at the beginning of the first line (b) Using the SlotType property Where (b) have higher priority, and (a) is actually ignored for "method slots" (i.e. the ones that have parameter parentheses, even empty, and therefore get the SfxSlotMode::METHOD flag), which is very confusing. The goal here is to make exclusive use of (a) for all kinds of slots, and eventually remove the SlotType support code from svidl (in a follow-up commit). Change-Id: Ib6654d34e2f8aa8ebd0bd3c41aa2a86e30e9a634
Diffstat (limited to 'sc/sdi')
-rw-r--r--sc/sdi/scalc.sdi15
1 files changed, 4 insertions, 11 deletions
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index ccf5b74e152b..68d63700c0b3 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -226,7 +226,7 @@ SfxVoidItem AlignBottom SID_ALIGNBOTTOM
]
-SfxVoidItem AlignHorizontalCenter SID_ALIGNCENTERHOR
+SfxStringItem AlignHorizontalCenter SID_ALIGNCENTERHOR
()
[
AutoUpdate = FALSE,
@@ -237,8 +237,6 @@ SfxVoidItem AlignHorizontalCenter SID_ALIGNCENTERHOR
RecordAbsolute = FALSE,
RecordPerSet;
- SlotType = SfxStringItem
-
AccelConfig = TRUE,
MenuConfig = TRUE,
ToolBoxConfig = TRUE,
@@ -3689,7 +3687,7 @@ SfxStringItem NumberFormat SID_NUMBER_FORMAT
]
-SfxVoidItem NumberFormatCurrency SID_NUMBER_CURRENCY
+SfxBoolItem NumberFormatCurrency SID_NUMBER_CURRENCY
(SfxUInt32Item NumberFormatCurrency SID_NUMBER_CURRENCY)
[
AutoUpdate = FALSE,
@@ -3699,7 +3697,6 @@ SfxVoidItem NumberFormatCurrency SID_NUMBER_CURRENCY
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
- SlotType = SfxBoolItem
AccelConfig = TRUE,
MenuConfig = TRUE,
@@ -6348,7 +6345,7 @@ SfxVoidItem InsertFieldDateVariable SID_INSERT_FIELD_DATE_VAR
]
-SfxVoidItem OpenFromCalc SID_OPEN_CALC
+SfxStringItem OpenFromCalc SID_OPEN_CALC
()
[
AutoUpdate = FALSE,
@@ -6360,15 +6357,13 @@ SfxVoidItem OpenFromCalc SID_OPEN_CALC
RecordPerSet;
Asynchron;
- SlotType = SfxStringItem
-
AccelConfig = TRUE,
MenuConfig = TRUE,
ToolBoxConfig = FALSE,
GroupId = GID_OPTIONS;
]
-SfxVoidItem ConvertFormulaToValue SID_CONVERT_FORMULA_TO_VALUE
+SfxStringItem ConvertFormulaToValue SID_CONVERT_FORMULA_TO_VALUE
()
[
AutoUpdate = FALSE,
@@ -6379,8 +6374,6 @@ SfxVoidItem ConvertFormulaToValue SID_CONVERT_FORMULA_TO_VALUE
RecordAbsolute = FALSE,
RecordPerSet;
- SlotType = SfxStringItem
-
AccelConfig = TRUE,
MenuConfig = TRUE,
ToolBoxConfig = FALSE,