diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-01-31 02:23:56 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-09 14:16:42 +0100 |
commit | ec4b0ed8e070f2c0955c0a60194328d84490d1bb (patch) | |
tree | 9d81f49ce08485877b4b9ed2b220d95552d220cd /chart2/source | |
parent | 8cb2877b2d58d889a314defc5c2fa51d1cf2bde2 (diff) |
improve dialogs for mapped properties
Change-Id: I87e07a30743de0fc30d0caafd35192b18caf3dae
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/dialogs/tp_DataSource.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx index de931a5200c6..2f1844963036 100644 --- a/chart2/source/controller/dialogs/tp_DataSource.cxx +++ b/chart2/source/controller/dialogs/tp_DataSource.cxx @@ -28,6 +28,7 @@ #include "tp_DataSourceControls.hxx" #include "ControllerLockGuard.hxx" #include "DataSourceHelper.hxx" +#include "dlg_PropertyMapping.hxx" #include <com/sun/star/sheet/XRangeSelection.hpp> #include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/chart2/XChartType.hpp> @@ -217,8 +218,7 @@ DataSourceTabPage::DataSourceTabPage( get(m_pFT_DATALABELS ,"FT_DATALABELS"); get(m_pEDT_CATEGORIES ,"EDT_CATEGORIES"); get(m_pIMB_RANGE_CAT ,"IMB_RANGE_CAT"); - - m_pBtn_AddMapping = NULL; + get(m_pBtn_AddMapping ,"BTN_ADD_MAPPING"); m_pFT_CAPTION->Show(!bHideDescription); @@ -249,9 +249,7 @@ DataSourceTabPage::DataSourceTabPage( m_pEDT_CATEGORIES->SetStyle( m_pEDT_CATEGORIES->GetStyle() | WB_FORCECTRLBACKGROUND ); // mapped properties -#if 0 m_pBtn_AddMapping->SetClickHdl( LINK( this, DataSourceTabPage, AddMappingHdl )); -#endif // set symbol font for arrows // note: StarSymbol is substituted to OpenSymbol for OOo @@ -763,6 +761,8 @@ IMPL_LINK( DataSourceTabPage, RangeUpdateDataHdl, Edit*, pEdit ) IMPL_LINK_NOARG( DataSourceTabPage, AddMappingHdl ) { + PropertyMappingDlg aDlg(this); + aDlg.Execute(); OUString aNewMappingName = "FillColor"; m_pLB_ROLE->InsertEntry( lcl_GetRoleLBEntry( aNewMappingName, OUString())); |