summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-25 09:47:29 +0200
committerNoel Grandin <noel@peralex.com>2015-03-25 09:47:29 +0200
commit9110d8724d0af5e8a0a148096ce67c1d5a721f98 (patch)
tree22849e7f0661133fc79a7e5c9948a9b3d4ac9b62 /svx
parentc7c0723dd97e278edeb7686d350ffe6d8706ed66 (diff)
convert EE_STAT constants to enum class
Change-Id: I2967cdbfd0303844892150bbff7aa5ce1a57054f
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdotext.cxx6
-rw-r--r--svx/source/table/svdotable.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 56d3ee61ee9d..597777dcfa8a 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1918,9 +1918,9 @@ void SdrTextObj::SetTextAnimationAllowed(bool bNew)
/** called from the SdrObjEditView during text edit when the status of the edit outliner changes */
void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
{
- const sal_uInt32 nStat = pEditStatus->GetStatusWord();
- const bool bGrowX=(nStat & EE_STAT_TEXTWIDTHCHANGED) !=0;
- const bool bGrowY=(nStat & EE_STAT_TEXTHEIGHTCHANGED) !=0;
+ const EditStatusFlags nStat = pEditStatus->GetStatusWord();
+ const bool bGrowX = bool(nStat & EditStatusFlags::TEXTWIDTHCHANGED);
+ const bool bGrowY = bool(nStat & EditStatusFlags::TEXTHEIGHTCHANGED);
if(bTextFrame && (bGrowX || bGrowY))
{
if ((bGrowX && IsAutoGrowWidth()) || (bGrowY && IsAutoGrowHeight()))
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index 15016d4595e2..f2b4692a327a 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -1338,7 +1338,7 @@ bool SdrTableObj::IsTextEditActive( const CellPos& rPos )
void SdrTableObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
{
- if( (pEditStatus->GetStatusWord() & EE_STAT_TEXTHEIGHTCHANGED) && mpImpl && mpImpl->mpLayouter )
+ if( (pEditStatus->GetStatusWord() & EditStatusFlags::TEXTHEIGHTCHANGED) && mpImpl && mpImpl->mpLayouter )
{
Rectangle aRect0( maRect );
maRect = maLogicRect;