You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2023/02/07 20:39:08 UTC

[openoffice] 04/04: Add a "Referer" to toolbars

This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 419755b05637afdce1d57affda07e0f98a50de2d
Author: Arrigo Marchiori <ar...@yahoo.it>
AuthorDate: Sat Feb 4 07:38:44 2023 +0100

    Add a "Referer" to toolbars
---
 main/framework/source/uielement/generictoolbarcontroller.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/main/framework/source/uielement/generictoolbarcontroller.cxx b/main/framework/source/uielement/generictoolbarcontroller.cxx
index 63e5959b67..10f236b0fd 100644
--- a/main/framework/source/uielement/generictoolbarcontroller.cxx
+++ b/main/framework/source/uielement/generictoolbarcontroller.cxx
@@ -186,11 +186,14 @@ throw ( RuntimeException )
     if ( xDispatch.is() && xURLTransformer.is() )
     {
         com::sun::star::util::URL aTargetURL;
-        Sequence<PropertyValue>   aArgs( 1 );
+        Sequence<PropertyValue>   aArgs( 2 );
 
         // Add key modifier to argument list
         aArgs[0].Name  = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "KeyModifier" ));
         aArgs[0].Value <<= KeyModifier;
+        // Add "Referer" to identify the source of this request
+        aArgs[1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Referer" ));
+        aArgs[1].Value <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:user" ));
 
         aTargetURL.Complete = aCommandURL;
         xURLTransformer->parseStrict( aTargetURL );