https://issues.apache.org/ooo/show_bug.cgi?id=124652

          Issue ID: 124652
        Issue Type: DEFECT
           Summary: css::ui::dialogs::XWizard: enableButton and
                    setDefaultButton work only after the dialog is
                    executed
           Product: App Dev
           Version: OOo 3.3 or older
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]

enableButton and setDefaultButton work only after the dialog is executed, this
doesn't make sense, as client code is likely to use these methods after dialog
construction.

The bug is in the implementation, the UNO dialog implantation only works when
its VCL dialog is already created:

WizardShell* pWizardImpl = dynamic_cast< WizardShell* >( m_pDialog );
ENSURE_OR_RETURN_VOID( pWizardImpl, "Wizard::setDefaultButton: invalid dialog
implementation!" );

http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/uno/wizard/unowizard.cxx?revision=1586340&view=markup#l327

http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/uno/wizard/unowizard.cxx?revision=1586340&view=markup#l339

but this should be treated like the HelpURL attribute: if there is no VCL
dialog, store the information in member variables and then set it when the VCL
dialog is created.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to