Kaydet (Commit) c83d876c authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Marcos Souza

fdo#65586: Add tools tips in Math Elements Dock

Change-Id: I304ba9fe0a97f85424d0eb0ee87bf3b4b58179f4
Reviewed-on: https://gerrit.libreoffice.org/6540Reviewed-by: 's avatarMarcos Souza <marcos.souza.org@gmail.com>
Tested-by: 's avatarMarcos Souza <marcos.souza.org@gmail.com>
üst 58ec6299
...@@ -29,11 +29,12 @@ class SmElement ...@@ -29,11 +29,12 @@ class SmElement
{ {
SmNodePointer mpNode; SmNodePointer mpNode;
OUString maText; OUString maText;
OUString maHelpText;
public: public:
Point mBoxLocation; Point mBoxLocation;
Size mBoxSize; Size mBoxSize;
SmElement(SmNodePointer pNode, OUString aText); SmElement(SmNodePointer pNode, OUString aText, OUString aHelpText);
virtual ~SmElement(); virtual ~SmElement();
SmNodePointer getNode(); SmNodePointer getNode();
...@@ -42,6 +43,11 @@ public: ...@@ -42,6 +43,11 @@ public:
return maText; return maText;
} }
OUString getHelpText()
{
return maHelpText;
}
virtual bool isSeparator() virtual bool isSeparator()
{ {
return false; return false;
...@@ -62,15 +68,15 @@ public: ...@@ -62,15 +68,15 @@ public:
class SmElementsControl : public Control class SmElementsControl : public Control
{ {
static const sal_uInt16 aUnaryBinaryOperatorsList[]; static const sal_uInt16 aUnaryBinaryOperatorsList[][2];
static const sal_uInt16 aRelationsList[]; static const sal_uInt16 aRelationsList[][2];
static const sal_uInt16 aSetOperations[]; static const sal_uInt16 aSetOperations[][2];
static const sal_uInt16 aFunctions[]; static const sal_uInt16 aFunctions[][2];
static const sal_uInt16 aOperators[]; static const sal_uInt16 aOperators[][2];
static const sal_uInt16 aAttributes[]; static const sal_uInt16 aAttributes[][2];
static const sal_uInt16 aBrackets[]; static const sal_uInt16 aBrackets[][2];
static const sal_uInt16 aFormats[]; static const sal_uInt16 aFormats[][2];
static const sal_uInt16 aOthers[]; static const sal_uInt16 aOthers[][2];
Link aSelectHdlLink; Link aSelectHdlLink;
...@@ -90,9 +96,9 @@ class SmElementsControl : public Control ...@@ -90,9 +96,9 @@ class SmElementsControl : public Control
Size maMaxElementDimensions; Size maMaxElementDimensions;
bool mbVerticalMode; 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(); void addSeparator();
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment