diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2023-02-11 12:24:38 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-02-15 10:47:09 +0000 |
commit | 0723238a88ae16af061f0a050b704d2299a28a9a (patch) | |
tree | 057c4675d9690153f567be7c82b583b1d8bef69a /sw/inc | |
parent | ef0d23e6b7a8330e070c93a59c33b0ce4a8896d5 (diff) |
replace RES_GRAPHIC_PIECE_ARRIVED and RES_LINKED_GRAPHIC_STREAM_ARRIVED
- also use SfxHintIds and get rid of some dynamic_casts
Change-Id: Id12d72fb726c1d747008f72defd6ba9eba3ba253
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146820
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/hintids.hxx | 2 | ||||
-rw-r--r-- | sw/inc/hints.hxx | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx index 8d0c14f23572..891815c3cd1a 100644 --- a/sw/inc/hintids.hxx +++ b/sw/inc/hintids.hxx @@ -429,7 +429,6 @@ constexpr TypedWhichId<SwTableFormulaUpdate> RES_TABLEFML_UPDATE(170); constexpr TypedWhichId<SwMsgPoolItem> RES_UPDATEDDETBL(171); constexpr TypedWhichId<SwMsgPoolItem> RES_TBLHEADLINECHG(172); constexpr TypedWhichId<SwAutoFormatGetDocNode> RES_AUTOFMT_DOCNODE(173); -constexpr TypedWhichId<SwMsgPoolItem> RES_GRAPHIC_PIECE_ARRIVED(177); constexpr TypedWhichId<SwMsgPoolItem> RES_HIDDENPARA_PRINT(178); constexpr TypedWhichId<SwVirtPageNumInfo> RES_VIRTPAGENUM_INFO(180); constexpr TypedWhichId<SwPtrMsgPoolItem> RES_REMOVE_UNO_OBJECT(181); @@ -438,7 +437,6 @@ constexpr TypedWhichId<SwFindNearestNode> RES_FINDNEARESTNODE(184); constexpr TypedWhichId<SwPtrMsgPoolItem> RES_CONTENT_VISIBLE(185); constexpr TypedWhichId<SwStringMsgPoolItem> RES_TITLE_CHANGED(188); constexpr TypedWhichId<SwStringMsgPoolItem> RES_DESCRIPTION_CHANGED(189); -constexpr TypedWhichId<SwMsgPoolItem> RES_LINKED_GRAPHIC_STREAM_ARRIVED(189); constexpr sal_uInt16 RES_MSG_END(190); // An ID for the RTF-reader. The stylesheets are treated like attributes, diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx index 1148af5c1598..7c37af060f68 100644 --- a/sw/inc/hints.hxx +++ b/sw/inc/hints.hxx @@ -153,12 +153,26 @@ class GrfRereadAndInCacheHint final : public SfxHint class PreGraphicArrivedHint final : public SfxHint { +public: + PreGraphicArrivedHint() : SfxHint(SfxHintId::SwPreGraphicArrived) {} }; class PostGraphicArrivedHint final : public SfxHint { }; +class GraphicPieceArrivedHint final : public SfxHint +{ +public: + GraphicPieceArrivedHint() : SfxHint(SfxHintId::SwGraphicPieceArrived) {} +}; + +class LinkedGraphicStreamArrivedHint final : public SfxHint +{ +public: + LinkedGraphicStreamArrivedHint() : SfxHint(SfxHintId::SwLinkedGraphicStreamArrived) {} +}; + class MoveTableLineHint final : public SfxHint { public: |