convert SFX_ITEM constants to scoped enum

Change-Id: Ief8c30c356ba947727c5ab70092042816a0db99e
Reviewed-on: https://gerrit.libreoffice.org/15302
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin 2015-04-13 16:01:31 +02:00 committed by Noel Grandin
parent d208cf834f
commit fe73ed7c79
20 changed files with 507 additions and 499 deletions

View File

@ -167,7 +167,7 @@ ChartItemPool::ChartItemPool():
for( sal_uInt16 i = 0; i < nMax; i++ )
{
pItemInfos[i]._nSID = 0;
pItemInfos[i]._nFlags = SFX_ITEM_POOLABLE;
pItemInfos[i]._nFlags = SfxItemPoolFlags::POOLABLE;
}
// slot ids differing from which ids

View File

@ -367,67 +367,67 @@ SfxItemSet* ODbAdminDialog::createItemSet(SfxItemSet*& _rpSet, SfxItemPool*& _rp
// create the pool
static SfxItemInfo const aItemInfos[DSID_LAST_ITEM_ID - DSID_FIRST_ITEM_ID + 1] =
{
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0},
{0,0}
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE},
{0,SfxItemPoolFlags::NONE}
};
OSL_ENSURE(sizeof(aItemInfos)/sizeof(aItemInfos[0]) == DSID_LAST_ITEM_ID,"Invalid Ids!");

View File

@ -798,11 +798,11 @@ bool callColumnFormatDialog(vcl::Window* _pParent,
// UNO->ItemSet
static SfxItemInfo aItemInfos[] =
{
{ 0, 0 },
{ SID_ATTR_NUMBERFORMAT_VALUE, SFX_ITEM_POOLABLE },
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SFX_ITEM_POOLABLE },
{ SID_ATTR_NUMBERFORMAT_ONE_AREA, SFX_ITEM_POOLABLE },
{ SID_ATTR_NUMBERFORMAT_INFO, SFX_ITEM_POOLABLE }
{ 0, SfxItemPoolFlags::NONE },
{ SID_ATTR_NUMBERFORMAT_VALUE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_NUMBERFORMAT_ONE_AREA, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_NUMBERFORMAT_INFO, SfxItemPoolFlags::POOLABLE }
};
static const sal_uInt16 aAttrMap[] =
{

View File

@ -161,61 +161,61 @@ bool IsScriptItemValid( sal_uInt16 nItemId, short nScriptType )
}
const SfxItemInfo aItemInfos[EDITITEMCOUNT] = {
{ SID_ATTR_FRAMEDIRECTION, SFX_ITEM_POOLABLE }, // EE_PARA_WRITINGDIR
{ 0, SFX_ITEM_POOLABLE }, // EE_PARA_XMLATTRIBS
{ SID_ATTR_PARA_HANGPUNCTUATION, SFX_ITEM_POOLABLE }, // EE_PARA_HANGINGPUNCTUATION
{ SID_ATTR_PARA_FORBIDDEN_RULES, SFX_ITEM_POOLABLE },
{ SID_ATTR_PARA_SCRIPTSPACE, SFX_ITEM_POOLABLE }, // EE_PARA_ASIANCJKSPACING
{ SID_ATTR_NUMBERING_RULE, SFX_ITEM_POOLABLE }, // EE_PARA_NUMBULL
{ 0, SFX_ITEM_POOLABLE }, // EE_PARA_HYPHENATE
{ 0, SFX_ITEM_POOLABLE }, // EE_PARA_BULLETSTATE
{ 0, SFX_ITEM_POOLABLE }, // EE_PARA_OUTLLRSPACE
{ SID_ATTR_PARA_OUTLLEVEL, SFX_ITEM_POOLABLE }, // EE_PARA_OUTLLEVEL
{ SID_ATTR_PARA_BULLET, SFX_ITEM_POOLABLE }, // EE_PARA_BULLET
{ SID_ATTR_LRSPACE, SFX_ITEM_POOLABLE }, // EE_PARA_LRSPACE
{ SID_ATTR_ULSPACE, SFX_ITEM_POOLABLE }, // EE_PARA_ULSPACE
{ SID_ATTR_PARA_LINESPACE, SFX_ITEM_POOLABLE }, // EE_PARA_SBL
{ SID_ATTR_PARA_ADJUST, SFX_ITEM_POOLABLE }, // EE_PARA_JUST
{ SID_ATTR_TABSTOP, SFX_ITEM_POOLABLE }, // EE_PARA_TABS
{ SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD, SFX_ITEM_POOLABLE }, // EE_PARA_JUST_METHOD
{ SID_ATTR_ALIGN_VER_JUSTIFY, SFX_ITEM_POOLABLE }, // EE_PARA_VER_JUST
{ SID_ATTR_CHAR_COLOR, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_SCALEWIDTH, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_WEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_UNDERLINE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_STRIKEOUT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CONTOUR, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_SHADOWED, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_ESCAPEMENT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_AUTOKERN, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_KERNING, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_WORDLINEMODE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_WEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_WEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_EMPHASISMARK, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_RELIEF, SFX_ITEM_POOLABLE },
{ 0, SFX_ITEM_POOLABLE }, // EE_CHAR_RUBI_DUMMY
{ 0, SFX_ITEM_POOLABLE }, // EE_CHAR_XMLATTRIBS
{ SID_ATTR_CHAR_OVERLINE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CASEMAP, SFX_ITEM_POOLABLE }, // EE_CHAR_CASEMAP
{ SID_ATTR_CHAR_GRABBAG, SFX_ITEM_POOLABLE }, // EE_CHAR_GRABBAG
{ 0, SFX_ITEM_POOLABLE }, // EE_CHAR_BKGCOLOR
{ 0, SFX_ITEM_POOLABLE }, // EE_FEATURE_TAB
{ 0, SFX_ITEM_POOLABLE }, // EE_FEATURE_LINEBR
{ SID_ATTR_CHAR_CHARSETCOLOR, SFX_ITEM_POOLABLE }, // EE_FEATURE_NOTCONV
{ SID_FIELD, SFX_ITEM_POOLABLE }
{ SID_ATTR_FRAMEDIRECTION, SfxItemPoolFlags::POOLABLE }, // EE_PARA_WRITINGDIR
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_PARA_XMLATTRIBS
{ SID_ATTR_PARA_HANGPUNCTUATION, SfxItemPoolFlags::POOLABLE }, // EE_PARA_HANGINGPUNCTUATION
{ SID_ATTR_PARA_FORBIDDEN_RULES, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_PARA_SCRIPTSPACE, SfxItemPoolFlags::POOLABLE }, // EE_PARA_ASIANCJKSPACING
{ SID_ATTR_NUMBERING_RULE, SfxItemPoolFlags::POOLABLE }, // EE_PARA_NUMBULL
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_PARA_HYPHENATE
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_PARA_BULLETSTATE
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_PARA_OUTLLRSPACE
{ SID_ATTR_PARA_OUTLLEVEL, SfxItemPoolFlags::POOLABLE }, // EE_PARA_OUTLLEVEL
{ SID_ATTR_PARA_BULLET, SfxItemPoolFlags::POOLABLE }, // EE_PARA_BULLET
{ SID_ATTR_LRSPACE, SfxItemPoolFlags::POOLABLE }, // EE_PARA_LRSPACE
{ SID_ATTR_ULSPACE, SfxItemPoolFlags::POOLABLE }, // EE_PARA_ULSPACE
{ SID_ATTR_PARA_LINESPACE, SfxItemPoolFlags::POOLABLE }, // EE_PARA_SBL
{ SID_ATTR_PARA_ADJUST, SfxItemPoolFlags::POOLABLE }, // EE_PARA_JUST
{ SID_ATTR_TABSTOP, SfxItemPoolFlags::POOLABLE }, // EE_PARA_TABS
{ SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD, SfxItemPoolFlags::POOLABLE }, // EE_PARA_JUST_METHOD
{ SID_ATTR_ALIGN_VER_JUSTIFY, SfxItemPoolFlags::POOLABLE }, // EE_PARA_VER_JUST
{ SID_ATTR_CHAR_COLOR, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_SCALEWIDTH, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_WEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_UNDERLINE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_STRIKEOUT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CONTOUR, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_SHADOWED, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_ESCAPEMENT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_AUTOKERN, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_KERNING, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_WORDLINEMODE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_WEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_WEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_EMPHASISMARK, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_RELIEF, SfxItemPoolFlags::POOLABLE },
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_CHAR_RUBI_DUMMY
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_CHAR_XMLATTRIBS
{ SID_ATTR_CHAR_OVERLINE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CASEMAP, SfxItemPoolFlags::POOLABLE }, // EE_CHAR_CASEMAP
{ SID_ATTR_CHAR_GRABBAG, SfxItemPoolFlags::POOLABLE }, // EE_CHAR_GRABBAG
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_CHAR_BKGCOLOR
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_FEATURE_TAB
{ 0, SfxItemPoolFlags::POOLABLE }, // EE_FEATURE_LINEBR
{ SID_ATTR_CHAR_CHARSETCOLOR, SfxItemPoolFlags::POOLABLE }, // EE_FEATURE_NOTCONV
{ SID_FIELD, SfxItemPoolFlags::POOLABLE }
};
const sal_uInt16 aV1Map[] = {

View File

@ -520,26 +520,26 @@ namespace pcr
// create the pool
static SfxItemInfo const aItemInfos[CFID_LAST_ITEM_ID - CFID_FIRST_ITEM_ID + 1] =
{
{ SID_ATTR_CHAR_FONT, 0 },
{ SID_ATTR_CHAR_FONTHEIGHT, 0 },
{ SID_ATTR_CHAR_WEIGHT, 0 },
{ SID_ATTR_CHAR_POSTURE, 0 },
{ SID_ATTR_CHAR_LANGUAGE, 0 },
{ SID_ATTR_CHAR_UNDERLINE, 0 },
{ SID_ATTR_CHAR_STRIKEOUT, 0 },
{ SID_ATTR_CHAR_WORDLINEMODE, 0 },
{ SID_ATTR_CHAR_COLOR, 0 },
{ SID_ATTR_CHAR_RELIEF, 0 },
{ SID_ATTR_CHAR_EMPHASISMARK, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ SID_ATTR_CHAR_FONTLIST, 0 }
{ SID_ATTR_CHAR_FONT, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_FONTHEIGHT, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_WEIGHT, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_POSTURE, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_LANGUAGE, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_UNDERLINE, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_STRIKEOUT, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_WORDLINEMODE, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_COLOR, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_RELIEF, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_EMPHASISMARK, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ 0, SfxItemPoolFlags::NONE },
{ SID_ATTR_CHAR_FONTLIST, SfxItemPoolFlags::NONE }
};
_rpPool = new SfxItemPool(OUString("PCRControlFontItemPool"), CFID_FIRST_ITEM_ID, CFID_LAST_ITEM_ID,

View File

@ -24,6 +24,7 @@
#include <svl/poolitem.hxx>
#include <svl/svldllapi.h>
#include <tools/solar.h>
#include <o3tl/typed_flags_set.hxx>
class SvStream;
class SfxBroadcaster;
@ -31,13 +32,21 @@ struct SfxItemPool_Impl;
#define SFX_WHICH_MAX 4999
#define SFX_ITEM_POOLABLE 0x0001
#define SFX_ITEM_NOT_POOLABLE 0x0002
enum class SfxItemPoolFlags
{
NONE = 0x00,
POOLABLE = 0x01,
NOT_POOLABLE = 0x02,
};
namespace o3tl
{
template<> struct typed_flags<SfxItemPoolFlags> : is_typed_flags<SfxItemPoolFlags, 0x03> {};
}
struct SfxItemInfo
{
sal_uInt16 _nSID;
sal_uInt16 _nFlags;
sal_uInt16 _nSID;
SfxItemPoolFlags _nFlags;
};
class SfxStyleSheetIterator;
@ -75,7 +84,7 @@ private:
sal_uInt16 GetIndex_Impl(sal_uInt16 nWhich) const;
sal_uInt16 GetSize_Impl() const;
SVL_DLLPRIVATE bool IsItemFlag_Impl( sal_uInt16 nWhich, sal_uInt16 nFlag ) const;
SVL_DLLPRIVATE bool IsItemFlag_Impl( sal_uInt16 nWhich, SfxItemPoolFlags nFlag ) const;
public:
// for default SfxItemSet::CTOR, set default WhichRanges
@ -188,8 +197,8 @@ public:
void Delete();
bool IsItemFlag( sal_uInt16 nWhich, sal_uInt16 nFlag ) const;
bool IsItemFlag( const SfxPoolItem &rItem, sal_uInt16 nFlag ) const
bool IsItemFlag( sal_uInt16 nWhich, SfxItemPoolFlags nFlag ) const;
bool IsItemFlag( const SfxPoolItem &rItem, SfxItemPoolFlags nFlag ) const
{ return IsItemFlag( rItem.Which(), nFlag ); }
void SetItemInfos( const SfxItemInfo *pInfos );
sal_uInt16 GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const;

View File

@ -604,46 +604,46 @@ bool openCharDialog( const uno::Reference<report::XReportControlFormat >& _rxRep
// UNO->ItemSet
static SfxItemInfo aItemInfos[] =
{
{ SID_ATTR_CHAR_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_WEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_SHADOWED, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_WORDLINEMODE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CONTOUR, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_STRIKEOUT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_UNDERLINE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_COLOR, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_KERNING, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CASEMAP, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_ESCAPEMENT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_FONTLIST, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_AUTOKERN, SFX_ITEM_POOLABLE },
{ SID_COLOR_TABLE, SFX_ITEM_POOLABLE },
{ SID_ATTR_FLASH, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_EMPHASISMARK, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_TWO_LINES, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_ROTATED, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_SCALEWIDTH, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_RELIEF, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_HIDDEN, SFX_ITEM_POOLABLE },
{ SID_ATTR_BRUSH, SFX_ITEM_POOLABLE },
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SFX_ITEM_POOLABLE },
{ SID_ATTR_ALIGN_VER_JUSTIFY, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_WEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_SHADOWED, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_WORDLINEMODE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CONTOUR, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_STRIKEOUT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_UNDERLINE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_COLOR, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_KERNING, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CASEMAP, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_ESCAPEMENT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_FONTLIST, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_AUTOKERN, SfxItemPoolFlags::POOLABLE },
{ SID_COLOR_TABLE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_FLASH, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_EMPHASISMARK, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_TWO_LINES, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_ROTATED, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_SCALEWIDTH, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_RELIEF, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_HIDDEN, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_BRUSH, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_ALIGN_VER_JUSTIFY, SfxItemPoolFlags::POOLABLE },
// Asian
{ SID_ATTR_CHAR_CJK_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_WEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CJK_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CJK_WEIGHT, SfxItemPoolFlags::POOLABLE },
// Complex
{ SID_ATTR_CHAR_CTL_FONT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_LANGUAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_POSTURE, SFX_ITEM_POOLABLE },
{ SID_ATTR_CHAR_CTL_WEIGHT, SFX_ITEM_POOLABLE }
{ SID_ATTR_CHAR_CTL_FONT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_LANGUAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_POSTURE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_CHAR_CTL_WEIGHT, SfxItemPoolFlags::POOLABLE }
};
vcl::Window* pParent = VCLUnoHelper::GetWindow( _rxParentWindow );
::std::unique_ptr<FontList> pFontList(new FontList( pParent ));

View File

@ -2364,35 +2364,35 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
// UNO->ItemSet
static SfxItemInfo aItemInfos[] =
{
{ SID_ATTR_LRSPACE, SFX_ITEM_POOLABLE },
{ SID_ATTR_ULSPACE, SFX_ITEM_POOLABLE },
{ SID_ATTR_PAGE, SFX_ITEM_POOLABLE },
{ SID_ATTR_PAGE_SIZE, SFX_ITEM_POOLABLE },
{ SID_ENUM_PAGE_MODE, SFX_ITEM_POOLABLE },
{ SID_PAPER_START, SFX_ITEM_POOLABLE },
{ SID_PAPER_END, SFX_ITEM_POOLABLE },
{ SID_ATTR_BRUSH, SFX_ITEM_POOLABLE },
{ XATTR_FILLSTYLE, SFX_ITEM_POOLABLE },
{ XATTR_FILLCOLOR, SFX_ITEM_POOLABLE },
{ XATTR_FILLGRADIENT, SFX_ITEM_POOLABLE },
{ XATTR_FILLHATCH, SFX_ITEM_POOLABLE },
{ XATTR_FILLBITMAP, SFX_ITEM_POOLABLE },
{ XATTR_FILLTRANSPARENCE, SFX_ITEM_POOLABLE },
{ XATTR_GRADIENTSTEPCOUNT, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_TILE, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_POS, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_SIZEX, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_SIZEY, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_SIZELOG, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_TILEOFFSETX, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_TILEOFFSETY, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_STRETCH, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_POSOFFSETX, SFX_ITEM_POOLABLE },
{ XATTR_FILLBMP_POSOFFSETY, SFX_ITEM_POOLABLE },
{ XATTR_FILLFLOATTRANSPARENCE, SFX_ITEM_POOLABLE },
{ XATTR_SECONDARYFILLCOLOR, SFX_ITEM_POOLABLE },
{ XATTR_FILLBACKGROUND, SFX_ITEM_POOLABLE },
{ SID_ATTR_METRIC, SFX_ITEM_POOLABLE }
{ SID_ATTR_LRSPACE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_ULSPACE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_PAGE, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_PAGE_SIZE, SfxItemPoolFlags::POOLABLE },
{ SID_ENUM_PAGE_MODE, SfxItemPoolFlags::POOLABLE },
{ SID_PAPER_START, SfxItemPoolFlags::POOLABLE },
{ SID_PAPER_END, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_BRUSH, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLSTYLE, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLCOLOR, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLGRADIENT, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLHATCH, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBITMAP, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLTRANSPARENCE, SfxItemPoolFlags::POOLABLE },
{ XATTR_GRADIENTSTEPCOUNT, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_TILE, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_POS, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_SIZEX, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_SIZEY, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_SIZELOG, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_TILEOFFSETX, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_TILEOFFSETY, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_STRETCH, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_POSOFFSETX, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBMP_POSOFFSETY, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLFLOATTRANSPARENCE, SfxItemPoolFlags::POOLABLE },
{ XATTR_SECONDARYFILLCOLOR, SfxItemPoolFlags::POOLABLE },
{ XATTR_FILLBACKGROUND, SfxItemPoolFlags::POOLABLE },
{ SID_ATTR_METRIC, SfxItemPoolFlags::POOLABLE }
};
MeasurementSystem eSystem = SvtSysLocale().GetLocaleData().getMeasurementSystemEnum();
@ -4240,7 +4240,7 @@ void OReportController::openZoomDialog()
{
static SfxItemInfo aItemInfos[] =
{
{ SID_ATTR_ZOOM, SFX_ITEM_POOLABLE }
{ SID_ATTR_ZOOM, SfxItemPoolFlags::POOLABLE }
};
SfxPoolItem* pDefaults[] =
{

View File

@ -91,99 +91,99 @@ sal_uInt16* ScDocumentPool::pVersionMap12 = 0;
static SfxItemInfo const aItemInfos[] =
{
{ SID_ATTR_CHAR_FONT, SFX_ITEM_POOLABLE }, // ATTR_FONT
{ SID_ATTR_CHAR_FONTHEIGHT, SFX_ITEM_POOLABLE }, // ATTR_FONT_HEIGHT
{ SID_ATTR_CHAR_WEIGHT, SFX_ITEM_POOLABLE }, // ATTR_FONT_WEIGHT
{ SID_ATTR_CHAR_POSTURE, SFX_ITEM_POOLABLE }, // ATTR_FONT_POSTURE
{ SID_ATTR_CHAR_UNDERLINE, SFX_ITEM_POOLABLE }, // ATTR_FONT_UNDERLINE
{ SID_ATTR_CHAR_OVERLINE, SFX_ITEM_POOLABLE }, // ATTR_FONT_OVERLINE
{ SID_ATTR_CHAR_STRIKEOUT, SFX_ITEM_POOLABLE }, // ATTR_FONT_CROSSEDOUT
{ SID_ATTR_CHAR_CONTOUR, SFX_ITEM_POOLABLE }, // ATTR_FONT_CONTOUR
{ SID_ATTR_CHAR_SHADOWED, SFX_ITEM_POOLABLE }, // ATTR_FONT_SHADOWED
{ SID_ATTR_CHAR_COLOR, SFX_ITEM_POOLABLE }, // ATTR_FONT_COLOR
{ SID_ATTR_CHAR_LANGUAGE, SFX_ITEM_POOLABLE }, // ATTR_FONT_LANGUAGE
{ SID_ATTR_CHAR_CJK_FONT, SFX_ITEM_POOLABLE }, // ATTR_CJK_FONT from 614
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SFX_ITEM_POOLABLE }, // ATTR_CJK_FONT_HEIGHT from 614
{ SID_ATTR_CHAR_CJK_WEIGHT, SFX_ITEM_POOLABLE }, // ATTR_CJK_FONT_WEIGHT from 614
{ SID_ATTR_CHAR_CJK_POSTURE, SFX_ITEM_POOLABLE }, // ATTR_CJK_FONT_POSTURE from 614
{ SID_ATTR_CHAR_CJK_LANGUAGE, SFX_ITEM_POOLABLE }, // ATTR_CJK_FONT_LANGUAGE from 614
{ SID_ATTR_CHAR_CTL_FONT, SFX_ITEM_POOLABLE }, // ATTR_CTL_FONT from 614
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SFX_ITEM_POOLABLE }, // ATTR_CTL_FONT_HEIGHT from 614
{ SID_ATTR_CHAR_CTL_WEIGHT, SFX_ITEM_POOLABLE }, // ATTR_CTL_FONT_WEIGHT from 614
{ SID_ATTR_CHAR_CTL_POSTURE, SFX_ITEM_POOLABLE }, // ATTR_CTL_FONT_POSTURE from 614
{ SID_ATTR_CHAR_CTL_LANGUAGE, SFX_ITEM_POOLABLE }, // ATTR_CTL_FONT_LANGUAGE from 614
{ SID_ATTR_CHAR_EMPHASISMARK, SFX_ITEM_POOLABLE }, // ATTR_FONT_EMPHASISMARK from 614
{ 0, SFX_ITEM_POOLABLE }, // ATTR_USERDEF from 614 / 641c
{ SID_ATTR_CHAR_WORDLINEMODE, SFX_ITEM_POOLABLE }, // ATTR_FONT_WORDLINE from 632b
{ SID_ATTR_CHAR_RELIEF, SFX_ITEM_POOLABLE }, // ATTR_FONT_RELIEF from 632b
{ SID_ATTR_ALIGN_HYPHENATION, SFX_ITEM_POOLABLE }, // ATTR_HYPHENATE from 632b
{ 0, SFX_ITEM_POOLABLE }, // ATTR_SCRIPTSPACE from 614d
{ 0, SFX_ITEM_POOLABLE }, // ATTR_HANGPUNCTUATION from 614d
{ SID_ATTR_PARA_FORBIDDEN_RULES,SFX_ITEM_POOLABLE }, // ATTR_FORBIDDEN_RULES from 614d
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SFX_ITEM_POOLABLE }, // ATTR_HOR_JUSTIFY
{ SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD, SFX_ITEM_POOLABLE }, // ATTR_HOR_JUSTIFY_METHOD
{ SID_ATTR_ALIGN_INDENT, SFX_ITEM_POOLABLE }, // ATTR_INDENT from 350
{ SID_ATTR_ALIGN_VER_JUSTIFY, SFX_ITEM_POOLABLE }, // ATTR_VER_JUSTIFY
{ SID_ATTR_ALIGN_VER_JUSTIFY_METHOD, SFX_ITEM_POOLABLE }, // ATTR_VER_JUSTIFY_METHOD
{ SID_ATTR_ALIGN_STACKED, SFX_ITEM_POOLABLE }, // ATTR_STACKED from 680/dr14 (replaces ATTR_ORIENTATION)
{ SID_ATTR_ALIGN_DEGREES, SFX_ITEM_POOLABLE }, // ATTR_ROTATE_VALUE from 367
{ SID_ATTR_ALIGN_LOCKPOS, SFX_ITEM_POOLABLE }, // ATTR_ROTATE_MODE from 367
{ SID_ATTR_ALIGN_ASIANVERTICAL, SFX_ITEM_POOLABLE }, // ATTR_VERTICAL_ASIAN from 642
{ SID_ATTR_FRAMEDIRECTION, SFX_ITEM_POOLABLE }, // ATTR_WRITINGDIR from 643
{ SID_ATTR_ALIGN_LINEBREAK, SFX_ITEM_POOLABLE }, // ATTR_LINEBREAK
{ SID_ATTR_ALIGN_SHRINKTOFIT, SFX_ITEM_POOLABLE }, // ATTR_SHRINKTOFIT from 680/dr14
{ SID_ATTR_BORDER_DIAG_TLBR, SFX_ITEM_POOLABLE }, // ATTR_BORDER_TLBR from 680/dr14
{ SID_ATTR_BORDER_DIAG_BLTR, SFX_ITEM_POOLABLE }, // ATTR_BORDER_BLTR from 680/dr14
{ SID_ATTR_ALIGN_MARGIN, SFX_ITEM_POOLABLE }, // ATTR_MARGIN
{ 0, SFX_ITEM_POOLABLE }, // ATTR_MERGE
{ 0, SFX_ITEM_POOLABLE }, // ATTR_MERGE_FLAG
{ SID_ATTR_NUMBERFORMAT_VALUE, SFX_ITEM_POOLABLE }, // ATTR_VALUE_FORMAT
{ ATTR_LANGUAGE_FORMAT, SFX_ITEM_POOLABLE }, // ATTR_LANGUAGE_FORMAT from 329, is combined with SID_ATTR_NUMBERFORMAT_VALUE in the dialog
{ SID_ATTR_BRUSH, SFX_ITEM_POOLABLE }, // ATTR_BACKGROUND
{ SID_SCATTR_PROTECTION, SFX_ITEM_POOLABLE }, // ATTR_PROTECTION
{ SID_ATTR_BORDER_OUTER, SFX_ITEM_POOLABLE }, // ATTR_BORDER
{ SID_ATTR_BORDER_INNER, SFX_ITEM_POOLABLE }, // ATTR_BORDER_INNER
{ SID_ATTR_BORDER_SHADOW, SFX_ITEM_POOLABLE }, // ATTR_SHADOW
{ 0, SFX_ITEM_POOLABLE }, // ATTR_VALIDDATA
{ 0, SFX_ITEM_POOLABLE }, // ATTR_CONDITIONAL
{ 0, SFX_ITEM_POOLABLE }, // ATTR_HYPERLINK
{ 0, SFX_ITEM_POOLABLE }, // ATTR_PATTERN
{ SID_ATTR_LRSPACE, SFX_ITEM_POOLABLE }, // ATTR_LRSPACE
{ SID_ATTR_ULSPACE, SFX_ITEM_POOLABLE }, // ATTR_ULSPACE
{ SID_ATTR_PAGE, SFX_ITEM_POOLABLE }, // ATTR_PAGE
{ 0, SFX_ITEM_POOLABLE }, // ATTR_PAGE_PAPERTRAY, since 303 just a dummy
{ SID_ATTR_PAGE_PAPERBIN, SFX_ITEM_POOLABLE }, // ATTR_PAGE_PAPERBIN
{ SID_ATTR_PAGE_SIZE, SFX_ITEM_POOLABLE }, // ATTR_PAGE_SIZE
{ SID_ATTR_PAGE_MAXSIZE, SFX_ITEM_POOLABLE }, // ATTR_PAGE_MAXSIZE
{ SID_ATTR_PAGE_EXT1, SFX_ITEM_POOLABLE }, // ATTR_PAGE_HORCENTER
{ SID_ATTR_PAGE_EXT2, SFX_ITEM_POOLABLE }, // ATTR_PAGE_VERCENTER
{ SID_ATTR_PAGE_ON, SFX_ITEM_POOLABLE }, // ATTR_PAGE_ON
{ SID_ATTR_PAGE_DYNAMIC, SFX_ITEM_POOLABLE }, // ATTR_PAGE_DYNAMIC
{ SID_ATTR_PAGE_SHARED, SFX_ITEM_POOLABLE }, // ATTR_PAGE_SHARED
{ SID_SCATTR_PAGE_NOTES, SFX_ITEM_POOLABLE }, // ATTR_PAGE_NOTES
{ SID_SCATTR_PAGE_GRID, SFX_ITEM_POOLABLE }, // ATTR_PAGE_GRID
{ SID_SCATTR_PAGE_HEADERS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_HEADERS
{ SID_SCATTR_PAGE_CHARTS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_CHARTS
{ SID_SCATTR_PAGE_OBJECTS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_OBJECTS
{ SID_SCATTR_PAGE_DRAWINGS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_DRAWINGS
{ SID_SCATTR_PAGE_TOPDOWN, SFX_ITEM_POOLABLE }, // ATTR_PAGE_TOPDOWN
{ SID_SCATTR_PAGE_SCALE, SFX_ITEM_POOLABLE }, // ATTR_PAGE_SCALE
{ SID_SCATTR_PAGE_SCALETOPAGES, SFX_ITEM_POOLABLE }, // ATTR_PAGE_SCALETOPAGES
{ SID_SCATTR_PAGE_FIRSTPAGENO, SFX_ITEM_POOLABLE }, // ATTR_PAGE_FIRSTPAGENO
{ SID_SCATTR_PAGE_PRINTAREA, SFX_ITEM_POOLABLE }, // ATTR_PAGE_PRINTAREA
{ SID_SCATTR_PAGE_REPEATROW, SFX_ITEM_POOLABLE }, // ATTR_PAGE_REPEATROW
{ SID_SCATTR_PAGE_REPEATCOL, SFX_ITEM_POOLABLE }, // ATTR_PAGE_REPEATCOL
{ SID_SCATTR_PAGE_PRINTTABLES, SFX_ITEM_POOLABLE }, // ATTR_PAGE_PRINTTABLES
{ SID_SCATTR_PAGE_HEADERLEFT, SFX_ITEM_POOLABLE }, // ATTR_PAGE_HEADERLEFT
{ SID_SCATTR_PAGE_FOOTERLEFT, SFX_ITEM_POOLABLE }, // ATTR_PAGE_FOOTERLEFT
{ SID_SCATTR_PAGE_HEADERRIGHT, SFX_ITEM_POOLABLE }, // ATTR_PAGE_HEADERRIGHT
{ SID_SCATTR_PAGE_FOOTERRIGHT, SFX_ITEM_POOLABLE }, // ATTR_PAGE_FOOTERRIGHT
{ SID_ATTR_PAGE_HEADERSET, SFX_ITEM_POOLABLE }, // ATTR_PAGE_HEADERSET
{ SID_ATTR_PAGE_FOOTERSET, SFX_ITEM_POOLABLE }, // ATTR_PAGE_FOOTERSET
{ SID_SCATTR_PAGE_FORMULAS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_FORMULAS
{ SID_SCATTR_PAGE_NULLVALS, SFX_ITEM_POOLABLE }, // ATTR_PAGE_NULLVALS
{ SID_SCATTR_PAGE_SCALETO, SFX_ITEM_POOLABLE }, // ATTR_PAGE_SCALETO
{ 0, SFX_ITEM_POOLABLE } // ATTR_HIDDEN
{ SID_ATTR_CHAR_FONT, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT
{ SID_ATTR_CHAR_FONTHEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_HEIGHT
{ SID_ATTR_CHAR_WEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_WEIGHT
{ SID_ATTR_CHAR_POSTURE, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_POSTURE
{ SID_ATTR_CHAR_UNDERLINE, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_UNDERLINE
{ SID_ATTR_CHAR_OVERLINE, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_OVERLINE
{ SID_ATTR_CHAR_STRIKEOUT, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_CROSSEDOUT
{ SID_ATTR_CHAR_CONTOUR, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_CONTOUR
{ SID_ATTR_CHAR_SHADOWED, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_SHADOWED
{ SID_ATTR_CHAR_COLOR, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_COLOR
{ SID_ATTR_CHAR_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_LANGUAGE
{ SID_ATTR_CHAR_CJK_FONT, SfxItemPoolFlags::POOLABLE }, // ATTR_CJK_FONT from 614
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_CJK_FONT_HEIGHT from 614
{ SID_ATTR_CHAR_CJK_WEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_CJK_FONT_WEIGHT from 614
{ SID_ATTR_CHAR_CJK_POSTURE, SfxItemPoolFlags::POOLABLE }, // ATTR_CJK_FONT_POSTURE from 614
{ SID_ATTR_CHAR_CJK_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // ATTR_CJK_FONT_LANGUAGE from 614
{ SID_ATTR_CHAR_CTL_FONT, SfxItemPoolFlags::POOLABLE }, // ATTR_CTL_FONT from 614
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_CTL_FONT_HEIGHT from 614
{ SID_ATTR_CHAR_CTL_WEIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_CTL_FONT_WEIGHT from 614
{ SID_ATTR_CHAR_CTL_POSTURE, SfxItemPoolFlags::POOLABLE }, // ATTR_CTL_FONT_POSTURE from 614
{ SID_ATTR_CHAR_CTL_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // ATTR_CTL_FONT_LANGUAGE from 614
{ SID_ATTR_CHAR_EMPHASISMARK, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_EMPHASISMARK from 614
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_USERDEF from 614 / 641c
{ SID_ATTR_CHAR_WORDLINEMODE, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_WORDLINE from 632b
{ SID_ATTR_CHAR_RELIEF, SfxItemPoolFlags::POOLABLE }, // ATTR_FONT_RELIEF from 632b
{ SID_ATTR_ALIGN_HYPHENATION, SfxItemPoolFlags::POOLABLE }, // ATTR_HYPHENATE from 632b
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_SCRIPTSPACE from 614d
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_HANGPUNCTUATION from 614d
{ SID_ATTR_PARA_FORBIDDEN_RULES,SfxItemPoolFlags::POOLABLE }, // ATTR_FORBIDDEN_RULES from 614d
{ SID_ATTR_ALIGN_HOR_JUSTIFY, SfxItemPoolFlags::POOLABLE }, // ATTR_HOR_JUSTIFY
{ SID_ATTR_ALIGN_HOR_JUSTIFY_METHOD, SfxItemPoolFlags::POOLABLE }, // ATTR_HOR_JUSTIFY_METHOD
{ SID_ATTR_ALIGN_INDENT, SfxItemPoolFlags::POOLABLE }, // ATTR_INDENT from 350
{ SID_ATTR_ALIGN_VER_JUSTIFY, SfxItemPoolFlags::POOLABLE }, // ATTR_VER_JUSTIFY
{ SID_ATTR_ALIGN_VER_JUSTIFY_METHOD, SfxItemPoolFlags::POOLABLE }, // ATTR_VER_JUSTIFY_METHOD
{ SID_ATTR_ALIGN_STACKED, SfxItemPoolFlags::POOLABLE }, // ATTR_STACKED from 680/dr14 (replaces ATTR_ORIENTATION)
{ SID_ATTR_ALIGN_DEGREES, SfxItemPoolFlags::POOLABLE }, // ATTR_ROTATE_VALUE from 367
{ SID_ATTR_ALIGN_LOCKPOS, SfxItemPoolFlags::POOLABLE }, // ATTR_ROTATE_MODE from 367
{ SID_ATTR_ALIGN_ASIANVERTICAL, SfxItemPoolFlags::POOLABLE }, // ATTR_VERTICAL_ASIAN from 642
{ SID_ATTR_FRAMEDIRECTION, SfxItemPoolFlags::POOLABLE }, // ATTR_WRITINGDIR from 643
{ SID_ATTR_ALIGN_LINEBREAK, SfxItemPoolFlags::POOLABLE }, // ATTR_LINEBREAK
{ SID_ATTR_ALIGN_SHRINKTOFIT, SfxItemPoolFlags::POOLABLE }, // ATTR_SHRINKTOFIT from 680/dr14
{ SID_ATTR_BORDER_DIAG_TLBR, SfxItemPoolFlags::POOLABLE }, // ATTR_BORDER_TLBR from 680/dr14
{ SID_ATTR_BORDER_DIAG_BLTR, SfxItemPoolFlags::POOLABLE }, // ATTR_BORDER_BLTR from 680/dr14
{ SID_ATTR_ALIGN_MARGIN, SfxItemPoolFlags::POOLABLE }, // ATTR_MARGIN
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_MERGE
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_MERGE_FLAG
{ SID_ATTR_NUMBERFORMAT_VALUE, SfxItemPoolFlags::POOLABLE }, // ATTR_VALUE_FORMAT
{ ATTR_LANGUAGE_FORMAT, SfxItemPoolFlags::POOLABLE }, // ATTR_LANGUAGE_FORMAT from 329, is combined with SID_ATTR_NUMBERFORMAT_VALUE in the dialog
{ SID_ATTR_BRUSH, SfxItemPoolFlags::POOLABLE }, // ATTR_BACKGROUND
{ SID_SCATTR_PROTECTION, SfxItemPoolFlags::POOLABLE }, // ATTR_PROTECTION
{ SID_ATTR_BORDER_OUTER, SfxItemPoolFlags::POOLABLE }, // ATTR_BORDER
{ SID_ATTR_BORDER_INNER, SfxItemPoolFlags::POOLABLE }, // ATTR_BORDER_INNER
{ SID_ATTR_BORDER_SHADOW, SfxItemPoolFlags::POOLABLE }, // ATTR_SHADOW
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_VALIDDATA
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_CONDITIONAL
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_HYPERLINK
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_PATTERN
{ SID_ATTR_LRSPACE, SfxItemPoolFlags::POOLABLE }, // ATTR_LRSPACE
{ SID_ATTR_ULSPACE, SfxItemPoolFlags::POOLABLE }, // ATTR_ULSPACE
{ SID_ATTR_PAGE, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE
{ 0, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_PAPERTRAY, since 303 just a dummy
{ SID_ATTR_PAGE_PAPERBIN, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_PAPERBIN
{ SID_ATTR_PAGE_SIZE, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_SIZE
{ SID_ATTR_PAGE_MAXSIZE, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_MAXSIZE
{ SID_ATTR_PAGE_EXT1, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_HORCENTER
{ SID_ATTR_PAGE_EXT2, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_VERCENTER
{ SID_ATTR_PAGE_ON, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_ON
{ SID_ATTR_PAGE_DYNAMIC, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_DYNAMIC
{ SID_ATTR_PAGE_SHARED, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_SHARED
{ SID_SCATTR_PAGE_NOTES, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_NOTES
{ SID_SCATTR_PAGE_GRID, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_GRID
{ SID_SCATTR_PAGE_HEADERS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_HEADERS
{ SID_SCATTR_PAGE_CHARTS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_CHARTS
{ SID_SCATTR_PAGE_OBJECTS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_OBJECTS
{ SID_SCATTR_PAGE_DRAWINGS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_DRAWINGS
{ SID_SCATTR_PAGE_TOPDOWN, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_TOPDOWN
{ SID_SCATTR_PAGE_SCALE, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_SCALE
{ SID_SCATTR_PAGE_SCALETOPAGES, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_SCALETOPAGES
{ SID_SCATTR_PAGE_FIRSTPAGENO, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_FIRSTPAGENO
{ SID_SCATTR_PAGE_PRINTAREA, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_PRINTAREA
{ SID_SCATTR_PAGE_REPEATROW, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_REPEATROW
{ SID_SCATTR_PAGE_REPEATCOL, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_REPEATCOL
{ SID_SCATTR_PAGE_PRINTTABLES, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_PRINTTABLES
{ SID_SCATTR_PAGE_HEADERLEFT, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_HEADERLEFT
{ SID_SCATTR_PAGE_FOOTERLEFT, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_FOOTERLEFT
{ SID_SCATTR_PAGE_HEADERRIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_HEADERRIGHT
{ SID_SCATTR_PAGE_FOOTERRIGHT, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_FOOTERRIGHT
{ SID_ATTR_PAGE_HEADERSET, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_HEADERSET
{ SID_ATTR_PAGE_FOOTERSET, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_FOOTERSET
{ SID_SCATTR_PAGE_FORMULAS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_FORMULAS
{ SID_SCATTR_PAGE_NULLVALS, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_NULLVALS
{ SID_SCATTR_PAGE_SCALETO, SfxItemPoolFlags::POOLABLE }, // ATTR_PAGE_SCALETO
{ 0, SfxItemPoolFlags::POOLABLE } // ATTR_HIDDEN
};
static_assert(
SAL_N_ELEMENTS(aItemInfos) == ATTR_ENDINDEX - ATTR_STARTINDEX + 1, "these must match");

View File

@ -26,16 +26,16 @@
static SfxItemInfo const aMsgItemInfos[] =
{
{ 0, SFX_ITEM_POOLABLE }, // SCITEM_STRING
{ 0, SFX_ITEM_POOLABLE }, // SCITEM_SEARCHDATA - stop using this!
{ SID_SORT, SFX_ITEM_POOLABLE }, // SCITEM_SORTDATA
{ SID_QUERY, SFX_ITEM_POOLABLE }, // SCITEM_QUERYDATA
{ SID_SUBTOTALS, SFX_ITEM_POOLABLE }, // SCITEM_SUBTDATA
{ SID_CONSOLIDATE, SFX_ITEM_POOLABLE }, // SCITEM_CONSOLIDATEDATA
{ SID_PIVOT_TABLE, SFX_ITEM_POOLABLE }, // SCITEM_PIVOTDATA
{ SID_SOLVE, SFX_ITEM_POOLABLE }, // SCITEM_SOLVEDATA
{ SID_SCUSERLISTS, SFX_ITEM_POOLABLE }, // SCITEM_USERLIST
{ SID_PRINTER_NOTFOUND_WARN, SFX_ITEM_POOLABLE } // SCITEM_PRINTWARN
{ 0, SfxItemPoolFlags::POOLABLE }, // SCITEM_STRING
{ 0, SfxItemPoolFlags::POOLABLE }, // SCITEM_SEARCHDATA - stop using this!
{ SID_SORT, SfxItemPoolFlags::POOLABLE }, // SCITEM_SORTDATA
{ SID_QUERY, SfxItemPoolFlags::POOLABLE }, // SCITEM_QUERYDATA
{ SID_SUBTOTALS, SfxItemPoolFlags::POOLABLE }, // SCITEM_SUBTDATA
{ SID_CONSOLIDATE, SfxItemPoolFlags::POOLABLE }, // SCITEM_CONSOLIDATEDATA
{ SID_PIVOT_TABLE, SfxItemPoolFlags::POOLABLE }, // SCITEM_PIVOTDATA
{ SID_SOLVE, SfxItemPoolFlags::POOLABLE }, // SCITEM_SOLVEDATA
{ SID_SCUSERLISTS, SfxItemPoolFlags::POOLABLE }, // SCITEM_USERLIST
{ SID_PRINTER_NOTFOUND_WARN, SfxItemPoolFlags::POOLABLE } // SCITEM_PRINTWARN
};
ScMessagePool::ScMessagePool()

View File

@ -41,7 +41,7 @@ class CntStaticPoolDefaults_Impl: private boost::noncopyable
SfxItemInfo* m_pItemInfos;
private:
inline void Insert( SfxPoolItem* pItem, sal_uInt16 nSID, sal_uInt16 nFlags );
inline void Insert( SfxPoolItem* pItem, sal_uInt16 nSID, SfxItemPoolFlags nFlags );
public:
CntStaticPoolDefaults_Impl( CntItemPool* pPool );
@ -163,7 +163,7 @@ sal_uInt16 CntItemPool::Release()
inline void CntStaticPoolDefaults_Impl::Insert(
SfxPoolItem* pItem, /* Static Pool Default Item */
sal_uInt16 nSID, sal_uInt16 nFlags /* Item Info */ )
sal_uInt16 nSID, SfxItemPoolFlags nFlags /* Item Info */ )
{
sal_uInt16 nPos = pItem->Which() - WID_CHAOS_START;
@ -193,7 +193,7 @@ CntStaticPoolDefaults_Impl::CntStaticPoolDefaults_Impl( CntItemPool* /*pPool*/ )
Insert(
new SfxStringItem( WID_CHAOS_START, OUString() ),
0,
SFX_ITEM_POOLABLE );
SfxItemPoolFlags::POOLABLE );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -19,7 +19,7 @@ A small reference counted piece of data. Many subclasses, each with a
unique integer to identify its type (WhichId). Can be compared for equality
(operator==), Clone()d, and converted to/from uno::Any (QueryValue/PutValue).
A pool item may have value semantics (SFX_ITEM_POOLABLE), meaning that
A pool item may have value semantics (SfxItemPoolFlags::POOLABLE), meaning that
there will generally be only one instance that compares equal per item pool,
or not, in which case the item will be Clone()d quite a bit.

View File

@ -35,10 +35,10 @@ class PoolItemTest : public CppUnit::TestFixture
void PoolItemTest::testPool()
{
SfxItemInfo aItems[] =
{ { 0, SFX_ITEM_POOLABLE },
{ 1, 0 /* not poolable */ },
{ 2, SFX_ITEM_NOT_POOLABLE },
{ 3, 0 /* not poolable */}
{ { 0, SfxItemPoolFlags::POOLABLE },
{ 1, SfxItemPoolFlags::NONE /* not poolable */ },
{ 2, SfxItemPoolFlags::NOT_POOLABLE },
{ 3, SfxItemPoolFlags::NONE /* not poolable */}
};
SfxItemPool *pPool = new SfxItemPool("testpool", 0, 3, aItems);

View File

@ -114,15 +114,14 @@ const SfxPoolItem* SfxItemPool::GetPoolDefaultItem( sal_uInt16 nWhich ) const
bool SfxItemPool::IsItemFlag_Impl( sal_uInt16 nPos, sal_uInt16 nFlag ) const
bool SfxItemPool::IsItemFlag_Impl( sal_uInt16 nPos, SfxItemPoolFlags nFlag ) const
{
sal_uInt16 nItemFlag = pItemInfos[nPos]._nFlags;
return nFlag == (nItemFlag & nFlag);
return bool(pItemInfos[nPos]._nFlags & nFlag);
}
bool SfxItemPool::IsItemFlag( sal_uInt16 nWhich, sal_uInt16 nFlag ) const
bool SfxItemPool::IsItemFlag( sal_uInt16 nWhich, SfxItemPoolFlags nFlag ) const
{
for ( const SfxItemPool *pPool = this; pPool; pPool = pPool->pImp->mpSecondary )
{
@ -154,7 +153,7 @@ SfxBroadcaster& SfxItemPool::BC()
* 'pItemInfos' is a USHORT array arranged in the same way, which holds
* SlotIds and Flags. These SlotIds can be 0, if the affected Items are
* exclusively used in the Core.
* The flags allow for e.g. enabling value sharing (SFX_ITEM_POOLABLE).
* The flags allow for e.g. enabling value sharing (SfxItemPoolFlags::POOLABLE).
*
* If the Pool is supposed to hold SfxSetItems, the ctor cannot yet contain
* static Defaults. This needs to be done afterwards, using
@ -657,7 +656,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
// SID or not poolable (new definition)?
sal_uInt16 nIndex = bSID ? USHRT_MAX : GetIndex_Impl(nWhich);
if ( USHRT_MAX == nIndex ||
IsItemFlag_Impl( nIndex, SFX_ITEM_NOT_POOLABLE ) )
IsItemFlag_Impl( nIndex, SfxItemPoolFlags::NOT_POOLABLE ) )
{
SFX_ASSERT( USHRT_MAX != nIndex || rItem.Which() != nWhich ||
!IsDefaultItem(&rItem) || rItem.GetKind() == SFX_ITEMS_DELETEONIDLE,
@ -684,7 +683,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
// Is this a 'poolable' item - ie. should we re-use and return
// the same underlying item for equivalent (==) SfxPoolItems?
if ( IsItemFlag_Impl( nIndex, SFX_ITEM_POOLABLE ) )
if ( IsItemFlag_Impl( nIndex, SfxItemPoolFlags::POOLABLE ) )
{
// if is already in a pool, then it is worth checking if it is in this one.
if ( IsPooledItem(&rItem) )
@ -745,10 +744,10 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
SFX_ASSERT( rItem.Type() == pNewItem->Type(), nWhich, "unequal types in Put(): no Clone()?" )
if ( !rItem.ISA(SfxSetItem) )
{
SFX_ASSERT( !IsItemFlag(nWhich, SFX_ITEM_POOLABLE) ||
SFX_ASSERT( !IsItemFlag(nWhich, SfxItemPoolFlags::POOLABLE) ||
rItem == *pNewItem,
nWhich, "unequal items in Put(): no operator==?" );
SFX_ASSERT( !IsItemFlag(*pNewItem, SFX_ITEM_POOLABLE) ||
SFX_ASSERT( !IsItemFlag(*pNewItem, SfxItemPoolFlags::POOLABLE) ||
*pNewItem == rItem,
nWhich, "unequal items in Put(): no operator==?" );
}
@ -812,7 +811,7 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem )
// SID or not poolable (new definition)?
sal_uInt16 nIndex = bSID ? USHRT_MAX : GetIndex_Impl(nWhich);
if ( bSID || IsItemFlag_Impl( nIndex, SFX_ITEM_NOT_POOLABLE ) )
if ( bSID || IsItemFlag_Impl( nIndex, SfxItemPoolFlags::NOT_POOLABLE ) )
{
SFX_ASSERT( USHRT_MAX != nIndex ||
!IsDefaultItem(&rItem), rItem.Which(),

View File

@ -60,7 +60,7 @@ const sal_Char *DbgCheckItemSet( const void* pVoid )
) && "SfxItemSet: invalid which-id" );
assert((IsInvalidItem(pItem) || !pItem->Which() ||
!SfxItemPool::IsWhich(pItem->Which()) ||
pSet->GetPool()->IsItemFlag(nWh, SFX_ITEM_NOT_POOLABLE) ||
pSet->GetPool()->IsItemFlag(nWh, SfxItemPoolFlags::NOT_POOLABLE) ||
SFX_ITEMS_NULL != pSet->GetPool()->GetSurrogate(pItem)
) && "SfxItemSet: item in set which is not in pool" );
}
@ -215,7 +215,7 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet )
IsStaticDefaultItem(*ppSrc) ) // Defaults that are not to be pooled?
// Just copy the pointer
*ppDst = *ppSrc;
else if (m_pPool->IsItemFlag( **ppSrc, SFX_ITEM_POOLABLE ))
else if (m_pPool->IsItemFlag( **ppSrc, SfxItemPoolFlags::POOLABLE ))
{
// Just copy the pointer and increase RefCount
*ppDst = *ppSrc;
@ -529,7 +529,7 @@ const SfxPoolItem* SfxItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
}
}
}
SFX_ASSERT( !m_pPool->IsItemFlag(nWhich, SFX_ITEM_POOLABLE) ||
SFX_ASSERT( !m_pPool->IsItemFlag(nWhich, SfxItemPoolFlags::POOLABLE) ||
rItem.ISA(SfxSetItem) || **ppFnd == rItem,
nWhich, "putted Item unequal" );
return *ppFnd;
@ -1503,7 +1503,7 @@ bool SfxItemSet::operator==(const SfxItemSet &rCmp) const
rCmp.GetItemState( nWh, false, &pItem2 ) ||
( pItem1 != pItem2 &&
( !pItem1 || IsInvalidItem(pItem1) ||
(m_pPool->IsItemFlag(*pItem1, SFX_ITEM_POOLABLE) &&
(m_pPool->IsItemFlag(*pItem1, SfxItemPoolFlags::POOLABLE) &&
*pItem1 != *pItem2 ) ) ) )
return false;
}
@ -1526,7 +1526,7 @@ bool SfxItemSet::operator==(const SfxItemSet &rCmp) const
if ( *ppItem1 != *ppItem2 &&
( ( !*ppItem1 || !*ppItem2 ) ||
( IsInvalidItem(*ppItem1) || IsInvalidItem(*ppItem2) ) ||
(m_pPool->IsItemFlag(**ppItem1, SFX_ITEM_POOLABLE)) ||
(m_pPool->IsItemFlag(**ppItem1, SfxItemPoolFlags::POOLABLE)) ||
**ppItem1 != **ppItem2 ) )
return false;

View File

@ -198,7 +198,7 @@ SvStream &SfxItemPool::Store(SvStream &rStream) const
// ! Poolable is not even saved in the Pool
// And itemsets/plain-items depending on the round
if ( *itrArr && IsItemFlag(**ppDefItem, SFX_ITEM_POOLABLE) &&
if ( *itrArr && IsItemFlag(**ppDefItem, SfxItemPoolFlags::POOLABLE) &&
pImp->bInSetItem == (bool) (*ppDefItem)->ISA(SfxSetItem) )
{
// Own signature, global WhichId and ItemVersion
@ -720,7 +720,7 @@ sal_uInt16 SfxItemPool::GetSize_Impl() const
* Loads surrogate from 'rStream' and returns the corresponding SfxPoolItem
* from the rRefPool.
* If the surrogate contained within the stream == SFX_ITEMS_DIRECT
* (!SFX_ITEM_POOLABLE), we return 0 and the Item is to be loaded directly
* (!SfxItemPoolFlags::POOLABLE), we return 0 and the Item is to be loaded directly
* from the stream.
* We also return 0 for 0xfffffff0 (SFX_ITEMS_NULL) and rWhich is set to 0,
* making the Items unavailable.
@ -852,7 +852,7 @@ bool SfxItemPool::StoreSurrogate ( SvStream& rStream, const SfxPoolItem* pItem)
{
if ( pItem )
{
bool bRealSurrogate = IsItemFlag(*pItem, SFX_ITEM_POOLABLE);
bool bRealSurrogate = IsItemFlag(*pItem, SfxItemPoolFlags::POOLABLE);
rStream.WriteUInt32( bRealSurrogate
? GetSurrogate( pItem )
: SFX_ITEMS_DIRECT );

View File

@ -405,7 +405,7 @@ StylePool::SfxItemSet_Pointer_t StylePoolImpl::insertItemSet( const SfxItemSet&
}
while( pItem )
{
if( !rSet.GetPool()->IsItemFlag(pItem->Which(), SFX_ITEM_POOLABLE ) )
if( !rSet.GetPool()->IsItemFlag(pItem->Which(), SfxItemPoolFlags::POOLABLE ) )
bNonPoolable = true;
if ( !xFoundIgnorableItems.get() ||
( xFoundIgnorableItems.get() &&
@ -422,7 +422,7 @@ StylePool::SfxItemSet_Pointer_t StylePoolImpl::insertItemSet( const SfxItemSet&
pItem = aIgnorableItemsIter.GetCurItem();
while( pItem )
{
if( !rSet.GetPool()->IsItemFlag(pItem->Which(), SFX_ITEM_POOLABLE ) )
if( !rSet.GetPool()->IsItemFlag(pItem->Which(), SfxItemPoolFlags::POOLABLE ) )
bNonPoolable = true;
pCurNode = pCurNode->findChildNode( *pItem, true );
pItem = aIgnorableItemsIter.NextItem();

View File

@ -117,7 +117,7 @@ SdrItemPool::SdrItemPool(
// init the non-persistent items
for(sal_uInt16 i(SDRATTR_NOTPERSIST_FIRST); i <= SDRATTR_NOTPERSIST_LAST; i++)
{
mpLocalItemInfos[i - SDRATTR_START]._nFlags=0;
mpLocalItemInfos[i - SDRATTR_START]._nFlags = SfxItemPoolFlags::NONE;
}
// init own PoolDefaults

View File

@ -119,7 +119,7 @@ XOutdevItemPool::XOutdevItemPool(
for(sal_uInt16 i(GetFirstWhich()); i <= GetLastWhich(); i++)
{
mpLocalItemInfos[i - XATTR_START]._nSID = 0;
mpLocalItemInfos[i - XATTR_START]._nFlags = SFX_ITEM_POOLABLE;
mpLocalItemInfos[i - XATTR_START]._nFlags = SfxItemPoolFlags::POOLABLE;
}
mpLocalItemInfos[XATTR_LINESTYLE -XATTR_START]._nSID = SID_ATTR_LINE_STYLE;

View File

@ -265,171 +265,171 @@ SwDfltAttrTab aAttrTab;
SfxItemInfo aSlotTab[] =
{
{ SID_ATTR_CHAR_CASEMAP, SFX_ITEM_POOLABLE }, // RES_CHRATR_CASEMAP
{ SID_ATTR_CHAR_CHARSETCOLOR, SFX_ITEM_POOLABLE }, // RES_CHRATR_CHARSETCOLOR
{ SID_ATTR_CHAR_COLOR, SFX_ITEM_POOLABLE }, // RES_CHRATR_COLOR
{ SID_ATTR_CHAR_CONTOUR, SFX_ITEM_POOLABLE }, // RES_CHRATR_CONTOUR
{ SID_ATTR_CHAR_STRIKEOUT, SFX_ITEM_POOLABLE }, // RES_CHRATR_CROSSEDOUT
{ SID_ATTR_CHAR_ESCAPEMENT, SFX_ITEM_POOLABLE }, // RES_CHRATR_ESCAPEMENT
{ SID_ATTR_CHAR_FONT, SFX_ITEM_POOLABLE }, // RES_CHRATR_FONT
{ SID_ATTR_CHAR_FONTHEIGHT, SFX_ITEM_POOLABLE }, // RES_CHRATR_FONTSIZE
{ SID_ATTR_CHAR_KERNING, SFX_ITEM_POOLABLE }, // RES_CHRATR_KERNING
{ SID_ATTR_CHAR_LANGUAGE, SFX_ITEM_POOLABLE }, // RES_CHRATR_LANGUAGE
{ SID_ATTR_CHAR_POSTURE, SFX_ITEM_POOLABLE }, // RES_CHRATR_POSTURE
{ SID_ATTR_CHAR_PROPSIZE, SFX_ITEM_POOLABLE }, // RES_CHRATR_PROPORTIONALFONTSIZE
{ SID_ATTR_CHAR_SHADOWED, SFX_ITEM_POOLABLE }, // RES_CHRATR_SHADOWED
{ SID_ATTR_CHAR_UNDERLINE, SFX_ITEM_POOLABLE }, // RES_CHRATR_UNDERLINE
{ SID_ATTR_CHAR_WEIGHT, SFX_ITEM_POOLABLE }, // RES_CHRATR_WEIGHT
{ SID_ATTR_CHAR_WORDLINEMODE, SFX_ITEM_POOLABLE }, // RES_CHRATR_WORDLINEMODE
{ SID_ATTR_CHAR_AUTOKERN, SFX_ITEM_POOLABLE }, // RES_CHRATR_AUTOKERN
{ SID_ATTR_FLASH, SFX_ITEM_POOLABLE }, // RES_CHRATR_BLINK
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_NOLINEBREAK
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_NOHYPHEN
{ SID_ATTR_BRUSH_CHAR, SFX_ITEM_POOLABLE }, // RES_CHRATR_BACKGROUND
{ SID_ATTR_CHAR_CJK_FONT, SFX_ITEM_POOLABLE }, // RES_CHRATR_CJK_FONT
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SFX_ITEM_POOLABLE },// RES_CHRATR_CJK_FONTSIZE
{ SID_ATTR_CHAR_CJK_LANGUAGE, SFX_ITEM_POOLABLE }, // RES_CHRATR_CJK_LANGUAGE
{ SID_ATTR_CHAR_CJK_POSTURE, SFX_ITEM_POOLABLE }, // RES_CHRATR_CJK_POSTURE
{ SID_ATTR_CHAR_CJK_WEIGHT, SFX_ITEM_POOLABLE }, // RES_CHRATR_CJK_WEIGHT
{ SID_ATTR_CHAR_CTL_FONT, SFX_ITEM_POOLABLE }, // RES_CHRATR_CTL_FONT
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SFX_ITEM_POOLABLE },// RES_CHRATR_CTL_FONTSIZE
{ SID_ATTR_CHAR_CTL_LANGUAGE, SFX_ITEM_POOLABLE }, // RES_CHRATR_CTL_LANGUAGE
{ SID_ATTR_CHAR_CTL_POSTURE, SFX_ITEM_POOLABLE }, // RES_CHRATR_CTL_POSTURE
{ SID_ATTR_CHAR_CTL_WEIGHT, SFX_ITEM_POOLABLE }, // RES_CHRATR_CTL_WEIGHT
{ SID_ATTR_CHAR_ROTATED, SFX_ITEM_POOLABLE }, // RES_CHRATR_ROTATE
{ SID_ATTR_CHAR_EMPHASISMARK, SFX_ITEM_POOLABLE }, // RES_CHRATR_EMPHASIS_MARK
{ SID_ATTR_CHAR_TWO_LINES, SFX_ITEM_POOLABLE }, // RES_CHRATR_TWO_LINES
{ SID_ATTR_CHAR_SCALEWIDTH, SFX_ITEM_POOLABLE }, // RES_CHRATR_SCALEW
{ SID_ATTR_CHAR_RELIEF, SFX_ITEM_POOLABLE }, // RES_CHRATR_RELIEF
{ SID_ATTR_CHAR_HIDDEN, SFX_ITEM_POOLABLE }, // RES_CHRATR_HIDDEN
{ SID_ATTR_CHAR_OVERLINE, SFX_ITEM_POOLABLE }, // RES_CHRATR_OVERLINE
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_RSID
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_BOX
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_SHADOW
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_HIGHLIGHT
{ SID_ATTR_CHAR_GRABBAG, SFX_ITEM_POOLABLE }, // RES_CHRATR_GRABBAG
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_BIDIRTL
{ 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_IDCTHINT
{ SID_ATTR_CHAR_CASEMAP, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CASEMAP
{ SID_ATTR_CHAR_CHARSETCOLOR, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CHARSETCOLOR
{ SID_ATTR_CHAR_COLOR, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_COLOR
{ SID_ATTR_CHAR_CONTOUR, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CONTOUR
{ SID_ATTR_CHAR_STRIKEOUT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CROSSEDOUT
{ SID_ATTR_CHAR_ESCAPEMENT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_ESCAPEMENT
{ SID_ATTR_CHAR_FONT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_FONT
{ SID_ATTR_CHAR_FONTHEIGHT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_FONTSIZE
{ SID_ATTR_CHAR_KERNING, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_KERNING
{ SID_ATTR_CHAR_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_LANGUAGE
{ SID_ATTR_CHAR_POSTURE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_POSTURE
{ SID_ATTR_CHAR_PROPSIZE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_PROPORTIONALFONTSIZE
{ SID_ATTR_CHAR_SHADOWED, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_SHADOWED
{ SID_ATTR_CHAR_UNDERLINE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_UNDERLINE
{ SID_ATTR_CHAR_WEIGHT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_WEIGHT
{ SID_ATTR_CHAR_WORDLINEMODE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_WORDLINEMODE
{ SID_ATTR_CHAR_AUTOKERN, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_AUTOKERN
{ SID_ATTR_FLASH, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_BLINK
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_NOLINEBREAK
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_NOHYPHEN
{ SID_ATTR_BRUSH_CHAR, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_BACKGROUND
{ SID_ATTR_CHAR_CJK_FONT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CJK_FONT
{ SID_ATTR_CHAR_CJK_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },// RES_CHRATR_CJK_FONTSIZE
{ SID_ATTR_CHAR_CJK_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CJK_LANGUAGE
{ SID_ATTR_CHAR_CJK_POSTURE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CJK_POSTURE
{ SID_ATTR_CHAR_CJK_WEIGHT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CJK_WEIGHT
{ SID_ATTR_CHAR_CTL_FONT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CTL_FONT
{ SID_ATTR_CHAR_CTL_FONTHEIGHT, SfxItemPoolFlags::POOLABLE },// RES_CHRATR_CTL_FONTSIZE
{ SID_ATTR_CHAR_CTL_LANGUAGE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CTL_LANGUAGE
{ SID_ATTR_CHAR_CTL_POSTURE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CTL_POSTURE
{ SID_ATTR_CHAR_CTL_WEIGHT, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_CTL_WEIGHT
{ SID_ATTR_CHAR_ROTATED, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_ROTATE
{ SID_ATTR_CHAR_EMPHASISMARK, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_EMPHASIS_MARK
{ SID_ATTR_CHAR_TWO_LINES, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_TWO_LINES
{ SID_ATTR_CHAR_SCALEWIDTH, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_SCALEW
{ SID_ATTR_CHAR_RELIEF, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_RELIEF
{ SID_ATTR_CHAR_HIDDEN, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_HIDDEN
{ SID_ATTR_CHAR_OVERLINE, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_OVERLINE
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_RSID
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_BOX
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_SHADOW
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_HIGHLIGHT
{ SID_ATTR_CHAR_GRABBAG, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_GRABBAG
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_BIDIRTL
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_CHRATR_IDCTHINT
{ 0, 0 }, // RES_TXTATR_REFMARK
{ 0, 0 }, // RES_TXTATR_TOXMARK
{ 0, 0 }, // RES_TXTATR_META
{ 0, 0 }, // RES_TXTATR_METAFIELD
{ 0, SFX_ITEM_POOLABLE }, // RES_TXTATR_AUTOFMT
{ FN_TXTATR_INET, 0 }, // RES_TXTATR_INETFMT
{ 0, 0 }, // RES_TXTATR_CHARFMT
{ SID_ATTR_CHAR_CJK_RUBY, 0 }, // RES_TXTATR_CJK_RUBY
{ 0, SFX_ITEM_POOLABLE }, // RES_TXTATR_UNKNOWN_CONTAINER
{ 0, 0 }, // RES_TXTATR_INPUTFIELD
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_REFMARK
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_TOXMARK
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_META
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_METAFIELD
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TXTATR_AUTOFMT
{ FN_TXTATR_INET, SfxItemPoolFlags::NONE }, // RES_TXTATR_INETFMT
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_CHARFMT
{ SID_ATTR_CHAR_CJK_RUBY, SfxItemPoolFlags::NONE }, // RES_TXTATR_CJK_RUBY
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TXTATR_UNKNOWN_CONTAINER
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_INPUTFIELD
{ 0, 0 }, // RES_TXTATR_FIELD
{ 0, 0 }, // RES_TXTATR_FLYCNT
{ 0, 0 }, // RES_TXTATR_FTN
{ 0, 0 }, // RES_TXTATR_ANNOTATION
{ 0, SFX_ITEM_POOLABLE }, // RES_TXTATR_DUMMY3
{ 0, SFX_ITEM_POOLABLE }, // RES_TXTATR_DUMMY1
{ 0, SFX_ITEM_POOLABLE }, // RES_TXTATR_DUMMY2
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_FIELD
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_FLYCNT
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_FTN
{ 0, SfxItemPoolFlags::NONE }, // RES_TXTATR_ANNOTATION
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TXTATR_DUMMY3
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TXTATR_DUMMY1
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TXTATR_DUMMY2
{ SID_ATTR_PARA_LINESPACE, SFX_ITEM_POOLABLE }, // RES_PARATR_LINESPACING
{ SID_ATTR_PARA_ADJUST, SFX_ITEM_POOLABLE }, // RES_PARATR_ADJUST
{ SID_ATTR_PARA_SPLIT, SFX_ITEM_POOLABLE }, // RES_PARATR_SPLIT
{ SID_ATTR_PARA_ORPHANS, SFX_ITEM_POOLABLE }, // RES_PARATR_ORPHANS
{ SID_ATTR_PARA_WIDOWS, SFX_ITEM_POOLABLE }, // RES_PARATR_WIDOWS
{ SID_ATTR_TABSTOP, SFX_ITEM_POOLABLE }, // RES_PARATR_TABSTOP
{ SID_ATTR_PARA_HYPHENZONE, SFX_ITEM_POOLABLE }, // RES_PARATR_HYPHENZONE
{ FN_FORMAT_DROPCAPS, 0 }, // RES_PARATR_DROP
{ SID_ATTR_PARA_REGISTER, SFX_ITEM_POOLABLE }, // RES_PARATR_REGISTER
{ SID_ATTR_PARA_NUMRULE, SFX_ITEM_POOLABLE }, // RES_PARATR_NUMRULE
{ SID_ATTR_PARA_SCRIPTSPACE, SFX_ITEM_POOLABLE }, // RES_PARATR_SCRIPTSPACE
{ SID_ATTR_PARA_HANGPUNCTUATION, SFX_ITEM_POOLABLE },// RES_PARATR_HANGINGPUNCTUATION
{ SID_ATTR_PARA_LINESPACE, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LINESPACING
{ SID_ATTR_PARA_ADJUST, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_ADJUST
{ SID_ATTR_PARA_SPLIT, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_SPLIT
{ SID_ATTR_PARA_ORPHANS, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_ORPHANS
{ SID_ATTR_PARA_WIDOWS, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_WIDOWS
{ SID_ATTR_TABSTOP, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_TABSTOP
{ SID_ATTR_PARA_HYPHENZONE, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_HYPHENZONE
{ FN_FORMAT_DROPCAPS, SfxItemPoolFlags::NONE }, // RES_PARATR_DROP
{ SID_ATTR_PARA_REGISTER, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_REGISTER
{ SID_ATTR_PARA_NUMRULE, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_NUMRULE
{ SID_ATTR_PARA_SCRIPTSPACE, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_SCRIPTSPACE
{ SID_ATTR_PARA_HANGPUNCTUATION, SfxItemPoolFlags::POOLABLE },// RES_PARATR_HANGINGPUNCTUATION
{ SID_ATTR_PARA_FORBIDDEN_RULES, SFX_ITEM_POOLABLE },// RES_PARATR_FORBIDDEN_RULES
{ SID_PARA_VERTALIGN, SFX_ITEM_POOLABLE }, // RES_PARATR_VERTALIGN
{ SID_ATTR_PARA_SNAPTOGRID, SFX_ITEM_POOLABLE }, // RES_PARATR_SNAPTOGRID
{ SID_ATTR_BORDER_CONNECT, SFX_ITEM_POOLABLE }, // RES_PARATR_CONNECT_BORDER
{ SID_ATTR_PARA_FORBIDDEN_RULES, SfxItemPoolFlags::POOLABLE },// RES_PARATR_FORBIDDEN_RULES
{ SID_PARA_VERTALIGN, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_VERTALIGN
{ SID_ATTR_PARA_SNAPTOGRID, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_SNAPTOGRID
{ SID_ATTR_BORDER_CONNECT, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_CONNECT_BORDER
{ SID_ATTR_PARA_OUTLINE_LEVEL, SFX_ITEM_POOLABLE }, // RES_PARATR_OUTLINELEVEL //#outline level
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_RSID
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_GRABBAG
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_LIST_ID
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_LIST_LEVEL
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_LIST_ISRESTART
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_LIST_RESTARTVALUE
{ 0, SFX_ITEM_POOLABLE }, // RES_PARATR_LIST_ISCOUNTED
{ SID_ATTR_PARA_OUTLINE_LEVEL, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_OUTLINELEVEL //#outline level
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_RSID
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_GRABBAG
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LIST_ID
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LIST_LEVEL
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LIST_ISRESTART
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LIST_RESTARTVALUE
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PARATR_LIST_ISCOUNTED
{ 0, SFX_ITEM_POOLABLE }, // RES_FILL_ORDER
{ 0, SFX_ITEM_POOLABLE }, // RES_FRM_SIZE
{ SID_ATTR_PAGE_PAPERBIN, SFX_ITEM_POOLABLE }, // RES_PAPER_BIN
{ SID_ATTR_LRSPACE, SFX_ITEM_POOLABLE }, // RES_LR_SPACE
{ SID_ATTR_ULSPACE, SFX_ITEM_POOLABLE }, // RES_UL_SPACE
{ 0, 0 }, // RES_PAGEDESC
{ SID_ATTR_PARA_PAGEBREAK, SFX_ITEM_POOLABLE }, // RES_BREAK
{ 0, 0 }, // RES_CNTNT
{ 0, SFX_ITEM_POOLABLE }, // RES_HEADER
{ 0, SFX_ITEM_POOLABLE }, // RES_FOOTER
{ 0, SFX_ITEM_POOLABLE }, // RES_PRINT
{ FN_OPAQUE, SFX_ITEM_POOLABLE }, // RES_OPAQUE
{ FN_SET_PROTECT, SFX_ITEM_POOLABLE }, // RES_PROTECT
{ FN_SURROUND, SFX_ITEM_POOLABLE }, // RES_SURROUND
{ FN_VERT_ORIENT, SFX_ITEM_POOLABLE }, // RES_VERT_ORIENT
{ FN_HORI_ORIENT, SFX_ITEM_POOLABLE }, // RES_HORI_ORIENT
{ 0, 0 }, // RES_ANCHOR
{ SID_ATTR_BRUSH, SFX_ITEM_POOLABLE }, // RES_BACKGROUND
{ SID_ATTR_BORDER_OUTER, SFX_ITEM_POOLABLE }, // RES_BOX
{ SID_ATTR_BORDER_SHADOW, SFX_ITEM_POOLABLE }, // RES_SHADOW
{ SID_ATTR_MACROITEM, SFX_ITEM_POOLABLE }, // RES_FRMMACRO
{ FN_ATTR_COLUMNS, SFX_ITEM_POOLABLE }, // RES_COL
{ SID_ATTR_PARA_KEEP, SFX_ITEM_POOLABLE }, // RES_KEEP
{ 0, SFX_ITEM_POOLABLE }, // RES_URL
{ 0, SFX_ITEM_POOLABLE }, // RES_EDIT_IN_READONLY
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FILL_ORDER
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FRM_SIZE
{ SID_ATTR_PAGE_PAPERBIN, SfxItemPoolFlags::POOLABLE }, // RES_PAPER_BIN
{ SID_ATTR_LRSPACE, SfxItemPoolFlags::POOLABLE }, // RES_LR_SPACE
{ SID_ATTR_ULSPACE, SfxItemPoolFlags::POOLABLE }, // RES_UL_SPACE
{ 0, SfxItemPoolFlags::NONE }, // RES_PAGEDESC
{ SID_ATTR_PARA_PAGEBREAK, SfxItemPoolFlags::POOLABLE }, // RES_BREAK
{ 0, SfxItemPoolFlags::NONE }, // RES_CNTNT
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_HEADER
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FOOTER
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_PRINT
{ FN_OPAQUE, SfxItemPoolFlags::POOLABLE }, // RES_OPAQUE
{ FN_SET_PROTECT, SfxItemPoolFlags::POOLABLE }, // RES_PROTECT
{ FN_SURROUND, SfxItemPoolFlags::POOLABLE }, // RES_SURROUND
{ FN_VERT_ORIENT, SfxItemPoolFlags::POOLABLE }, // RES_VERT_ORIENT
{ FN_HORI_ORIENT, SfxItemPoolFlags::POOLABLE }, // RES_HORI_ORIENT
{ 0, SfxItemPoolFlags::NONE }, // RES_ANCHOR
{ SID_ATTR_BRUSH, SfxItemPoolFlags::POOLABLE }, // RES_BACKGROUND
{ SID_ATTR_BORDER_OUTER, SfxItemPoolFlags::POOLABLE }, // RES_BOX
{ SID_ATTR_BORDER_SHADOW, SfxItemPoolFlags::POOLABLE }, // RES_SHADOW
{ SID_ATTR_MACROITEM, SfxItemPoolFlags::POOLABLE }, // RES_FRMMACRO
{ FN_ATTR_COLUMNS, SfxItemPoolFlags::POOLABLE }, // RES_COL
{ SID_ATTR_PARA_KEEP, SfxItemPoolFlags::POOLABLE }, // RES_KEEP
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_URL
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_EDIT_IN_READONLY
{ 0, SFX_ITEM_POOLABLE }, // RES_LAYOUT_SPLIT
{ 0, 0 }, // RES_CHAIN
{ 0, SFX_ITEM_POOLABLE }, // RES_TEXTGRID
{ FN_FORMAT_LINENUMBER, SFX_ITEM_POOLABLE }, // RES_LINENUMBER
{ 0, SFX_ITEM_POOLABLE }, // RES_FTN_AT_TXTEND
{ 0, SFX_ITEM_POOLABLE }, // RES_END_AT_TXTEND
{ 0, SFX_ITEM_POOLABLE }, // RES_COLUMNBALANCE
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_LAYOUT_SPLIT
{ 0, SfxItemPoolFlags::NONE }, // RES_CHAIN
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TEXTGRID
{ FN_FORMAT_LINENUMBER, SfxItemPoolFlags::POOLABLE }, // RES_LINENUMBER
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FTN_AT_TXTEND
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_END_AT_TXTEND
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_COLUMNBALANCE
{ SID_ATTR_FRAMEDIRECTION, SFX_ITEM_POOLABLE }, // RES_FRAMEDIR
{ SID_ATTR_FRAMEDIRECTION, SfxItemPoolFlags::POOLABLE }, // RES_FRAMEDIR
{ SID_ATTR_HDFT_DYNAMIC_SPACING, SFX_ITEM_POOLABLE },// RES_HEADER_FOOTER_EAT_SPACING
{ FN_TABLE_ROW_SPLIT, SFX_ITEM_POOLABLE }, // RES_ROW_SPLIT
{ SID_ATTR_HDFT_DYNAMIC_SPACING, SfxItemPoolFlags::POOLABLE },// RES_HEADER_FOOTER_EAT_SPACING
{ FN_TABLE_ROW_SPLIT, SfxItemPoolFlags::POOLABLE }, // RES_ROW_SPLIT
// #i18732# - use slot-id define in svx
{ SID_SW_FOLLOW_TEXT_FLOW, SFX_ITEM_POOLABLE }, // RES_FOLLOW_TEXT_FLOW
{ SID_SW_FOLLOW_TEXT_FLOW, SfxItemPoolFlags::POOLABLE }, // RES_FOLLOW_TEXT_FLOW
// #i29550#
{ SID_SW_COLLAPSING_BORDERS, SFX_ITEM_POOLABLE }, // RES_COLLAPSING_BORDERS
{ SID_SW_COLLAPSING_BORDERS, SfxItemPoolFlags::POOLABLE }, // RES_COLLAPSING_BORDERS
// #i28701#
{ SID_SW_WRAP_INFLUENCE_ON_OBJPOS, SFX_ITEM_POOLABLE },// RES_WRAP_INFLUENCE_ON_OBJPOS
{ 0, 0 }, // RES_AUTO_STYLE
{ 0, SFX_ITEM_POOLABLE }, // RES_FRMATR_STYLE_NAME
{ 0, SFX_ITEM_POOLABLE }, // RES_FRMATR_CONDITIONAL_STYLE_NAME
{ 0, SFX_ITEM_POOLABLE }, // RES_FRMATR_GRABBAG
{ 0, SFX_ITEM_POOLABLE }, // RES_TEXT_VERT_ADJUST
{ SID_SW_WRAP_INFLUENCE_ON_OBJPOS, SfxItemPoolFlags::POOLABLE },// RES_WRAP_INFLUENCE_ON_OBJPOS
{ 0, SfxItemPoolFlags::NONE }, // RES_AUTO_STYLE
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FRMATR_STYLE_NAME
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FRMATR_CONDITIONAL_STYLE_NAME
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_FRMATR_GRABBAG
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_TEXT_VERT_ADJUST
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_MIRRORGRF
{ SID_ATTR_GRAF_CROP, SFX_ITEM_POOLABLE }, // RES_GRFATR_CROPGRF
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_ROTATION,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_LUMINANCE,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_CONTRAST,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_CHANNELR,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_CHANNELG,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_CHANNELB,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_GAMMA,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_INVERT,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_TRANSPARENCY,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY1,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY2,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY3,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY4,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY5,
{ 0, SFX_ITEM_POOLABLE }, // RES_GRFATR_DUMMY6,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_MIRRORGRF
{ SID_ATTR_GRAF_CROP, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_CROPGRF
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_ROTATION,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_LUMINANCE,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_CONTRAST,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_CHANNELR,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_CHANNELG,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_CHANNELB,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_GAMMA,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_INVERT,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_TRANSPARENCY,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY1,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY2,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY3,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY4,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY5,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_GRFATR_DUMMY6,
{ 0, SFX_ITEM_POOLABLE }, // RES_BOXATR_FORMAT
{ 0, 0 }, // RES_BOXATR_FORMULA,
{ 0, SFX_ITEM_POOLABLE }, // RES_BOXATR_VALUE
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_BOXATR_FORMAT
{ 0, SfxItemPoolFlags::NONE }, // RES_BOXATR_FORMULA,
{ 0, SfxItemPoolFlags::POOLABLE }, // RES_BOXATR_VALUE
{ 0, SFX_ITEM_POOLABLE } // RES_UNKNOWNATR_CONTAINER
{ 0, SfxItemPoolFlags::POOLABLE } // RES_UNKNOWNATR_CONTAINER
};
sal_uInt16* SwAttrPool::pVersionMap1 = 0;