office-gobmx/include/sfx2
Justin Luth bc21a85029 tdf#34804 sw: enable keyboard shortcut for CharColor and CharBackColor
The result of this patch is that a keyboard shortcut can now
set the font fore-/back-ground color using the
color shown in the toolbar/sidebar.

This is now possible thanks to Maxim's work in 7.6.2
    tdf#154270 Sync toolbar button recent colors
and Andreas Heinisch's 24.8 commit 8c822b764b
    tdf#72991 - Remember last used color depending in cui

This patch does 3 things:
1. SetRecentColor when the app initializes
2. Uses SID_ATTR_CHAR_COLOR's recentColor for .uno:FontColor
   if no pItem was provided (i.e. a keyboard shortcut called it)
3. Uses SID_ATTR_CHAR_BACK_COLOR's recentColor for .uno:CharBackColor
   if no pItem was provided
   (Note that without a selection,
   CharBackColor isn't so useful for a keyboard shortcut,
   since it turns the drag-and-drop template on.)

Setting the recent color right away is critical for user acceptance.
Otherwise, it would only function after they first modified the color
in the toolbar/sidebar.

make CppunitTest_sw_uiwriter9 CPPUNIT_TEST_NAME=testTdf34804

Unfortunately, I can't reliably know if this request
came from an awt::KeyEvent or not, because in that case
we could just avoid CharBackColor's template altogether.
[While there is rReq.GetModifiers() as a good hint,
it is not a guarantee (in case assigned to a function key,
or CTRL held while clicking the toolbar, etc.)]

Change-Id: I7377f087dcdf7011205af005cd0d172100bade2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174804
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-10-17 17:33:49 +02:00
..
devtools
notebookbar
sidebar loplugin:unusedfields 2024-10-16 15:51:52 +02:00
AccessibilityCheck.hxx
AccessibilityIssue.hxx
app.hxx
basedlgs.hxx
bindings.hxx
brokenpackageint.hxx
chalign.hxx
charwin.hxx
childwin.hxx
classificationhelper.hxx
ctrlitem.hxx
dialoghelper.hxx
digitalsignatures.hxx cool#9992 lok doc sign: conditionally show the add button in the sign dialog 2024-09-26 11:06:06 +02:00
dinfdlg.hxx Resolves tdf#162738 - Revert tdf#160937 2024-09-05 07:37:32 +02:00
dispatch.hxx
dllapi.h
docfac.hxx
docfile.hxx cool#9992 lok doc sign: conditionally show the add button in the sign dialog 2024-09-26 11:06:06 +02:00
docfilt.hxx
docinf.hxx
docinsert.hxx
dockwin.hxx
docmacromode.hxx
docstoragemodifylistener.hxx
doctempl.hxx
DocumentMetadataAccess.hxx
DocumentSigner.hxx
event.hxx
evntconf.hxx
fcontnr.hxx
filedlghelper.hxx
flatpak.hxx
frame.hxx
frmdescr.hxx
frmhtml.hxx
frmhtmlw.hxx
groupid.hxx
htmlmode.hxx
IDocumentModelAccessor.hxx
infobar.hxx
inputdlg.hxx
ipclient.hxx
linkmgr.hxx
linksrc.hxx
listview.hxx
lnkbase.hxx
lokcallback.hxx
lokcomponenthelpers.hxx
LokControlHandler.hxx
lokhelper.hxx cool#9992 lok doc sign: handle .uno:SignatureCert/Key/Ca view options 2024-09-23 17:49:28 +02:00
mailmodelapi.hxx
Metadatable.hxx
mieclip.hxx
minfitem.hxx
module.hxx
msg.hxx
msgpool.hxx
namedcolor.hxx tdf#34804 sw: enable keyboard shortcut for CharColor and CharBackColor 2024-10-17 17:33:49 +02:00
navigat.hxx
new.hxx
newstyle.hxx
objface.hxx
objitem.hxx
objsh.hxx tdf#34804 sw: enable keyboard shortcut for CharColor and CharBackColor 2024-10-17 17:33:49 +02:00
opengrf.hxx
pageids.hxx
passwd.hxx
printer.hxx
printopt.hxx
progress.hxx
QuerySaveDocument.hxx
request.hxx
safemode.hxx
sfxbasecontroller.hxx
sfxbasemodel.hxx
sfxdlg.hxx
sfxhelp.hxx
sfxhtml.hxx
sfxmodelfactory.hxx
sfxresid.hxx
sfxsids.hrc tdf#85976 [RFE] Add a "Remove Duplicate Records" command 2024-09-27 15:22:46 +02:00
sfxstatuslistener.hxx
sfxuno.hxx
shell.hxx
signaturestate.hxx
stbitem.hxx
strings.hrc tdf#162405: check if there's a matching singing cert only when saving 2024-09-12 16:42:20 +02:00
styfitem.hxx
styledlg.hxx
StyleManager.hxx
StylePreviewRenderer.hxx
tabdlg.hxx
tbxctrl.hxx
templatedlg.hxx
templatedlglocalview.hxx
templatelocalview.hxx
templateproperties.hxx
templdlg.hxx
thumbnailview.hxx
thumbnailviewitem.hxx
toolbarids.hxx
tplpitem.hxx
userinputinterception.hxx
viewfac.hxx
viewfrm.hxx
viewsh.hxx cool#9992 lok doc sign: store signing cert in the view 2024-09-24 10:55:58 +02:00
watermarkitem.hxx
weldutils.hxx Related: tdf#162580 When upgrading from Find toolbar search to 2024-09-02 19:45:00 +02:00
XmlIdRegistry.hxx
zoomitem.hxx