diff options
Diffstat (limited to 'sw/source/uibase/dbui/dbtree.cxx')
-rw-r--r-- | sw/source/uibase/dbui/dbtree.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx index e0674f90e44b..b4d9d4494ef6 100644 --- a/sw/source/uibase/dbui/dbtree.cxx +++ b/sw/source/uibase/dbui/dbtree.cxx @@ -172,8 +172,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(Image(BitmapEx(RID_BMP_COLLAPSE)), - Image(BitmapEx(RID_BMP_EXPAND))); + SetNodeBitmaps(Image(StockImage::Yes, RID_BMP_COLLAPSE), + Image(StockImage::Yes, RID_BMP_EXPAND)); SetDragDropMode(DragDropMode::APP_COPY); @@ -190,7 +190,7 @@ void SwDBTreeList::InitTreeList() const OUString* pDBNames = aDBNames.getConstArray(); long nCount = aDBNames.getLength(); - Image aImg(BitmapEx(RID_BMP_DB)); + Image aImg(StockImage::Yes, RID_BMP_DB); for(long i = 0; i < nCount; i++) { OUString sDBName(pDBNames[i]); @@ -207,7 +207,7 @@ void SwDBTreeList::InitTreeList() void SwDBTreeList::AddDataSource(const OUString& rSource) { - Image aImg(BitmapEx(RID_BMP_DB)); + Image aImg(StockImage::Yes, RID_BMP_DB); SvTreeListEntry* pEntry = InsertEntry(rSource, aImg, aImg, nullptr, true); SvTreeListBox::Select(pEntry); } @@ -336,7 +336,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent) OUString sTableName; long nCount = aTableNames.getLength(); const OUString* pTableNames = aTableNames.getConstArray(); - Image aImg(BitmapEx(RID_BMP_DBTABLE)); + Image aImg(StockImage::Yes, RID_BMP_DBTABLE); for (long i = 0; i < nCount; i++) { sTableName = pTableNames[i]; @@ -354,7 +354,7 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent) OUString sQueryName; long nCount = aQueryNames.getLength(); const OUString* pQueryNames = aQueryNames.getConstArray(); - Image aImg(BitmapEx(RID_BMP_DBQUERY)); + Image aImg(StockImage::Yes, RID_BMP_DBQUERY); for (long i = 0; i < nCount; i++) { sQueryName = pQueryNames[i]; |