summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-10 10:46:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-11 06:57:12 +0100
commit412ca1ff72d2031d327df658a94e63bdcb8583b0 (patch)
tree7f6b173d04d94967d6ac114c216a72e0e44a4940 /sw/inc
parentd5d8fa63282a433da9c49d811f04390b8d6ab9cc (diff)
convert SwFrameSize to scoped enum
Change-Id: I7e1e641ff180035c7dcefdcfdd185eadbae32142 Reviewed-on: https://gerrit.libreoffice.org/84850 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/fmtfsize.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/fmtfsize.hxx b/sw/inc/fmtfsize.hxx
index e393d3a44ca3..e2c1e999468e 100644
--- a/sw/inc/fmtfsize.hxx
+++ b/sw/inc/fmtfsize.hxx
@@ -32,12 +32,12 @@ class IntlWrapper;
//Frame size.
-enum SwFrameSize
+enum class SwFrameSize
{
- ATT_VAR_SIZE, ///< Frame is variable in Var-direction.
- ATT_FIX_SIZE, ///< Frame cannot be moved in Var-direction.
- ATT_MIN_SIZE /**< Value in Var-direction gives minimum
- (can be exceeded but not be less). */
+ Variable, ///< Frame is variable in Var-direction.
+ Fixed, ///< Frame cannot be moved in Var-direction.
+ Minimum /**< Value in Var-direction gives minimum
+ (can be exceeded but not be less). */
};
class SW_DLLPUBLIC SwFormatFrameSize: public SvxSizeItem
@@ -64,7 +64,7 @@ class SW_DLLPUBLIC SwFormatFrameSize: public SvxSizeItem
bool HasMetrics() const override;
public:
- SwFormatFrameSize( SwFrameSize eSize = ATT_VAR_SIZE,
+ SwFormatFrameSize( SwFrameSize eSize = SwFrameSize::Variable,
SwTwips nWidth = 0, SwTwips nHeight = 0 );
virtual bool operator==( const SfxPoolItem& ) const override;