Give each field control a proper description.

Incidentally, the page field was missing a description.  Added one.
This commit is contained in:
Kohei Yoshida 2010-12-15 22:26:33 -05:00
parent 1b444975d9
commit edf1c529b2
4 changed files with 24 additions and 0 deletions

View file

@ -1316,6 +1316,7 @@
#define STR_ACC_DATAPILOT_COL_DESCR (STR_START + 179)
#define STR_ACC_DATAPILOT_DATA_DESCR (STR_START + 180)
#define STR_ACC_DATAPILOT_SEL_DESCR (STR_START + 181)
#define STR_ACC_DATAPILOT_PAGE_DESCR (STR_START + 182)
// --------------------------------------------------

View file

@ -977,6 +977,11 @@ ScDPFieldType ScDPPageFieldControl::GetFieldType() const
return TYPE_PAGE;
}
String ScDPPageFieldControl::GetDescription() const
{
return ScResId(STR_ACC_DATAPILOT_PAGE_DESCR);
}
//=============================================================================
ScDPColFieldControl::ScDPColFieldControl(
@ -994,6 +999,11 @@ ScDPFieldType ScDPColFieldControl::GetFieldType() const
return TYPE_COL;
}
String ScDPColFieldControl::GetDescription() const
{
return ScResId(STR_ACC_DATAPILOT_COL_DESCR);
}
//=============================================================================
ScDPRowFieldControl::ScDPRowFieldControl(
@ -1244,6 +1254,11 @@ ScDPFieldType ScDPSelectFieldControl::GetFieldType() const
return TYPE_SELECT;
}
String ScDPSelectFieldControl::GetDescription() const
{
return ScResId(STR_ACC_DATAPILOT_SEL_DESCR);
}
//=============================================================================
ScDPDataFieldControl::ScDPDataFieldControl(

View file

@ -302,6 +302,7 @@ public:
virtual ~ScDPPageFieldControl();
virtual ScDPFieldType GetFieldType() const;
virtual String GetDescription() const;
};
// ============================================================================
@ -314,6 +315,7 @@ public:
virtual ~ScDPColFieldControl();
virtual ScDPFieldType GetFieldType() const;
virtual String GetDescription() const;
};
// ============================================================================
@ -370,6 +372,7 @@ public:
virtual ~ScDPSelectFieldControl();
virtual ScDPFieldType GetFieldType() const;
virtual String GetDescription() const;
};
// ============================================================================

View file

@ -796,6 +796,11 @@ String STR_ACC_DATAPILOT_SEL_DESCR
Text [ en-US ] = "Lists the fields that you can drag to one of the other three areas.";
};
String STR_ACC_DATAPILOT_PAGE_DESCR
{
Text [ en-US ] = "Fields that you drop here will be available as filter lists at the top of the final DataPilot table.";
};
String SCSTR_MEDIASHELL
{
Text [ en-US ] = "Media Playback";