diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-28 15:17:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-28 17:01:42 +0100 |
commit | 493bee473ad2ed52f12030d302e2850d35b20093 (patch) | |
tree | 7b487c4b5b3b99d01e7206ffebba5141c000339e /sw/inc | |
parent | 05f87e422b2f51ccf87bd0e7cba86e12a404199e (diff) |
swpagerelsize: add an eWidthPercentRelation member to SwFmtFrmSize
Relative width so far was always relative to margin. This new member can
describe if the relative width should be relative to e.g. page.
Change-Id: Idaed3c1ade8cd49021ed3406abd6f79cf8e742be
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/fmtfsize.hxx | 3 | ||||
-rw-r--r-- | sw/inc/unomid.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/fmtfsize.hxx b/sw/inc/fmtfsize.hxx index 699d3b28ddbd..2b1622ea30fa 100644 --- a/sw/inc/fmtfsize.hxx +++ b/sw/inc/fmtfsize.hxx @@ -44,6 +44,7 @@ class SW_DLLPUBLIC SwFmtFrmSize: public SfxPoolItem SwFrmSize eFrmHeightType; SwFrmSize eFrmWidthType; sal_uInt8 nWidthPercent; + sal_Int16 eWidthPercentRelation; sal_uInt8 nHeightPercent; // For tables: width can be given in percent. @@ -91,8 +92,10 @@ public: sal_uInt8 GetHeightPercent() const{ return nHeightPercent; } sal_uInt8 GetWidthPercent() const { return nWidthPercent; } + sal_Int16 GetWidthPercentRelation() const { return eWidthPercentRelation; } void SetHeightPercent( sal_uInt8 n ) { nHeightPercent = n; } void SetWidthPercent ( sal_uInt8 n ) { nWidthPercent = n; } + void SetWidthPercentRelation ( sal_Int16 n ) { eWidthPercentRelation = n; } }; inline const SwFmtFrmSize &SwAttrSet::GetFrmSize(sal_Bool bInP) const diff --git a/sw/inc/unomid.h b/sw/inc/unomid.h index 981a309073ed..56956fb5ec3f 100644 --- a/sw/inc/unomid.h +++ b/sw/inc/unomid.h @@ -84,6 +84,7 @@ #define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT 12 #define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH 13 #define MID_FRMSIZE_WIDTH_TYPE 14 +#define MID_FRMSIZE_REL_WIDTH_RELATION 15 #define MID_COLUMNS 0 #define MID_COLUMN_SEPARATOR_LINE 1 |