Type: info Title: new: ::sfx2::createSfxModelFactory Posted by: [EMAIL PROTECTED] Affected: - Effective from: CWS odbmacros2
*Summary* -------- + <sfx2/sfxmodelfactory.hxx> + ::sfx2::createSfxModelFactory( ... ) + #define SFXMODEL_EMBEDDED_OBJECT (sal_uInt64)(0x0001) + #define SFXMODEL_DISABLE_EMBEDDED_SCRIPTS (sal_uInt64)(0x0002) *Description* ------------- For classes derived from SfxBaseModel, it is recommended to use ::sfx2::createSfxModelFactory instead of ::cppu::createSingleFactory. Both methods have a similar signature, but in case of createSfxModelFactory, the function pointer to the function actually creating the class instance takes an additional sal_Int64, called the so-called creation flags. They're used to transport additional information to the to-be-created SfxBaseModel-derivee, which are needed at construction (and not only initialization) time. Already defined flags are: SFXMODEL_EMBEDDED_OBJECT: indicates that the document is embedded, it should results in the SfxBaseModel being created with SFX_CREATE_MODE_EMBEDDED. (this was previously reached by some hacky attachResource call to the newly created XModel). SFXMODEL_DISABLE_EMBEDDED_SCRIPTS: indicates whether the document should actualy support embedding macros, scripts, and dialogs. If set, you need to call SetHasNoBasic at the SfxObjectShell instance belonging to the SfxBaseModel instance. For all existing known derived class - i.e. for the applications Writer, Calc, Impress, Draw, Math -, the creation of the document instance has been changed to use createSfxModelFactory. Send feedback to [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]