diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2013-11-27 10:39:18 +0100 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2013-12-04 18:52:02 +0100 |
commit | 8a631e4718fbd7e6a393d93b006fc693df73a89b (patch) | |
tree | 449dc40efc94f17df4d4f7c5d9c8b648c0b471b8 /sw | |
parent | 73cf3fd42e2d852762ad9afd9ea4597213f73f66 (diff) |
sw: add CharInteropGrabBag uno property to characters
Change-Id: I2c6d8b1e4ef6df6a6662d5db89e67e5fba3c6ade
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/hintids.hxx | 2 | ||||
-rw-r--r-- | sw/inc/unoprnms.hxx | 1 | ||||
-rw-r--r-- | sw/source/core/bastyp/init.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/unocore/unomap.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/unocore/unoprnms.cxx | 1 |
5 files changed, 8 insertions, 4 deletions
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx index 5773c2f7ca72..a7b057107f29 100644 --- a/sw/inc/hintids.hxx +++ b/sw/inc/hintids.hxx @@ -95,7 +95,7 @@ RES_CHRATR_BEGIN = HINT_BEGIN, RES_CHRATR_BOX, // 40 RES_CHRATR_SHADOW, // 41 RES_CHRATR_HIGHLIGHT, // 42 - RES_CHRATR_DUMMY2, // 43 + RES_CHRATR_GRABBAG, // 43 RES_CHRATR_DUMMY3, // 44 RES_CHRATR_END }; diff --git a/sw/inc/unoprnms.hxx b/sw/inc/unoprnms.hxx index 34d36083600e..346df4ea9815 100644 --- a/sw/inc/unoprnms.hxx +++ b/sw/inc/unoprnms.hxx @@ -842,6 +842,7 @@ enum SwPropNameIds /* 0775 */ UNO_NAME_FRAME_INTEROP_GRAB_BAG, /* 0776 */ UNO_NAME_CHAR_HIGHLIGHT, /* 0777 */ UNO_NAME_STYLE_INTEROP_GRAB_BAG, +/* 0778 */ UNO_NAME_CHAR_INTEROP_GRAB_BAG, SW_PROPNAME_END diff --git a/sw/source/core/bastyp/init.cxx b/sw/source/core/bastyp/init.cxx index d606aa615781..595bb74ffe77 100644 --- a/sw/source/core/bastyp/init.cxx +++ b/sw/source/core/bastyp/init.cxx @@ -291,7 +291,7 @@ SfxItemInfo aSlotTab[] = { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_BOX { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_SHADOW { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_DUMMY1 - { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_DUMMY2 + { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_GRABBAG { 0, SFX_ITEM_POOLABLE }, // RES_CHRATR_DUMMY3 { 0, 0 }, // RES_TXTATR_REFMARK @@ -497,11 +497,12 @@ void _InitCore() aAttrTab[ RES_CHRATR_BOX - POOLATTR_BEGIN ] = new SvxBoxItem( RES_CHRATR_BOX ); aAttrTab[ RES_CHRATR_SHADOW - POOLATTR_BEGIN ] = new SvxShadowItem( RES_CHRATR_SHADOW ); aAttrTab[ RES_CHRATR_HIGHLIGHT - POOLATTR_BEGIN ] = new SvxBrushItem( RES_CHRATR_HIGHLIGHT ); + aAttrTab[ RES_CHRATR_GRABBAG - POOLATTR_BEGIN ] = new SfxGrabBagItem( RES_CHRATR_GRABBAG ); // CharakterAttr - Dummies - aAttrTab[ RES_CHRATR_DUMMY2 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_CHRATR_DUMMY2 ); aAttrTab[ RES_CHRATR_DUMMY3 - POOLATTR_BEGIN ] = new SfxBoolItem( RES_CHRATR_DUMMY3 ); + aAttrTab[ RES_TXTATR_REFMARK - POOLATTR_BEGIN ] = new SwFmtRefMark( aEmptyOUStr ); aAttrTab[ RES_TXTATR_TOXMARK - POOLATTR_BEGIN ] = new SwTOXMark; aAttrTab[ RES_TXTATR_META - POOLATTR_BEGIN ] = SwFmtMeta::CreatePoolDefault(RES_TXTATR_META); diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx index 394266fe9da7..956d96f9db23 100644 --- a/sw/source/core/unocore/unomap.cxx +++ b/sw/source/core/unocore/unomap.cxx @@ -75,7 +75,8 @@ SwUnoPropertyMapProvider::~SwUnoPropertyMapProvider() { SW_PROP_NMID(UNO_NAME_CHAR_FONT_PITCH), RES_CHRATR_FONT, CPPU_E2T(CPPUTYPE_INT16), PropertyAttribute::MAYBEVOID, MID_FONT_PITCH }, \ { SW_PROP_NMID(UNO_NAME_CHAR_POSTURE), RES_CHRATR_POSTURE , CPPU_E2T(CPPUTYPE_FONTSLANT), PropertyAttribute::MAYBEVOID, MID_POSTURE}, \ { SW_PROP_NMID(UNO_NAME_RSID), RES_CHRATR_RSID, CPPU_E2T(CPPUTYPE_INT32), PropertyAttribute::MAYBEVOID, 0 }, \ - { SW_PROP_NMID(UNO_NAME_CHAR_LOCALE), RES_CHRATR_LANGUAGE , CPPU_E2T(CPPUTYPE_LOCALE) , PropertyAttribute::MAYBEVOID, MID_LANG_LOCALE }, + { SW_PROP_NMID(UNO_NAME_CHAR_LOCALE), RES_CHRATR_LANGUAGE, CPPU_E2T(CPPUTYPE_LOCALE), PropertyAttribute::MAYBEVOID, MID_LANG_LOCALE }, \ + { SW_PROP_NMID(UNO_NAME_CHAR_INTEROP_GRAB_BAG), RES_CHRATR_GRABBAG, CPPU_E2T(CPPUTYPE_PROPERTYVALUE), PROPERTY_NONE, 0 }, \ #define _CJK_FONT_PROPERTIES \ { SW_PROP_NMID(UNO_NAME_CHAR_HEIGHT_ASIAN), RES_CHRATR_CJK_FONTSIZE , CPPU_E2T(CPPUTYPE_FLOAT), PropertyAttribute::MAYBEVOID, MID_FONTHEIGHT|CONVERT_TWIPS}, \ diff --git a/sw/source/core/unocore/unoprnms.cxx b/sw/source/core/unocore/unoprnms.cxx index 1ad38e9ffff4..13626c6f10db 100644 --- a/sw/source/core/unocore/unoprnms.cxx +++ b/sw/source/core/unocore/unoprnms.cxx @@ -807,6 +807,7 @@ const SwPropNameTab aPropNameTab = { /* 0775 UNO_NAME_FRAME_INTEROP_GRAB_BAG */ {MAP_CHAR_LEN("FrameInteropGrabBag")}, /* 0776 UNO_NAME_CHAR_HIGHLIGHT */ {MAP_CHAR_LEN("CharHighlight")}, /* 0777 UNO_NAME_STYLE_INTEROP_GRAB_BAG */ {MAP_CHAR_LEN("StyleInteropGrabBag")}, +/* 0778 UNO_NAME_CHAR_INTEROP_GRAB_BAG */ {MAP_CHAR_LEN("CharInteropGrabBag")}, // new items in this array must match enum SwPropNameIds }; |