summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-11-03 10:11:31 -0200
committerMarcos Souza <marcos.souza.org@gmail.com>2013-11-03 10:14:22 -0600
commitc83d876c2ae0bd88cb92e5829edd93641779ea23 (patch)
tree29d0ff645f9ece1a1316507ce7c64cd587b79481 /starmath/inc
parent58ec629939bc0e31dc8fe8bfba6fba4f27e5bcc9 (diff)
fdo#65586: Add tools tips in Math Elements Dock
Change-Id: I304ba9fe0a97f85424d0eb0ee87bf3b4b58179f4 Reviewed-on: https://gerrit.libreoffice.org/6540 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/ElementsDockingWindow.hxx30
-rw-r--r--starmath/inc/starmath.hrc239
2 files changed, 257 insertions, 12 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx
index e3b1e8fc4c33..2cc13e75f06e 100644
--- a/starmath/inc/ElementsDockingWindow.hxx
+++ b/starmath/inc/ElementsDockingWindow.hxx
@@ -29,11 +29,12 @@ class SmElement
{
SmNodePointer mpNode;
OUString maText;
+ OUString maHelpText;
public:
Point mBoxLocation;
Size mBoxSize;
- SmElement(SmNodePointer pNode, OUString aText);
+ SmElement(SmNodePointer pNode, OUString aText, OUString aHelpText);
virtual ~SmElement();
SmNodePointer getNode();
@@ -42,6 +43,11 @@ public:
return maText;
}
+ OUString getHelpText()
+ {
+ return maHelpText;
+ }
+
virtual bool isSeparator()
{
return false;
@@ -62,15 +68,15 @@ public:
class SmElementsControl : public Control
{
- static const sal_uInt16 aUnaryBinaryOperatorsList[];
- static const sal_uInt16 aRelationsList[];
- static const sal_uInt16 aSetOperations[];
- static const sal_uInt16 aFunctions[];
- static const sal_uInt16 aOperators[];
- static const sal_uInt16 aAttributes[];
- static const sal_uInt16 aBrackets[];
- static const sal_uInt16 aFormats[];
- static const sal_uInt16 aOthers[];
+ static const sal_uInt16 aUnaryBinaryOperatorsList[][2];
+ static const sal_uInt16 aRelationsList[][2];
+ static const sal_uInt16 aSetOperations[][2];
+ static const sal_uInt16 aFunctions[][2];
+ static const sal_uInt16 aOperators[][2];
+ static const sal_uInt16 aAttributes[][2];
+ static const sal_uInt16 aBrackets[][2];
+ static const sal_uInt16 aFormats[][2];
+ static const sal_uInt16 aOthers[][2];
Link aSelectHdlLink;
@@ -90,9 +96,9 @@ class SmElementsControl : public Control
Size maMaxElementDimensions;
bool mbVerticalMode;
- void addElement(OUString aElementVisual, OUString aElementSource);
+ void addElement(OUString aElementVisual, OUString aElementSource, OUString aHelpText);
- void addElements(const sal_uInt16 aElementsArray[], sal_uInt16 size);
+ void addElements(const sal_uInt16 aElementsArray[][2], sal_uInt16 size);
void addSeparator();
diff --git a/starmath/inc/starmath.hrc b/starmath/inc/starmath.hrc
index e05382990aba..6a731e491238 100644
--- a/starmath/inc/starmath.hrc
+++ b/starmath/inc/starmath.hrc
@@ -207,6 +207,64 @@
#define RID_XPRECEDESEQUIVY (RID_APP_START + 1333)
#define RID_XSUCCEEDSEQUIVY (RID_APP_START + 1334)
+// Help text
+#define RID_PLUSX_HELP (RID_APP_START + 1335)
+#define RID_MINUSX_HELP (RID_APP_START + 1336)
+#define RID_PLUSMINUSX_HELP (RID_APP_START + 1337)
+#define RID_MINUSPLUSX_HELP (RID_APP_START + 1338)
+#define RID_XPLUSY_HELP (RID_APP_START + 1339)
+#define RID_XCDOTY_HELP (RID_APP_START + 1340)
+#define RID_XTIMESY_HELP (RID_APP_START + 1341)
+#define RID_XSYMTIMESY_HELP (RID_APP_START + 1342)
+#define RID_XMINUSY_HELP (RID_APP_START + 1343)
+#define RID_XOVERY_HELP (RID_APP_START + 1344)
+#define RID_XDIVY_HELP (RID_APP_START + 1345)
+#define RID_XSYMDIVIDEY_HELP (RID_APP_START + 1346)
+#define RID_NEGX_HELP (RID_APP_START + 1347)
+#define RID_XANDY_HELP (RID_APP_START + 1358)
+#define RID_XORY_HELP (RID_APP_START + 1350)
+#define RID_XODIVIDEY_HELP (RID_APP_START + 1360)
+#define RID_XODOTY_HELP (RID_APP_START + 1361)
+#define RID_XOMINUSY_HELP (RID_APP_START + 1362)
+#define RID_XOPLUSY_HELP (RID_APP_START + 1363)
+#define RID_XOTIMESY_HELP (RID_APP_START + 1364)
+#define RID_XCIRCY_HELP (RID_APP_START + 1365)
+#define RID_XWIDESLASHY_HELP (RID_APP_START + 1366)
+#define RID_XWIDEBSLASHY_HELP (RID_APP_START + 1367)
+#define RID_RSUBX_HELP (RID_APP_START + 1368)
+#define RID_RSUPX_HELP (RID_APP_START + 1369)
+#define RID_BINOMXY_HELP (RID_APP_START + 1370)
+#define RID_STACK_HELP (RID_APP_START + 1371)
+#define RID_MATRIX_HELP (RID_APP_START + 1372)
+#define RID_LSUBX_HELP (RID_APP_START + 1373)
+#define RID_LSUPX_HELP (RID_APP_START + 1374)
+#define RID_CSUBX_HELP (RID_APP_START + 1375)
+#define RID_CSUPX_HELP (RID_APP_START + 1376)
+#define RID_NOSPACE_HELP (RID_APP_START + 1377)
+#define RID_NEWLINE_HELP (RID_APP_START + 1378)
+#define RID_SBLANK_HELP (RID_APP_START + 1379)
+#define RID_BLANK_HELP (RID_APP_START + 1380)
+#define RID_RE_HELP (RID_APP_START + 1381)
+#define RID_IM_HELP (RID_APP_START + 1382)
+#define RID_INFINITY_HELP (RID_APP_START + 1383)
+#define RID_PARTIAL_HELP (RID_APP_START + 1384)
+#define RID_WP_HELP (RID_APP_START + 1385)
+#define RID_DOTSAXIS_HELP (RID_APP_START + 1386)
+#define RID_DOTSUP_HELP (RID_APP_START + 1387)
+#define RID_DOTSDOWN_HELP (RID_APP_START + 1388)
+#define RID_DOTSLOW_HELP (RID_APP_START + 1389)
+#define RID_DOTSVERT_HELP (RID_APP_START + 1390)
+#define RID_NABLA_HELP (RID_APP_START + 1391)
+#define RID_HBAR_HELP (RID_APP_START + 1392)
+#define RID_LAMBDABAR_HELP (RID_APP_START + 1393)
+#define RID_LEFTARROW_HELP (RID_APP_START + 1394)
+#define RID_RIGHTARROW_HELP (RID_APP_START + 1395)
+#define RID_UPARROW_HELP (RID_APP_START + 1396)
+#define RID_DOWNARROW_HELP (RID_APP_START + 1397)
+#define RID_EXISTS_HELP (RID_APP_START + 1398)
+#define RID_NOTEXISTS_HELP (RID_APP_START + 1399)
+#define RID_FORALL_HELP (RID_APP_START + 1400)
+
#define RID_XINY (RID_APP_START + 1401)
#define RID_XNOTINY (RID_APP_START + 1402)
#define RID_XOWNSY (RID_APP_START + 1403)
@@ -427,6 +485,187 @@
#define RID_CATEGORY_OTHERS (RID_APP_START + 4009)
#define RID_CATEGORY_EXAMPLES (RID_APP_START + 4010)
+// more tooptips help texts
+#define RID_XEQY_HELP (RID_APP_START + 4011)
+#define RID_XNEQY_HELP (RID_APP_START + 4012)
+#define RID_XEQUIVY_HELP (RID_APP_START + 4013)
+#define RID_XORTHOY_HELP (RID_APP_START + 4014)
+#define RID_XLTY_HELP (RID_APP_START + 4015)
+#define RID_XGTY_HELP (RID_APP_START + 4016)
+#define RID_XAPPROXY_HELP (RID_APP_START + 4017)
+#define RID_XPARALLELY_HELP (RID_APP_START + 4018)
+#define RID_XLESLANTY_HELP (RID_APP_START + 4019)
+#define RID_XGESLANTY_HELP (RID_APP_START + 4020)
+#define RID_XSIMEQY_HELP (RID_APP_START + 4021)
+#define RID_XPROPY_HELP (RID_APP_START + 4022)
+#define RID_XLEY_HELP (RID_APP_START + 4023)
+#define RID_XGEY_HELP (RID_APP_START + 4024)
+#define RID_XSIMY_HELP (RID_APP_START + 4025)
+#define RID_XTOWARDY_HELP (RID_APP_START + 4026)
+#define RID_XLLY_HELP (RID_APP_START + 4027)
+#define RID_XGGY_HELP (RID_APP_START + 4028)
+#define RID_XDEFY_HELP (RID_APP_START + 4029)
+#define RID_XTRANSLY_HELP (RID_APP_START + 4030)
+#define RID_XTRANSRY_HELP (RID_APP_START + 4031)
+#define RID_XDIVIDESY_HELP (RID_APP_START + 4032)
+#define RID_XNDIVIDESY_HELP (RID_APP_START + 4033)
+#define RID_DLARROW_HELP (RID_APP_START + 4034)
+#define RID_DLRARROW_HELP (RID_APP_START + 4035)
+#define RID_DRARROW_HELP (RID_APP_START + 4036)
+#define RID_XPRECEDESY_HELP (RID_APP_START + 4037)
+#define RID_XNOTPRECEDESY_HELP (RID_APP_START + 4038)
+#define RID_XSUCCEEDSY_HELP (RID_APP_START + 4039)
+#define RID_XNOTSUCCEEDSY_HELP (RID_APP_START + 4040)
+#define RID_XPRECEDESEQUALY_HELP (RID_APP_START + 4041)
+#define RID_XSUCCEEDSEQUALY_HELP (RID_APP_START + 4042)
+#define RID_XPRECEDESEQUIVY_HELP (RID_APP_START + 4043)
+#define RID_XSUCCEEDSEQUIVY_HELP (RID_APP_START + 4044)
+#define RID_XINY_HELP (RID_APP_START + 4045)
+#define RID_XNOTINY_HELP (RID_APP_START + 4046)
+#define RID_XOWNSY_HELP (RID_APP_START + 4047)
+#define RID_XINTERSECTIONY_HELP (RID_APP_START + 4048)
+#define RID_XUNIONY_HELP (RID_APP_START + 4049)
+#define RID_XSETMINUSY_HELP (RID_APP_START + 4050)
+#define RID_XSLASHY_HELP (RID_APP_START + 4051)
+#define RID_XSUBSETY_HELP (RID_APP_START + 4052)
+#define RID_XSUBSETEQY_HELP (RID_APP_START + 4053)
+#define RID_XSUPSETY_HELP (RID_APP_START + 4054)
+#define RID_XSUPSETEQY_HELP (RID_APP_START + 4055)
+#define RID_LRPARENTX_HELP (RID_APP_START + 4056)
+#define RID_LRBRACKETX_HELP (RID_APP_START + 4057)
+#define RID_LRANGLEX_HELP (RID_APP_START + 4058)
+#define RID_LRBRACEX_HELP (RID_APP_START + 4059)
+#define RID_LRLINEX_HELP (RID_APP_START + 4060)
+#define RID_LRDLINEX_HELP (RID_APP_START + 4061)
+#define RID_LRGROUPX_HELP (RID_APP_START + 4062)
+#define RID_SLRPARENTX_HELP (RID_APP_START + 4063)
+#define RID_SLRBRACKETX_HELP (RID_APP_START + 4064)
+#define RID_SLRANGLEX_HELP (RID_APP_START + 4065)
+#define RID_SLRBRACEX_HELP (RID_APP_START + 4066)
+#define RID_SLRLINEX_HELP (RID_APP_START + 4067)
+#define RID_SLRDLINEX_HELP (RID_APP_START + 4068)
+#define RID_LRCEILX_HELP (RID_APP_START + 4069)
+#define RID_LRFLOORX_HELP (RID_APP_START + 4071)
+#define RID_SLRCEILX_HELP (RID_APP_START + 4072)
+#define RID_SLRFLOORX_HELP (RID_APP_START + 4073)
+#define RID_LMRANGLEXY_HELP (RID_APP_START + 4074)
+#define RID_SLMRANGLEXY_HELP (RID_APP_START + 4075)
+#define RID_LRDBRACKETX_HELP (RID_APP_START + 4076)
+#define RID_SLRDBRACKETX_HELP (RID_APP_START + 4077)
+#define RID_XOVERBRACEY_HELP (RID_APP_START + 4078)
+#define RID_XUNDERBRACEY_HELP (RID_APP_START + 4079)
+#define RID_XNSUBSETY_HELP (RID_APP_START + 4080)
+#define RID_XNSUBSETEQY_HELP (RID_APP_START + 4081)
+#define RID_XNSUPSETY_HELP (RID_APP_START + 4082)
+#define RID_XNSUPSETEQY_HELP (RID_APP_START + 4083)
+#define RID_SETN_HELP (RID_APP_START + 4084)
+#define RID_SETZ_HELP (RID_APP_START + 4085)
+#define RID_SETQ_HELP (RID_APP_START + 4086)
+#define RID_SETR_HELP (RID_APP_START + 4087)
+#define RID_SETC_HELP (RID_APP_START + 4088)
+#define RID_ALEPH_HELP (RID_APP_START + 4089)
+#define RID_EMPTYSET_HELP (RID_APP_START + 4090)
+#define RID_ACUTEX_HELP (RID_APP_START + 4091)
+#define RID_GRAVEX_HELP (RID_APP_START + 4092)
+#define RID_CHECKX_HELP (RID_APP_START + 4093)
+#define RID_BREVEX_HELP (RID_APP_START + 4094)
+#define RID_BARX_HELP (RID_APP_START + 4095)
+#define RID_VECX_HELP (RID_APP_START + 4096)
+#define RID_HATX_HELP (RID_APP_START + 4097)
+#define RID_TILDEX_HELP (RID_APP_START + 4098)
+#define RID_CIRCLEX_HELP (RID_APP_START + 4099)
+#define RID_DOTX_HELP (RID_APP_START + 4100)
+#define RID_DDOTX_HELP (RID_APP_START + 4101)
+#define RID_DDDOTX_HELP (RID_APP_START + 4102)
+#define RID_OVERLINEX_HELP (RID_APP_START + 4103)
+#define RID_UNDERLINEX_HELP (RID_APP_START + 4104)
+#define RID_OVERSTRIKEX_HELP (RID_APP_START + 4105)
+#define RID_PHANTOMX_HELP (RID_APP_START + 4106)
+#define RID_BOLDX_HELP (RID_APP_START + 4107)
+#define RID_ITALX_HELP (RID_APP_START + 4108)
+#define RID_SIZEXY_HELP (RID_APP_START + 4109)
+#define RID_FONTXY_HELP (RID_APP_START + 4110)
+#define RID_COLORX_HELP (RID_APP_START + 4111)
+#define RID_WIDEHATX_HELP (RID_APP_START + 4112)
+#define RID_WIDETILDEX_HELP (RID_APP_START + 4113)
+#define RID_WIDEVECX_HELP (RID_APP_START + 4114)
+#define RID_COLORX_BLACK_HELP (RID_APP_START + 4115)
+#define RID_COLORX_BLUE_HELP (RID_APP_START + 4116)
+#define RID_COLORX_GREEN_HELP (RID_APP_START + 4117)
+#define RID_COLORX_RED_HELP (RID_APP_START + 4118)
+#define RID_COLORX_CYAN_HELP (RID_APP_START + 4119)
+#define RID_COLORX_MAGENTA_HELP (RID_APP_START + 4120)
+#define RID_COLORX_YELLOW_HELP (RID_APP_START + 4121)
+#define RID_ABSX_HELP (RID_APP_START + 4122)
+#define RID_FACTX_HELP (RID_APP_START + 4123)
+#define RID_SQRTX_HELP (RID_APP_START + 4124)
+#define RID_NROOTXY_HELP (RID_APP_START + 4125)
+#define RID_EX_HELP (RID_APP_START + 4126)
+#define RID_LNX_HELP (RID_APP_START + 4127)
+#define RID_EXPX_HELP (RID_APP_START + 4128)
+#define RID_LOGX_HELP (RID_APP_START + 4129)
+#define RID_SINX_HELP (RID_APP_START + 4130)
+#define RID_COSX_HELP (RID_APP_START + 4131)
+#define RID_TANX_HELP (RID_APP_START + 4132)
+#define RID_COTX_HELP (RID_APP_START + 4133)
+#define RID_SINHX_HELP (RID_APP_START + 4134)
+#define RID_COSHX_HELP (RID_APP_START + 4135)
+#define RID_TANHX_HELP (RID_APP_START + 4136)
+#define RID_COTHX_HELP (RID_APP_START + 4137)
+#define RID_ARCSINX_HELP (RID_APP_START + 4138)
+#define RID_ARCCOSX_HELP (RID_APP_START + 4139)
+#define RID_ARCTANX_HELP (RID_APP_START + 4140)
+#define RID_ARCCOTX_HELP (RID_APP_START + 4141)
+#define RID_ARSINHX_HELP (RID_APP_START + 4142)
+#define RID_ARCOSHX_HELP (RID_APP_START + 4143)
+#define RID_ARTANHX_HELP (RID_APP_START + 4144)
+#define RID_ARCOTHX_HELP (RID_APP_START + 4145)
+#define RID_LIMX_HELP (RID_APP_START + 4146)
+#define RID_SUMX_HELP (RID_APP_START + 4147)
+#define RID_PRODX_HELP (RID_APP_START + 4148)
+#define RID_COPRODX_HELP (RID_APP_START + 4149)
+#define RID_INTX_HELP (RID_APP_START + 4150)
+#define RID_IINTX_HELP (RID_APP_START + 4151)
+#define RID_IIINTX_HELP (RID_APP_START + 4152)
+#define RID_LINTX_HELP (RID_APP_START + 4153)
+#define RID_LLINTX_HELP (RID_APP_START + 4154)
+#define RID_LLLINTX_HELP (RID_APP_START + 4155)
+#define RID_FROMXTOY_HELP (RID_APP_START + 4156)
+#define RID_FROMX_HELP (RID_APP_START + 4157)
+#define RID_TOX_HELP (RID_APP_START + 4158)
+#define RID_LIMINFX_HELP (RID_APP_START + 4159)
+#define RID_LIMSUPX_HELP (RID_APP_START + 4160)
+#define RID_LIM_FROMX_HELP (RID_APP_START + 4161)
+#define RID_SUM_FROMX_HELP (RID_APP_START + 4162)
+#define RID_PROD_FROMX_HELP (RID_APP_START + 4163)
+#define RID_COPROD_FROMX_HELP (RID_APP_START + 4164)
+#define RID_INT_FROMX_HELP (RID_APP_START + 4165)
+#define RID_IINT_FROMX_HELP (RID_APP_START + 4166)
+#define RID_IIINT_FROMX_HELP (RID_APP_START + 4167)
+#define RID_LINT_FROMX_HELP (RID_APP_START + 4168)
+#define RID_LLINT_FROMX_HELP (RID_APP_START + 4169)
+#define RID_LLLINT_FROMX_HELP (RID_APP_START + 4170)
+#define RID_LIM_TOX_HELP (RID_APP_START + 4171)
+#define RID_SUM_TOX_HELP (RID_APP_START + 4172)
+#define RID_PROD_TOX_HELP (RID_APP_START + 4173)
+#define RID_COPROD_TOX_HELP (RID_APP_START + 4174)
+#define RID_INT_TOX_HELP (RID_APP_START + 4175)
+#define RID_IINT_TOX_HELP (RID_APP_START + 4176)
+#define RID_IIINT_TOX_HELP (RID_APP_START + 4177)
+#define RID_LINT_TOX_HELP (RID_APP_START + 4178)
+#define RID_LLINT_TOX_HELP (RID_APP_START + 4179)
+#define RID_LLLINT_TOX_HELP (RID_APP_START + 4180)
+#define RID_LIM_FROMTOX_HELP (RID_APP_START + 4181)
+#define RID_SUM_FROMTOX_HELP (RID_APP_START + 4182)
+#define RID_PROD_FROMTOX_HELP (RID_APP_START + 4183)
+#define RID_COPROD_FROMTOX_HELP (RID_APP_START + 4184)
+#define RID_INT_FROMTOX_HELP (RID_APP_START + 4185)
+#define RID_IINT_FROMTOX_HELP (RID_APP_START + 4186)
+#define RID_IIINT_FROMTOX_HELP (RID_APP_START + 4187)
+#define RID_LINT_FROMTOX_HELP (RID_APP_START + 4188)
+#define RID_LLINT_FROMTOX_HELP (RID_APP_START + 4189)
+#define RID_LLLINT_FROMTOX_HELP (RID_APP_START + 4190)
+
#define BMP_ARROW_RIGHT 1
#define MN_WIN 60