Related tdf#164685: Cleanup class SfxItemSetFixed (sfx2)
Change-Id: I71ca25b69040dd71c4b3b1c65276d0e8b42e6119 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203925 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
@@ -464,7 +464,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
|
||||
|
||||
const SfxStringItem* pStringItem = rReq.GetArg(SID_CONFIG);
|
||||
|
||||
SfxItemSetFixed<SID_CONFIG, SID_CONFIG, SID_MACROINFO, SID_MACROINFO> aSet( GetPool() );
|
||||
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_CONFIG, SID_CONFIG, SID_MACROINFO, SID_MACROINFO>( GetPool() ));
|
||||
|
||||
// SID_CONFIG property will determine the default page shown
|
||||
if ( pStringItem )
|
||||
@@ -1966,7 +1966,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
|
||||
case SID_AUTO_CORRECT_DLG:
|
||||
{
|
||||
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
|
||||
SfxItemSetFixed<SID_AUTO_CORRECT_DLG, SID_AUTO_CORRECT_DLG> aSet(GetPool());
|
||||
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_AUTO_CORRECT_DLG, SID_AUTO_CORRECT_DLG>(GetPool()));
|
||||
const SfxPoolItem* pItem=nullptr;
|
||||
const SfxItemSet* pSet = rReq.GetArgs();
|
||||
if ( pSet && pSet->GetItemState( SID_AUTO_CORRECT_DLG, false, &pItem ) == SfxItemState::SET )
|
||||
|
||||
@@ -737,9 +737,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
|
||||
// templates not supported
|
||||
aDocInfoItem.SetTemplate(false);
|
||||
|
||||
SfxItemSetFixed<SID_DOCINFO, SID_DOCINFO, SID_DOC_READONLY, SID_DOC_READONLY,
|
||||
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_DOCINFO, SID_DOCINFO, SID_DOC_READONLY, SID_DOC_READONLY,
|
||||
SID_EXPLORER_PROPS_START, SID_EXPLORER_PROPS_START, SID_BASEURL, SID_BASEURL>
|
||||
aSet(GetPool());
|
||||
(GetPool()));
|
||||
aSet.Put( aDocInfoItem );
|
||||
aSet.Put( SfxBoolItem( SID_DOC_READONLY, bReadOnly ) );
|
||||
aSet.Put( SfxStringItem( SID_EXPLORER_PROPS_START, GetTitle() ) );
|
||||
|
||||
@@ -2050,8 +2050,8 @@ IMPL_LINK_NOARG(SfxViewFrame, DontShowAgainHdl, weld::Button&, void)
|
||||
IMPL_LINK_NOARG(SfxViewFrame, ChangeOptionsHdl, weld::Button&, void)
|
||||
{
|
||||
SfxApplication* pApp = SfxGetpApp();
|
||||
SfxItemSetFixed<SID_AUTO_CORRECT_DLG, SID_OPEN_AUTOCORROPTIONS>
|
||||
aSet(pApp->GetPool());
|
||||
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_AUTO_CORRECT_DLG, SID_OPEN_AUTOCORROPTIONS>
|
||||
(pApp->GetPool()));
|
||||
// show dialog with same tabs as opened via SID_AUTO_CORRECT_DLG
|
||||
SfxBoolItem aDlg(SID_AUTO_CORRECT_DLG, true);
|
||||
aSet.Put(aDlg);
|
||||
|
||||
Reference in New Issue
Block a user