https://bugs.documentfoundation.org/show_bug.cgi?id=131596
--- Comment #2 from Shubham Jain <[email protected]> ---
(In reply to Mike Kaganski from comment #1)
> Mail merge is implemented using an implementation of XJob interface [1]
> (SwXMailMerge). Its "execute" method takes a sequence of NamedValues, which
> is how you pass parameters there.
>
> Extending SwXMailMerge::execute (and SwXMailMerge::setPropertyValue) in
> sw/source/uibase/uno/unomailmerge.cxx to accept another name-value pair is
> required for this request. It should basically do a processing of that new
> pair alternative to what is currently done for UNO_NAME_DOCUMENT_URL.
>
> [1]
> https://api.libreoffice.org/docs/idl/ref/
> interfacecom_1_1sun_1_1star_1_1task_1_1XJob.html
Hi Mike,
I have changed the definition of SwXMailMerge::execute in unomailmerge.hxx
from :
virtual css::uno::Any SAL_CALL execute( const css::uno::Sequence<
css::beans::NamedValue >& Arguments ) override;
to:
virtual css::uno::Any SAL_CALL execute( const css::uno::Sequence<
css::beans::NamedValue >& Arguments1, const css::uno::Sequence<
css::beans::NamedValue >& Arguments2 ) override;
Now I didn't understand "It should basically do a processing of that new
> pair alternative to what is currently done for UNO_NAME_DOCUMENT_URL"
Do I need to run 1 more loop in unomailmerge.cxx and get UNO_NAME_DOCUMENT_URL
of Argument2 as well and how to process them? Can you please guide me a little
bit? Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs