summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi/content.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/navipi/content.cxx')
-rw-r--r--sc/source/ui/navipi/content.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 2cf0cec52da3..8fd837c3c5b5 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -51,6 +51,7 @@
#include "scres.hrc"
#include "scresid.hxx"
#include "globstr.hrc"
+#include "bitmaps.hlst"
#include "arealink.hxx"
#include "navicfg.hxx"
#include "navsett.hxx"
@@ -77,6 +78,18 @@ static const ScContentId pTypeList[(int)ScContentId::LAST + 1] =
ScContentId::DRAWING
};
+static const OUStringLiteral aContentBmps[]=
+{
+ RID_BMP_CONTENT_TABLE,
+ RID_BMP_CONTENT_RANGENAME,
+ RID_BMP_CONTENT_DBAREA,
+ RID_BMP_CONTENT_GRAPHIC,
+ RID_BMP_CONTENT_OLEOBJECT,
+ RID_BMP_CONTENT_NOTE,
+ RID_BMP_CONTENT_AREALINK,
+ RID_BMP_CONTENT_DRAWING
+};
+
bool ScContentTree::bIsInDrag = false;
ScDocShell* ScContentTree::GetManualOrCurrent()
@@ -224,7 +237,8 @@ void ScContentTree::InitRoot( ScContentId nType )
return;
}
- Image aImage(BitmapEx(ScResId(RID_BMP_CONTENT_ROOT + (int)nType)));
+ BitmapEx aBitmap(aContentBmps[(int)nType - 1]);
+ Image aImage(aBitmap);
OUString aName(ScResId(SCSTR_CONTENT_ROOT + (int)nType));
// wieder an die richtige Position:
sal_uInt16 nPos = nRootType != ScContentId::ROOT ? 0 : pPosList[nType]-1;