[Libreoffice-bugs] [Bug 131596] Allow MailMerge to get document from XInputStream or already opened XComponent

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jan 15 18:55:36 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=131596

--- Comment #2 from Shubham Jain <shubham656jain at gmail.com> ---
(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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210115/780effb0/attachment.htm>


More information about the Libreoffice-bugs mailing list