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.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 28f8d77987be..380f18084913 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -48,7 +48,7 @@
#include "lnktrans.hxx"
#include "formulacell.hxx"
#include "dociter.hxx"
-#include "scres.hrc"
+#include "strings.hrc"
#include "scresid.hxx"
#include "globstr.hrc"
#include "bitmaps.hlst"
@@ -224,6 +224,19 @@ OUString ScContentTree::GetEntryLongDescription( SvTreeListEntry* pEntry ) const
return getAltLongDescText( pEntry, false );
}
+static const char* SCSTR_CONTENT_ARY[] =
+{
+ SCSTR_CONTENT_ROOT,
+ SCSTR_CONTENT_TABLE,
+ SCSTR_CONTENT_RANGENAME,
+ SCSTR_CONTENT_DBAREA,
+ SCSTR_CONTENT_GRAPHIC,
+ SCSTR_CONTENT_OLEOBJECT,
+ SCSTR_CONTENT_NOTE,
+ SCSTR_CONTENT_AREALINK,
+ SCSTR_CONTENT_DRAWING
+};
+
void ScContentTree::InitRoot( ScContentId nType )
{
if ( nType == ScContentId::ROOT )
@@ -237,7 +250,7 @@ void ScContentTree::InitRoot( ScContentId nType )
BitmapEx aBitmap(aContentBmps[(int)nType - 1]);
Image aImage(aBitmap);
- OUString aName(ScResId(SCSTR_CONTENT_ROOT + (int)nType));
+ OUString aName(ScResId(SCSTR_CONTENT_ARY[(int)nType]));
// back to the correct position:
sal_uInt16 nPos = nRootType != ScContentId::ROOT ? 0 : pPosList[nType]-1;
SvTreeListEntry* pNew = InsertEntry( aName, aImage, aImage, nullptr, false, nPos );