summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-01-23 12:47:52 +0200
committerTor Lillqvist <tml@collabora.com>2015-01-23 13:56:58 +0200
commit34a6096dab1b2bb122318cc0027c11c5cbcbb516 (patch)
treeedbf4bac2f72b506d8c8a97acc1916c3889c5af5 /officecfg
parentae5410086e6cbe30b8a650b10b4d2250e5e017ec (diff)
Use symbolic (not numeric) opcodes in the registry for the OpenCL use subset
Makes it easier to edit them manually directly in the registry files. (Something end-users are of course not expected to do, but admins or hackers may want to do.) Also guards against the possibility of the numeric values of the opcodes being changed. I figured out how to do the mapping from symbolic names to enum values and back without an ScDocument, turned out it was not complicated after all. Change-Id: I8bd97f256f7d777162c1b629bf82285544e86d70
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Calc.xcs10
1 files changed, 5 insertions, 5 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
index 4e20f9e4ff4e..7ef9afbedd72 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
@@ -1368,12 +1368,12 @@
<prop oor:name="OpenCLSubsetOpCodes" oor:type="xs:string" oor:nillable="false">
<!-- UIHints: Tools - Options Spreadsheet Formula -->
<info>
- <desc>The list of operator and function opcodes for which to use OpenCL. If a
- formula contains only these operators and functions, it
- might be calculated using OpenCL.</desc>
- <!-- numeric values correspond to RAND;SIN;COS;TAN;ATAN;EXP;LN;SQRT;NORMSINV;ROUND;POWER;SUMPRODUCT;MIN;MAX;SUM;PRODUCT;AVERAGE;COUNT;NORMDIST;SUMIFS -->
+ <desc>The list of operator and function opcodes (in
+ English) for which to use OpenCL. If OpenCLSubsetOnly is
+ true, and a formula contains only these operators and
+ functions, it might be calculated using OpenCL.</desc>
</info>
- <value>66;82;83;84;88;102;103;104;149;204;209;213;222;223;224;225;226;227;236;403</value>
+ <value>RAND;SIN;COS;TAN;ATAN;EXP;LN;SQRT;NORMSINV;ROUND;POWER;SUMPRODUCT;MIN;MAX;SUM;PRODUCT;AVERAGE;COUNT;NORMDIST;SUMIFS</value>
</prop>
<prop oor:name="OpenCLAutoSelect" oor:type="xs:boolean" oor:nillable="false">
<!-- UIHints: Tools - Options Spreadsheet Formula -->