unwind RID_STYLEFAMILY_IMAGELIST imagelist

Change-Id: I03f4058114bb837c3d8edd25791464e7d7ba16ed
This commit is contained in:
Caolán McNamara 2016-12-05 11:25:13 +00:00
parent e84e15b79c
commit de943f90ed
41 changed files with 44 additions and 18 deletions

View File

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

View File

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 520 B

View File

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 463 B

View File

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 428 B

View File

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 423 B

View File

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

View File

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

View File

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 371 B

View File

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 417 B

View File

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

View File

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 667 B

View File

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 122 B

View File

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 139 B

View File

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 126 B

View File

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

View File

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 115 B

View File

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

View File

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 520 B

View File

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 463 B

View File

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 428 B

View File

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 423 B

View File

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 347 B

View File

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

View File

Before

Width:  |  Height:  |  Size: 744 B

After

Width:  |  Height:  |  Size: 744 B

View File

Before

Width:  |  Height:  |  Size: 674 B

After

Width:  |  Height:  |  Size: 674 B

View File

Before

Width:  |  Height:  |  Size: 697 B

After

Width:  |  Height:  |  Size: 697 B

View File

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 741 B

View File

Before

Width:  |  Height:  |  Size: 914 B

After

Width:  |  Height:  |  Size: 914 B

View File

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 468 B

View File

Before

Width:  |  Height:  |  Size: 430 KiB

After

Width:  |  Height:  |  Size: 430 KiB

View File

Before

Width:  |  Height:  |  Size: 553 B

After

Width:  |  Height:  |  Size: 553 B

View File

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 230 KiB

View File

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 297 B

After

Width:  |  Height:  |  Size: 297 B

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 280 KiB

After

Width:  |  Height:  |  Size: 280 KiB

View File

@ -171,18 +171,41 @@ StringArray RID_TABLESTYLEFAMILY
}; };
}; };
ImageList RID_STYLEFAMILY_IMAGELIST Bitmap BMP_STYLES_FAMILY_PARA
{ {
Prefix = "sf"; File = "sf01.png" ;
IdList =
{
1; 2; 3; 4; 5; 6;
}; };
IdCount = 6;
Bitmap BMP_STYLES_FAMILY_CHAR
{
File = "sf02.png" ;
};
Bitmap BMP_STYLES_FAMILY_FRAME
{
File = "sf03.png" ;
};
Bitmap BMP_STYLES_FAMILY_PAGE
{
File = "sf04.png" ;
};
Bitmap BMP_STYLES_FAMILY_LIST
{
File = "sf05.png" ;
};
Bitmap BMP_STYLES_FAMILY_TABLE
{
File = "sf06.png" ;
}; };
// Bitmap for the NumberingTemplates in the Organizer // Bitmap for the NumberingTemplates in the Organizer
Bitmap BMP_STYLES_FAMILY_NUM { File = "styfamnu.bmp" ; }; Bitmap BMP_STYLES_FAMILY_NUM
{
File = "styfamnu.bmp" ;
};
String STR_ENV_TITLE String STR_ENV_TITLE
{ {

View File

@ -401,36 +401,34 @@ SfxStyleFamilies* SwModule::CreateStyleFamilies()
{ {
SfxStyleFamilies *pStyleFamilies = new SfxStyleFamilies; SfxStyleFamilies *pStyleFamilies = new SfxStyleFamilies;
ImageList aEntryImages(SW_RES(RID_STYLEFAMILY_IMAGELIST));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Para, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Para,
SW_RESSTR(STR_PARAGRAPHSTYLEFAMILY), SW_RESSTR(STR_PARAGRAPHSTYLEFAMILY),
aEntryImages.GetImage(1), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_PARA))),
SW_RES(RID_PARAGRAPHSTYLEFAMILY))); SW_RES(RID_PARAGRAPHSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Char, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Char,
SW_RESSTR(STR_CHARACTERSTYLEFAMILY), SW_RESSTR(STR_CHARACTERSTYLEFAMILY),
aEntryImages.GetImage(2), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_CHAR))),
SW_RES(RID_CHARACTERSTYLEFAMILY))); SW_RES(RID_CHARACTERSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Frame, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Frame,
SW_RESSTR(STR_FRAMESTYLEFAMILY), SW_RESSTR(STR_FRAMESTYLEFAMILY),
aEntryImages.GetImage(3), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_FRAME))),
SW_RES(RID_FRAMESTYLEFAMILY))); SW_RES(RID_FRAMESTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Page, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Page,
SW_RESSTR(STR_PAGESTYLEFAMILY), SW_RESSTR(STR_PAGESTYLEFAMILY),
aEntryImages.GetImage(4), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_PAGE))),
SW_RES(RID_PAGESTYLEFAMILY))); SW_RES(RID_PAGESTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Pseudo, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Pseudo,
SW_RESSTR(STR_LISTSTYLEFAMILY), SW_RESSTR(STR_LISTSTYLEFAMILY),
aEntryImages.GetImage(5), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_LIST))),
SW_RES(RID_LISTSTYLEFAMILY))); SW_RES(RID_LISTSTYLEFAMILY)));
pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Table, pStyleFamilies->emplace_back(SfxStyleFamilyItem(SfxStyleFamily::Table,
SW_RESSTR(STR_TABLESTYLEFAMILY), SW_RESSTR(STR_TABLESTYLEFAMILY),
aEntryImages.GetImage(6), Image(BitmapEx(SW_RES(BMP_STYLES_FAMILY_TABLE))),
SW_RES(RID_TABLESTYLEFAMILY))); SW_RES(RID_TABLESTYLEFAMILY)));
return pStyleFamilies; return pStyleFamilies;

View File

@ -104,9 +104,14 @@
#define RID_PAGESTYLEFAMILY (RC_APP_BEGIN + 149) #define RID_PAGESTYLEFAMILY (RC_APP_BEGIN + 149)
#define RID_LISTSTYLEFAMILY (RC_APP_BEGIN + 150) #define RID_LISTSTYLEFAMILY (RC_APP_BEGIN + 150)
#define RID_TABLESTYLEFAMILY (RC_APP_BEGIN + 151) #define RID_TABLESTYLEFAMILY (RC_APP_BEGIN + 151)
#define RID_STYLEFAMILY_IMAGELIST (RC_APP_BEGIN + 152) #define BMP_STYLES_FAMILY_PARA (RC_APP_BEGIN + 152)
#define BMP_STYLES_FAMILY_CHAR (RC_APP_BEGIN + 153)
#define BMP_STYLES_FAMILY_FRAME (RC_APP_BEGIN + 154)
#define BMP_STYLES_FAMILY_PAGE (RC_APP_BEGIN + 155)
#define BMP_STYLES_FAMILY_LIST (RC_APP_BEGIN + 156)
#define BMP_STYLES_FAMILY_TABLE (RC_APP_BEGIN + 157)
#define APP_ACT_END RID_STYLEFAMILY_IMAGELIST #define APP_ACT_END BMP_STYLES_FAMILY_TABLE
#if APP_ACT_END > RC_APP_END #if APP_ACT_END > RC_APP_END
#error Resource-Id Ueberlauf in #file, #line #error Resource-Id Ueberlauf in #file, #line