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/04 08:38:00 UTC

[openoffice] branch trunk updated: Add a "Referer" to toolbars

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 593a267e70 Add a "Referer" to toolbars
593a267e70 is described below

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

    Add a "Referer" to toolbars
    
    (cherry picked from commit 862aa45eeb118db8eefd70beacbda94e4007051c)
---
 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 );