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>
This commit is contained in:
Noel Grandin
2016-12-08 10:26:01 +02:00
parent 20475c78db
commit a66731982e
251 changed files with 1003 additions and 1096 deletions

View File

@@ -100,7 +100,7 @@ namespace basprov
// not interested in
return;
}
if ( rHint.GetId() == SFX_HINT_DYING )
if ( rHint.GetId() == SfxHintId::Dying )
{
m_documentBasicManager = nullptr;
EndListening( rBC ); // prevent multiple notifications