summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-22 22:25:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-25 06:11:10 +0000
commit2b68383e44338ffc3d5fb519fd91ff31f0a2b35a (patch)
tree003fc7072b94cf00a84dac9fd48b68bc1e91f5dc /chart2
parentd848960a3e77a8608a48f3ba394928c955f1e2d9 (diff)
Kill comphelper::MakeSet
Change-Id: I2e5f8c2cd67406d9d275960a37c4aa45e283eec3 Reviewed-on: https://gerrit.libreoffice.org/24343 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController.cxx110
-rw-r--r--chart2/source/controller/main/CommandDispatchContainer.cxx12
2 files changed, 60 insertions, 62 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 51ce1119f569..609c3973f0af 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <set>
+
#include "ChartController.hxx"
#include "servicenames.hxx"
#include "ResId.hxx"
@@ -45,7 +49,6 @@
#include "UndoActions.hxx"
#include "ViewElementListProvider.hxx"
-#include <comphelper/InlineContainer.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/awt/PosSize.hpp>
@@ -1569,70 +1572,69 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn
::std::set< OUString > ChartController::impl_getAvailableCommands()
{
- return ::comphelper::MakeSet< OUString >
+ return {
// commands for container forward
- ( "AddDirect" ) ( "NewDoc" ) ( "Open" )
- ( "Save" ) ( "SaveAs" ) ( "SendMail" )
- ( "EditDoc" ) ( "ExportDirectToPDF" ) ( "PrintDefault" )
+ "AddDirect", "NewDoc", "Open",
+ "Save", "SaveAs", "SendMail",
+ "EditDoc", "ExportDirectToPDF", "PrintDefault",
// own commands
- ( "Cut" ) ( "Copy" ) ( "Paste" )
- ( "DataRanges" ) ( "DiagramData" )
+ "Cut", "Copy", "Paste",
+ "DataRanges", "DiagramData",
// insert objects
- ( "InsertMenuTitles" ) ( "InsertTitles" )
- ( "InsertMenuLegend" ) ( "InsertLegend" ) ( "DeleteLegend" )
- ( "InsertMenuDataLabels" )
- ( "InsertMenuAxes" ) ( "InsertRemoveAxes" ) ( "InsertMenuGrids" )
- ( "InsertSymbol" )
- ( "InsertTrendlineEquation" ) ( "InsertTrendlineEquationAndR2" )
- ( "InsertR2Value" ) ( "DeleteR2Value" )
- ( "InsertMenuTrendlines" ) ( "InsertTrendline" )
- ( "InsertMenuMeanValues" ) ( "InsertMeanValue" )
- ( "InsertMenuXErrorBars" ) ( "InsertXErrorBars" )
- ( "InsertMenuYErrorBars" ) ( "InsertYErrorBars" )
- ( "InsertDataLabels" ) ( "InsertDataLabel" )
- ( "DeleteTrendline" ) ( "DeleteMeanValue" ) ( "DeleteTrendlineEquation" )
- ( "DeleteXErrorBars" ) ( "DeleteYErrorBars" )
- ( "DeleteDataLabels" ) ( "DeleteDataLabel" )
+ "InsertMenuTitles", "InsertTitles",
+ "InsertMenuLegend", "InsertLegend", "DeleteLegend",
+ "InsertMenuDataLabels",
+ "InsertMenuAxes", "InsertRemoveAxes", "InsertMenuGrids",
+ "InsertSymbol",
+ "InsertTrendlineEquation", "InsertTrendlineEquationAndR2",
+ "InsertR2Value", "DeleteR2Value",
+ "InsertMenuTrendlines", "InsertTrendline",
+ "InsertMenuMeanValues", "InsertMeanValue",
+ "InsertMenuXErrorBars", "InsertXErrorBars",
+ "InsertMenuYErrorBars", "InsertYErrorBars",
+ "InsertDataLabels", "InsertDataLabel",
+ "DeleteTrendline", "DeleteMeanValue", "DeleteTrendlineEquation",
+ "DeleteXErrorBars", "DeleteYErrorBars",
+ "DeleteDataLabels", "DeleteDataLabel",
//format objects
- ( "FormatSelection" ) ( "TransformDialog" )
- ( "DiagramType" ) ( "View3D" )
- ( "Forward" ) ( "Backward" )
- ( "MainTitle" ) ( "SubTitle" )
- ( "XTitle" ) ( "YTitle" ) ( "ZTitle" )
- ( "SecondaryXTitle" ) ( "SecondaryYTitle" )
- ( "AllTitles" ) ( "Legend" )
- ( "DiagramAxisX" ) ( "DiagramAxisY" ) ( "DiagramAxisZ" )
- ( "DiagramAxisA" ) ( "DiagramAxisB" ) ( "DiagramAxisAll" )
- ( "DiagramGridXMain" ) ( "DiagramGridYMain" ) ( "DiagramGridZMain" )
- ( "DiagramGridXHelp" ) ( "DiagramGridYHelp" ) ( "DiagramGridZHelp" )
- ( "DiagramGridAll" )
- ( "DiagramWall" ) ( "DiagramFloor" ) ( "DiagramArea" )
+ "FormatSelection", "TransformDialog",
+ "DiagramType", "View3D",
+ "Forward", "Backward",
+ "MainTitle", "SubTitle",
+ "XTitle", "YTitle", "ZTitle",
+ "SecondaryXTitle", "SecondaryYTitle",
+ "AllTitles", "Legend",
+ "DiagramAxisX", "DiagramAxisY", "DiagramAxisZ",
+ "DiagramAxisA", "DiagramAxisB", "DiagramAxisAll",
+ "DiagramGridXMain", "DiagramGridYMain", "DiagramGridZMain",
+ "DiagramGridXHelp", "DiagramGridYHelp", "DiagramGridZHelp",
+ "DiagramGridAll",
+ "DiagramWall", "DiagramFloor", "DiagramArea",
//context menu - format objects entries
- ( "FormatWall" ) ( "FormatFloor" ) ( "FormatChartArea" )
- ( "FormatLegend" )
+ "FormatWall", "FormatFloor", "FormatChartArea",
+ "FormatLegend",
- ( "FormatAxis" ) ( "FormatTitle" )
- ( "FormatDataSeries" ) ( "FormatDataPoint" )
- ( "ResetAllDataPoints" ) ( "ResetDataPoint" )
- ( "FormatDataLabels" ) ( "FormatDataLabel" )
- ( "FormatMeanValue" ) ( "FormatTrendline" ) ( "FormatTrendlineEquation" )
- ( "FormatXErrorBars" ) ( "FormatYErrorBars" )
- ( "FormatStockLoss" ) ( "FormatStockGain" )
+ "FormatAxis", "FormatTitle",
+ "FormatDataSeries", "FormatDataPoint",
+ "ResetAllDataPoints", "ResetDataPoint",
+ "FormatDataLabels", "FormatDataLabel",
+ "FormatMeanValue", "FormatTrendline", "FormatTrendlineEquation",
+ "FormatXErrorBars", "FormatYErrorBars",
+ "FormatStockLoss", "FormatStockGain",
- ( "FormatMajorGrid" ) ( "InsertMajorGrid" ) ( "DeleteMajorGrid" )
- ( "FormatMinorGrid" ) ( "InsertMinorGrid" ) ( "DeleteMinorGrid" )
- ( "InsertAxis" ) ( "DeleteAxis" ) ( "InsertAxisTitle" )
+ "FormatMajorGrid", "InsertMajorGrid", "DeleteMajorGrid",
+ "FormatMinorGrid", "InsertMinorGrid", "DeleteMinorGrid",
+ "InsertAxis", "DeleteAxis", "InsertAxisTitle",
// toolbar commands
- ( "ToggleGridHorizontal" ) ( "ToggleGridVertical" ) ( "ToggleLegend" ) ( "ScaleText" )
- ( "NewArrangement" ) ( "Update" )
- ( "DefaultColors" ) ( "BarWidth" ) ( "NumberOfLines" )
- ( "ArrangeRow" )
- ( "StatusBarVisible" )
- ( "ChartElementSelector" )
- ;
+ "ToggleGridHorizontal", "ToggleGridVertical", "ToggleLegend", "ScaleText",
+ "NewArrangement", "Update",
+ "DefaultColors", "BarWidth", "NumberOfLines",
+ "ArrangeRow",
+ "StatusBarVisible",
+ "ChartElementSelector"};
}
ViewElementListProvider ChartController::getViewElementListProvider()
diff --git a/chart2/source/controller/main/CommandDispatchContainer.cxx b/chart2/source/controller/main/CommandDispatchContainer.cxx
index 6a16ec031d12..1e9c84860b9c 100644
--- a/chart2/source/controller/main/CommandDispatchContainer.cxx
+++ b/chart2/source/controller/main/CommandDispatchContainer.cxx
@@ -26,8 +26,6 @@
#include "DrawCommandDispatch.hxx"
#include "ShapeController.hxx"
-#include <comphelper/InlineContainer.hxx>
-
#include <com/sun/star/frame/XDispatchProvider.hpp>
using namespace ::com::sun::star;
@@ -45,12 +43,10 @@ CommandDispatchContainer::CommandDispatchContainer(
,m_pDrawCommandDispatch( nullptr )
,m_pShapeController( nullptr )
{
- m_aContainerDocumentCommands =
- ::comphelper::MakeSet< OUString >
- ("AddDirect") ("NewDoc") ("Open")
- ("Save") ("SaveAs") ("SendMail")
- ("EditDoc") ("ExportDirectToPDF") ("PrintDefault")
- ;
+ m_aContainerDocumentCommands.insert({
+ "AddDirect", "NewDoc", "Open",
+ "Save", "SaveAs", "SendMail",
+ "EditDoc", "ExportDirectToPDF", "PrintDefault"});
}
void CommandDispatchContainer::setModel(