<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Hex representation of color is used for recent color tool tip after split color button is clicked"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124247#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Hex representation of color is used for recent color tool tip after split color button is clicked"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124247">bug 124247</a>
from <span class="vcard"><a class="email" href="mailto:raykowj@gmail.com" title="Jim Raykowski <raykowj@gmail.com>"> <span class="fn">Jim Raykowski</span></a>
</span></b>
<pre>Here are some code pointers.
Classes to examine:
ToolboxButtonColorUpdater class
include/svx/tbxcolorupdate.hxx
svx/source/tbxctrls/tbxcolorupdate.cxx
SvxColorToolBoxControl class
include/svx/tbcontrl.hxx
svx/source/tbxctrls/tbcontrl.cxx
PaletteManager class
include/svx/PaletteManager.hxx
svx/source/tbxctrls/PaletteManager.cxx
Suggested approach:
Add a member function to the ToolboxButtonColorUpdater class that gets the
current color name.
Getting the current color name can be accomplished by:
parsing the color name from the tool box quick help text/tool tip text
include/svx/tbxcolorupdate.hxx
sal_uInt16 const mnBtnId;
VclPtr<ToolBox> mpTbx;
include/vcl/toolbox.hxx
OUString ToolBox::GetQuickHelpText( sal_uInt16 nItemId )
or
adding a member variable to the ToolboxButtonColorUpdater class to store the
color name that is set in
svx/source/tbxctrls/tbxcolorupdate.cxx
ToolboxButtonColorUpdater::Update(const NamedColor &rNamedColor)
Replace the color hex representation string code with code that uses the
created get current color name function
svx/source/tbxctrls/tbcontrl.cxx
void SvxColorToolBoxControl::execute(sal_Int16 /*nSelectModifier*/)
include/svx/PaletteManager.hxx
PaletteManger::AddRecentColor
HTH</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>