remove another imagelist

Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
This commit is contained in:
Caolán McNamara 2016-12-12 10:22:02 +00:00
parent 7892566b9e
commit b540899c1e
24 changed files with 42 additions and 33 deletions

View File

@ -1267,10 +1267,10 @@ sw/res/nc20009.png cmd/sc_insertindexesentry.png
sw/res/nc20010.png cmd/sc_showannotations.png sw/res/nc20010.png cmd/sc_showannotations.png
sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png
sw/imglst/re01.png cmd/lc_unsetcellsreadonly.png sw/res/re01.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re02.png cmd/lc_unsetcellsreadonly.png sw/res/re02.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re03.png cmd/sc_protect.png sw/res/re03.png cmd/sc_protect.png
sw/imglst/re04.png cmd/sc_protect.png sw/res/re04.png cmd/sc_protect.png
sw/imglst/sc20171.png cmd/sc_downsearch.png sw/imglst/sc20171.png cmd/sc_downsearch.png
sw/imglst/sc20172.png cmd/sc_prevrecord.png sw/imglst/sc20172.png cmd/sc_prevrecord.png

View File

@ -1263,10 +1263,10 @@ sw/res/nc20009.png cmd/sc_insertindexesentry.png
sw/res/nc20010.png cmd/sc_showannotations.png sw/res/nc20010.png cmd/sc_showannotations.png
sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png
sw/imglst/re01.png cmd/lc_unsetcellsreadonly.png sw/res/re01.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re02.png cmd/lc_unsetcellsreadonly.png sw/res/re02.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re03.png cmd/sc_protect.png sw/res/re03.png cmd/sc_protect.png
sw/imglst/re04.png cmd/sc_protect.png sw/res/re04.png cmd/sc_protect.png
sw/imglst/sc20171.png cmd/sc_downsearch.png sw/imglst/sc20171.png cmd/sc_downsearch.png
sw/imglst/sc20172.png cmd/sc_prevrecord.png sw/imglst/sc20172.png cmd/sc_prevrecord.png

View File

@ -1229,10 +1229,10 @@ sw/res/nc20009.png cmd/sc_insertindexesentry.png
sw/res/nc20010.png cmd/sc_showannotations.png sw/res/nc20010.png cmd/sc_showannotations.png
sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png sw/res/nc20011.png cmd/sc_toggleobjectbeziermode.png
sw/imglst/re01.png cmd/lc_unsetcellsreadonly.png sw/res/re01.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re02.png cmd/lc_unsetcellsreadonly.png sw/res/re02.png cmd/lc_unsetcellsreadonly.png
sw/imglst/re03.png cmd/sc_protect.png sw/res/re03.png cmd/sc_protect.png
sw/imglst/re04.png cmd/sc_protect.png sw/res/re04.png cmd/sc_protect.png
sw/imglst/sc20171.png cmd/sc_downsearch.png sw/imglst/sc20171.png cmd/sc_downsearch.png
sw/imglst/sc20172.png cmd/sc_prevrecord.png sw/imglst/sc20172.png cmd/sc_prevrecord.png

View File

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 476 B

View File

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 582 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

View File

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 209 B

View File

Before

Width:  |  Height:  |  Size: 311 B

After

Width:  |  Height:  |  Size: 311 B

View File

Before

Width:  |  Height:  |  Size: 184 B

After

Width:  |  Height:  |  Size: 184 B

View File

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 288 B

View File

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

View File

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

View File

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 229 B

View File

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 277 B

View File

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 309 B

View File

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 354 B

View File

Before

Width:  |  Height:  |  Size: 119 B

After

Width:  |  Height:  |  Size: 119 B

View File

Before

Width:  |  Height:  |  Size: 343 B

After

Width:  |  Height:  |  Size: 343 B

View File

@ -114,7 +114,7 @@
#define SW_STR_READONLY (RC_GLOBALS_BEGIN + 46) #define SW_STR_READONLY (RC_GLOBALS_BEGIN + 46)
#define STR_READONLY_PATH (RC_GLOBALS_BEGIN + 47) #define STR_READONLY_PATH (RC_GLOBALS_BEGIN + 47)
#define IL_SECTION_BITMAPS (RC_GLOBALS_BEGIN + 48) //free
#define IL_VALUES (RC_GLOBALS_BEGIN + 49) #define IL_VALUES (RC_GLOBALS_BEGIN + 49)
// INFOBOX ------------------------------------------------------------ // INFOBOX ------------------------------------------------------------

View File

@ -305,7 +305,6 @@ SwEditRegionDlg::SwEditRegionDlg( vcl::Window* pParent, SwWrtShell& rWrtSh )
: SfxModalDialog(pParent, "EditSectionDialog", : SfxModalDialog(pParent, "EditSectionDialog",
"modules/swriter/ui/editsectiondialog.ui") "modules/swriter/ui/editsectiondialog.ui")
, m_bSubRegionsFilled(false) , m_bSubRegionsFilled(false)
, aImageIL(SW_RES(IL_SECTION_BITMAPS))
, rSh(rWrtSh) , rSh(rWrtSh)
, m_pDocInserter(nullptr) , m_pDocInserter(nullptr)
, bDontCheckPasswd(true) , bDontCheckPasswd(true)
@ -1367,10 +1366,11 @@ IMPL_LINK( SwEditRegionDlg, SubRegionEventHdl, VclWindowEvent&, rEvent, void )
} }
} }
Image SwEditRegionDlg::BuildBitmap( bool bProtect, bool bHidden ) Image SwEditRegionDlg::BuildBitmap(bool bProtect, bool bHidden)
{ {
ImageList& rImgLst = aImageIL; if (bProtect)
return rImgLst.GetImage((int(!bHidden)+((bProtect ? 1 : 0)<<1)) + 1); return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_PROT_HIDE : RID_BMP_PROT_NO_HIDE)));
return Image(BitmapEx(SW_RES(bHidden ? RID_BMP_HIDE : RID_BMP_NO_HIDE)));
} }
// helper function - read region names from medium // helper function - read region names from medium

View File

@ -31,11 +31,10 @@
#define STR_WRONG_PASSWORD (RC_REGIONSW_BEGIN+11) #define STR_WRONG_PASSWORD (RC_REGIONSW_BEGIN+11)
#define STR_WRONG_PASSWD_REPEAT (RC_REGIONSW_BEGIN+12) #define STR_WRONG_PASSWD_REPEAT (RC_REGIONSW_BEGIN+12)
//ImageList elements #define RID_BMP_HIDE (RC_REGIONSW_BEGIN+13)
#define BMP_HIDE 1 #define RID_BMP_NO_HIDE (RC_REGIONSW_BEGIN+14)
#define BMP_NO_HIDE 2 #define RID_BMP_PROT_HIDE (RC_REGIONSW_BEGIN+15)
#define BMP_PROT_HIDE 3 #define RID_BMP_PROT_NO_HIDE (RC_REGIONSW_BEGIN+16)
#define BMP_PROT_NO_HIDE 4
#endif #endif

View File

@ -22,35 +22,46 @@
#include "globals.hrc" #include "globals.hrc"
#include "helpid.h" #include "helpid.h"
ImageList IL_SECTION_BITMAPS Bitmap RID_BMP_HIDE
{ {
Prefix = "re"; File = "re01.png";
IdList = };
{
BMP_HIDE /*1*/ ; Bitmap RID_BMP_NO_HIDE
BMP_NO_HIDE /*2*/ ; {
BMP_PROT_HIDE /*3*/ ; File = "re02.png";
BMP_PROT_NO_HIDE /*4*/ ; };
};
IdCount = { 4 ; }; Bitmap RID_BMP_PROT_HIDE
{
File = "re03.png";
};
Bitmap RID_BMP_PROT_NO_HIDE
{
File = "re04.png";
}; };
String STR_REG_DUPLICATE String STR_REG_DUPLICATE
{ {
Text [ en-US ] = "Section name changed:" ; Text [ en-US ] = "Section name changed:" ;
}; };
String STR_INFO_DUPLICATE String STR_INFO_DUPLICATE
{ {
Text [ en-US ] = "Duplicate section name" ; Text [ en-US ] = "Duplicate section name" ;
}; };
String STR_QUERY_CONNECT String STR_QUERY_CONNECT
{ {
Text[ en-US ] = "A file connection will delete the contents of the current section. Connect anyway?" ; Text[ en-US ] = "A file connection will delete the contents of the current section. Connect anyway?" ;
}; };
String STR_WRONG_PASSWORD String STR_WRONG_PASSWORD
{ {
Text [ en-US ] = "The password entered is invalid." ; Text [ en-US ] = "The password entered is invalid." ;
}; };
String STR_WRONG_PASSWD_REPEAT String STR_WRONG_PASSWD_REPEAT
{ {
Text [ en-US ] = "The password has not been set." ; Text [ en-US ] = "The password has not been set." ;

View File

@ -89,7 +89,6 @@ class SwEditRegionDlg : public SfxModalDialog
VclPtr<OKButton> m_pOK; VclPtr<OKButton> m_pOK;
VclPtr<PushButton> m_pOptionsPB; VclPtr<PushButton> m_pOptionsPB;
VclPtr<PushButton> m_pDismiss; VclPtr<PushButton> m_pDismiss;
ImageList aImageIL;
SwWrtShell& rSh; SwWrtShell& rSh;
SectReprs_t m_SectReprs; SectReprs_t m_SectReprs;