diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-12 10:22:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-12 11:59:21 +0000 |
commit | b540899c1ea33d3418e737428b51ea75278d6d4f (patch) | |
tree | ff029aaa0352f0e66d4456f97916155375813bdb /sw | |
parent | 7892566b9e7f0c2bfa1c18acd4147de496a58cab (diff) |
remove another imagelist
Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/globals.hrc | 2 | ||||
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 8 | ||||
-rw-r--r-- | sw/source/uibase/dialog/regionsw.hrc | 9 | ||||
-rw-r--r-- | sw/source/uibase/dialog/regionsw.src | 31 | ||||
-rw-r--r-- | sw/source/uibase/inc/regionsw.hxx | 1 |
5 files changed, 30 insertions, 21 deletions
diff --git a/sw/inc/globals.hrc b/sw/inc/globals.hrc index 1959e52720cb..6635c1b77f32 100644 --- a/sw/inc/globals.hrc +++ b/sw/inc/globals.hrc @@ -114,7 +114,7 @@ #define SW_STR_READONLY (RC_GLOBALS_BEGIN + 46) #define STR_READONLY_PATH (RC_GLOBALS_BEGIN + 47) -#define IL_SECTION_BITMAPS (RC_GLOBALS_BEGIN + 48) +//free #define IL_VALUES (RC_GLOBALS_BEGIN + 49) // INFOBOX ------------------------------------------------------------ diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 15ee51f64e8b..8eb04e528f5d 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -305,7 +305,6 @@ SwEditRegionDlg::SwEditRegionDlg( vcl::Window* pParent, SwWrtShell& rWrtSh ) : SfxModalDialog(pParent, "EditSectionDialog", "modules/swriter/ui/editsectiondialog.ui") , m_bSubRegionsFilled(false) - , aImageIL(SW_RES(IL_SECTION_BITMAPS)) , rSh(rWrtSh) , m_pDocInserter(nullptr) , 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; - return rImgLst.GetImage((int(!bHidden)+((bProtect ? 1 : 0)<<1)) + 1); + if (bProtect) + 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 diff --git a/sw/source/uibase/dialog/regionsw.hrc b/sw/source/uibase/dialog/regionsw.hrc index bef48c92a349..2b6e9c2ef6b5 100644 --- a/sw/source/uibase/dialog/regionsw.hrc +++ b/sw/source/uibase/dialog/regionsw.hrc @@ -31,11 +31,10 @@ #define STR_WRONG_PASSWORD (RC_REGIONSW_BEGIN+11) #define STR_WRONG_PASSWD_REPEAT (RC_REGIONSW_BEGIN+12) -//ImageList elements -#define BMP_HIDE 1 -#define BMP_NO_HIDE 2 -#define BMP_PROT_HIDE 3 -#define BMP_PROT_NO_HIDE 4 +#define RID_BMP_HIDE (RC_REGIONSW_BEGIN+13) +#define RID_BMP_NO_HIDE (RC_REGIONSW_BEGIN+14) +#define RID_BMP_PROT_HIDE (RC_REGIONSW_BEGIN+15) +#define RID_BMP_PROT_NO_HIDE (RC_REGIONSW_BEGIN+16) #endif diff --git a/sw/source/uibase/dialog/regionsw.src b/sw/source/uibase/dialog/regionsw.src index 8558ed38e41f..4a7602f061e9 100644 --- a/sw/source/uibase/dialog/regionsw.src +++ b/sw/source/uibase/dialog/regionsw.src @@ -22,35 +22,46 @@ #include "globals.hrc" #include "helpid.h" -ImageList IL_SECTION_BITMAPS +Bitmap RID_BMP_HIDE { - Prefix = "re"; - IdList = - { - BMP_HIDE /*1*/ ; - BMP_NO_HIDE /*2*/ ; - BMP_PROT_HIDE /*3*/ ; - BMP_PROT_NO_HIDE /*4*/ ; - }; - IdCount = { 4 ; }; + File = "re01.png"; +}; + +Bitmap RID_BMP_NO_HIDE +{ + File = "re02.png"; +}; + +Bitmap RID_BMP_PROT_HIDE +{ + File = "re03.png"; +}; + +Bitmap RID_BMP_PROT_NO_HIDE +{ + File = "re04.png"; }; String STR_REG_DUPLICATE { Text [ en-US ] = "Section name changed:" ; }; + String STR_INFO_DUPLICATE { Text [ en-US ] = "Duplicate section name" ; }; + String STR_QUERY_CONNECT { Text[ en-US ] = "A file connection will delete the contents of the current section. Connect anyway?" ; }; + String STR_WRONG_PASSWORD { Text [ en-US ] = "The password entered is invalid." ; }; + String STR_WRONG_PASSWD_REPEAT { Text [ en-US ] = "The password has not been set." ; diff --git a/sw/source/uibase/inc/regionsw.hxx b/sw/source/uibase/inc/regionsw.hxx index 8bc5e03e54a8..9abc8c8aad33 100644 --- a/sw/source/uibase/inc/regionsw.hxx +++ b/sw/source/uibase/inc/regionsw.hxx @@ -89,7 +89,6 @@ class SwEditRegionDlg : public SfxModalDialog VclPtr<OKButton> m_pOK; VclPtr<PushButton> m_pOptionsPB; VclPtr<PushButton> m_pDismiss; - ImageList aImageIL; SwWrtShell& rSh; SectReprs_t m_SectReprs; |