summaryrefslogtreecommitdiff
path: root/cui/source/options/optcolor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optcolor.cxx')
-rw-r--r--cui/source/options/optcolor.cxx96
1 files changed, 93 insertions, 3 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index c3398ed28..3448e5095 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -60,6 +60,94 @@ using namespace ::svtools;
#define GROUP_BASIC 5
#define GROUP_SQL 6
+const char* aColorLBHids[] =
+{
+ HID_COLORPAGE_DOCCOLOR_LB,
+ HID_COLORPAGE_DOCBOUNDARIES_LB,
+ HID_COLORPAGE_APPBACKGROUND_LB,
+ HID_COLORPAGE_OBJECTBOUNDARIES_LB,
+ HID_COLORPAGE_TABLEBOUNDARIES_LB,
+ HID_COLORPAGE_FONTCOLOR_LB,
+ HID_COLORPAGE_LINKS_LB,
+ HID_COLORPAGE_LINKSVISITED_LB,
+ HID_COLORPAGE_ANCHOR_LB,
+ HID_COLORPAGE_SPELL_LB,
+ HID_COLORPAGE_WRITERTEXTGRID_LB,
+ HID_COLORPAGE_WRITERFIELDSHADINGS_LB,
+ HID_COLORPAGE_WRITERIDXSHADINGS_LB,
+ HID_COLORPAGE_WRITERDIRECTCURSOR_LB,
+ HID_COLORPAGE_WRITERNOTESINDICATOR_LB,
+ HID_COLORPAGE_WRITERSCRIPTINDICATOR_LB,
+ HID_COLORPAGE_WRITERSECTIONBOUNDARIES_LB,
+ HID_COLORPAGE_WRITERPAGEBREAKS_LB,
+ HID_COLORPAGE_HTMLSGML_LB,
+ HID_COLORPAGE_HTMLCOMMENT_LB,
+ HID_COLORPAGE_HTMLKEYWORD_LB,
+ HID_COLORPAGE_HTMLUNKNOWN_LB,
+ HID_COLORPAGE_CALCGRID_LB,
+ HID_COLORPAGE_CALCPAGEBREAK_LB,
+ HID_COLORPAGE_CALCPAGEBREAKMANUAL_LB,
+ HID_COLORPAGE_CALCPAGEBREAKAUTOMATIC_LB,
+ HID_COLORPAGE_CALCDETECTIVE_LB,
+ HID_COLORPAGE_CALCDETECTIVEERROR_LB,
+ HID_COLORPAGE_CALCREFERENCE_LB,
+ HID_COLORPAGE_CALCNOTESBACKGROUND_LB,
+ HID_COLORPAGE_DRAWGRID_LB,
+ HID_COLORPAGE_DRAWDRAWING_LB,
+ HID_COLORPAGE_DRAWFILL_LB,
+ HID_COLORPAGE_BASICIDENTIFIER_LB,
+ HID_COLORPAGE_BASICCOMMENT_LB,
+ HID_COLORPAGE_BASICNUMBER_LB,
+ HID_COLORPAGE_BASICSTRING_LB,
+ HID_COLORPAGE_BASICOPERATOR_LB,
+ HID_COLORPAGE_BASICKEYWORD_LB,
+ HID_COLORPAGE_BASICERROR_LB
+};
+
+const char* aColorCBHids[] =
+{
+ HID_COLORPAGE_DOCCOLOR_CB,
+ HID_COLORPAGE_DOCBOUNDARIES_CB,
+ HID_COLORPAGE_APPBACKGROUND_CB,
+ HID_COLORPAGE_OBJECTBOUNDARIES_CB,
+ HID_COLORPAGE_TABLEBOUNDARIES_CB,
+ HID_COLORPAGE_FONTCOLOR_CB,
+ HID_COLORPAGE_LINKS_CB,
+ HID_COLORPAGE_LINKSVISITED_CB,
+ HID_COLORPAGE_ANCHOR_CB,
+ HID_COLORPAGE_SPELL_CB,
+ HID_COLORPAGE_WRITERTEXTGRID_CB,
+ HID_COLORPAGE_WRITERFIELDSHADINGS_CB,
+ HID_COLORPAGE_WRITERIDXSHADINGS_CB,
+ HID_COLORPAGE_WRITERDIRECTCURSOR_CB,
+ HID_COLORPAGE_WRITERNOTESINDICATOR_CB,
+ HID_COLORPAGE_WRITERSCRIPTINDICATOR_CB,
+ HID_COLORPAGE_WRITERSECTIONBOUNDARIES_CB,
+ HID_COLORPAGE_WRITERPAGEBREAKS_CB,
+ HID_COLORPAGE_HTMLSGML_CB,
+ HID_COLORPAGE_HTMLCOMMENT_CB,
+ HID_COLORPAGE_HTMLKEYWORD_CB,
+ HID_COLORPAGE_HTMLUNKNOWN_CB,
+ HID_COLORPAGE_CALCGRID_CB,
+ HID_COLORPAGE_CALCPAGEBREAK_CB,
+ HID_COLORPAGE_CALCPAGEBREAKMANUAL_CB,
+ HID_COLORPAGE_CALCPAGEBREAKAUTOMATIC_CB,
+ HID_COLORPAGE_CALCDETECTIVE_CB,
+ HID_COLORPAGE_CALCDETECTIVEERROR_CB,
+ HID_COLORPAGE_CALCREFERENCE_CB,
+ HID_COLORPAGE_CALCNOTESBACKGROUND_CB,
+ HID_COLORPAGE_DRAWGRID_CB,
+ HID_COLORPAGE_DRAWDRAWING_CB,
+ HID_COLORPAGE_DRAWFILL_CB,
+ HID_COLORPAGE_BASICIDENTIFIER_CB,
+ HID_COLORPAGE_BASICCOMMENT_CB,
+ HID_COLORPAGE_BASICNUMBER_CB,
+ HID_COLORPAGE_BASICSTRING_CB,
+ HID_COLORPAGE_BASICOPERATOR_CB,
+ HID_COLORPAGE_BASICKEYWORD_CB,
+ HID_COLORPAGE_BASICERROR_CB
+};
+
/* -----------------------------2002/06/26 10:48------------------------------
---------------------------------------------------------------------------*/
@@ -815,7 +903,7 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
else
aCheckBoxes[i]->Hide();
aCheckBoxes[i]->SetBackground(aTransparentWall);
- aCheckBoxes[i]->SetHelpId(HID_COLORPAGE_CHECKBOX_START + i);
+ aCheckBoxes[i]->SetHelpId( aColorCBHids[i] );
if(bSetTextColor)
aCheckBoxes[i]->SetTextColor(aRCheckCol);
}
@@ -854,13 +942,15 @@ ColorConfigWindow_Impl::ColorConfigWindow_Impl(Window* pParent, const ResId& rRe
XColorEntry* pEntry = aColorTable.GetColor(i);
aColorBoxes[0]->InsertEntry( pEntry->GetColor(), pEntry->GetName() );
}
- aColorBoxes[0]->SetHelpId(HID_COLORPAGE_LISTBOX_START);
+
+ aColorBoxes[0]->SetHelpId( aColorLBHids[0] );
+
for( sal_Int32 i = 1; i < nCount; i++ )
{
if(aColorBoxes[i])
{
aColorBoxes[i]->CopyEntries( *aColorBoxes[0] );
- aColorBoxes[i]->SetHelpId(HID_COLORPAGE_LISTBOX_START + i);
+ aColorBoxes[i]->SetHelpId( aColorLBHids[i] );
}
}
}