summaryrefslogtreecommitdiff
path: root/vcl/source/edit/texteng.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-08 10:26:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-08 12:35:09 +0000
commita66731982e93cdcc5beaa5b0586a7f12a7fc0ef6 (patch)
tree19064090be4d97781c16aa6e79a4f7a09d561ae9 /vcl/source/edit/texteng.cxx
parent20475c78db5c62f2c8711e59753476bd9b4e2f1c (diff)
convert SFX_HINT to scoped enum
Notes (*) In SC, BULK_DATACHANGED was or'ed into the hint id. Replaced with a dynamic_cast check. (*) In SC, removed the hint id field from ScIndexHint, no point in storing the hint id twice (*) Fold the SfxStyleSheetHintId enum into the new SfxHintId enum, no point in storing two different hint ids (*) In some cases, multiple #define's used to map to the same SFX_HINT value (notably the SFX_HINT_USER* values). I made all of those separate values. Change-Id: I990e2fb587335ebc51c9005588c6a44f768d9de5 Reviewed-on: https://gerrit.libreoffice.org/31751 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r--vcl/source/edit/texteng.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 4ba1f2353821..a631effaeea8 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -834,7 +834,7 @@ TextPaM TextEngine::ImpInsertParaBreak( const TextPaM& rPaM )
TextModified();
if ( bFirstParaContentChanged )
- Broadcast( TextHint( TEXT_HINT_PARACONTENTCHANGED, rPaM.GetPara() ) );
+ Broadcast( TextHint( SfxHintId::TextParaContentChanged, rPaM.GetPara() ) );
return aPaM;
}
@@ -1518,7 +1518,7 @@ void TextEngine::FormatDoc()
{
const long nOldParaWidth = mnCurTextWidth >= 0 ? CalcTextWidth( nPara ) : -1;
- Broadcast( TextHint( TEXT_HINT_FORMATPARA, nPara ) );
+ Broadcast( TextHint( SfxHintId::TextFormatPara, nPara ) );
if ( CreateLines( nPara ) )
bGrow = true;
@@ -1577,14 +1577,14 @@ void TextEngine::FormatDoc()
if ( nDiff )
{
mbFormatted = true;
- Broadcast( TextHint( TEXT_HINT_TEXTHEIGHTCHANGED ) );
+ Broadcast( TextHint( SfxHintId::TextHeightChanged ) );
}
}
mbIsFormatting = false;
mbFormatted = true;
- Broadcast( TextHint( TEXT_HINT_TEXTFORMATTED ) );
+ Broadcast( TextHint( SfxHintId::TextFormatted ) );
}
void TextEngine::CreateAndInsertEmptyLine( sal_uInt32 nPara )
@@ -2663,7 +2663,7 @@ void TextEngine::ImpParagraphInserted( sal_uInt32 nPara )
}
}
}
- Broadcast( TextHint( TEXT_HINT_PARAINSERTED, nPara ) );
+ Broadcast( TextHint( SfxHintId::TextParaInserted, nPara ) );
}
void TextEngine::ImpParagraphRemoved( sal_uInt32 nPara )
@@ -2691,7 +2691,7 @@ void TextEngine::ImpParagraphRemoved( sal_uInt32 nPara )
}
}
}
- Broadcast( TextHint( TEXT_HINT_PARAREMOVED, nPara ) );
+ Broadcast( TextHint( SfxHintId::TextParaRemoved, nPara ) );
}
void TextEngine::ImpCharsRemoved( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 nChars )
@@ -2718,7 +2718,7 @@ void TextEngine::ImpCharsRemoved( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 nC
}
}
}
- Broadcast( TextHint( TEXT_HINT_PARACONTENTCHANGED, nPara ) );
+ Broadcast( TextHint( SfxHintId::TextParaContentChanged, nPara ) );
}
void TextEngine::ImpCharsInserted( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 nChars )
@@ -2742,7 +2742,7 @@ void TextEngine::ImpCharsInserted( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 n
}
}
}
- Broadcast( TextHint( TEXT_HINT_PARACONTENTCHANGED, nPara ) );
+ Broadcast( TextHint( SfxHintId::TextParaContentChanged, nPara ) );
}
void TextEngine::Draw( OutputDevice* pDev, const Point& rPos )