sfx2/source/control/unoctitm.cxx | 4 ++++ svx/sdi/svx.sdi | 2 +- svx/source/tbxctrls/grafctrl.cxx | 11 ++++++----- 3 files changed, 11 insertions(+), 6 deletions(-)
New commits: commit 88d397a7227c5cbbefbe4c3b196ace288df110b2 Author: Mohit Marathe <[email protected]> AuthorDate: Wed Jul 16 15:27:29 2025 +0530 Commit: Mohit Marathe <[email protected]> CommitDate: Thu Jul 24 07:47:52 2025 +0200 svx lok: .uno:GrafLuminance: add Brightness parameter To add a Brightness menubutton with pre-canned values, we need to send a uno command with a parameter with a particular brightness value. Signed-off-by: Mohit Marathe <[email protected]> Change-Id: Ieb72655b27bb65b38f4b5a3ac8c3073e11ace428 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187951 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Pranam Lashkari <[email protected]> diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index fd3c867693c7..38267001956f 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -3884,7 +3884,7 @@ SfxBoolItem GrafInvert SID_ATTR_GRAF_INVERT SfxInt16Item GrafLuminance SID_ATTR_GRAF_LUMINANCE - +(SfxInt16Item Brightness FN_PARAM_1) [ AutoUpdate = TRUE, FastCall = FALSE, diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 70f6ca8d002a..a8c0dddec7e4 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -549,12 +549,13 @@ void SvxGrafAttrHelper::ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView ) case SID_ATTR_GRAF_LUMINANCE: { - if( pItem ) - { + const SfxInt16Item* pBrightness = rReq.GetArg<SfxInt16Item>(FN_PARAM_1); + if (pBrightness) + aSet.Put( SdrGrafLuminanceItem( pBrightness->GetValue() ) ); + else if( pItem ) aSet.Put( SdrGrafLuminanceItem( static_cast<const SfxInt16Item*>(pItem)->GetValue() )); - if( bUndo ) - aUndoStr += SvxResId( RID_SVXSTR_UNDO_GRAFLUMINANCE ); - } + if( bUndo && (pBrightness || pItem) ) + aUndoStr += SvxResId( RID_SVXSTR_UNDO_GRAFLUMINANCE ); } break; commit c4fc2c55dbc501edf4a7149f750737eed6d10458 Author: Mohit Marathe <[email protected]> AuthorDate: Tue Jul 15 19:39:20 2025 +0530 Commit: Mohit Marathe <[email protected]> CommitDate: Thu Jul 24 07:47:37 2025 +0200 Add more graphic related uno commands to kit uno command list add GrafLuminance, GrafContrast, GrafMode, GrafTransparence to the list Signed-off-by: Mohit Marathe <[email protected]> Change-Id: I9be56ab8639c5c82c3f281f48d9996e348059ea4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188098 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Pranam Lashkari <[email protected]> diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 3167ce83382f..b10a17e2cba4 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1390,6 +1390,10 @@ const std::map<std::u16string_view, KitUnoCommand>& GetKitUnoCommandList() { u"ParaRightToLeft", { PayloadType::ParaDirectionPayload, true } }, { u"AssignLayout", { PayloadType::Int32Payload, true } }, + { u"GrafContrast", { PayloadType::Int32Payload, true } }, + { u"GrafLuminance", { PayloadType::Int32Payload, true } }, + { u"GrafMode", { PayloadType::Int32Payload, true } }, + { u"GrafTransparence", { PayloadType::Int32Payload, true } }, { u"StatusSelectionMode", { PayloadType::Int32Payload, true } }, { u"Signature", { PayloadType::Int32Payload, false } }, { u"SelectionMode", { PayloadType::Int32Payload, true } },
