tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / svx / source / sidebar / shapes / ShapesUtil.cxx
blob02ac744b6d423f61bf63c9670822dc83094d7ed3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <ShapesUtil.hxx>
21 #include <map>
22 #include <rtl/ustring.hxx>
24 namespace svx::sidebar{
25 SvxShapeCommandsMap::SvxShapeCommandsMap()
27 mpLineShapes = decltype(mpLineShapes){
28 {0, ".uno:Line"},
29 {1, ".uno:LineArrowEnd"},
30 {2, ".uno:LineCircleArrow"},
31 {3, ".uno:LineSquareArrow"},
32 {4, ".uno:LineArrows"},
33 {5, ".uno:LineArrowStart"},
34 {6, ".uno:LineArrowCircle"},
35 {7, ".uno:LineArrowSquare"},
36 {8, ".uno:MeasureLine"},
37 {9, ".uno:Line_Diagonal"}
40 mpCurveShapes = decltype(mpCurveShapes){
41 {0, ".uno:Freeline_Unfilled"},
42 {1, ".uno:Bezier_Unfilled"},
43 {2, ".uno:Polygon_Unfilled"},
44 {3, ".uno:Polygon_Diagonal_Unfilled"},
45 {4, ".uno:Freeline"},
46 {5, ".uno:BezierFill"},
47 {6, ".uno:Polygon"},
48 {7, ".uno:Polygon_Diagonal"}
51 mpConnectorShapes = decltype(mpConnectorShapes){
52 {0, ".uno:ConnectorArrowEnd"},
53 {1, ".uno:ConnectorLineArrowEnd"},
54 {2, ".uno:ConnectorCurveArrowEnd"},
55 {3, ".uno:ConnectorLinesArrowEnd"},
56 {4, ".uno:Connector"},
57 {5, ".uno:ConnectorLine"},
58 {6, ".uno:ConnectorCurve"},
59 {7, ".uno:ConnectorLines"},
60 {8, ".uno:ConnectorArrows"},
61 {9, ".uno:ConnectorLineArrows"},
62 {10, ".uno:ConnectorCurveArrows"},
63 {11, ".uno:ConnectorLinesArrows"}
66 mpBasicShapes = decltype(mpBasicShapes){
67 {0, ".uno:BasicShapes.rectangle"},
68 {1, ".uno:BasicShapes.round-rectangle"},
69 {2, ".uno:BasicShapes.quadrat"},
70 {3, ".uno:BasicShapes.round-quadrat"},
71 {4, ".uno:BasicShapes.parallelogram"},
72 {5, ".uno:BasicShapes.trapezoid"},
73 {6, ".uno:BasicShapes.ellipse"},
74 {7, ".uno:BasicShapes.circle"},
75 {8, ".uno:BasicShapes.circle-pie"},
76 {9, ".uno:CircleCut"},
77 {10, ".uno:Arc"},
78 {11, ".uno:BasicShapes.block-arc"},
79 {12, ".uno:BasicShapes.isosceles-triangle"},
80 {13, ".uno:BasicShapes.right-triangle"},
81 {14, ".uno:BasicShapes.diamond"},
82 {15, ".uno:BasicShapes.pentagon"},
83 {16, ".uno:BasicShapes.hexagon"},
84 {17, ".uno:BasicShapes.octagon"},
85 {18, ".uno:BasicShapes.cross"},
86 {19, ".uno:BasicShapes.can"},
87 {20, ".uno:BasicShapes.cube"},
88 {21, ".uno:BasicShapes.paper"},
89 {22, ".uno:BasicShapes.frame"},
90 {23, ".uno:BasicShapes.ring"},
91 {24, ".uno:SymbolShapes.sinusoid"}
94 mpSymbolShapes = decltype(mpSymbolShapes){
95 {0, ".uno:SymbolShapes.smiley"},
96 {1, ".uno:SymbolShapes.sun"},
97 {2, ".uno:SymbolShapes.moon"},
98 {3, ".uno:SymbolShapes.lightning"},
99 {4, ".uno:SymbolShapes.heart"},
100 {5, ".uno:SymbolShapes.flower"},
101 {6, ".uno:SymbolShapes.cloud"},
102 {7, ".uno:SymbolShapes.forbidden"},
103 {8, ".uno:SymbolShapes.puzzle"},
104 {9, ".uno:SymbolShapes.bracket-pair"},
105 {10, ".uno:SymbolShapes.left-bracket"},
106 {11, ".uno:SymbolShapes.right-bracket"},
107 {12, ".uno:SymbolShapes.brace-pair"},
108 {13, ".uno:SymbolShapes.left-brace"},
109 {14, ".uno:SymbolShapes.right-brace"},
110 {15, ".uno:SymbolShapes.quad-bevel"},
111 {16, ".uno:SymbolShapes.octagon-bevel"},
112 {17, ".uno:SymbolShapes.diamond-bevel"}
115 mpBlockArrowShapes = decltype(mpBlockArrowShapes){
116 {0, ".uno:ArrowShapes.left-arrow"},
117 {1, ".uno:ArrowShapes.right-arrow"},
118 {2, ".uno:ArrowShapes.up-arrow"},
119 {3, ".uno:ArrowShapes.down-arrow"},
120 {4, ".uno:ArrowShapes.left-right-arrow"},
121 {5, ".uno:ArrowShapes.up-down-arrow"},
122 {6, ".uno:ArrowShapes.up-right-arrow"},
123 {7, ".uno:ArrowShapes.up-right-down-arrow"},
124 {8, ".uno:ArrowShapes.quad-arrow"},
125 {9, ".uno:ArrowShapes.corner-right-arrow"},
126 {10, ".uno:ArrowShapes.split-arrow"},
127 {11, ".uno:ArrowShapes.striped-right-arrow"},
128 {12, ".uno:ArrowShapes.notched-right-arrow"},
129 {13, ".uno:ArrowShapes.pentagon-right"},
130 {14, ".uno:ArrowShapes.chevron"},
131 {15, ".uno:ArrowShapes.right-arrow-callout"},
132 {16, ".uno:ArrowShapes.left-arrow-callout"},
133 {17, ".uno:ArrowShapes.up-arrow-callout"},
134 {18, ".uno:ArrowShapes.left-right-arrow-callout"},
135 {19, ".uno:ArrowShapes.up-down-arrow-callout"},
136 {20, ".uno:ArrowShapes.up-right-arrow-callout"},
137 {21, ".uno:ArrowShapes.quad-arrow-callout"},
138 {22, ".uno:ArrowShapes.circular-arrow"},
139 {23, ".uno:ArrowShapes.down-arrow-callout"},
140 {24, ".uno:ArrowShapes.split-round-arrow"},
141 {25, ".uno:ArrowShapes.s-sharped-arrow"}
144 mpFlowchartShapes = decltype(mpFlowchartShapes){
145 {0, ".uno:FlowChartShapes.flowchart-process"},
146 {1, ".uno:FlowChartShapes.flowchart-alternate-process"},
147 {2, ".uno:FlowChartShapes.flowchart-decision"},
148 {3, ".uno:FlowChartShapes.flowchart-data"},
149 {4, ".uno:FlowChartShapes.flowchart-predefined-process"},
150 {5, ".uno:FlowChartShapes.flowchart-internal-storage"},
151 {6, ".uno:FlowChartShapes.flowchart-document"},
152 {7, ".uno:FlowChartShapes.flowchart-multidocument"},
153 {8, ".uno:FlowChartShapes.flowchart-terminator"},
154 {9, ".uno:FlowChartShapes.flowchart-preparation"},
155 {10, ".uno:FlowChartShapes.flowchart-manual-input"},
156 {11, ".uno:FlowChartShapes.flowchart-manual-operation"},
157 {12, ".uno:FlowChartShapes.flowchart-connector"},
158 {13, ".uno:FlowChartShapes.flowchart-off-page-connector"},
159 {14, ".uno:FlowChartShapes.flowchart-card"},
160 {15, ".uno:FlowChartShapes.flowchart-punched-tape"},
161 {16, ".uno:FlowChartShapes.flowchart-summing-junction"},
162 {17, ".uno:FlowChartShapes.flowchart-or"},
163 {18, ".uno:FlowChartShapes.flowchart-collate"},
164 {19, ".uno:FlowChartShapes.flowchart-sort"},
165 {20, ".uno:FlowChartShapes.flowchart-extract"},
166 {21, ".uno:FlowChartShapes.flowchart-merge"},
167 {22, ".uno:FlowChartShapes.flowchart-stored-data"},
168 {23, ".uno:FlowChartShapes.flowchart-delay"},
169 {24, ".uno:FlowChartShapes.flowchart-sequential-access"},
170 {25, ".uno:FlowChartShapes.flowchart-magnetic-disk"},
171 {26, ".uno:FlowChartShapes.flowchart-direct-access-storage"},
172 {27, ".uno:FlowChartShapes.flowchart-display"}
175 mpCalloutShapes = decltype(mpCalloutShapes){
176 {0, ".uno:CalloutShapes.rectangular-callout"},
177 {1, ".uno:CalloutShapes.round-rectangular-callout"},
178 {2, ".uno:CalloutShapes.round-callout"},
179 {3, ".uno:CalloutShapes.cloud-callout"},
180 {4, ".uno:CalloutShapes.line-callout-1"},
181 {5, ".uno:CalloutShapes.line-callout-2"},
182 {6, ".uno:CalloutShapes.line-callout-3"}
185 mpStarShapes = decltype(mpStarShapes){
186 {0, ".uno:StarShapes.star4"},
187 {1, ".uno:StarShapes.star5"},
188 {2, ".uno:StarShapes.star6"},
189 {3, ".uno:StarShapes.star8"},
190 {4, ".uno:StarShapes.star12"},
191 {5, ".uno:StarShapes.star24"},
192 {6, ".uno:StarShapes.bang"},
193 {7, ".uno:StarShapes.vertical-scroll"},
194 {8, ".uno:StarShapes.horizontal-scroll"},
195 {9, ".uno:StarShapes.signet"},
196 {10, ".uno:StarShapes.doorplate"},
197 {11, ".uno:StarShapes.concave-star6"}
200 mp3DShapes = decltype(mp3DShapes){
201 {0, ".uno:Cube"},
202 {1, ".uno:Sphere"},
203 {2, ".uno:Cylinder"},
204 {3, ".uno:Cone"},
205 {4, ".uno:Cyramid"},
206 {5, ".uno:Torus"},
207 {6, ".uno:Shell3D"},
208 {7, ".uno:HalfSphere"}
213 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */