Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Noel,

maybe this grepping for "control\.FixedText" helps you:

stardiv.vcl.control.FixedText
com.sun.star.form.control.FixedText

So there is toolkit/source/helper/servicenames.cxx which uses szServiceName_UnoControlFixedText[] = "stardiv.vcl.control.FixedText"

Maybe that wasn't converted in the past?!

Thomas

On 03.04.2013 14:19, Noel Grandin wrote:
Hi

I'm fighting a "make check" failure on a clean master build, running
under 64-bit Ubuntu.

The failure is inside:
    make JunitTest_forms_unoapi

The error message looks like:
xwarn:legacy.osl:28578:327:svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx:1245:
caught an exception!
     in function:static bool
sdr::contact::ViewObjectContactOfUnoControl_Impl::createControlForDevice
    type: com.sun.star.uno.RuntimeException
    message: unsatisfied query for interface of type
com.sun.star.awt.XControl

The object that is being queried is an SdrUnoObject, which has an
aUnoControlTypeName member which reads
"com.sun.star.form.control.FixedText"

The
    ViewObjectContactOfUnoControl_Impl::createControlForDevice
method is called from
    ViewObjectContactOfUnoControl_Impl::impl_ensureControl_noThrow
which gets the pUnoObject field by calling
    getUnoObject
which calls
    ViewContactOfSdrObj::TryToGetSdrObject
which calls
    GetSdrObject
which returns the
    mrObject
field.

 From there, following the constructor call stack back gets me to
   SdrUnoObj::setUnoControlModel
which is called from the Java unit test code.

Using GDB, I find that something in the unit test code is passing an
awt::XControlModel UNO object to SvxShapeControl::setControl()
That XControlModel is returning "com.sun.star.form.control.FixedText"
when called like this:
  beans::XPropertySet::getPropertyValue("DefaultControl")

Grepping through the source code, "com.sun.star.form.control.FixedText"
is only found in
    forms/source/inc/services.hxxx
but the global constants declared there are not used anywhere else
(confirmed by removing them and rebuilding).

Nothing seems to actually implement this service.

Any ideas?

Regards, Noel Grandin


Disclaimer: http://www.peralex.com/disclaimer.html


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.