Skip to content

Commit

Permalink
Add a "Referer" to toolbars
Browse files Browse the repository at this point in the history
(cherry picked from commit 862aa45)
  • Loading branch information
ardovm committed Feb 4, 2023
1 parent 829b7f4 commit 593a267
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/framework/source/uielement/generictoolbarcontroller.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 593a267

Please sign in to comment.