diff options
Diffstat (limited to 'editeng/inc')
-rwxr-xr-x | editeng/inc/editeng/memberids.hrc | 1 | ||||
-rw-r--r-- | editeng/inc/editeng/ulspitem.hxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/editeng/inc/editeng/memberids.hrc b/editeng/inc/editeng/memberids.hrc index b53276ccb6e2..45e059fef8f2 100755 --- a/editeng/inc/editeng/memberids.hrc +++ b/editeng/inc/editeng/memberids.hrc @@ -134,6 +134,7 @@ #define MID_LO_MARGIN 4 #define MID_UP_REL_MARGIN 5 #define MID_LO_REL_MARGIN 6 +#define MID_CTX_MARGIN 7 //LRSpaceItem #define MID_LR_MARGIN 0 diff --git a/editeng/inc/editeng/ulspitem.hxx b/editeng/inc/editeng/ulspitem.hxx index 7a91db0d4b32..f09a18d0b153 100644 --- a/editeng/inc/editeng/ulspitem.hxx +++ b/editeng/inc/editeng/ulspitem.hxx @@ -51,6 +51,7 @@ class EDITENG_DLLPUBLIC SvxULSpaceItem : public SfxPoolItem { sal_uInt16 nUpper; // Upper space sal_uInt16 nLower; // Lower space + sal_Bool bContext; // Contextual spacing? sal_uInt16 nPropUpper, nPropLower; // relative or absolute (=100%) public: TYPEINFO(); @@ -83,11 +84,13 @@ public: void SetUpperValue( const sal_uInt16 nU ) { nUpper = nU; } void SetLowerValue( const sal_uInt16 nL ) { nLower = nL; } + void SetContextValue( const sal_Bool bC ) { bContext = bC; } void SetPropUpper( const sal_uInt16 nU ) { nPropUpper = nU; } void SetPropLower( const sal_uInt16 nL ) { nPropLower = nL; } sal_uInt16 GetUpper() const { return nUpper; } sal_uInt16 GetLower() const { return nLower; } + sal_Bool GetContext() const { return bContext; } sal_uInt16 GetPropUpper() const { return nPropUpper; } sal_uInt16 GetPropLower() const { return nPropLower; } }; @@ -96,6 +99,7 @@ inline SvxULSpaceItem &SvxULSpaceItem::operator=( const SvxULSpaceItem &rCpy ) { nUpper = rCpy.GetUpper(); nLower = rCpy.GetLower(); + bContext = rCpy.GetContext(); nPropUpper = rCpy.GetPropUpper(); nPropLower = rCpy.GetPropLower(); return *this; |