summaryrefslogtreecommitdiff
path: root/chart2/source/controller
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-09-14 23:55:20 +0200
committerTomaž Vajngerl <quikee@gmail.com>2022-09-15 12:38:22 +0200
commit23c01f82682469e25fa2a8407c55100e89ab86de (patch)
tree38d85d60d058d46e8c5876d552fbc45c2c9df5a0 /chart2/source/controller
parentd0760109b7bb965187243cdb1d3a07df83039db1 (diff)
Add documentation for data table added classes and functions
Change-Id: Idc9756bf5b468d8ed0d11e6a75703d96350e1273 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139960 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2/source/controller')
-rw-r--r--chart2/source/controller/dialogs/tp_DataTable.hxx1
-rw-r--r--chart2/source/controller/inc/DataTableItemConverter.hxx1
-rw-r--r--chart2/source/controller/inc/dlg_InsertDataTable.hxx5
-rw-r--r--chart2/source/controller/inc/res_DataTableProperties.hxx1
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx4
5 files changed, 11 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataTable.hxx b/chart2/source/controller/dialogs/tp_DataTable.hxx
index a4ef6d6cf436..00ab64cf89ce 100644
--- a/chart2/source/controller/dialogs/tp_DataTable.hxx
+++ b/chart2/source/controller/dialogs/tp_DataTable.hxx
@@ -14,6 +14,7 @@
namespace chart
{
+/** Tab page for the data table properties */
class DataTableTabPage : public SfxTabPage
{
private:
diff --git a/chart2/source/controller/inc/DataTableItemConverter.hxx b/chart2/source/controller/inc/DataTableItemConverter.hxx
index 5dbfaf60bba9..68c5790ba345 100644
--- a/chart2/source/controller/inc/DataTableItemConverter.hxx
+++ b/chart2/source/controller/inc/DataTableItemConverter.hxx
@@ -30,6 +30,7 @@ class SdrModel;
namespace chart::wrapper
{
+/** Convert data table properties to and from ItemSet and UNO PropertySet */
class DataTableItemConverter final : public ItemConverter
{
public:
diff --git a/chart2/source/controller/inc/dlg_InsertDataTable.hxx b/chart2/source/controller/inc/dlg_InsertDataTable.hxx
index 346f7b651c24..cd77099864c4 100644
--- a/chart2/source/controller/inc/dlg_InsertDataTable.hxx
+++ b/chart2/source/controller/inc/dlg_InsertDataTable.hxx
@@ -14,6 +14,7 @@
namespace chart
{
+/** The data table properties (data) used by the dialog */
struct DataTableDialogData
{
bool mbShow = true;
@@ -23,6 +24,7 @@ struct DataTableDialogData
bool mbKeys = false;
};
+/** The dialog to change the data table specific properties */
class InsertDataTableDialog final : public weld::GenericDialogController
{
private:
@@ -38,7 +40,10 @@ private:
public:
InsertDataTableDialog(weld::Window* pParent);
+ /** Set the initial state of the data table properties */
void init(DataTableDialogData const& rData);
+
+ /** Get the state of the data table properties from the dialog */
DataTableDialogData& getDataTableDialogData();
};
diff --git a/chart2/source/controller/inc/res_DataTableProperties.hxx b/chart2/source/controller/inc/res_DataTableProperties.hxx
index 299934cb0211..4b2aaa4f2ef7 100644
--- a/chart2/source/controller/inc/res_DataTableProperties.hxx
+++ b/chart2/source/controller/inc/res_DataTableProperties.hxx
@@ -14,6 +14,7 @@
namespace chart
{
+/** The shared UI elements for the data table properties */
class DataTablePropertiesResources final
{
private:
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index 78005072a009..c75ac20457e5 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -235,6 +235,7 @@ void ChartController::executeDispatch_OpenInsertDataTableDialog()
}
}
+/** Create and insert a data table to the chart */
void ChartController::executeDispatch_InsertDataTable()
{
auto aUndoDescription = ActionDescriptionProvider::createDescription(ActionDescriptionProvider::ActionType::Insert, SchResId(STR_DATA_TABLE));
@@ -254,16 +255,17 @@ void ChartController::executeDispatch_InsertDataTable()
}
}
+/** Delete a data table from the chart */
void ChartController::executeDispatch_DeleteDataTable()
{
auto aUndoDescription = ActionDescriptionProvider::createDescription(ActionDescriptionProvider::ActionType::Delete, SchResId(STR_DATA_TABLE));
UndoGuard aUndoGuard(aUndoDescription, m_xUndoManager);
-
rtl::Reference<Diagram> xDiagram = getFirstDiagram();
auto xDataTable = xDiagram->getDataTable();
if (xDataTable.is())
{
+ // insert a empty data table reference
xDiagram->setDataTable(uno::Reference<chart2::XDataTable>());
aUndoGuard.commit();
}