summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbtree.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-12 10:22:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-12 10:29:21 +0000
commitb61565ebb088add81fd582a0a6aaff67c4b40a14 (patch)
tree8334e5f894bf3c8c05b335e274221e96dae4b236 /sw/source/uibase/dbui/dbtree.cxx
parent554ff8ef0f734cbc33644a075c83cc840fb770ab (diff)
remove another imagelist
Change-Id: Ica62a13b19134030c6f0e2eeaf41df3c0f1294a4
Diffstat (limited to 'sw/source/uibase/dbui/dbtree.cxx')
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx
index 0b2712510793..d4d786a74316 100644
--- a/sw/source/uibase/dbui/dbtree.cxx
+++ b/sw/source/uibase/dbui/dbtree.cxx
@@ -139,7 +139,6 @@ Reference<XConnection> SwDBTreeList_Impl::GetConnection(const OUString& rSource
SwDBTreeList::SwDBTreeList(vcl::Window *pParent, WinBits nStyle)
: SvTreeListBox(pParent, nStyle)
- , aImageList(SW_RES(ILIST_DB_DLG))
, bInitialized(false)
, bShowColumns(false)
, pImpl(new SwDBTreeList_Impl)
@@ -175,8 +174,8 @@ void SwDBTreeList::InitTreeList()
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!
SetSpaceBetweenEntries(0);
- SetNodeBitmaps( aImageList.GetImage(IMG_COLLAPSE),
- aImageList.GetImage(IMG_EXPAND ) );
+ SetNodeBitmaps(Image(BitmapEx(SW_RES(RID_BMP_COLLAPSE))),
+ Image(BitmapEx(SW_RES(RID_BMP_EXPAND))));
SetDragDropMode(DragDropMode::APP_COPY);
@@ -186,7 +185,7 @@ void SwDBTreeList::InitTreeList()
const OUString* pDBNames = aDBNames.getConstArray();
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++)
{
OUString sDBName(pDBNames[i]);
@@ -200,9 +199,9 @@ void SwDBTreeList::InitTreeList()
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);
SvTreeListBox::Select(pEntry);
}
@@ -331,7 +330,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent)
OUString sTableName;
long nCount = aTableNames.getLength();
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++)
{
sTableName = pTableNames[i];
@@ -349,7 +348,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent)
OUString sQueryName;
long nCount = aQueryNames.getLength();
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++)
{
sQueryName = pQueryNames[i];