summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/swmodule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/swmodule.cxx')
-rw-r--r--sw/source/uibase/app/swmodule.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx
index b43c8fd01756..de6a73848e96 100644
--- a/sw/source/uibase/app/swmodule.cxx
+++ b/sw/source/uibase/app/swmodule.cxx
@@ -401,36 +401,34 @@ SfxStyleFamilies* SwModule::CreateStyleFamilies()
{
SfxStyleFamilies *pStyleFamilies = new SfxStyleFamilies;
- ImageList aEntryImages(SW_RES(RID_STYLEFAMILY_IMAGELIST));
-
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Para,
SW_RESSTR(STR_PARAGRAPHSTYLEFAMILY),
- aEntryImages.GetImage(1),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_PARA))),
SW_RES(RID_PARAGRAPHSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Char,
SW_RESSTR(STR_CHARACTERSTYLEFAMILY),
- aEntryImages.GetImage(2),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_CHAR))),
SW_RES(RID_CHARACTERSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Frame,
SW_RESSTR(STR_FRAMESTYLEFAMILY),
- aEntryImages.GetImage(3),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_FRAME))),
SW_RES(RID_FRAMESTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Page,
SW_RESSTR(STR_PAGESTYLEFAMILY),
- aEntryImages.GetImage(4),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_PAGE))),
SW_RES(RID_PAGESTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Pseudo,
SW_RESSTR(STR_LISTSTYLEFAMILY),
- aEntryImages.GetImage(5),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_LIST))),
SW_RES(RID_LISTSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Table,
SW_RESSTR(STR_TABLESTYLEFAMILY),
- aEntryImages.GetImage(6),
+ Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_TABLE))),
SW_RES(RID_TABLESTYLEFAMILY)));
return pStyleFamilies;