LibreOffice Module svx (master) 1
ShapesUtil.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#include <ShapesUtil.hxx>
21#include <map>
22#include <rtl/ustring.hxx>
23
24namespace svx::sidebar{
26{
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"}
38 };
39
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"}
49 };
50
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"}
64 };
65
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 };
92
94 {0, ".uno:SymbolShapes.smiley"},
95 {1, ".uno:SymbolShapes.sun"},
96 {2, ".uno:SymbolShapes.moon"},
97 {3, ".uno:SymbolShapes.lightning"},
98 {4, ".uno:SymbolShapes.heart"},
99 {5, ".uno:SymbolShapes.flower"},
100 {6, ".uno:SymbolShapes.cloud"},
101 {7, ".uno:SymbolShapes.forbidden"},
102 {8, ".uno:SymbolShapes.puzzle"},
103 {9, ".uno:SymbolShapes.bracket-pair"},
104 {10, ".uno:SymbolShapes.left-bracket"},
105 {11, ".uno:SymbolShapes.right-bracket"},
106 {12, ".uno:SymbolShapes.brace-pair"},
107 {13, ".uno:SymbolShapes.left-brace"},
108 {14, ".uno:SymbolShapes.right-brace"},
109 {15, ".uno:SymbolShapes.quad-bevel"},
110 {16, ".uno:SymbolShapes.octagon-bevel"},
111 {17, ".uno:SymbolShapes.diamond-bevel"}
112 };
113
115 {0, ".uno:ArrowShapes.left-arrow"},
116 {1, ".uno:ArrowShapes.right-arrow"},
117 {2, ".uno:ArrowShapes.up-arrow"},
118 {3, ".uno:ArrowShapes.down-arrow"},
119 {4, ".uno:ArrowShapes.left-right-arrow"},
120 {5, ".uno:ArrowShapes.up-down-arrow"},
121 {6, ".uno:ArrowShapes.up-right-arrow"},
122 {7, ".uno:ArrowShapes.up-right-down-arrow"},
123 {8, ".uno:ArrowShapes.quad-arrow"},
124 {9, ".uno:ArrowShapes.corner-right-arrow"},
125 {10, ".uno:ArrowShapes.split-arrow"},
126 {11, ".uno:ArrowShapes.striped-right-arrow"},
127 {12, ".uno:ArrowShapes.notched-right-arrow"},
128 {13, ".uno:ArrowShapes.pentagon-right"},
129 {14, ".uno:ArrowShapes.chevron"},
130 {15, ".uno:ArrowShapes.right-arrow-callout"},
131 {16, ".uno:ArrowShapes.left-arrow-callout"},
132 {17, ".uno:ArrowShapes.up-arrow-callout"},
133 {18, ".uno:ArrowShapes.left-right-arrow-callout"},
134 {19, ".uno:ArrowShapes.up-down-arrow-callout"},
135 {20, ".uno:ArrowShapes.up-right-arrow-callout"},
136 {21, ".uno:ArrowShapes.quad-arrow-callout"},
137 {22, ".uno:ArrowShapes.circular-arrow"},
138 {23, ".uno:ArrowShapes.down-arrow-callout"},
139 {24, ".uno:ArrowShapes.split-round-arrow"},
140 {25, ".uno:ArrowShapes.s-sharped-arrow"}
141 };
142
144 {0, ".uno:FlowChartShapes.flowchart-process"},
145 {1, ".uno:FlowChartShapes.flowchart-alternate-process"},
146 {2, ".uno:FlowChartShapes.flowchart-decision"},
147 {3, ".uno:FlowChartShapes.flowchart-data"},
148 {4, ".uno:FlowChartShapes.flowchart-predefined-process"},
149 {5, ".uno:FlowChartShapes.flowchart-internal-storage"},
150 {6, ".uno:FlowChartShapes.flowchart-document"},
151 {7, ".uno:FlowChartShapes.flowchart-multidocument"},
152 {8, ".uno:FlowChartShapes.flowchart-terminator"},
153 {9, ".uno:FlowChartShapes.flowchart-preparation"},
154 {10, ".uno:FlowChartShapes.flowchart-manual-input"},
155 {11, ".uno:FlowChartShapes.flowchart-manual-operation"},
156 {12, ".uno:FlowChartShapes.flowchart-connector"},
157 {13, ".uno:FlowChartShapes.flowchart-off-page-connector"},
158 {14, ".uno:FlowChartShapes.flowchart-card"},
159 {15, ".uno:FlowChartShapes.flowchart-punched-tape"},
160 {16, ".uno:FlowChartShapes.flowchart-summing-junction"},
161 {17, ".uno:FlowChartShapes.flowchart-or"},
162 {18, ".uno:FlowChartShapes.flowchart-collate"},
163 {19, ".uno:FlowChartShapes.flowchart-sort"},
164 {20, ".uno:FlowChartShapes.flowchart-extract"},
165 {21, ".uno:FlowChartShapes.flowchart-merge"},
166 {22, ".uno:FlowChartShapes.flowchart-stored-data"},
167 {23, ".uno:FlowChartShapes.flowchart-delay"},
168 {24, ".uno:FlowChartShapes.flowchart-sequential-access"},
169 {25, ".uno:FlowChartShapes.flowchart-magnetic-disk"},
170 {26, ".uno:FlowChartShapes.flowchart-direct-access-storage"},
171 {27, ".uno:FlowChartShapes.flowchart-display"}
172 };
173
175 {0, ".uno:CalloutShapes.rectangular-callout"},
176 {1, ".uno:CalloutShapes.round-rectangular-callout"},
177 {2, ".uno:CalloutShapes.round-callout"},
178 {3, ".uno:CalloutShapes.cloud-callout"},
179 {4, ".uno:CalloutShapes.line-callout-1"},
180 {5, ".uno:CalloutShapes.line-callout-2"},
181 {6, ".uno:CalloutShapes.line-callout-3"}
182 };
183
184 mpStarShapes = decltype(mpStarShapes){
185 {0, ".uno:StarShapes.star4"},
186 {1, ".uno:StarShapes.star5"},
187 {2, ".uno:StarShapes.star6"},
188 {3, ".uno:StarShapes.star8"},
189 {4, ".uno:StarShapes.star12"},
190 {5, ".uno:StarShapes.star24"},
191 {6, ".uno:StarShapes.bang"},
192 {7, ".uno:StarShapes.vertical-scroll"},
193 {8, ".uno:StarShapes.horizontal-scroll"},
194 {9, ".uno:StarShapes.signet"},
195 {10, ".uno:StarShapes.doorplate"},
196 {11, ".uno:StarShapes.concave-star6"}
197 };
198
199 mp3DShapes = decltype(mp3DShapes){
200 {0, ".uno:Cube"},
201 {1, ".uno:Sphere"},
202 {2, ".uno:Cylinder"},
203 {3, ".uno:Cone"},
204 {4, ".uno:Cyramid"},
205 {5, ".uno:Torus"},
206 {6, ".uno:Shell3D"},
207 {7, ".uno:HalfSphere"}
208 };
209}
210}
211
212/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::map< sal_uInt16, OUString > mpSymbolShapes
Definition: ShapesUtil.hxx:31
std::map< sal_uInt16, OUString > mp3DShapes
Definition: ShapesUtil.hxx:33
std::map< sal_uInt16, OUString > mpConnectorShapes
Definition: ShapesUtil.hxx:31
std::map< sal_uInt16, OUString > mpStarShapes
Definition: ShapesUtil.hxx:33
std::map< sal_uInt16, OUString > mpCurveShapes
Definition: ShapesUtil.hxx:30
std::map< sal_uInt16, OUString > mpBasicShapes
Definition: ShapesUtil.hxx:31
std::map< sal_uInt16, OUString > mpLineShapes
Definition: ShapesUtil.hxx:30
std::map< sal_uInt16, OUString > mpCalloutShapes
Definition: ShapesUtil.hxx:33
std::map< sal_uInt16, OUString > mpFlowchartShapes
Definition: ShapesUtil.hxx:32
std::map< sal_uInt16, OUString > mpBlockArrowShapes
Definition: ShapesUtil.hxx:32