[Libreoffice-bugs] [Bug 54021] EDITING: Fields in tablecontrols of a form could not be moved/sorted

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Dec 17 13:06:37 UTC 2020


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

Caolán McNamara <caolanm at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sbergman at redhat.com

--- Comment #49 from Caolán McNamara <caolanm at redhat.com> ---
Using https://bugs.documentfoundation.org/attachment.cgi?id=112455 and digging
into what is different between old working state and current state I strangely
see that:

back in the working case we get a FmXGridControl from a sControlServiceName of
"com.sun.star.form.control.GridControl" in
ViewObjectContactOfUnoControl_Impl::createControlForDevice

now we get a SbaXGridControl from "com.sun.star.form.control.GridControl"
instead. (SbaXGridControl inherits from FmXGridControl)

looks to me that SbaXGridControl has drag and drop support that FmXGridControl
does not, and that this is the difference that has triggered all this

com.sun.star.form.control.GridControl appears in dbaccess/util/dbu.component
and SbaXGridControl::getSupportedServiceNames

but 

svx/source/form/fmservs.cxx has ImplSmartRegisterUnoServices and the last entry
of REGISTER_SERVICE(FmXGridControl, FM_SUN_CONTROL_GRIDCONTROL); 

expands to...

uno::Reference< lang::XMultiServiceFactory >  xServiceFactory =
::comphelper::getProcessServiceFactory();
uno::Reference< container::XSet >  xSet(xServiceFactory, uno::UNO_QUERY);
OUString sString = "com.sun.star.form.control.GridControl";
xSingleFactory = ::cppu::createSingleFactory(xServiceFactory,
                    OUString(), FmXGridControl_NewInstance_Impl,
                    uno::Sequence< OUString>(&sString, 1));
xSet->insert(uno::makeAny(xSingleFactory));

which sort of looks like it wants to replace the default target of
"com.sun.star.form.control.GridControl" with a replacement

caolam->sberg: IYO what is ImplSmartRegisterUnoServices trying to do ?

-- 
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/20201217/96180ac8/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list