diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-18 09:23:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-18 12:15:20 +0100 |
commit | f95bdd424760f759dcc7197d004d98bf20f056d3 (patch) | |
tree | 9082c75b8b237b8e002a1be4ad3bf5e6828271f0 /chart2 | |
parent | 258dc1f332155cd565d34b1ce3b51edc3c2fbf64 (diff) |
loplugin:stringliteraldefine in chart2
and drop namespace declarations that were surrounding the #define
- namespace decls have no affect on #defines
Change-Id: Ic66ba7837ba3a5c48a0cf414af30985c480d73af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125278
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/inc/bitmaps.hlst | 238 | ||||
-rw-r--r-- | chart2/inc/unonames.hxx | 46 | ||||
-rw-r--r-- | chart2/source/controller/inc/helpids.h | 8 | ||||
-rw-r--r-- | chart2/source/inc/servicenames.hxx | 49 | ||||
-rw-r--r-- | chart2/source/inc/servicenames_charttypes.hxx | 34 | ||||
-rw-r--r-- | chart2/source/inc/servicenames_coosystems.hxx | 9 |
6 files changed, 199 insertions, 185 deletions
diff --git a/chart2/inc/bitmaps.hlst b/chart2/inc/bitmaps.hlst index 35ef79e510d3..fee0c98ace1e 100644 --- a/chart2/inc/bitmaps.hlst +++ b/chart2/inc/bitmaps.hlst @@ -9,125 +9,125 @@ #pragma once -#define BMP_TYPE_COLUMN "chart2/res/typecolumn_16.png" -#define BMP_TYPE_BAR "chart2/res/typebar_16.png" -#define BMP_TYPE_PIE "chart2/res/typepie_16.png" -#define BMP_TYPE_LINE "chart2/res/typepointline_16.png" -#define BMP_TYPE_XY "chart2/res/typexy_16.png" -#define BMP_TYPE_AREA "chart2/res/typearea_16.png" -#define BMP_TYPE_NET "chart2/res/typenet_16.png" -#define BMP_TYPE_STOCK "chart2/res/typestock_16.png" -#define BMP_TYPE_COLUMN_LINE "chart2/res/typecolumnline_16.png" -#define BMP_TYPE_BUBBLE "chart2/res/typebubble_16.png" -#define BMP_BUBBLE_1 "chart2/res/bubble_52x60.png" -#define BMP_AREAS_2D "chart2/res/areas_52x60.png" -#define BMP_AREAS_2D_1 "chart2/res/areaspiled_52x60.png" -#define BMP_AREAS_2D_3 "chart2/res/areasfull_52x60.png" -#define BMP_AREAS_3D "chart2/res/areaspiled3d_52x60.png" -#define BMP_AREAS_3D_1 "chart2/res/areas3d_52x60.png" -#define BMP_AREAS_3D_2 "chart2/res/areasfull3d_52x60.png" -#define BMP_BARS_2D_1 "chart2/res/bar_52x60.png" -#define BMP_BARS_2D_2 "chart2/res/barstack_52x60.png" -#define BMP_BARS_2D_3 "chart2/res/barpercent_52x60.png" -#define BMP_BARS_3D "chart2/res/bar3ddeep_52x60.png" -#define BMP_BARS_3D_1 "chart2/res/bar3d_52x60.png" -#define BMP_BARS_3D_2 "chart2/res/barstack3d_52x60.png" -#define BMP_BARS_3D_3 "chart2/res/barpercent3d_52x60.png" -#define BMP_CIRCLES_2D "chart2/res/pie_52x60.png" -#define BMP_CIRCLES_2D_EXPLODED "chart2/res/pieexploded_52x60.png" -#define BMP_CIRCLES_3D "chart2/res/pie3d_52x60.png" -#define BMP_CIRCLES_3D_EXPLODED "chart2/res/pie3dexploded_52x60.png" -#define BMP_DONUT_2D "chart2/res/donut_52x60.png" -#define BMP_DONUT_2D_EXPLODED "chart2/res/donutexploded_52x60.png" -#define BMP_DONUT_3D "chart2/res/donut3d_52x60.png" -#define BMP_DONUT_3D_EXPLODED "chart2/res/donut3dexploded_52x60.png" -#define BMP_COLUMNS_2D_1 "chart2/res/columns_52x60.png" -#define BMP_COLUMNS_2D_2 "chart2/res/columnstack_52x60.png" -#define BMP_COLUMNS_2D_3 "chart2/res/columnpercent_52x60.png" -#define BMP_COLUMN_LINE "chart2/res/columnline_52x60.png" -#define BMP_COLUMN_LINE_STACKED "chart2/res/columnstackline_52x60.png" -#define BMP_COLUMNS_3D "chart2/res/columns3ddeep_52x60.png" -#define BMP_COLUMNS_3D_1 "chart2/res/columns3d_52x60.png" -#define BMP_COLUMNS_3D_2 "chart2/res/columnstack3d_52x60.png" -#define BMP_COLUMNS_3D_3 "chart2/res/columnpercent3d_52x60.png" -#define BMP_KEGELQ_3D_1 "chart2/res/conehori_52x60.png" -#define BMP_KEGELQ_3D_2 "chart2/res/conehoristack_52x60.png" -#define BMP_KEGELQ_3D_3 "chart2/res/conehoripercent_52x60.png" -#define BMP_KEGELQ_3D_4 "chart2/res/conehorideep_52x60.png" -#define BMP_KEGEL_3D_1 "chart2/res/cone_52x60.png" -#define BMP_KEGEL_3D_2 "chart2/res/conestack_52x60.png" -#define BMP_KEGEL_3D_3 "chart2/res/conepercent_52x60.png" -#define BMP_KEGEL_3D_4 "chart2/res/conedeep_52x60.png" -#define BMP_POINTS_XVALUES "chart2/res/valueaxisdirectpoints_52x60.png" -#define BMP_POINTS_XCATEGORY "chart2/res/nostackdirectpoints_52x60.png" -#define BMP_POINTS_STACKED "chart2/res/stackdirectpoints_52x60.png" -#define BMP_LINE_P_XVALUES "chart2/res/valueaxisdirectboth_52x60.png" -#define BMP_LINE_O_XVALUES "chart2/res/valueaxisdirectlines_52x60.png" -#define BMP_LINE3D_XVALUES "chart2/res/valueaxisdirect3d_52x60.png" -#define BMP_LINE_P_XCATEGORY "chart2/res/nostackdirectboth_52x60.png" -#define BMP_LINE_O_XCATEGORY "chart2/res/nostackdirectlines_52x60.png" -#define BMP_LINE3D_XCATEGORY "chart2/res/nostackdirect3d_52x60.png" -#define BMP_LINE_P_STACKED "chart2/res/stackdirectboth_52x60.png" -#define BMP_LINE_O_STACKED "chart2/res/stackdirectlines_52x60.png" -#define BMP_LINE3D_STACKED "chart2/res/stackdirect3d_52x60.png" -#define BMP_LINE_P_XVALUES_SMOOTH "chart2/res/valueaxissmoothboth_52x60.png" -#define BMP_LINE_O_XVALUES_SMOOTH "chart2/res/valueaxissmoothlines_52x60.png" -#define BMP_LINE3D_XVALUES_SMOOTH "chart2/res/valueaxissmooth3d_52x60.png" -#define BMP_LINE_P_XCATEGORY_SMOOTH "chart2/res/nostacksmoothboth_52x60.png" -#define BMP_LINE_O_XCATEGORY_SMOOTH "chart2/res/nostacksmoothlines_52x60.png" -#define BMP_LINE3D_XCATEGORY_SMOOTH "chart2/res/nostacksmooth3d_52x60.png" -#define BMP_LINE_P_STACKED_SMOOTH "chart2/res/stacksmoothboth_52x60.png" -#define BMP_LINE_O_STACKED_SMOOTH "chart2/res/stacksmoothlines_52x60.png" -#define BMP_LINE3D_STACKED_SMOOTH "chart2/res/stacksmooth3d_52x60.png" -#define BMP_LINE_P_XVALUES_STEPPED "chart2/res/valueaxissteppedboth_52x60.png" -#define BMP_LINE_O_XVALUES_STEPPED "chart2/res/valueaxissteppedlines_52x60.png" -#define BMP_LINE3D_XVALUES_STEPPED "chart2/res/valueaxisstepped3d_52x60.png" -#define BMP_LINE_P_XCATEGORY_STEPPED "chart2/res/nostacksteppedboth_52x60.png" -#define BMP_LINE_O_XCATEGORY_STEPPED "chart2/res/nostacksteppedlines_52x60.png" -#define BMP_LINE3D_XCATEGORY_STEPPED "chart2/res/nostackstepped3d_52x60.png" -#define BMP_LINE_P_STACKED_STEPPED "chart2/res/stacksteppedboth_52x60.png" -#define BMP_LINE_O_STACKED_STEPPED "chart2/res/stacksteppedlines_52x60.png" -#define BMP_LINE3D_STACKED_STEPPED "chart2/res/stackstepped3d_52x60.png" -#define BMP_NET "chart2/res/net_52x60.png" -#define BMP_NET_STACK "chart2/res/netstack_52x60.png" -#define BMP_NET_SYMB "chart2/res/netpoint_52x60.png" -#define BMP_NET_SYMB_STACK "chart2/res/netpointstack_52x60.png" -#define BMP_NET_LINESYMB "chart2/res/netlinepoint_52x60.png" -#define BMP_NET_LINESYMB_STACK "chart2/res/netlinepointstack_52x60.png" -#define BMP_NET_FILL "chart2/res/netfill_52x60.png" -#define BMP_NET_FILL_STACK "chart2/res/netstackfill_52x60.png" -#define BMP_PYRAMIDQ_3D_1 "chart2/res/pyramindhori_52x60.png" -#define BMP_PYRAMIDQ_3D_2 "chart2/res/pyramindhoristack_52x60.png" -#define BMP_PYRAMIDQ_3D_3 "chart2/res/pyramindhoripercent_52x60.png" -#define BMP_PYRAMIDQ_3D_4 "chart2/res/pyramindhorideep_52x60.png" -#define BMP_PYRAMID_3D_1 "chart2/res/pyramind_52x60.png" -#define BMP_PYRAMID_3D_2 "chart2/res/pyramindstack_52x60.png" -#define BMP_PYRAMID_3D_3 "chart2/res/pyramindpercent_52x60.png" -#define BMP_PYRAMID_3D_4 "chart2/res/pyraminddeep_52x60.png" -#define BMP_ROEHRE_3D_1 "chart2/res/cylinderhori_52x60.png" -#define BMP_ROEHRE_3D_2 "chart2/res/cylinderhoristack_52x60.png" -#define BMP_ROEHRE_3D_3 "chart2/res/cylinderhoriprocent_52x60.png" -#define BMP_ROEHRE_3D_4 "chart2/res/cylinderhorideep_52x60.png" -#define BMP_SAEULE_3D_1 "chart2/res/cylinder_52x60.png" -#define BMP_SAEULE_3D_2 "chart2/res/cylinderstack_52x60.png" -#define BMP_SAEULE_3D_3 "chart2/res/cylinderpercent_52x60.png" -#define BMP_SAEULE_3D_4 "chart2/res/cylinderdeep_52x60.png" -#define BMP_STOCK_1 "chart2/res/stock_52x60.png" -#define BMP_STOCK_2 "chart2/res/stockblock_52x60.png" -#define BMP_STOCK_3 "chart2/res/stockcolumns_52x60.png" -#define BMP_STOCK_4 "chart2/res/stockcolumnsattach_52x60.png" -#define BMP_INDICATE_BOTH_VERTI "chart2/res/errorbothverti_30.png" -#define BMP_INDICATE_DOWN "chart2/res/errordown_30.png" -#define BMP_INDICATE_UP "chart2/res/errorup_30.png" -#define BMP_INDICATE_BOTH_HORI "chart2/res/errorbothhori_30.png" -#define BMP_INDICATE_RIGHT "chart2/res/errorright_30.png" -#define BMP_INDICATE_LEFT "chart2/res/errorleft_30.png" -#define BMP_REGRESSION_LINEAR "chart2/res/reglin.png" -#define BMP_REGRESSION_LOG "chart2/res/reglog.png" -#define BMP_REGRESSION_EXP "chart2/res/regexp.png" -#define BMP_REGRESSION_POWER "chart2/res/regpow.png" -#define BMP_REGRESSION_POLYNOMIAL "chart2/res/regpoly.png" -#define BMP_REGRESSION_MOVING_AVERAGE "chart2/res/regavg.png" +inline constexpr OUStringLiteral BMP_TYPE_COLUMN = u"chart2/res/typecolumn_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_BAR = u"chart2/res/typebar_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_PIE = u"chart2/res/typepie_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_LINE = u"chart2/res/typepointline_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_XY = u"chart2/res/typexy_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_AREA = u"chart2/res/typearea_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_NET = u"chart2/res/typenet_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_STOCK = u"chart2/res/typestock_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_COLUMN_LINE = u"chart2/res/typecolumnline_16.png"; +inline constexpr OUStringLiteral BMP_TYPE_BUBBLE = u"chart2/res/typebubble_16.png"; +inline constexpr OUStringLiteral BMP_BUBBLE_1 = u"chart2/res/bubble_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D = u"chart2/res/areas_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D_1 = u"chart2/res/areaspiled_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_2D_3 = u"chart2/res/areasfull_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D = u"chart2/res/areaspiled3d_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D_1 = u"chart2/res/areas3d_52x60.png"; +inline constexpr OUStringLiteral BMP_AREAS_3D_2 = u"chart2/res/areasfull3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_1 = u"chart2/res/bar_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_2 = u"chart2/res/barstack_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_2D_3 = u"chart2/res/barpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D = u"chart2/res/bar3ddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_1 = u"chart2/res/bar3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_2 = u"chart2/res/barstack3d_52x60.png"; +inline constexpr OUStringLiteral BMP_BARS_3D_3 = u"chart2/res/barpercent3d_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_2D = u"chart2/res/pie_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_2D_EXPLODED = u"chart2/res/pieexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_3D = u"chart2/res/pie3d_52x60.png"; +inline constexpr OUStringLiteral BMP_CIRCLES_3D_EXPLODED = u"chart2/res/pie3dexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_2D = u"chart2/res/donut_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_2D_EXPLODED = u"chart2/res/donutexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_3D = u"chart2/res/donut3d_52x60.png"; +inline constexpr OUStringLiteral BMP_DONUT_3D_EXPLODED = u"chart2/res/donut3dexploded_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_1 = u"chart2/res/columns_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_2 = u"chart2/res/columnstack_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_2D_3 = u"chart2/res/columnpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMN_LINE = u"chart2/res/columnline_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMN_LINE_STACKED = u"chart2/res/columnstackline_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D = u"chart2/res/columns3ddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_1 = u"chart2/res/columns3d_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_2 = u"chart2/res/columnstack3d_52x60.png"; +inline constexpr OUStringLiteral BMP_COLUMNS_3D_3 = u"chart2/res/columnpercent3d_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_1 = u"chart2/res/conehori_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_2 = u"chart2/res/conehoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_3 = u"chart2/res/conehoripercent_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGELQ_3D_4 = u"chart2/res/conehorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_1 = u"chart2/res/cone_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_2 = u"chart2/res/conestack_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_3 = u"chart2/res/conepercent_52x60.png"; +inline constexpr OUStringLiteral BMP_KEGEL_3D_4 = u"chart2/res/conedeep_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_XVALUES = u"chart2/res/valueaxisdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_XCATEGORY = u"chart2/res/nostackdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_POINTS_STACKED = u"chart2/res/stackdirectpoints_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES = u"chart2/res/valueaxisdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES = u"chart2/res/valueaxisdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES = u"chart2/res/valueaxisdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY = u"chart2/res/nostackdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY = u"chart2/res/nostackdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY = u"chart2/res/nostackdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED = u"chart2/res/stackdirectboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED = u"chart2/res/stackdirectlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED = u"chart2/res/stackdirect3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES_SMOOTH = u"chart2/res/valueaxissmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES_SMOOTH = u"chart2/res/valueaxissmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES_SMOOTH = u"chart2/res/valueaxissmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY_SMOOTH = u"chart2/res/nostacksmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY_SMOOTH = u"chart2/res/nostacksmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY_SMOOTH = u"chart2/res/nostacksmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED_SMOOTH = u"chart2/res/stacksmoothboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED_SMOOTH = u"chart2/res/stacksmoothlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED_SMOOTH = u"chart2/res/stacksmooth3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XVALUES_STEPPED = u"chart2/res/valueaxissteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XVALUES_STEPPED = u"chart2/res/valueaxissteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XVALUES_STEPPED = u"chart2/res/valueaxisstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_XCATEGORY_STEPPED = u"chart2/res/nostacksteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_XCATEGORY_STEPPED = u"chart2/res/nostacksteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_XCATEGORY_STEPPED = u"chart2/res/nostackstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_P_STACKED_STEPPED = u"chart2/res/stacksteppedboth_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE_O_STACKED_STEPPED = u"chart2/res/stacksteppedlines_52x60.png"; +inline constexpr OUStringLiteral BMP_LINE3D_STACKED_STEPPED = u"chart2/res/stackstepped3d_52x60.png"; +inline constexpr OUStringLiteral BMP_NET = u"chart2/res/net_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_STACK = u"chart2/res/netstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_SYMB = u"chart2/res/netpoint_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_SYMB_STACK = u"chart2/res/netpointstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_LINESYMB = u"chart2/res/netlinepoint_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_LINESYMB_STACK = u"chart2/res/netlinepointstack_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_FILL = u"chart2/res/netfill_52x60.png"; +inline constexpr OUStringLiteral BMP_NET_FILL_STACK = u"chart2/res/netstackfill_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_1 = u"chart2/res/pyramindhori_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_2 = u"chart2/res/pyramindhoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_3 = u"chart2/res/pyramindhoripercent_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMIDQ_3D_4 = u"chart2/res/pyramindhorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_1 = u"chart2/res/pyramind_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_2 = u"chart2/res/pyramindstack_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_3 = u"chart2/res/pyramindpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_PYRAMID_3D_4 = u"chart2/res/pyraminddeep_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_1 = u"chart2/res/cylinderhori_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_2 = u"chart2/res/cylinderhoristack_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_3 = u"chart2/res/cylinderhoriprocent_52x60.png"; +inline constexpr OUStringLiteral BMP_ROEHRE_3D_4 = u"chart2/res/cylinderhorideep_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_1 = u"chart2/res/cylinder_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_2 = u"chart2/res/cylinderstack_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_3 = u"chart2/res/cylinderpercent_52x60.png"; +inline constexpr OUStringLiteral BMP_SAEULE_3D_4 = u"chart2/res/cylinderdeep_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_1 = u"chart2/res/stock_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_2 = u"chart2/res/stockblock_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_3 = u"chart2/res/stockcolumns_52x60.png"; +inline constexpr OUStringLiteral BMP_STOCK_4 = u"chart2/res/stockcolumnsattach_52x60.png"; +inline constexpr OUStringLiteral BMP_INDICATE_BOTH_VERTI = u"chart2/res/errorbothverti_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_DOWN = u"chart2/res/errordown_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_UP = u"chart2/res/errorup_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_BOTH_HORI = u"chart2/res/errorbothhori_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_RIGHT = u"chart2/res/errorright_30.png"; +inline constexpr OUStringLiteral BMP_INDICATE_LEFT = u"chart2/res/errorleft_30.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_LINEAR = u"chart2/res/reglin.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_LOG = u"chart2/res/reglog.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_EXP = u"chart2/res/regexp.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_POWER = u"chart2/res/regpow.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_POLYNOMIAL = u"chart2/res/regpoly.png"; +inline constexpr OUStringLiteral BMP_REGRESSION_MOVING_AVERAGE = u"chart2/res/regavg.png"; #define RID_SVXBMP_LAMP_ON "svx/res/lighton.png" #define RID_SVXBMP_LAMP_OFF "svx/res/light.png" diff --git a/chart2/inc/unonames.hxx b/chart2/inc/unonames.hxx index 2174f4abb1d7..32db759716a3 100644 --- a/chart2/inc/unonames.hxx +++ b/chart2/inc/unonames.hxx @@ -9,28 +9,28 @@ #pragma once -#define CHART_UNONAME_SORT_BY_XVALUES "SortByXValues" -#define CHART_UNONAME_SPLINE_TYPE "SplineType" -#define CHART_UNONAME_SPLINE_ORDER "SplineOrder" -#define CHART_UNONAME_SPLINE_RESOLUTION "SplineResolution" -#define CHART_UNONAME_CURVE_STYLE "CurveStyle" -#define CHART_UNONAME_CURVE_RESOLUTION "CurveResolution" -#define CHART_UNONAME_NUMFMT "NumberFormat" -#define CHART_UNONAME_LINK_TO_SRC_NUMFMT "LinkNumberFormatToSource" -#define CHART_UNONAME_ERRORBAR_X "ErrorBarX" -#define CHART_UNONAME_ERRORBAR_Y "ErrorBarY" -#define CHART_UNONAME_LABEL "Label" -#define CHART_UNONAME_LABEL_SEP "LabelSeparator" -#define CHART_UNONAME_LABEL_BORDER_STYLE "LabelBorderStyle" -#define CHART_UNONAME_LABEL_BORDER_WIDTH "LabelBorderWidth" -#define CHART_UNONAME_LABEL_BORDER_COLOR "LabelBorderColor" -#define CHART_UNONAME_LABEL_BORDER_DASH "LabelBorderDash" -#define CHART_UNONAME_LABEL_BORDER_DASHNAME "LabelBorderDashName" -#define CHART_UNONAME_LABEL_BORDER_TRANS "LabelBorderTransparency" -#define CHART_UNONAME_LABEL_FILL_STYLE "LabelFillStyle" -#define CHART_UNONAME_LABEL_FILL_BACKGROUND "LabelFillBackground" -#define CHART_UNONAME_LABEL_FILL_HATCH_NAME "LabelFillHatchName" -#define CHART_UNONAME_LABEL_FILL_COLOR "LabelFillColor" -#define CHART_UNONAME_CUSTOM_LABEL_FIELDS "CustomLabelFields" +inline constexpr OUStringLiteral CHART_UNONAME_SORT_BY_XVALUES = u"SortByXValues"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_TYPE = u"SplineType"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_ORDER = u"SplineOrder"; +inline constexpr OUStringLiteral CHART_UNONAME_SPLINE_RESOLUTION = u"SplineResolution"; +inline constexpr OUStringLiteral CHART_UNONAME_CURVE_STYLE = u"CurveStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_CURVE_RESOLUTION = u"CurveResolution"; +inline constexpr OUStringLiteral CHART_UNONAME_NUMFMT = u"NumberFormat"; +inline constexpr OUStringLiteral CHART_UNONAME_LINK_TO_SRC_NUMFMT = u"LinkNumberFormatToSource"; +inline constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_X = u"ErrorBarX"; +inline constexpr OUStringLiteral CHART_UNONAME_ERRORBAR_Y = u"ErrorBarY"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL = u"Label"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_SEP = u"LabelSeparator"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_STYLE = u"LabelBorderStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_WIDTH = u"LabelBorderWidth"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_COLOR = u"LabelBorderColor"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASH = u"LabelBorderDash"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_DASHNAME = u"LabelBorderDashName"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_BORDER_TRANS = u"LabelBorderTransparency"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_STYLE = u"LabelFillStyle"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_BACKGROUND = u"LabelFillBackground"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_HATCH_NAME = u"LabelFillHatchName"; +inline constexpr OUStringLiteral CHART_UNONAME_LABEL_FILL_COLOR = u"LabelFillColor"; +inline constexpr OUStringLiteral CHART_UNONAME_CUSTOM_LABEL_FIELDS = u"CustomLabelFields"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/controller/inc/helpids.h b/chart2/source/controller/inc/helpids.h index 5b7244cca95e..fe502262339a 100644 --- a/chart2/source/controller/inc/helpids.h +++ b/chart2/source/controller/inc/helpids.h @@ -19,12 +19,12 @@ #pragma once -#define HID_SCH_WIN_DOCUMENT "CHART2_HID_SCH_WIN_DOCUMENT" -#define HID_SCH_ERROR_BARS_FROM_DATA "CHART2_SCH_ERROR_BARS_FROM_DATA" +inline constexpr OStringLiteral HID_SCH_WIN_DOCUMENT = "CHART2_HID_SCH_WIN_DOCUMENT"; +inline constexpr OStringLiteral HID_SCH_ERROR_BARS_FROM_DATA = "CHART2_SCH_ERROR_BARS_FROM_DATA"; -#define HID_SCH_WIZARD_ROADMAP "CHART2_HID_SCH_WIZARD_ROADMAP" -#define HID_SCH_DATA_SERIES_LABEL "CHART2_HID_SCH_DATA_SERIES_LABEL" +inline constexpr OStringLiteral HID_SCH_WIZARD_ROADMAP = "CHART2_HID_SCH_WIZARD_ROADMAP"; +inline constexpr OStringLiteral HID_SCH_DATA_SERIES_LABEL = "CHART2_HID_SCH_DATA_SERIES_LABEL"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/inc/servicenames.hxx b/chart2/source/inc/servicenames.hxx index 18e023d6c80d..30e9b40f5efa 100644 --- a/chart2/source/inc/servicenames.hxx +++ b/chart2/source/inc/servicenames.hxx @@ -18,35 +18,46 @@ */ #pragma once -namespace chart -{ -#define CHART_MODEL_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartModel" -#define CHART_MODEL_SERVICE_NAME "com.sun.star.chart2.ChartDocument" +#include <rtl/ustring.hxx> + +inline constexpr OUStringLiteral CHART_MODEL_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartModel"; +inline constexpr OUStringLiteral CHART_MODEL_SERVICE_NAME = u"com.sun.star.chart2.ChartDocument"; //@todo create your own service containing the service com.sun.star.document.OfficeDocument -#define CHART_CONTROLLER_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartController" -#define CHART_CONTROLLER_SERVICE_NAME "com.sun.star.chart2.ChartController" +inline constexpr OUStringLiteral CHART_CONTROLLER_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartController"; +inline constexpr OUStringLiteral CHART_CONTROLLER_SERVICE_NAME + = u"com.sun.star.chart2.ChartController"; //@todo create your own service containing the service com.sun.star.frame.Controller -#define CHART_VIEW_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartView" -#define CHART_VIEW_SERVICE_NAME "com.sun.star.chart2.ChartView" +inline constexpr OUStringLiteral CHART_VIEW_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartView"; +inline constexpr OUStringLiteral CHART_VIEW_SERVICE_NAME = u"com.sun.star.chart2.ChartView"; -#define CHART_FRAMELOADER_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartFrameLoader" -#define CHART_FRAMELOADER_SERVICE_NAME "com.sun.star.frame.SynchronousFrameLoader" +inline constexpr OUStringLiteral CHART_FRAMELOADER_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartFrameLoader"; +inline constexpr OUStringLiteral CHART_FRAMELOADER_SERVICE_NAME + = u"com.sun.star.frame.SynchronousFrameLoader"; -#define CHART_WIZARD_DIALOG_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.WizardDialog" -#define CHART_WIZARD_DIALOG_SERVICE_NAME "com.sun.star.chart2.WizardDialog" +inline constexpr OUStringLiteral CHART_WIZARD_DIALOG_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.WizardDialog"; +inline constexpr OUStringLiteral CHART_WIZARD_DIALOG_SERVICE_NAME + = u"com.sun.star.chart2.WizardDialog"; -#define CHART_TYPE_DIALOG_SERVICE_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartTypeDialog" -#define CHART_TYPE_DIALOG_SERVICE_NAME "com.sun.star.chart2.ChartTypeDialog" +inline constexpr OUStringLiteral CHART_TYPE_DIALOG_SERVICE_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartTypeDialog"; +inline constexpr OUStringLiteral CHART_TYPE_DIALOG_SERVICE_NAME + = u"com.sun.star.chart2.ChartTypeDialog"; // wrapper for old UNO API (com.sun.star.chart) -#define CHART_CHARTAPIWRAPPER_IMPLEMENTATION_NAME "com.sun.star.comp.chart2.ChartDocumentWrapper" -#define CHART_CHARTAPIWRAPPER_SERVICE_NAME "com.sun.star.chart2.ChartDocumentWrapper" +inline constexpr OUStringLiteral CHART_CHARTAPIWRAPPER_IMPLEMENTATION_NAME + = u"com.sun.star.comp.chart2.ChartDocumentWrapper"; +inline constexpr OUStringLiteral CHART_CHARTAPIWRAPPER_SERVICE_NAME + = u"com.sun.star.chart2.ChartDocumentWrapper"; // accessibility -#define CHART_ACCESSIBLE_TEXT_SERVICE_NAME "com.sun.star.accessibility.AccessibleTextComponent" - -} //namespace chart +inline constexpr OUStringLiteral CHART_ACCESSIBLE_TEXT_SERVICE_NAME + = u"com.sun.star.accessibility.AccessibleTextComponent"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/inc/servicenames_charttypes.hxx b/chart2/source/inc/servicenames_charttypes.hxx index 0318104ec683..367af08ea8c2 100644 --- a/chart2/source/inc/servicenames_charttypes.hxx +++ b/chart2/source/inc/servicenames_charttypes.hxx @@ -18,19 +18,25 @@ */ #pragma once -namespace chart -{ -#define CHART2_SERVICE_NAME_CHARTTYPE_AREA "com.sun.star.chart2.AreaChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_BAR "com.sun.star.chart2.BarChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_COLUMN "com.sun.star.chart2.ColumnChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_LINE "com.sun.star.chart2.LineChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_SCATTER "com.sun.star.chart2.ScatterChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_PIE "com.sun.star.chart2.PieChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_NET "com.sun.star.chart2.NetChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET "com.sun.star.chart2.FilledNetChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK "com.sun.star.chart2.CandleStickChartType" -#define CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE "com.sun.star.chart2.BubbleChartType" - -} //namespace chart +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_AREA + = u"com.sun.star.chart2.AreaChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_BAR + = u"com.sun.star.chart2.BarChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_COLUMN + = u"com.sun.star.chart2.ColumnChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_LINE + = u"com.sun.star.chart2.LineChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_SCATTER + = u"com.sun.star.chart2.ScatterChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_PIE + = u"com.sun.star.chart2.PieChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_NET + = u"com.sun.star.chart2.NetChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET + = u"com.sun.star.chart2.FilledNetChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK + = u"com.sun.star.chart2.CandleStickChartType"; +inline constexpr OUStringLiteral CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE + = u"com.sun.star.chart2.BubbleChartType"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/inc/servicenames_coosystems.hxx b/chart2/source/inc/servicenames_coosystems.hxx index 6a460740b096..f8472a3dfeec 100644 --- a/chart2/source/inc/servicenames_coosystems.hxx +++ b/chart2/source/inc/servicenames_coosystems.hxx @@ -18,12 +18,9 @@ */ #pragma once -namespace chart -{ +#include <rtl/ustring.hxx> -#define CHART2_COOSYSTEM_CARTESIAN_VIEW_SERVICE_NAME "com.sun.star.chart2.CoordinateSystems.CartesianView" -#define CHART2_COOSYSTEM_POLAR_VIEW_SERVICE_NAME "com.sun.star.chart2.CoordinateSystems.PolarView" - -} //namespace chart +inline constexpr OUStringLiteral CHART2_COOSYSTEM_CARTESIAN_VIEW_SERVICE_NAME = u"com.sun.star.chart2.CoordinateSystems.CartesianView"; +inline constexpr OUStringLiteral CHART2_COOSYSTEM_POLAR_VIEW_SERVICE_NAME = u"com.sun.star.chart2.CoordinateSystems.PolarView"; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |