diff --git a/chart2/Library_chartcontroller.mk b/chart2/Library_chartcontroller.mk index abc9e5803693..b7e86bfc353e 100644 --- a/chart2/Library_chartcontroller.mk +++ b/chart2/Library_chartcontroller.mk @@ -105,7 +105,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcontroller,\ chart2/source/controller/dialogs/dlg_InsertTitle \ chart2/source/controller/dialogs/dlg_NumberFormat \ chart2/source/controller/dialogs/dlg_ObjectProperties \ - chart2/source/controller/dialogs/dlg_PropertyMapping \ chart2/source/controller/dialogs/dlg_ShapeFont \ chart2/source/controller/dialogs/dlg_ShapeParagraph \ chart2/source/controller/dialogs/dlg_View3D \ diff --git a/chart2/UIConfig_chart2.mk b/chart2/UIConfig_chart2.mk index 44f86746cacf..d59c29e79f83 100644 --- a/chart2/UIConfig_chart2.mk +++ b/chart2/UIConfig_chart2.mk @@ -38,7 +38,6 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/schart,\ chart2/uiconfig/ui/datarangedialog \ chart2/uiconfig/ui/dlg_DataLabel \ chart2/uiconfig/ui/dlg_InsertErrorBars \ - chart2/uiconfig/ui/dlg_PropertyMapping \ chart2/uiconfig/ui/insertaxisdlg \ chart2/uiconfig/ui/insertgriddlg \ chart2/uiconfig/ui/inserttitledlg \ diff --git a/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx b/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx deleted file mode 100644 index e9a933c32c69..000000000000 --- a/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx +++ /dev/null @@ -1,73 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#include "dlg_PropertyMapping.hxx" - -#include "DialogModel.hxx" - -using namespace com::sun::star; - -namespace chart { - -namespace { - -long pListBoxTabs[] = -{ - 3, - 0, 75, 150 -}; - -} - -PropertyMappingDlg::PropertyMappingDlg(Window* pParent, uno::Reference< chart2::XChartType > xChartType ) - : ModalDialog(pParent, "PropertyMappingDialog", - "modules/schart/ui/dlg_PropertyMapping.ui") -{ - get(mpMappingTable, "LST_PROPERTY_MAPPING"); - get(mpBtnOk, "ok"); - get(mpBtnCancel, "cancel"); - - mpMappingTable->SetTabs( pListBoxTabs, MAP_APPFONT ); - uno::Sequence< OUString > aPropRoles = xChartType->getSupportedPropertyRoles(); - for(sal_Int32 i = 0, n = aPropRoles.getLength(); i < n; ++i) - { - OUString aUIString = DialogModel::ConvertRoleFromInternalToUI(aPropRoles[i]); - mpMappingTable->InsertEntry(aUIString); - } - mpBtnOk->SetClickHdl( LINK( this, PropertyMappingDlg, OkBtnHdl ) ); - mpBtnCancel->SetClickHdl( LINK( this, PropertyMappingDlg, CancelBtnHdl ) ); -} - -OUString PropertyMappingDlg::getSelectedEntry() -{ - if(mpMappingTable->GetSelectionCount()) - { - SvTreeListEntry* pEntry = mpMappingTable->FirstSelected(); - OUString aText = mpMappingTable->GetEntryText(pEntry, 0); - return aText; - } - - return OUString(); -} - -IMPL_LINK_NOARG(PropertyMappingDlg, OkBtnHdl) -{ - EndDialog(RET_OK); - return 0; -} - -IMPL_LINK_NOARG(PropertyMappingDlg, CancelBtnHdl) -{ - EndDialog(RET_CANCEL); - return 0; -} - -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx b/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx deleted file mode 100644 index 0358a84dbfe2..000000000000 --- a/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_DLG_PROPERTYMAPPING_HXX -#define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_DLG_PROPERTYMAPPING_HXX - -#include -#include -#include - -#include - -namespace chart { - -class DialogModel; - -class PropertyMappingDlg : public ModalDialog -{ -public: - - PropertyMappingDlg(Window* pParent, com::sun::star::uno::Reference< - com::sun::star::chart2::XChartType > xChartType); - - OUString getSelectedEntry(); - -private: - - DECL_LINK( OkBtnHdl, void* ); - DECL_LINK( CancelBtnHdl, void* ); - - SvTabListBox* mpMappingTable; - Button* mpBtnOk; - Button* mpBtnCancel; -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/uiconfig/ui/dlg_PropertyMapping.ui b/chart2/uiconfig/ui/dlg_PropertyMapping.ui deleted file mode 100644 index cbdd35b57951..000000000000 --- a/chart2/uiconfig/ui/dlg_PropertyMapping.ui +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - False - 6 - Add Property Mapping - dialog - - - False - vertical - 2 - - - False - end - - - Ok - True - True - True - - - False - True - 0 - - - - - Cancel - True - True - True - - - False - True - 1 - - - - - False - True - end - 0 - - - - - True - False - vertical - 6 - - - True - False - 0 - Select property mapping: - True - LST_PROPERTY_MAPPING:border - - - False - True - 0 - - - - - 110 - 110 - True - True - True - True - - - - - - False - True - 1 - - - - - False - Color - - - False - True - 2 - - - - - False - FillColor - - - False - True - 3 - - - - - False - BorderColor - - - False - True - 4 - - - - - False - True - 1 - - - - - -