https://bugs.freedesktop.org/show_bug.cgi?id=87840
Lionel Elie Mamane <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Summary|Checkbox named "Use keyword |checkboxes for |AS before table alias |not-supported-by-driver |names" doesn't remember |advanced settings are |tick; advanced properties |present (but have no |of DB/connection |effect) --- Comment #14 from Lionel Elie Mamane <[email protected]> --- My best guess is that this bug was introduced by the conversion of the "advanced settings" dialog to .ui format. Caolán, could you please help us on this one? Thanks in advance. The "old" .src code had (file dbaccess/source/ui/dlg/advancedsettings.cxx function SpecialSettingsPage::SpecialSettingsPage): if ( rFeatures.has( nItemId ) ) { sal_uInt16 nResourceId = setting->nControlResId; (*setting->ppControl) = new CheckBox( this, ModuleRes( nResourceId ) ); which to me looks like that when (! rFeatures.has( nItemId )), the checkbox was never created. The new .ui code has: if ( rFeatures.has( nItemId ) ) { get((*setting->ppControl), setting->sControlId); which (from the name "get" and not "create") smells like the the checkbox is just not put in "*setting->ppControl", but it is actually created. Caolán, is my guess right? In this case, how can we "not create" (or hide) checkboxes that we do not want? Note that placement of the checkboxes on the page depends on which ones are wanted, obviously. How do we handle that in .ui format? Alternatively, we could create and show all checkboxes, but disable (grey out) the ones we do not want. Something like: if ( rFeatures.has( nItemId ) ) { get((*setting->ppControl), setting->sControlId); (...) } else { CheckBox* pControl; get(pControl, setting->sControlId); pControl->setEnabled(false); } -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
