Related tdf#164685: Cleanup class SfxItemSetFixed (starmath)
Change-Id: I40cb625032b695295571bf1041d0a95ccfe72685 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203924 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
@@ -510,11 +510,11 @@ Printer* SmDocShell::GetPrt()
|
||||
}
|
||||
else if (!mpPrinter)
|
||||
{
|
||||
auto pOptions = std::make_unique<SfxItemSetFixed<
|
||||
auto pOptions = std::make_unique<SfxItemSet>(SfxItemSet::makeFixedSfxItemSet<
|
||||
SID_PRINTTITLE, SID_PRINTZOOM,
|
||||
SID_NO_RIGHT_SPACES, SID_SAVE_ONLY_USED_SYMBOLS,
|
||||
SID_AUTO_CLOSE_BRACKETS, SID_SMEDITWINDOWZOOM,
|
||||
SID_INLINE_EDIT_ENABLE, SID_INLINE_EDIT_ENABLE>>(GetPool());
|
||||
SID_INLINE_EDIT_ENABLE, SID_INLINE_EDIT_ENABLE>(GetPool()));
|
||||
SmModule::get()->GetConfig()->ConfigToItemSet(*pOptions);
|
||||
mpPrinter = VclPtr<SfxPrinter>::Create(std::move(pOptions));
|
||||
mpPrinter->SetMapMode(MapMode(SmMapUnit()));
|
||||
|
||||
@@ -601,7 +601,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
|
||||
sal_uInt32 nSize = aSequence.getLength();
|
||||
SvMemoryStream aStream ( aSequence.getArray(), nSize, StreamMode::READ );
|
||||
aStream.Seek ( STREAM_SEEK_TO_BEGIN );
|
||||
auto pItemSet = std::make_unique<SfxItemSetFixed<
|
||||
auto pItemSet = std::make_unique<SfxItemSet>(SfxItemSet::makeFixedSfxItemSet<
|
||||
SID_PRINTTITLE, SID_PRINTTITLE,
|
||||
SID_PRINTTEXT, SID_PRINTTEXT,
|
||||
SID_PRINTFRAME, SID_PRINTFRAME,
|
||||
@@ -610,7 +610,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
|
||||
SID_NO_RIGHT_SPACES, SID_NO_RIGHT_SPACES,
|
||||
SID_SAVE_ONLY_USED_SYMBOLS, SID_SAVE_ONLY_USED_SYMBOLS,
|
||||
SID_AUTO_CLOSE_BRACKETS, SID_SMEDITWINDOWZOOM,
|
||||
SID_INLINE_EDIT_ENABLE, SID_INLINE_EDIT_ENABLE>> ( SmDocShell::GetPool() );
|
||||
SID_INLINE_EDIT_ENABLE, SID_INLINE_EDIT_ENABLE> ( SmDocShell::GetPool() ));
|
||||
SmModule::get()->GetConfig()->ConfigToItemSet(*pItemSet);
|
||||
VclPtr<SfxPrinter> pPrinter = SfxPrinter::Create ( aStream, std::move(pItemSet) );
|
||||
|
||||
|
||||
@@ -1738,7 +1738,7 @@ void SmViewShell::Execute(SfxRequest& rReq)
|
||||
}
|
||||
else
|
||||
{
|
||||
SfxItemSetFixed<SID_ATTR_ZOOM, SID_ATTR_ZOOM> aSet( SmDocShell::GetPool() );
|
||||
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_ATTR_ZOOM, SID_ATTR_ZOOM>( SmDocShell::GetPool() ));
|
||||
aSet.Put( SvxZoomItem( SvxZoomType::PERCENT, mxGraphicWindow->GetZoom()));
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
ScopedVclPtr<AbstractSvxZoomDialog> xDlg(pFact->CreateSvxZoomDialog(GetViewFrame().GetWindow().GetFrameWeld(), aSet));
|
||||
|
||||
Reference in New Issue
Block a user