diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-19 11:28:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-20 12:44:50 +0100 |
commit | fcfd55ffd7b3288db0fb42b21bed54bbef2b7ad7 (patch) | |
tree | 3c096e93da0dc8e7d304738c0c066a33fe0043a5 /sw/inc/hintids.hxx | |
parent | 75fc4934c3aafcd83d9bbee63d8d24cbddae8ea0 (diff) |
convert RES_FMT constants to TypedWhichId
Change-Id: Ie6c484cd8bde9ba3a3d5175fdf357873fe53bb89
Reviewed-on: https://gerrit.libreoffice.org/46811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/hintids.hxx')
-rw-r--r-- | sw/inc/hintids.hxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx index bb20ee86704d..ef869ddfe559 100644 --- a/sw/inc/hintids.hxx +++ b/sw/inc/hintids.hxx @@ -259,18 +259,15 @@ RES_FRMATR_END #define RES_UNKNOWNATR_END (151) // Format IDs -enum RES_FMT -{ -RES_FMT_BEGIN = RES_UNKNOWNATR_END, - RES_CHRFMT = RES_FMT_BEGIN, // 151 - RES_FRMFMT, // 152 - RES_FLYFRMFMT, // 153 - RES_TXTFMTCOLL, // 154 - RES_GRFFMTCOLL, // 155 - RES_DRAWFRMFMT, // 156 - RES_CONDTXTFMTCOLL, // 157 -RES_FMT_END -}; +#define RES_FMT_BEGIN RES_UNKNOWNATR_END +#define RES_CHRFMT TypedWhichId<SwCharFormat>(RES_FMT_BEGIN) // 151 +#define RES_FRMFMT TypedWhichId<SwFrameFormat>(152) +#define RES_FLYFRMFMT TypedWhichId<SwFlyFrameFormat>(153) +#define RES_TXTFMTCOLL TypedWhichId<SwTextFormatColl>(154) +#define RES_GRFFMTCOLL TypedWhichId<SwGrfFormatColl>(155) +#define RES_DRAWFRMFMT TypedWhichId<SwDrawFrameFormat>(156) +#define RES_CONDTXTFMTCOLL TypedWhichId<SwConditionTextFormatColl>(157) +#define RES_FMT_END 158 // ID's for Messages in the Formats #define RES_MSG_BEGIN RES_FMT_END |