Kaydet (Commit) b61565eb authored tarafından Caolán McNamara's avatar Caolán McNamara

remove another imagelist

Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
üst 554ff8ef
...@@ -1320,7 +1320,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png ...@@ -1320,7 +1320,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png
sw/imglst/sr20018.png cmd/sc_inserttable.png sw/imglst/sr20018.png cmd/sc_inserttable.png
sw/imglst/sr20019.png cmd/sc_remove.png sw/imglst/sr20019.png cmd/sc_remove.png
sw/imglst/sx03.png cmd/sc_dbqueryedit.png sw/res/sx03.png cmd/sc_dbqueryedit.png
# res # res
sw/res/all_left.png cmd/sc_firstrecord.png sw/res/all_left.png cmd/sc_firstrecord.png
......
...@@ -1316,7 +1316,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png ...@@ -1316,7 +1316,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png
sw/imglst/sr20018.png cmd/sc_inserttable.png sw/imglst/sr20018.png cmd/sc_inserttable.png
sw/imglst/sr20019.png cmd/sc_remove.png sw/imglst/sr20019.png cmd/sc_remove.png
sw/imglst/sx03.png cmd/sc_dbqueryedit.png sw/res/sx03.png cmd/sc_dbqueryedit.png
# res # res
sw/res/all_left.png cmd/sc_firstrecord.png sw/res/all_left.png cmd/sc_firstrecord.png
......
...@@ -1282,7 +1282,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png ...@@ -1282,7 +1282,7 @@ sw/imglst/sr20017.png cmd/sc_insertindexesentry.png
sw/imglst/sr20018.png cmd/sc_inserttable.png sw/imglst/sr20018.png cmd/sc_inserttable.png
sw/imglst/sr20019.png cmd/sc_remove.png sw/imglst/sr20019.png cmd/sc_remove.png
sw/imglst/sx03.png cmd/sc_dbqueryedit.png sw/res/sx03.png cmd/sc_dbqueryedit.png
# res # res
sw/res/all_left.png cmd/sc_firstrecord.png sw/res/all_left.png cmd/sc_firstrecord.png
......
...@@ -53,7 +53,6 @@ using namespace ::com::sun::star::uno; ...@@ -53,7 +53,6 @@ using namespace ::com::sun::star::uno;
SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) SwChangeDBDlg::SwChangeDBDlg(SwView& rVw)
: SvxStandardDialog(&rVw.GetViewFrame()->GetWindow(), "ExchangeDatabasesDialog", : SvxStandardDialog(&rVw.GetViewFrame()->GetWindow(), "ExchangeDatabasesDialog",
"modules/swriter/ui/exchangedatabases.ui") "modules/swriter/ui/exchangedatabases.ui")
, aImageList(SW_RES(ILIST_DB_DLG))
, pSh(rVw.GetWrtShellPtr()) , pSh(rVw.GetWrtShellPtr())
{ {
get(m_pUsedDBTLB, "inuselb"); get(m_pUsedDBTLB, "inuselb");
...@@ -71,7 +70,8 @@ SwChangeDBDlg::SwChangeDBDlg(SwView& rVw) ...@@ -71,7 +70,8 @@ SwChangeDBDlg::SwChangeDBDlg(SwView& rVw)
m_pUsedDBTLB->SetSelectionMode(SelectionMode::Multiple); m_pUsedDBTLB->SetSelectionMode(SelectionMode::Multiple);
m_pUsedDBTLB->SetStyle(m_pUsedDBTLB->GetStyle()|WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL); m_pUsedDBTLB->SetStyle(m_pUsedDBTLB->GetStyle()|WB_HASLINES|WB_CLIPCHILDREN|WB_SORT|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
m_pUsedDBTLB->SetSpaceBetweenEntries(0); m_pUsedDBTLB->SetSpaceBetweenEntries(0);
m_pUsedDBTLB->SetNodeBitmaps( aImageList.GetImage(IMG_COLLAPSE), aImageList.GetImage(IMG_EXPAND)); m_pUsedDBTLB->SetNodeBitmaps(Image(BitmapEx(SW_RES(RID_BMP_COLLAPSE))),
Image(BitmapEx(SW_RES(RID_BMP_EXPAND))));
Link<SvTreeListBox*,void> aLink = LINK(this, SwChangeDBDlg, TreeSelectHdl); Link<SvTreeListBox*,void> aLink = LINK(this, SwChangeDBDlg, TreeSelectHdl);
...@@ -134,9 +134,9 @@ SvTreeListEntry* SwChangeDBDlg::Insert(const OUString& rDBName) ...@@ -134,9 +134,9 @@ SvTreeListEntry* SwChangeDBDlg::Insert(const OUString& rDBName)
sal_uLong nParent = 0; sal_uLong nParent = 0;
sal_uLong nChild = 0; sal_uLong nChild = 0;
Image aTableImg = aImageList.GetImage(IMG_DBTABLE); Image aTableImg(BitmapEx(SW_RES(RID_BMP_DBTABLE)));
Image aDBImg = aImageList.GetImage(IMG_DB); Image aDBImg(BitmapEx(SW_RES(RID_BMP_DB)));
Image aQueryImg = aImageList.GetImage(IMG_DBQUERY); Image aQueryImg(BitmapEx(SW_RES(RID_BMP_DBQUERY)));
Image& rToInsert = nCommandType ? aQueryImg : aTableImg; Image& rToInsert = nCommandType ? aQueryImg : aTableImg;
while ((pParent = m_pUsedDBTLB->GetEntry(nParent++)) != nullptr) while ((pParent = m_pUsedDBTLB->GetEntry(nParent++)) != nullptr)
{ {
......
...@@ -324,19 +324,31 @@ String STR_HYPH_TITLE ...@@ -324,19 +324,31 @@ String STR_HYPH_TITLE
Text [ en-US ] = "Hyphenation"; Text [ en-US ] = "Hyphenation";
}; };
ImageList ILIST_DB_DLG Bitmap RID_BMP_COLLAPSE
{ {
Prefix = "sx"; File = "sx18002.png";
IdList = };
{
IMG_COLLAPSE; Bitmap RID_BMP_EXPAND
IMG_EXPAND ; {
IMG_DB ; File = "sx18003.png";
IMG_DBTABLE ; };
IMG_DBQUERY ;
}; Bitmap RID_BMP_DB
IdCount = 5; {
File = "sx01.png";
}; };
Bitmap RID_BMP_DBTABLE
{
File = "sx02.png";
};
Bitmap RID_BMP_DBQUERY
{
File = "sx03.png";
};
Image IMG_VIEWLAYOUT_AUTOMATIC Image IMG_VIEWLAYOUT_AUTOMATIC
{ {
ImageBitmap = Bitmap ImageBitmap = Bitmap
......
...@@ -139,7 +139,6 @@ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const OUString& rSource ...@@ -139,7 +139,6 @@ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const OUString& rSource
SwDBTreeList::SwDBTreeList(vcl::Window *pParent, WinBits nStyle) SwDBTreeList::SwDBTreeList(vcl::Window *pParent, WinBits nStyle)
: SvTreeListBox(pParent, nStyle) : SvTreeListBox(pParent, nStyle)
, aImageList(SW_RES(ILIST_DB_DLG))
, bInitialized(false) , bInitialized(false)
, bShowColumns(false) , bShowColumns(false)
, pImpl(new SwDBTreeList_Impl) , pImpl(new SwDBTreeList_Impl)
...@@ -175,8 +174,8 @@ void SwDBTreeList::InitTreeList() ...@@ -175,8 +174,8 @@ void SwDBTreeList::InitTreeList()
SetStyle(GetStyle()|WB_HASLINES|WB_CLIPCHILDREN|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL); SetStyle(GetStyle()|WB_HASLINES|WB_CLIPCHILDREN|WB_HASBUTTONS|WB_HASBUTTONSATROOT|WB_HSCROLL);
// don't set font, so that the Control's font is being applied! // don't set font, so that the Control's font is being applied!
SetSpaceBetweenEntries(0); SetSpaceBetweenEntries(0);
SetNodeBitmaps( aImageList.GetImage(IMG_COLLAPSE), SetNodeBitmaps(Image(BitmapEx(SW_RES(RID_BMP_COLLAPSE))),
aImageList.GetImage(IMG_EXPAND ) ); Image(BitmapEx(SW_RES(RID_BMP_EXPAND))));
SetDragDropMode(DragDropMode::APP_COPY); SetDragDropMode(DragDropMode::APP_COPY);
...@@ -186,7 +185,7 @@ void SwDBTreeList::InitTreeList() ...@@ -186,7 +185,7 @@ void SwDBTreeList::InitTreeList()
const OUString* pDBNames = aDBNames.getConstArray(); const OUString* pDBNames = aDBNames.getConstArray();
long nCount = aDBNames.getLength(); long nCount = aDBNames.getLength();
Image aImg = aImageList.GetImage(IMG_DB); Image aImg(BitmapEx(SW_RES(RID_BMP_DB)));
for(long i = 0; i < nCount; i++) for(long i = 0; i < nCount; i++)
{ {
OUString sDBName(pDBNames[i]); OUString sDBName(pDBNames[i]);
...@@ -200,9 +199,9 @@ void SwDBTreeList::InitTreeList() ...@@ -200,9 +199,9 @@ void SwDBTreeList::InitTreeList()
bInitialized = true; bInitialized = true;
} }
void SwDBTreeList::AddDataSource(const OUString& rSource) void SwDBTreeList::AddDataSource(const OUString& rSource)
{ {
Image aImg = aImageList.GetImage(IMG_DB); Image aImg(BitmapEx(SW_RES(RID_BMP_DB)));
SvTreeListEntry* pEntry = InsertEntry(rSource, aImg, aImg, nullptr, true); SvTreeListEntry* pEntry = InsertEntry(rSource, aImg, aImg, nullptr, true);
SvTreeListBox::Select(pEntry); SvTreeListBox::Select(pEntry);
} }
...@@ -331,7 +330,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent) ...@@ -331,7 +330,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent)
OUString sTableName; OUString sTableName;
long nCount = aTableNames.getLength(); long nCount = aTableNames.getLength();
const OUString* pTableNames = aTableNames.getConstArray(); const OUString* pTableNames = aTableNames.getConstArray();
Image aImg = aImageList.GetImage(IMG_DBTABLE); Image aImg(BitmapEx(SW_RES(RID_BMP_DBTABLE)));
for (long i = 0; i < nCount; i++) for (long i = 0; i < nCount; i++)
{ {
sTableName = pTableNames[i]; sTableName = pTableNames[i];
...@@ -349,7 +348,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent) ...@@ -349,7 +348,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent)
OUString sQueryName; OUString sQueryName;
long nCount = aQueryNames.getLength(); long nCount = aQueryNames.getLength();
const OUString* pQueryNames = aQueryNames.getConstArray(); const OUString* pQueryNames = aQueryNames.getConstArray();
Image aImg = aImageList.GetImage(IMG_DBQUERY); Image aImg(BitmapEx(SW_RES(RID_BMP_DBQUERY)));
for (long i = 0; i < nCount; i++) for (long i = 0; i < nCount; i++)
{ {
sQueryName = pQueryNames[i]; sQueryName = pQueryNames[i];
......
...@@ -40,8 +40,6 @@ class SwChangeDBDlg: public SvxStandardDialog ...@@ -40,8 +40,6 @@ class SwChangeDBDlg: public SvxStandardDialog
VclPtr<FixedText> m_pDocDBNameFT; VclPtr<FixedText> m_pDocDBNameFT;
VclPtr<PushButton> m_pDefineBT; VclPtr<PushButton> m_pDefineBT;
ImageList aImageList;
SwWrtShell *pSh; SwWrtShell *pSh;
DECL_LINK(TreeSelectHdl, SvTreeListBox*, void); DECL_LINK(TreeSelectHdl, SvTreeListBox*, void);
......
...@@ -29,8 +29,6 @@ class SwWrtShell; ...@@ -29,8 +29,6 @@ class SwWrtShell;
class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox
{ {
ImageList aImageList;
OUString sDefDBName; OUString sDefDBName;
bool bInitialized; bool bInitialized;
bool bShowColumns; bool bShowColumns;
......
...@@ -145,8 +145,6 @@ ...@@ -145,8 +145,6 @@
#define RES_FRMEX_MENU (STR_AUTH_FIELD_END + 1) #define RES_FRMEX_MENU (STR_AUTH_FIELD_END + 1)
#define ILIST_DB_DLG (RC_UTLUI_BEGIN + 6)
#define IMG_VIEWLAYOUT_AUTOMATIC (RC_UTLUI_BEGIN + 12) #define IMG_VIEWLAYOUT_AUTOMATIC (RC_UTLUI_BEGIN + 12)
#define IMG_VIEWLAYOUT_AUTOMATIC_ACTIVE (RC_UTLUI_BEGIN + 13) #define IMG_VIEWLAYOUT_AUTOMATIC_ACTIVE (RC_UTLUI_BEGIN + 13)
#define IMG_VIEWLAYOUT_BOOKMODE (RC_UTLUI_BEGIN + 14) #define IMG_VIEWLAYOUT_BOOKMODE (RC_UTLUI_BEGIN + 14)
...@@ -169,13 +167,11 @@ ...@@ -169,13 +167,11 @@
#define RID_BMP_DROP_REGION (RC_UTLUI_BEGIN + 31) #define RID_BMP_DROP_REGION (RC_UTLUI_BEGIN + 31)
#define RID_BMP_DROP_LINK (RC_UTLUI_BEGIN + 32) #define RID_BMP_DROP_LINK (RC_UTLUI_BEGIN + 32)
#define RID_BMP_DROP_COPY (RC_UTLUI_BEGIN + 33) #define RID_BMP_DROP_COPY (RC_UTLUI_BEGIN + 33)
#define RID_BMP_COLLAPSE (RC_UTLUI_BEGIN + 34)
//local ids of the Database ImageLists #define RID_BMP_EXPAND (RC_UTLUI_BEGIN + 35)
#define IMG_COLLAPSE 18002 /*RID_SVXIMG_COLLAPSEDNODE*/ #define RID_BMP_DB (RC_UTLUI_BEGIN + 36)
#define IMG_EXPAND 18003 /*RID_SVXIMG_EXPANDEDNODE*/ #define RID_BMP_DBTABLE (RC_UTLUI_BEGIN + 37)
#define IMG_DB 1 #define RID_BMP_DBQUERY (RC_UTLUI_BEGIN + 38)
#define IMG_DBTABLE 2
#define IMG_DBQUERY 3
#define UTLUI_ACT_END RES_FRMEX_MENU #define UTLUI_ACT_END RES_FRMEX_MENU
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment