static const sal_uInt16 nCopyFlags[] = { SID_COLOR_TABLE, SID_GRADIENT_LIST, SID_HATCH_LIST, SID_BITMAP_LIST, SID_PATTERN_LIST, 0 }; To my SfxItemSet aSet in HeaderFooterWin.cxx.. But when iterating each of the values in nCopyFlags, I am using GetItemSet().GetItem(nCopyFlags[a]) .. for(sal_uInt16 a(0); nCopyFlags[a]; a++) { const SfxPoolItem* pItem = GetItemSet().GetItem(nCopyFlags[a]); if(pItem) { aSet->Put(*pItem); } else { OSL_ENSURE(false, "XPropertyList missing (!)"); } } |
_______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice