Kaydet (Commit) cc7ce5a2 authored tarafından Rafael Dominguez's avatar Rafael Dominguez Kaydeden (comit) Markus Mohrhard

Add correct tabpage to chart property dialog.

- Added needed strings resources and ids.
- Added code to handle X and Z errorbars.
üst 3e964eeb
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#define TP_TRENDLINE 918 #define TP_TRENDLINE 918
#define TP_YERRORBAR 919 #define TP_YERRORBAR 919
#define TP_XERRORBAR 923
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
//listbox Ids: //listbox Ids:
......
...@@ -135,11 +135,21 @@ String STR_PAGE_TRENDLINE_TYPE ...@@ -135,11 +135,21 @@ String STR_PAGE_TRENDLINE_TYPE
Text[ en-US ] = "Type"; Text[ en-US ] = "Type";
}; };
String STR_PAGE_XERROR_BARS
{
Text[ en-US ] = "X Error Bars";
};
String STR_PAGE_YERROR_BARS String STR_PAGE_YERROR_BARS
{ {
Text[ en-US ] = "Y Error Bars"; Text[ en-US ] = "Y Error Bars";
}; };
String STR_PAGE_ZERROR_BARS
{
Text[ en-US ] = "Z Error Bars";
};
String STR_PAGE_ALIGNMENT String STR_PAGE_ALIGNMENT
{ {
Text [ en-US ] = "Alignment" ; Text [ en-US ] = "Alignment" ;
......
...@@ -447,14 +447,20 @@ SchAttribTabDlg::SchAttribTabDlg(Window* pParent, ...@@ -447,14 +447,20 @@ SchAttribTabDlg::SchAttribTabDlg(Window* pParent,
break; break;
} }
case OBJECTTYPE_DATA_ERRORS:
case OBJECTTYPE_DATA_ERRORS_X: case OBJECTTYPE_DATA_ERRORS_X:
AddTabPage(TP_XERRORBAR, String(SchResId(STR_PAGE_XERROR_BARS)), ErrorBarsTabPage::Create, NULL);
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
break;
case OBJECTTYPE_DATA_ERRORS:
case OBJECTTYPE_DATA_ERRORS_Y: case OBJECTTYPE_DATA_ERRORS_Y:
case OBJECTTYPE_DATA_ERRORS_Z:
AddTabPage(TP_YERRORBAR, String(SchResId(STR_PAGE_YERROR_BARS)), ErrorBarsTabPage::Create, NULL); AddTabPage(TP_YERRORBAR, String(SchResId(STR_PAGE_YERROR_BARS)), ErrorBarsTabPage::Create, NULL);
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE))); AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
break; break;
case OBJECTTYPE_DATA_ERRORS_Z:
break;
case OBJECTTYPE_GRID: case OBJECTTYPE_GRID:
case OBJECTTYPE_SUBGRID: case OBJECTTYPE_SUBGRID:
case OBJECTTYPE_DATA_AVERAGE_LINE: case OBJECTTYPE_DATA_AVERAGE_LINE:
...@@ -616,7 +622,18 @@ void SchAttribTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage) ...@@ -616,7 +622,18 @@ void SchAttribTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
aSet.Put (SvxNumberInfoItem( m_pNumberFormatter, (const sal_uInt16)SID_ATTR_NUMBERFORMAT_INFO)); aSet.Put (SvxNumberInfoItem( m_pNumberFormatter, (const sal_uInt16)SID_ATTR_NUMBERFORMAT_INFO));
rPage.PageCreated(aSet); rPage.PageCreated(aSet);
break; break;
case TP_XERRORBAR:
{
ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage );
OSL_ASSERT( pTabPage );
if( pTabPage )
{
pTabPage->SetAxisMinorStepWidthForErrorBarDecimals( m_fAxisMinorStepWidthForErrorBarDecimals );
pTabPage->SetErrorBarType( ErrorBarResources::ERROR_BAR_X );
pTabPage->SetChartDocumentForRangeChoosing( m_pParameter->getDocument());
}
break;
}
case TP_YERRORBAR: case TP_YERRORBAR:
{ {
ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage ); ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage );
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
// this includes no link dependency // this includes no link dependency
#include <svl/solar.hrc> #include <svl/solar.hrc>
//next free is 293 //next free is 295
//single free: 139 //single free: 139
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
...@@ -232,7 +232,9 @@ ...@@ -232,7 +232,9 @@
#define STR_PAGE_ILLUMINATION (RID_APP_START + 237) #define STR_PAGE_ILLUMINATION (RID_APP_START + 237)
#define STR_PAGE_TRENDLINE_TYPE (RID_APP_START + 89) #define STR_PAGE_TRENDLINE_TYPE (RID_APP_START + 89)
#define STR_PAGE_XERROR_BARS (RID_APP_START + 293)
#define STR_PAGE_YERROR_BARS (RID_APP_START + 206) #define STR_PAGE_YERROR_BARS (RID_APP_START + 206)
#define STR_PAGE_ZERROR_BARS (RID_APP_START + 294)
#define STR_CONTROLTEXT_ERROR_BARS_FROM_DATA (RID_APP_START + 276) #define STR_CONTROLTEXT_ERROR_BARS_FROM_DATA (RID_APP_START + 276)
#define STR_DLG_CHART_WIZARD (RID_APP_START + 228) #define STR_DLG_CHART_WIZARD (RID_APP_START + 228)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment