| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the LibreOffice project. |
| 4 |
* |
| 5 |
* This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
* License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
*/ |
| 9 |
|
| 10 |
#include "tp_DataTable.hxx" |
| 11 |
|
| 12 |
namespace chart |
| 13 |
{ |
| 14 |
DataTableTabPage::DataTableTabPage(weld::Container* pPage, weld::DialogController* pController, |
| 15 |
const SfxItemSet& rInAttrs) |
| 16 |
: SfxTabPage(pPage, pController, u"modules/schart/ui/tp_DataTable.ui"_ustr, |
| 17 |
u"DataTableTabPage"_ustr, &rInAttrs) |
| 18 |
, m_aDataTablePropertiesResources(*m_xBuilder) |
| 19 |
{ |
| 20 |
} |
| 21 |
|
| 22 |
DataTableTabPage::~DataTableTabPage() = default; |
| 23 |
|
| 24 |
std::unique_ptr<SfxTabPage> DataTableTabPage::Create(weld::Container* pPage, |
| 25 |
weld::DialogController* pController, |
| 26 |
const SfxItemSet* rAttrs) |
| 27 |
{ |
| 28 |
return std::make_unique<DataTableTabPage>(pPage, pController, *rAttrs); |
| 29 |
} |
| 30 |
|
| 31 |
bool DataTableTabPage::FillItemSet(SfxItemSet* pOutAttrs) |
| 32 |
{ |
| 33 |
return m_aDataTablePropertiesResources.writeToItemSet(*pOutAttrs); |
| 34 |
} |
| 35 |
|
| 36 |
void DataTableTabPage::Reset(const SfxItemSet* pInAttrs) |
| 37 |
{ |
| 38 |
m_aDataTablePropertiesResources.initFromItemSet(*pInAttrs); |
| 39 |
} |
| 40 |
|
| 41 |
} //namespace chart |
| 42 |
|
| 43 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |