Type: info
Title: ScriptSelectorDialog requires an XFrame now
Posted by: [EMAIL PROTECTED]
Affected: -
Effective from: CWS odbmacros2
*Summary*
--------
- SfxAbstractDialogFactory::CreateScriptSelectorDialog(
Window*, BOOL )
+ SfxAbstractDialogFactory::CreateScriptSelectorDialog(
Window*, BOOL, XFrame )
- SvxAbstractDialogFactory::CreateSvxMacroAssignDlg(
Window*, SfxItemSet&, XNameAccess, sal_uInt16 )
+ SvxAbstractDialogFactory::CreateSvxMacroAssignDlg(
Window*, XFrame, bool, XNameAccess, sal_uInt16 )
- SfxAbstractDialogFactory::CreateScriptSelectorDialog(
Window*, BOOL )
+ SfxAbstractDialogFactory::CreateScriptSelectorDialog(
Window*, BOOL, XFrame )
*Description*
-------------
The script selector / macro assignment dialog used in various places
got a new construction-time parameter, specifying the frame for which
the dialog is invoked.
This frame is used to obtain the document (XModel) whose
macros/scripts are to be displayed in the dialog. Previously, this
document was obtained by calling SfxObjectShell::GetWorkingDocument,
which was error-prone, and in some scenarios simply returned wrong
results.
Additionally, the SfxItemSet parameter of CreateSvxMacroAssignDlg has
been replaced by a boolean parameter, since the set was only used to
transport SfxApplication's default items (which can be obtained
elsewhere), plus one boolean item, whose value is now passed directly.
Send feedback to [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]