summaryrefslogtreecommitdiff
path: root/chart2/source/controller
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller')
-rw-r--r--chart2/source/controller/accessibility/AccessibleChartView.cxx2
-rw-r--r--chart2/source/controller/dialogs/ChartTypeDialogController.cxx4
-rw-r--r--chart2/source/controller/dialogs/DataBrowser.cxx2
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx2
-rw-r--r--chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx3
-rw-r--r--chart2/source/controller/dialogs/ObjectNameProvider.cxx2
-rw-r--r--chart2/source/controller/dialogs/Strings.src586
-rw-r--r--chart2/source/controller/dialogs/Strings_ChartTypes.src155
-rw-r--r--chart2/source/controller/dialogs/Strings_Scale.src46
-rw-r--r--chart2/source/controller/dialogs/Strings_Statistic.src58
-rw-r--r--chart2/source/controller/dialogs/TextDirectionListBox.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_ChartType.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard.cxx16
-rw-r--r--chart2/source/controller/dialogs/dlg_DataEditor.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_DataSource.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_ObjectProperties.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_View3D.cxx2
-rw-r--r--chart2/source/controller/dialogs/res_DataLabel.cxx2
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx2
-rw-r--r--chart2/source/controller/dialogs/res_Titles.cxx2
-rw-r--r--chart2/source/controller/dialogs/res_Trendline.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx1
-rw-r--r--chart2/source/controller/dialogs/tp_AxisPositions.cxx4
-rw-r--r--chart2/source/controller/dialogs/tp_ChartType.cxx4
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_PolarOptions.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_RangeChooser.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_Scale.cxx36
-rw-r--r--chart2/source/controller/dialogs/tp_Scale.hxx6
-rw-r--r--chart2/source/controller/dialogs/tp_SeriesToAxis.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx2
-rw-r--r--chart2/source/controller/main/ChartController.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_EditData.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Position.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Properties.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Tools.cxx15
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx2
-rw-r--r--chart2/source/controller/main/DragMethod_Base.cxx2
-rw-r--r--chart2/source/controller/main/DragMethod_PieSegment.cxx2
-rw-r--r--chart2/source/controller/main/DrawCommandDispatch.cxx5
-rw-r--r--chart2/source/controller/main/ElementSelector.cxx2
-rw-r--r--chart2/source/controller/main/UndoCommandDispatch.cxx2
44 files changed, 79 insertions, 920 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleChartView.cxx b/chart2/source/controller/accessibility/AccessibleChartView.cxx
index 064384a87fe3..7e5657799227 100644
--- a/chart2/source/controller/accessibility/AccessibleChartView.cxx
+++ b/chart2/source/controller/accessibility/AccessibleChartView.cxx
@@ -24,7 +24,7 @@
#include "ObjectHierarchy.hxx"
#include "ObjectIdentifier.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "AccessibleViewForwarder.hxx"
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
index 6bf6c25ef928..9fa2399a1695 100644
--- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
+++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
@@ -20,7 +20,7 @@
#include "ChartTypeDialogController.hxx"
#include "ResId.hxx"
#include "HelpIds.hrc"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "bitmaps.hlst"
#include "macros.hxx"
#include "ChartModelHelper.hxx"
@@ -33,7 +33,7 @@
#include <com/sun/star/chart2/PieChartOffsetMode.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <svtools/valueset.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/builder.hxx>
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx
index 3c659927f8e0..c371944f2a3f 100644
--- a/chart2/source/controller/dialogs/DataBrowser.cxx
+++ b/chart2/source/controller/dialogs/DataBrowser.cxx
@@ -22,7 +22,7 @@
#include "DataBrowser.hxx"
#include "DataBrowserModel.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "DataSeriesHelper.hxx"
#include "DiagramHelper.hxx"
#include "ChartModelHelper.hxx"
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index ffceca3ccc00..f361a432ee64 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -24,7 +24,7 @@
#include "DataSourceHelper.hxx"
#include "DiagramHelper.hxx"
#include "macros.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "ContainerHelper.hxx"
#include "CommonFunctors.hxx"
diff --git a/chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx b/chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx
index db613c24105f..a1f568ae083d 100644
--- a/chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx
+++ b/chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx
@@ -8,10 +8,9 @@
*/
#include "GL3DBarChartDialogController.hxx"
-#include <Strings.hrc>
+#include <strings.hrc>
#include <bitmaps.hlst>
#include <ResId.hxx>
-
#include <svtools/valueset.hxx>
namespace chart {
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
index 6ea99ad1f155..d61da98eab4b 100644
--- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx
+++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
@@ -19,7 +19,7 @@
#include "ObjectNameProvider.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "macros.hxx"
#include "AxisHelper.hxx"
#include "ChartModelHelper.hxx"
diff --git a/chart2/source/controller/dialogs/Strings.src b/chart2/source/controller/dialogs/Strings.src
deleted file mode 100644
index 4c9b40da141f..000000000000
--- a/chart2/source/controller/dialogs/Strings.src
+++ /dev/null
@@ -1,586 +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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "Strings.hrc"
-
-String STR_DLG_CHART_WIZARD
-{
- Text [ en-US ] = "Chart Wizard" ;
-};
-
-String STR_DLG_SMOOTH_LINE_PROPERTIES
-{
- Text [ en-US ] = "Smooth Lines" ;
-};
-
-String STR_DLG_STEPPED_LINE_PROPERTIES
-{
- Text [ en-US ] = "Stepped Lines" ;
-};
-
-String STR_PAGE_CHARTTYPE
-{
- Text [ en-US ] = "Chart Type" ;
-};
-
-String STR_PAGE_DATA_RANGE
-{
- Text [ en-US ] = "Data Range";
-};
-
-String STR_PAGE_CHART_ELEMENTS
-{
- Text [ en-US ] = "Chart Elements";
-};
-
-String STR_PAGE_LINE
-{
- Text [ en-US ] = "Line" ;
-};
-
-String STR_PAGE_BORDER
-{
- Text [ en-US ] = "Borders" ;
-};
-
-String STR_PAGE_AREA
-{
- Text [ en-US ] = "Area" ;
-};
-
-String STR_PAGE_TRANSPARENCY
-{
- Text [ en-US ] = "Transparency";
-};
-
-String STR_PAGE_FONT
-{
- Text [ en-US ] = "Font" ;
-};
-
-String STR_PAGE_FONT_EFFECTS
-{
- Text [ en-US ] = "Font Effects" ;
-};
-
-String STR_PAGE_NUMBERS
-{
- Text [ en-US ] = "Numbers" ;
-};
-
-String STR_PAGE_POSITION
-{
- Text [ en-US ] = "Position" ;
-};
-
-String STR_PAGE_LAYOUT
-{
- Text [ en-US ] = "Layout";
-};
-
-String STR_PAGE_OPTIONS
-{
- Text [ en-US ] = "Options";
-};
-
-String STR_PAGE_SCALE
-{
- Text [ en-US ] = "Scale" ;
-};
-
-String STR_PAGE_POSITIONING
-{
- Text [ en-US ] = "Positioning" ;
-};
-
-String STR_PAGE_TRENDLINE_TYPE
-{
- Text[ en-US ] = "Type";
-};
-
-String STR_PAGE_XERROR_BARS
-{
- Text[ en-US ] = "X Error Bars";
-};
-
-String STR_PAGE_YERROR_BARS
-{
- Text[ en-US ] = "Y Error Bars";
-};
-
-String STR_PAGE_ALIGNMENT
-{
- Text [ en-US ] = "Alignment" ;
-};
-
-String STR_PAGE_PERSPECTIVE
-{
- Text [ en-US ] = "Perspective" ;
-};
-String STR_PAGE_APPEARANCE
-{
- Text [ en-US ] = "Appearance" ;
-};
-String STR_PAGE_ILLUMINATION
-{
- Text [ en-US ] = "Illumination" ;
-};
-
-String STR_PAGE_ASIAN
-{
- Text [ en-US ] = "Asian Typography" ;
-};
-
-String STR_OBJECT_AVERAGE_LINE_WITH_PARAMETERS
-{
- Text [ en-US ] = "Mean value line with value %AVERAGE_VALUE and standard deviation %STD_DEVIATION";
-};
-
-String STR_OBJECT_AXIS
-{
- Text [ en-US ] = "Axis" ;
-};
-String STR_OBJECT_AXIS_X
-{
- Text [ en-US ] = "X Axis" ;
-};
-String STR_OBJECT_AXIS_Y
-{
- Text [ en-US ] = "Y Axis" ;
-};
-String STR_OBJECT_AXIS_Z
-{
- Text [ en-US ] = "Z Axis" ;
-};
-String STR_OBJECT_SECONDARY_X_AXIS
-{
- Text [ en-US ] = "Secondary X Axis" ;
-};
-String STR_OBJECT_SECONDARY_Y_AXIS
-{
- Text [ en-US ] = "Secondary Y Axis" ;
-};
-
-String STR_OBJECT_AXES
-{
- Text [ en-US ] = "Axes" ;
-};
-String STR_OBJECT_GRIDS
-{
- Text [ en-US ] = "Grids" ;
-};
-String STR_OBJECT_GRID
-{
- Text [ en-US ] = "Grid" ;
-};
-String STR_OBJECT_GRID_MAJOR_X
-{
- Text [ en-US ] = "X Axis Major Grid" ;
-};
-String STR_OBJECT_GRID_MAJOR_Y
-{
- Text [ en-US ] = "Y Axis Major Grid" ;
-};
-String STR_OBJECT_GRID_MAJOR_Z
-{
- Text [ en-US ] = "Z Axis Major Grid" ;
-};
-String STR_OBJECT_GRID_MINOR_X
-{
- Text [ en-US ] = "X Axis Minor Grid" ;
-};
-String STR_OBJECT_GRID_MINOR_Y
-{
- Text [ en-US ] = "Y Axis Minor Grid" ;
-};
-String STR_OBJECT_GRID_MINOR_Z
-{
- Text [ en-US ] = "Z Axis Minor Grid" ;
-};
-
-String STR_OBJECT_LEGEND
-{
- Text [ en-US ] = "Legend" ;
-};
-
-String STR_OBJECT_TITLE
-{
- Text [ en-US ] = "Title" ;
-};
-String STR_OBJECT_TITLES
-{
- Text [ en-US ] = "Titles" ;
-};
-String STR_OBJECT_TITLE_MAIN
-{
- Text [ en-US ] = "Main Title" ;
-};
-String STR_OBJECT_TITLE_SUB
-{
- Text [ en-US ] = "Subtitle" ;
-};
-String STR_OBJECT_TITLE_X_AXIS
-{
- Text [ en-US ] = "X Axis Title" ;
-};
-String STR_OBJECT_TITLE_Y_AXIS
-{
- Text [ en-US ] = "Y Axis Title" ;
-};
-String STR_OBJECT_TITLE_Z_AXIS
-{
- Text [ en-US ] = "Z Axis Title" ;
-};
-String STR_OBJECT_TITLE_SECONDARY_X_AXIS
-{
- Text [ en-US ] = "Secondary X Axis Title" ;
-};
-String STR_OBJECT_TITLE_SECONDARY_Y_AXIS
-{
- Text [ en-US ] = "Secondary Y Axis Title" ;
-};
-String STR_OBJECT_LABEL
-{
- Text [ en-US ] = "Label" ;
-};
-
-String STR_OBJECT_DATALABELS
-{
- Text [ en-US ] = "Data Labels" ;
-};
-String STR_OBJECT_DATAPOINT
-{
- Text [ en-US ] = "Data Point" ;
-};
-String STR_OBJECT_DATAPOINTS
-{
- Text [ en-US ] = "Data Points" ;
-};
-String STR_OBJECT_LEGEND_SYMBOL
-{
- Text [ en-US ] = "Legend Key" ;
-};
-String STR_OBJECT_DATASERIES
-{
- Text [ en-US ] = "Data Series" ;
-};
-String STR_OBJECT_DATASERIES_PLURAL
-{
- Text [ en-US ] = "Data Series" ;
-};
-String STR_OBJECT_CURVE
-{
- Text [ en-US ] = "Trend Line";
-};
-String STR_OBJECT_CURVES
-{
- Text [ en-US ] = "Trend Lines";
-};
-String STR_OBJECT_CURVE_WITH_PARAMETERS
-{
- Text [ en-US ] = "Trend line %FORMULA with accuracy R² = %RSQUARED";
-};
-String STR_OBJECT_MOVING_AVERAGE_WITH_PARAMETERS
-{
- Text [ en-US ] = "Moving average trend line with period = %PERIOD";
-};
-String STR_OBJECT_AVERAGE_LINE
-{
- Text [ en-US ] = "Mean Value Line";
-};
-String STR_OBJECT_CURVE_EQUATION
-{
- Text[ en-US ] = "Equation";
-};
-
-String STR_OBJECT_ERROR_BARS_X
-{
- Text [ en-US ] = "X Error Bars";
-};
-
-String STR_OBJECT_ERROR_BARS_Y
-{
- Text [ en-US ] = "Y Error Bars";
-};
-
-String STR_OBJECT_ERROR_BARS_Z
-{
- Text [ en-US ] = "Z Error Bars";
-};
-String STR_OBJECT_STOCK_LOSS
-{
- Text [ en-US ] = "Stock Loss";
-};
-
-String STR_OBJECT_STOCK_GAIN
-{
- Text [ en-US ] = "Stock Gain";
-};
-
-String STR_OBJECT_PAGE
-{
- Text [ en-US ] = "Chart Area" ;
-};
-String STR_OBJECT_DIAGRAM
-{
- Text [ en-US ] = "Chart" ;
-};
-String STR_OBJECT_DIAGRAM_WALL
-{
- Text [ en-US ] = "Chart Wall" ;
-};
-String STR_OBJECT_DIAGRAM_FLOOR
-{
- Text [ en-US ] = "Chart Floor" ;
-};
-
-String STR_OBJECT_SHAPE
-{
- Text [ en-US ] = "Drawing Object" ;
-};
-
-String STR_TIP_DATASERIES
-{
- Text [ en-US ] = "Data Series '%SERIESNAME'" ;
-};
-
-String STR_TIP_DATAPOINT_INDEX
-{
- Text [ en-US ] = "Data Point %POINTNUMBER";
-};
-
-String STR_TIP_DATAPOINT_VALUES
-{
- Text [ en-US ] = "Values: %POINTVALUES";
-};
-
-String STR_TIP_DATAPOINT
-{
- Text [ en-US ] = "Data Point %POINTNUMBER, data series %SERIESNUMBER, values: %POINTVALUES";
-};
-
-String STR_STATUS_DATAPOINT_MARKED
-{
- Text [ en-US ] = "Data point %POINTNUMBER in data series %SERIESNUMBER selected, values: %POINTVALUES";
-};
-
-String STR_STATUS_OBJECT_MARKED
-{
- Text [ en-US ] = "%OBJECTNAME selected" ;
-};
-
-String STR_STATUS_PIE_SEGMENT_EXPLODED
-{
- Text [ en-US ] = "Pie exploded by %PERCENTVALUE percent";
-};
-
-String STR_OBJECT_FOR_SERIES
-{
- Text [ en-US ] = "%OBJECTNAME for Data Series '%SERIESNAME'" ;
-};
-
-String STR_OBJECT_FOR_ALL_SERIES
-{
- Text [ en-US ] = "%OBJECTNAME for all Data Series" ;
-};
-
-String STR_ACTION_EDIT_CHARTTYPE
-{
- Text [ en-US ] = "Edit chart type" ;
-};
-String STR_ACTION_EDIT_DATA_RANGES
-{
- Text [ en-US ] = "Edit data ranges" ;
-};
-String STR_ACTION_EDIT_3D_VIEW
-{
- Text [ en-US ] = "Edit 3D view" ;
-};
-String STR_ACTION_EDIT_CHART_DATA
-{
- Text [ en-US ] = "Edit chart data";
-};
-String STR_ACTION_TOGGLE_LEGEND
-{
- Text [ en-US ] = "Legend on/off" ;
-};
-String STR_ACTION_TOGGLE_GRID_HORZ
-{
- Text [ en-US ] = "Horizontal grid major/major&minor/off" ;
-};
-String STR_ACTION_TOGGLE_GRID_VERTICAL
-{
- Text [ en-US ] = "Vertical grid major/major&minor/off" ;
-};
-String STR_ACTION_SCALE_TEXT
-{
- Text [ en-US ] = "Scale Text" ;
-};
-String STR_ACTION_REARRANGE_CHART
-{
- Text [ en-US ] = "Automatic Layout" ;
-};
-String STR_ACTION_NOTPOSSIBLE
-{
- Text [ en-US ] = "This function cannot be completed with the selected objects." ;
-};
-String STR_ACTION_EDIT_TEXT
-{
- Text [ en-US ] = "Edit text";
-};
-
-String STR_COLUMN_LABEL
-{
- Text [ en-US ] = "Column %COLUMNNUMBER" ;
-};
-String STR_ROW_LABEL
-{
- Text [ en-US ] = "Row %ROWNUMBER" ;
-};
-
-//for range dialog
-String STR_DATA_ROLE_LABEL
-{
- Text [ en-US ] = "Name" ;
-};
-
-String STR_DATA_ROLE_X
-{
- Text [ en-US ] = "X-Values" ;
-};
-
-String STR_DATA_ROLE_Y
-{
- Text [ en-US ] = "Y-Values" ;
-};
-
-String STR_DATA_ROLE_SIZE
-{
- Text [ en-US ] = "Bubble Sizes" ;
-};
-
-String STR_DATA_ROLE_X_ERROR
-{
- Text [ en-US ] = "X-Error-Bars" ;
-};
-String STR_DATA_ROLE_X_ERROR_POSITIVE
-{
- Text [ en-US ] = "Positive X-Error-Bars" ;
-};
-String STR_DATA_ROLE_X_ERROR_NEGATIVE
-{
- Text [ en-US ] = "Negative X-Error-Bars" ;
-};
-
-String STR_DATA_ROLE_Y_ERROR
-{
- Text [ en-US ] = "Y-Error-Bars" ;
-};
-String STR_DATA_ROLE_Y_ERROR_POSITIVE
-{
- Text [ en-US ] = "Positive Y-Error-Bars" ;
-};
-String STR_DATA_ROLE_Y_ERROR_NEGATIVE
-{
- Text [ en-US ] = "Negative Y-Error-Bars" ;
-};
-
-String STR_DATA_ROLE_FIRST
-{
- Text [ en-US ] = "Open Values" ;
-};
-
-String STR_DATA_ROLE_LAST
-{
- Text [ en-US ] = "Close Values" ;
-};
-
-String STR_DATA_ROLE_MIN
-{
- Text [ en-US ] = "Low Values" ;
-};
-
-String STR_DATA_ROLE_MAX
-{
- Text [ en-US ] = "High Values" ;
-};
-
-String STR_DATA_ROLE_CATEGORIES
-{
- Text [ en-US ] = "Categories";
-};
-
-String STR_DATA_UNNAMED_SERIES
-{
- Text [ en-US ] = "Unnamed Series";
-};
-
-String STR_DATA_UNNAMED_SERIES_WITH_INDEX
-{
- Text [ en-US ] = "Unnamed Series %NUMBER" ;
-};
-
-String STR_DATA_SELECT_RANGE_FOR_SERIES
-{
- Text [ en-US ] = "Select Range for %VALUETYPE of %SERIESNAME" ;
-};
-
-String STR_DATA_SELECT_RANGE_FOR_CATEGORIES
-{
- Text [ en-US ] = "Select Range for Categories" ;
-};
-
-String STR_DATA_SELECT_RANGE_FOR_DATALABELS
-{
- Text [ en-US ] = "Select Range for data labels" ;
-};
-
-String STR_DATA_EDITOR_INCORRECT_INPUT
-{
- Text [ en-US ] = "Your last input is incorrect.\nIgnore this change and close the dialog?" ;
-};
-
-// frame direction ------------------------------------------------------------
-
-String STR_TEXT_DIRECTION_LTR
-{
- Text [ en-US ] = "Left-to-right";
-};
-
-String STR_TEXT_DIRECTION_RTL
-{
- Text [ en-US ] = "Right-to-left";
-};
-
-String STR_TEXT_DIRECTION_SUPER
-{
- Text [ en-US ] = "Use superordinate object settings";
-};
-
-String STR_PROPERTY_ROLE_FILLCOLOR
-{
- Text [ en-US ] = "Fill Color";
-};
-
-String STR_PROPERTY_ROLE_BORDERCOLOR
-{
- Text [ en-US ] = "Border Color";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/Strings_ChartTypes.src b/chart2/source/controller/dialogs/Strings_ChartTypes.src
deleted file mode 100644
index 88717805f0d8..000000000000
--- a/chart2/source/controller/dialogs/Strings_ChartTypes.src
+++ /dev/null
@@ -1,155 +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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#include "Strings.hrc"
-
-String STR_TYPE_COLUMN
-{
- Text [ en-US ] = "Column" ;
-};
-String STR_TYPE_BAR
-{
- Text [ en-US ] = "Bar" ;
-};
-String STR_TYPE_AREA
-{
- Text [ en-US ] = "Area" ;
-};
-String STR_TYPE_PIE
-{
- Text [ en-US ] = "Pie" ;
-};
-String STR_PIE_EXPLODED
-{
- Text [ en-US ] = "Exploded Pie Chart" ;
-};
-String STR_DONUT_EXPLODED
-{
- Text [ en-US ] = "Exploded Donut Chart" ;
-};
-String STR_DONUT
-{
- Text [ en-US ] = "Donut" ;
-};
-String STR_TYPE_LINE
-{
- Text [ en-US ] = "Line" ;
-};
-String STR_TYPE_XY
-{
- Text [ en-US ] = "XY (Scatter)" ;
-};
-String STR_POINTS_AND_LINES
-{
- Text [ en-US ] = "Points and Lines" ;
-};
-String STR_POINTS_ONLY
-{
- //@todo or symbols instead of points??
- Text [ en-US ] = "Points Only" ;
-};
-String STR_LINES_ONLY
-{
- Text [ en-US ] = "Lines Only" ;
-};
-String STR_LINES_3D
-{
- Text [ en-US ] = "3D Lines" ;
-};
-
-String STR_TYPE_COMBI_COLUMN_LINE
-{
- Text [ en-US ] = "Column and Line" ;
-};
-String STR_LINE_COLUMN
-{
- Text [ en-US ] = "Columns and Lines" ;
-};
-String STR_LINE_STACKEDCOLUMN
-{
- Text [ en-US ] = "Stacked Columns and Lines" ;
-};
-
-String STR_TYPE_NET
-{
- Text [ en-US ] = "Net" ;
-};
-
-String STR_TYPE_STOCK
-{
- Text [ en-US ] = "Stock";
-};
-String STR_STOCK_1
-{
- Text [ en-US ] = "Stock Chart 1";
-};
-String STR_STOCK_2
-{
- Text [ en-US ] = "Stock Chart 2";
-};
-String STR_STOCK_3
-{
- Text [ en-US ] = "Stock Chart 3";
-};
-String STR_STOCK_4
-{
- Text [ en-US ] = "Stock Chart 4";
-};
-
-String STR_NORMAL
-{
- Text [ en-US ] = "Normal" ;
-};
-String STR_STACKED
-{
- Text [ en-US ] = "Stacked" ;
-};
-String STR_PERCENT
-{
- Text [ en-US ] = "Percent Stacked" ;
-};
-
-String STR_DEEP
-{
- Text [ en-US ] = "Deep" ;
-};
-String STR_FILLED
-{
- Text [ en-US ] = "Filled" ;
-};
-
-String STR_TYPE_BUBBLE
-{
- Text [ en-US ] = "Bubble" ;
-};
-String STR_BUBBLE_1
-{
- Text [ en-US ] = "Bubble Chart" ;
-};
-
-String STR_TYPE_GL3D_BAR
-{
- Text [ en-US ] = "GL3D Bar";
-};
-
-String STR_GL3D_BAR
-{
- Text [ en-US ] = "GL3D Bar Chart";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/Strings_Scale.src b/chart2/source/controller/dialogs/Strings_Scale.src
deleted file mode 100644
index 80b1f4a8b669..000000000000
--- a/chart2/source/controller/dialogs/Strings_Scale.src
+++ /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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#include "Strings.hrc"
-
-String STR_INVALID_NUMBER
-{
- Text [ en-US ] = "Numbers are required. Check your input." ;
-};
-String STR_STEP_GT_ZERO
-{
- Text [ en-US ] = "The major interval requires a positive number. Check your input." ;
-};
-String STR_BAD_LOGARITHM
-{
- Text [ en-US ] = "The logarithmic scale requires positive numbers. Check your input." ;
-};
-String STR_MIN_GREATER_MAX
-{
- Text [ en-US ] = "The minimum must be lower than the maximum. Check your input." ;
-};
-String STR_INVALID_INTERVALS
-{
- Text [ en-US ] = "The major interval needs to be greater than the minor interval. Check your input." ;
-};
-String STR_INVALID_TIME_UNIT
-{
- Text [ en-US ] = "The major and minor interval need to be greater or equal to the resolution. Check your input." ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/Strings_Statistic.src b/chart2/source/controller/dialogs/Strings_Statistic.src
deleted file mode 100644
index e375cb179d81..000000000000
--- a/chart2/source/controller/dialogs/Strings_Statistic.src
+++ /dev/null
@@ -1,58 +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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#include "Strings.hrc"
-
-// used for own data in error bar dialog
-//TODO: ohallot: String inserted into tp_ErrorBars.ui
-String STR_CONTROLTEXT_ERROR_BARS_FROM_DATA
-{
- Text [ en-US ] = "From Data Table" ;
-};
-
-String STR_REGRESSION_LINEAR
-{
- Text [ en-US ] = "Linear" ;
-};
-String STR_REGRESSION_LOG
-{
- Text [ en-US ] = "Logarithmic" ;
-};
-String STR_REGRESSION_EXP
-{
- Text [ en-US ] = "Exponential" ;
-};
-String STR_REGRESSION_POWER
-{
- Text [ en-US ] = "Power" ;
-};
-String STR_REGRESSION_POLYNOMIAL
-{
- Text [ en-US ] = "Polynomial" ;
-};
-String STR_REGRESSION_MOVING_AVERAGE
-{
- Text [ en-US ] = "Moving average" ;
-};
-
-String STR_REGRESSION_MEAN
-{
- Text [ en-US ] = "Mean" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/TextDirectionListBox.cxx b/chart2/source/controller/dialogs/TextDirectionListBox.cxx
index de52f69443c0..9a6e28bba418 100644
--- a/chart2/source/controller/dialogs/TextDirectionListBox.cxx
+++ b/chart2/source/controller/dialogs/TextDirectionListBox.cxx
@@ -19,7 +19,7 @@
#include "TextDirectionListBox.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include <svl/languageoptions.hxx>
#include <vcl/window.hxx>
#include <vcl/builderfactory.hxx>
diff --git a/chart2/source/controller/dialogs/dlg_ChartType.cxx b/chart2/source/controller/dialogs/dlg_ChartType.cxx
index 96c10ebc9710..95875642303a 100644
--- a/chart2/source/controller/dialogs/dlg_ChartType.cxx
+++ b/chart2/source/controller/dialogs/dlg_ChartType.cxx
@@ -20,7 +20,7 @@
#include "dlg_ChartType.hxx"
#include "ResId.hxx"
#include "ResourceIds.hrc"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "tp_ChartType.hxx"
#include "macros.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
index 151d2c8321d2..d2198e8653e9 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
@@ -20,7 +20,7 @@
#include "dlg_CreationWizard.hxx"
#include "ResId.hxx"
#include "macros.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "HelpIds.hrc"
#include "tp_ChartType.hxx"
@@ -169,25 +169,27 @@ void CreationWizard::setValidPage( TabPage * /* pTabPage */ )
OUString CreationWizard::getStateDisplayName( WizardState nState ) const
{
- sal_uInt16 nResId = 0;
+ const char* pResId = nullptr;
switch( nState )
{
case STATE_CHARTTYPE:
- nResId = STR_PAGE_CHARTTYPE;
+ pResId = STR_PAGE_CHARTTYPE;
break;
case STATE_SIMPLE_RANGE:
- nResId = STR_PAGE_DATA_RANGE;
+ pResId = STR_PAGE_DATA_RANGE;
break;
case STATE_DATA_SERIES:
- nResId = STR_OBJECT_DATASERIES_PLURAL;
+ pResId = STR_OBJECT_DATASERIES_PLURAL;
break;
case STATE_OBJECTS:
- nResId = STR_PAGE_CHART_ELEMENTS;
+ pResId = STR_PAGE_CHART_ELEMENTS;
break;
default:
break;
}
- return SchResId(nResId);
+ if (!pResId)
+ return OUString();
+ return SchResId(pResId);
}
} //namespace chart
diff --git a/chart2/source/controller/dialogs/dlg_DataEditor.cxx b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
index 8b7f777f6411..441b62e774ef 100644
--- a/chart2/source/controller/dialogs/dlg_DataEditor.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
@@ -18,7 +18,7 @@
*/
#include "dlg_DataEditor.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "DataBrowser.hxx"
#include "ResId.hxx"
diff --git a/chart2/source/controller/dialogs/dlg_DataSource.cxx b/chart2/source/controller/dialogs/dlg_DataSource.cxx
index 8c1566310a9a..28c5383915ec 100644
--- a/chart2/source/controller/dialogs/dlg_DataSource.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataSource.cxx
@@ -18,7 +18,7 @@
*/
#include "dlg_DataSource.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "ChartTypeTemplateProvider.hxx"
#include "DiagramHelper.hxx"
diff --git a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
index e1fbd2aac208..ff2ca208628a 100644
--- a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
+++ b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
@@ -20,7 +20,7 @@
#include <svl/zforlist.hxx>
#include "dlg_ObjectProperties.hxx"
#include "ResourceIds.hrc"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "tp_AxisLabel.hxx"
#include "tp_DataLabel.hxx"
#include "tp_LegendPosition.hxx"
diff --git a/chart2/source/controller/dialogs/dlg_View3D.cxx b/chart2/source/controller/dialogs/dlg_View3D.cxx
index 196a6fb17f94..a1988be2c8da 100644
--- a/chart2/source/controller/dialogs/dlg_View3D.cxx
+++ b/chart2/source/controller/dialogs/dlg_View3D.cxx
@@ -18,7 +18,7 @@
*/
#include "dlg_View3D.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResourceIds.hrc"
#include "ResId.hxx"
#include "tp_3D_SceneGeometry.hxx"
diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx
index 433d3ce1ce21..ea48698aadb1 100644
--- a/chart2/source/controller/dialogs/res_DataLabel.cxx
+++ b/chart2/source/controller/dialogs/res_DataLabel.cxx
@@ -32,7 +32,7 @@
#include <vcl/msgbox.hxx>
#include <svx/svxids.hrc>
#include <svl/zforlist.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
namespace chart
{
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index 0589039c5eb3..2d9f912f007c 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -23,7 +23,7 @@
#include "LegendHelper.hxx"
#include "ChartModel.hxx"
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <com/sun/star/chart2/LegendPosition.hpp>
#include <com/sun/star/chart/ChartLegendExpansion.hpp>
diff --git a/chart2/source/controller/dialogs/res_Titles.cxx b/chart2/source/controller/dialogs/res_Titles.cxx
index 4998e849fdc6..dae07506e76e 100644
--- a/chart2/source/controller/dialogs/res_Titles.cxx
+++ b/chart2/source/controller/dialogs/res_Titles.cxx
@@ -20,7 +20,7 @@
#include "res_Titles.hxx"
#include "ResId.hxx"
#include "TitleDialogData.hxx"
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
namespace chart
{
diff --git a/chart2/source/controller/dialogs/res_Trendline.cxx b/chart2/source/controller/dialogs/res_Trendline.cxx
index e09db092fece..d25e5518794d 100644
--- a/chart2/source/controller/dialogs/res_Trendline.cxx
+++ b/chart2/source/controller/dialogs/res_Trendline.cxx
@@ -19,7 +19,7 @@
#include "res_Trendline.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "bitmaps.hlst"
#include "chartview/ChartSfxItemIds.hxx"
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
index c091fa701007..f691d7cc5f68 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
@@ -24,6 +24,7 @@
#include <svx/colorbox.hxx>
#include "svx/dialogs.hrc"
+#include "svx/strings.hrc"
#include <svx/dialmgr.hxx>
#include <rtl/math.hxx>
#include <svtools/colrdlg.hxx>
diff --git a/chart2/source/controller/dialogs/tp_AxisPositions.cxx b/chart2/source/controller/dialogs/tp_AxisPositions.cxx
index 76d86aeb7eec..2ec01fff1e0c 100644
--- a/chart2/source/controller/dialogs/tp_AxisPositions.cxx
+++ b/chart2/source/controller/dialogs/tp_AxisPositions.cxx
@@ -21,7 +21,7 @@
#include "ResId.hxx"
#include "ResourceIds.hrc"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "chartview/ChartSfxItemIds.hxx"
#include "AxisHelper.hxx"
@@ -32,7 +32,7 @@
#include <svl/intitem.hxx>
#include <vcl/msgbox.hxx>
#include <svl/zformat.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <com/sun/star/chart/ChartAxisPosition.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx
index d2f979596417..7228effb0e49 100644
--- a/chart2/source/controller/dialogs/tp_ChartType.cxx
+++ b/chart2/source/controller/dialogs/tp_ChartType.cxx
@@ -18,7 +18,7 @@
*/
#include "tp_ChartType.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "ChartModelHelper.hxx"
#include "DiagramHelper.hxx"
@@ -28,7 +28,7 @@
#include "GL3DBarChartDialogController.hxx"
#include <unonames.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <svtools/miscopt.hxx>
#include <vcl/layout.hxx>
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index 102832e8300d..0d0e1cdef9d7 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -18,7 +18,7 @@
*/
#include "tp_DataSource.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "chartview/ChartSfxItemIds.hxx"
#include "macros.hxx"
diff --git a/chart2/source/controller/dialogs/tp_PolarOptions.cxx b/chart2/source/controller/dialogs/tp_PolarOptions.cxx
index 69de86ab9798..0b86d2a021f2 100644
--- a/chart2/source/controller/dialogs/tp_PolarOptions.cxx
+++ b/chart2/source/controller/dialogs/tp_PolarOptions.cxx
@@ -23,7 +23,7 @@
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
namespace chart
{
diff --git a/chart2/source/controller/dialogs/tp_RangeChooser.cxx b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
index b06a5fe3bdea..6879b87c34fb 100644
--- a/chart2/source/controller/dialogs/tp_RangeChooser.cxx
+++ b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
@@ -18,7 +18,7 @@
*/
#include "tp_RangeChooser.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "macros.hxx"
#include "DataSourceHelper.hxx"
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx
index d16c5f3de50c..caaf1d7eb19b 100644
--- a/chart2/source/controller/dialogs/tp_Scale.cxx
+++ b/chart2/source/controller/dialogs/tp_Scale.cxx
@@ -20,7 +20,7 @@
#include "tp_Scale.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "chartview/ChartSfxItemIds.hxx"
#include "AxisHelper.hxx"
@@ -31,7 +31,7 @@
#include <svl/intitem.hxx>
#include <vcl/msgbox.hxx>
#include <svl/zformat.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <com/sun/star/chart2/AxisType.hpp>
@@ -430,7 +430,7 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
nStepFmt = 0;
Control* pControl = nullptr;
- sal_uInt16 nErrStrId = 0;
+ const char* pErrStrId = nullptr;
double fDummy;
fMax = m_pFmtFldMax->GetValue();
@@ -452,7 +452,7 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
|| ( !m_pCbxAutoMax->IsChecked() && fMax <= 0.0 ) ) )
{
pControl = m_pFmtFldMin;
- nErrStrId = STR_BAD_LOGARITHM;
+ pErrStrId = STR_BAD_LOGARITHM;
}
// check for entries that cannot be parsed for the current number format
else if ( m_pFmtFldMin->IsModified()
@@ -460,38 +460,38 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
&& !pNumFormatter->IsNumberFormat( m_pFmtFldMin->GetText(), nMinMaxOriginFmt, fDummy))
{
pControl = m_pFmtFldMin;
- nErrStrId = STR_INVALID_NUMBER;
+ pErrStrId = STR_INVALID_NUMBER;
}
else if ( m_pFmtFldMax->IsModified()
&& !m_pCbxAutoMax->IsChecked()
&& !pNumFormatter->IsNumberFormat( m_pFmtFldMax->GetText(), nMinMaxOriginFmt, fDummy))
{
pControl = m_pFmtFldMax;
- nErrStrId = STR_INVALID_NUMBER;
+ pErrStrId = STR_INVALID_NUMBER;
}
else if ( !bDateAxis && m_pFmtFldStepMain->IsModified()
&& !m_pCbxAutoStepMain->IsChecked()
&& !pNumFormatter->IsNumberFormat( m_pFmtFldStepMain->GetText(), nStepFmt, fDummy))
{
pControl = m_pFmtFldStepMain;
- nErrStrId = STR_INVALID_NUMBER;
+ pErrStrId = STR_INVALID_NUMBER;
}
else if (m_pFmtFldOrigin->IsModified() && !m_pCbxAutoOrigin->IsChecked() &&
!pNumFormatter->IsNumberFormat( m_pFmtFldOrigin->GetText(), nMinMaxOriginFmt, fDummy))
{
pControl = m_pFmtFldOrigin;
- nErrStrId = STR_INVALID_NUMBER;
+ pErrStrId = STR_INVALID_NUMBER;
}
else if (!m_pCbxAutoStepMain->IsChecked() && fStepMain <= 0.0)
{
pControl = m_pFmtFldStepMain;
- nErrStrId = STR_STEP_GT_ZERO;
+ pErrStrId = STR_STEP_GT_ZERO;
}
else if (!m_pCbxAutoMax->IsChecked() && !m_pCbxAutoMin->IsChecked() &&
fMin >= fMax)
{
pControl = m_pFmtFldMin;
- nErrStrId = STR_MIN_GREATER_MAX;
+ pErrStrId = STR_MIN_GREATER_MAX;
}
else if( bDateAxis )
{
@@ -500,15 +500,15 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
if( m_nHelpTimeUnit > m_nMainTimeUnit )
{
pControl = m_pLB_MainTimeUnit;
- nErrStrId = STR_INVALID_INTERVALS;
+ pErrStrId = STR_INVALID_INTERVALS;
}
else if( m_nHelpTimeUnit == m_nMainTimeUnit && nStepHelp > fStepMain )
{
pControl = m_pLB_MainTimeUnit;
- nErrStrId = STR_INVALID_INTERVALS;
+ pErrStrId = STR_INVALID_INTERVALS;
}
}
- if( !nErrStrId && !m_pCbx_AutoTimeResolution->IsChecked() )
+ if( !pErrStrId && !m_pCbx_AutoTimeResolution->IsChecked() )
{
if( (!m_pCbxAutoStepMain->IsChecked() && m_nTimeResolution > m_nMainTimeUnit )
||
@@ -516,12 +516,12 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
)
{
pControl = m_pLB_TimeResolution;
- nErrStrId = STR_INVALID_TIME_UNIT;
+ pErrStrId = STR_INVALID_TIME_UNIT;
}
}
}
- if( ShowWarning( nErrStrId, pControl ) )
+ if( ShowWarning( pErrStrId, pControl ) )
return DeactivateRC::KeepPage;
if( pItemSet )
@@ -609,12 +609,12 @@ void ScaleTabPage::ShowAxisOrigin( bool bShowOrigin )
m_bShowAxisOrigin = true;
}
-bool ScaleTabPage::ShowWarning( sal_uInt16 nResIdMessage, Control* pControl /* = NULL */ )
+bool ScaleTabPage::ShowWarning(const char* pResIdMessage, Control* pControl /* = NULL */ )
{
- if( nResIdMessage == 0 )
+ if (pResIdMessage == nullptr)
return false;
- ScopedVclPtrInstance<WarningBox>(this, WinBits( WB_OK ), SchResId(nResIdMessage))->Execute();
+ ScopedVclPtrInstance<WarningBox>(this, WinBits( WB_OK ), SchResId(pResIdMessage))->Execute();
if( pControl )
{
pControl->GrabFocus();
diff --git a/chart2/source/controller/dialogs/tp_Scale.hxx b/chart2/source/controller/dialogs/tp_Scale.hxx
index 33a58582a508..75c869d23141 100644
--- a/chart2/source/controller/dialogs/tp_Scale.hxx
+++ b/chart2/source/controller/dialogs/tp_Scale.hxx
@@ -103,9 +103,9 @@ private:
/** shows a warning window due to an invalid input.
- @param nResIdMessage
+ @param pResIdMessage
The resource identifier that represents the localized warning text.
- If this is 0, no warning is shown and false is returned.
+ If this is nullptr, no warning is shown and false is returned.
@param pControl
If non-NULL, contains a pointer to the control in which the
@@ -114,7 +114,7 @@ private:
@return false, if nResIdMessage was 0, true otherwise
*/
- bool ShowWarning( sal_uInt16 nResIdMessage, Control* pControl );
+ bool ShowWarning(const char* pResIdMessage, Control* pControl);
void HideAllControls();
};
diff --git a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
index bc7122cdb9d0..d022f12d6306 100644
--- a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
+++ b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx
@@ -25,7 +25,7 @@
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <svl/ilstitem.hxx>
-#include <svtools/controldims.hrc>
+#include <svtools/controldims.hxx>
#include <com/sun/star/chart/MissingValueTreatment.hpp>
diff --git a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
index be85cacf6647..beeedc457cd0 100644
--- a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
+++ b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
@@ -18,7 +18,7 @@
*/
#include "tp_Wizard_TitlesAndObjects.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "res_Titles.hxx"
#include "res_LegendPosition.hxx"
#include "ResId.hxx"
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 307a2a6d27ed..2e822ceea120 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -28,7 +28,7 @@
#include "dlg_DataSource.hxx"
#include "ChartModelHelper.hxx"
#include "ControllerCommandDispatch.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "chartview/ExplicitValueProvider.hxx"
#include "ChartViewHelper.hxx"
diff --git a/chart2/source/controller/main/ChartController_EditData.cxx b/chart2/source/controller/main/ChartController_EditData.cxx
index ffab4b3a90d1..949700b82138 100644
--- a/chart2/source/controller/main/ChartController_EditData.cxx
+++ b/chart2/source/controller/main/ChartController_EditData.cxx
@@ -26,7 +26,7 @@
#include "ControllerLockGuard.hxx"
#include "UndoGuard.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index 27ff61e1772b..eceb5af49d6d 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -40,7 +40,7 @@
#include "ControllerLockGuard.hxx"
#include "UndoGuard.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ReferenceSizeProvider.hxx"
#include "ObjectIdentifier.hxx"
#include "RegressionCurveHelper.hxx"
diff --git a/chart2/source/controller/main/ChartController_Position.cxx b/chart2/source/controller/main/ChartController_Position.cxx
index 1e0762bdfc92..532a8cbd8c19 100644
--- a/chart2/source/controller/main/ChartController_Position.cxx
+++ b/chart2/source/controller/main/ChartController_Position.cxx
@@ -25,7 +25,7 @@
#include "PositionAndSizeHelper.hxx"
#include "ChartModelHelper.hxx"
#include "UndoGuard.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ObjectNameProvider.hxx"
#include "DiagramHelper.hxx"
#include "chartview/ExplicitValueProvider.hxx"
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx
index 6da7736eea60..fcbfc3073f06 100644
--- a/chart2/source/controller/main/ChartController_Properties.cxx
+++ b/chart2/source/controller/main/ChartController_Properties.cxx
@@ -48,7 +48,7 @@
#include "UndoGuard.hxx"
#include "ObjectNameProvider.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ReferenceSizeProvider.hxx"
#include "RegressionCurveHelper.hxx"
#include <com/sun/star/chart2/XChartDocument.hpp>
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index 3fb555bace30..ab8189642b36 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -28,7 +28,7 @@
#include "macros.hxx"
#include "ControllerLockGuard.hxx"
#include "AccessibleTextHelper.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "chartview/DrawModelWrapper.hxx"
#include <svx/svdotext.hxx>
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index 240ab15f6952..38772a491eea 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -27,7 +27,7 @@
#include "ControllerLockGuard.hxx"
#include "macros.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ObjectIdentifier.hxx"
#include "ReferenceSizeProvider.hxx"
#include "chartview/ExplicitValueProvider.hxx"
@@ -62,6 +62,7 @@
#include <vcl/svapp.hxx>
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
+#include <svx/strings.hrc>
#include <editeng/outliner.hxx>
#include <svx/svditer.hxx>
#include <svx/svdpage.hxx>
@@ -724,20 +725,20 @@ bool ChartController::executeDispatch_Delete()
ObjectIdentifier::getObjectPropertySet( aCID, getModel() ));
if( xErrorBarProp.is())
{
- sal_Int16 nId;
+ const char* pId;
if ( aObjectType == OBJECTTYPE_DATA_ERRORS_X )
- nId = STR_OBJECT_ERROR_BARS_X;
+ pId = STR_OBJECT_ERROR_BARS_X;
else if ( aObjectType == OBJECTTYPE_DATA_ERRORS_Y )
- nId = STR_OBJECT_ERROR_BARS_Y;
+ pId = STR_OBJECT_ERROR_BARS_Y;
else
- nId = STR_OBJECT_ERROR_BARS_Z;
+ pId = STR_OBJECT_ERROR_BARS_Z;
uno::Reference< frame::XModel > xModel( getModel() );
UndoGuard aUndoGuard(
ActionDescriptionProvider::createDescription(
- ActionDescriptionProvider::ActionType::Delete, SchResId( nId )),
- m_xUndoManager );
+ ActionDescriptionProvider::ActionType::Delete, SchResId(pId)),
+ m_xUndoManager);
{
ControllerLockGuardUNO aCtlLockGuard( xModel );
xErrorBarProp->setPropertyValue(
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 83e0bb7d76a8..e33db229fc59 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -29,7 +29,7 @@
#include "UndoGuard.hxx"
#include "ControllerLockGuard.hxx"
#include "ObjectNameProvider.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "macros.hxx"
#include "DragMethod_PieSegment.hxx"
#include "DragMethod_RotateDiagram.hxx"
diff --git a/chart2/source/controller/main/DragMethod_Base.cxx b/chart2/source/controller/main/DragMethod_Base.cxx
index d333197f695a..dc65a7d5862e 100644
--- a/chart2/source/controller/main/DragMethod_Base.cxx
+++ b/chart2/source/controller/main/DragMethod_Base.cxx
@@ -19,7 +19,7 @@
#include "DragMethod_Base.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "macros.hxx"
#include "ObjectNameProvider.hxx"
diff --git a/chart2/source/controller/main/DragMethod_PieSegment.cxx b/chart2/source/controller/main/DragMethod_PieSegment.cxx
index 331a506a1840..8271118a2e6f 100644
--- a/chart2/source/controller/main/DragMethod_PieSegment.cxx
+++ b/chart2/source/controller/main/DragMethod_PieSegment.cxx
@@ -19,7 +19,7 @@
#include "DragMethod_PieSegment.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ResId.hxx"
#include "macros.hxx"
#include "ObjectIdentifier.hxx"
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx
index d990e351bbd1..b68d2b7c0737 100644
--- a/chart2/source/controller/main/DrawCommandDispatch.cxx
+++ b/chart2/source/controller/main/DrawCommandDispatch.cxx
@@ -29,6 +29,7 @@
#include <svl/itempool.hxx>
#include <editeng/adjustitem.hxx>
#include <svx/dialogs.hrc>
+#include <svx/strings.hrc>
#include <svx/dialmgr.hxx>
#include <svx/fmmodel.hxx>
#include <svx/gallery.hxx>
@@ -74,13 +75,13 @@ bool DrawCommandDispatch::isFeatureSupported( const OUString& rCommandURL )
return parseCommandURL( rCommandURL, &nFeatureId, &aBaseCommand, &aCustomShapeType );
}
-::basegfx::B2DPolyPolygon getPolygon( sal_uInt16 nResId, SdrModel& rModel )
+::basegfx::B2DPolyPolygon getPolygon(const char* pResId, SdrModel& rModel)
{
::basegfx::B2DPolyPolygon aReturn;
XLineEndListRef pLineEndList = rModel.GetLineEndList();
if ( pLineEndList.is() )
{
- OUString aName( SvxResId( nResId ) );
+ OUString aName(SvxResId(pResId));
long nCount = pLineEndList->Count();
for ( long nIndex = 0; nIndex < nCount; ++nIndex )
{
diff --git a/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx
index 9a4436197a97..c4d1ef375c2b 100644
--- a/chart2/source/controller/main/ElementSelector.cxx
+++ b/chart2/source/controller/main/ElementSelector.cxx
@@ -25,7 +25,7 @@
#include <chartview/ExplicitValueProvider.hxx>
#include "DrawViewWrapper.hxx"
#include "ResId.hxx"
-#include "Strings.hrc"
+#include "strings.hrc"
#include "ObjectIdentifier.hxx"
#include <cppuhelper/supportsservice.hxx>
diff --git a/chart2/source/controller/main/UndoCommandDispatch.cxx b/chart2/source/controller/main/UndoCommandDispatch.cxx
index 459ac3eb79b8..96fd0de5e90d 100644
--- a/chart2/source/controller/main/UndoCommandDispatch.cxx
+++ b/chart2/source/controller/main/UndoCommandDispatch.cxx
@@ -28,7 +28,7 @@
#include <vcl/svapp.hxx>
#include <tools/diagnose_ex.h>
-#include <svtools/svtools.hrc>
+#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
using namespace ::com::sun::star;