https://bugs.freedesktop.org/show_bug.cgi?id=34425

Winfried Donkers <o...@dci-electronics.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #54626|0                           |1
        is obsolete|                            |

--- Comment #18 from Winfried Donkers <o...@dci-electronics.nl> 2011-12-27 
02:58:19 UTC ---
Created attachment 54840
  --> https://bugs.freedesktop.org/attachment.cgi?id=54840
modified code so far, still not complete

I did make some progress: the double-function toolbutton shows the last used
color and when pressing the left hand button, the color of the selection can be
set.
I have done this by using a boolean to check if the popup window (the color
palette) has been used; if so, the last used color must be updated.

BUT: to set the color to the correct value, I need to get the last used color.
This is stored in mLastColor in SvxFontColorExtToolBoxControl (tbcontrl.cxx).
The spot where the color is set, is in ScFormatShell::ExecuteAttr() 
(formatsh.cxx).
How do I get this value? I hope any mentor/expert can give me a hint of the
function/call to be used. When this is solved, I can complete the code for both
background color as font color and submit the patch.

Please help and/or provide comments on the modifications doen so far.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to