Branch data Line data Source code
1 : :
2 : : #include "doctok/sprmids.hxx"
3 : : #include "doctok/resourceids.hxx"
4 : : #include "ooxml/resourceids.hxx"
5 : : #include "OOXMLFactory_values.hxx"
6 : : #include "OOXMLFactory_dml-shape3DCamera.hxx"
7 : : #include "ooxml/OOXMLFastHelper.hxx"
8 : :
9 : : #ifdef _MSC_VER
10 : : #pragma warning(disable:4065) // switch statement contains 'default' but no 'case' labels
11 : : #endif
12 : :
13 : : namespace writerfilter {
14 : : namespace ooxml {
15 : :
16 : : /// @cond GENERATED
17 : :
18 : : typedef rtl::Static < osl::Mutex, OOXMLFactory_dml_shape3DCamera > OOXMLFactory_dml_shape3DCamera_Mutex;
19 : :
20 : 8 : OOXMLFactory_dml_shape3DCamera::OOXMLFactory_dml_shape3DCamera()
21 : : {
22 : : // multi-thread-safe mutex for all platforms
23 : :
24 [ + - ][ + - ]: 8 : osl::MutexGuard aGuard(OOXMLFactory_dml_shape3DCamera_Mutex::get());
[ + - ]
25 : 8 : }
26 : :
27 : 8 : OOXMLFactory_dml_shape3DCamera::~OOXMLFactory_dml_shape3DCamera()
28 : : {
29 [ - + ]: 16 : }
30 : :
31 : 20 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DCamera::m_pInstance;
32 : :
33 : 827 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DCamera::getInstance()
34 : : {
35 [ + + ]: 827 : if (m_pInstance.get() == NULL)
36 [ + - ]: 8 : m_pInstance.reset(new OOXMLFactory_dml_shape3DCamera());
37 : :
38 : 827 : return m_pInstance;
39 : : }
40 : :
41 : 0 : AttributeToResourceMapPointer OOXMLFactory_dml_shape3DCamera::createAttributeToResourceMap(Id nId)
42 : : {
43 [ # # ][ # # ]: 0 : AttributeToResourceMapPointer pMap(new AttributeToResourceMap());
[ # # ]
44 : :
45 [ # # ]: 0 : switch (nId)
46 : : {
47 : : case NN_dml_shape3DCamera|DEFINE_CT_Camera:
48 : : // CT_Camera
49 [ # # ][ # # ]: 0 : (*pMap)[OOXML_prst] = AttributeInfo(RT_List, NN_dml_shape3DCamera|DEFINE_ST_PresetCameraType);
50 : : // empty resource: OOXML_fov
51 : : // empty resource: OOXML_zoom
52 : 0 : break;
53 : : default:
54 : 0 : break;
55 : : }
56 : :
57 : 0 : return pMap;
58 : : }
59 : :
60 : 0 : ListValueMapPointer OOXMLFactory_dml_shape3DCamera::createListValueMap(Id nId)
61 : : {
62 [ # # ][ # # ]: 0 : ListValueMapPointer pMap(new ListValueMap());
[ # # ]
63 : :
64 [ # # ]: 0 : switch (nId)
65 : : {
66 : : case NN_dml_shape3DCamera|DEFINE_ST_PresetCameraType:
67 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueTopLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueTopLeft;
68 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueTop] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueTop;
69 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueTopRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueTopRight;
70 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueLeft;
71 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueFront] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueFront;
72 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueRight;
73 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueBottomLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueBottomLeft;
74 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueBottom] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueBottom;
75 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyObliqueBottomRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyObliqueBottomRight;
76 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveTopLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveTopLeft;
77 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveTop] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveTop;
78 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveTopRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveTopRight;
79 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveLeft;
80 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveFront] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveFront;
81 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveRight;
82 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveBottomLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveBottomLeft;
83 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveBottom] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveBottom;
84 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyPerspectiveBottomRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_legacyPerspectiveBottomRight;
85 [ # # ]: 0 : (*pMap)[OOXMLValueString_orthographicFront] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_orthographicFront;
86 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricTopUp] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricTopUp;
87 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricTopDown] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricTopDown;
88 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricBottomUp] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricBottomUp;
89 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricBottomDown] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricBottomDown;
90 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricLeftUp] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricLeftUp;
91 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricLeftDown] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricLeftDown;
92 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricRightUp] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricRightUp;
93 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricRightDown] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricRightDown;
94 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis1Left] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis1Left;
95 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis1Right] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis1Right;
96 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis1Top] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis1Top;
97 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis2Left] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis2Left;
98 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis2Right] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis2Right;
99 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis2Top] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis2Top;
100 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis3Left] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis3Left;
101 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis3Right] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis3Right;
102 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis3Bottom] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis3Bottom;
103 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis4Left] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis4Left;
104 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis4Right] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis4Right;
105 [ # # ]: 0 : (*pMap)[OOXMLValueString_isometricOffAxis4Bottom] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_isometricOffAxis4Bottom;
106 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueTopLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueTopLeft;
107 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueTop] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueTop;
108 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueTopRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueTopRight;
109 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueLeft;
110 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueRight;
111 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueBottomLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueBottomLeft;
112 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueBottom] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueBottom;
113 [ # # ]: 0 : (*pMap)[OOXMLValueString_obliqueBottomRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_obliqueBottomRight;
114 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveFront] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveFront;
115 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveLeft] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveLeft;
116 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveRight] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveRight;
117 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveAbove] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveAbove;
118 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveBelow] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveBelow;
119 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveAboveLeftFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveAboveLeftFacing;
120 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveAboveRightFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveAboveRightFacing;
121 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveContrastingLeftFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveContrastingLeftFacing;
122 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveContrastingRightFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveContrastingRightFacing;
123 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveHeroicLeftFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveHeroicLeftFacing;
124 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveHeroicRightFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveHeroicRightFacing;
125 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveHeroicExtremeLeftFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveHeroicExtremeLeftFacing;
126 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveHeroicExtremeRightFacing] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveHeroicExtremeRightFacing;
127 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveRelaxed] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveRelaxed;
128 [ # # ]: 0 : (*pMap)[OOXMLValueString_perspectiveRelaxedModerately] = NS_ooxml::LN_Value_drawingml_ST_PresetCameraType_perspectiveRelaxedModerately;
129 : 0 : break;
130 : : default:
131 : 0 : break;
132 : : }
133 : :
134 : 0 : return pMap;
135 : : }
136 : 14 : CreateElementMapPointer OOXMLFactory_dml_shape3DCamera::createCreateElementMap(Id nId)
137 : : {
138 [ + - ][ + - ]: 14 : CreateElementMapPointer pMap(new CreateElementMap());
[ + - ]
139 : :
140 : : switch (nId)
141 : : {
142 : : default:
143 : 14 : break;
144 : : }
145 : :
146 : 14 : return pMap;
147 : : }
148 : :
149 : 0 : void OOXMLFactory_dml_shape3DCamera::charactersAction(OOXMLFastContextHandler*, const OUString &)
150 : : {
151 : 0 : }
152 : :
153 : 0 : string OOXMLFactory_dml_shape3DCamera::getDefineName(Id nId) const
154 : : {
155 [ # # ][ # # ]: 0 : static IdToStringMapPointer pMap;
[ # # ][ # # ]
156 : :
157 [ # # ]: 0 : if (pMap.get() == NULL)
158 : : {
159 [ # # ][ # # ]: 0 : pMap = IdToStringMapPointer(new IdToStringMap());
[ # # ][ # # ]
[ # # ]
160 : :
161 : :
162 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DCamera|DEFINE_ST_PresetCameraType] = "ST_PresetCameraType";
163 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DCamera|DEFINE_ST_FOVAngle] = "ST_FOVAngle";
164 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DCamera|DEFINE_CT_Camera] = "CT_Camera";
165 : : }
166 : :
167 : 0 : return (*pMap)[nId];
168 : : }
169 : :
170 : :
171 : 14 : TokenToIdMapPointer OOXMLFactory_dml_shape3DCamera::createTokenToIdMap(Id nId)
172 : : {
173 [ + - ][ + - ]: 14 : TokenToIdMapPointer pMap(new TokenToIdMap());
[ + - ]
174 : :
175 : : switch (nId)
176 : : {
177 : : default:
178 : 14 : break;
179 : : }
180 : :
181 : 14 : return pMap;
182 : : }
183 : :
184 : 0 : void OOXMLFactory_dml_shape3DCamera::attributeAction(OOXMLFastContextHandler *, Token_t, OOXMLValue::Pointer_t)
185 : : {
186 : 0 : }
187 : :
188 : : #ifdef DEBUG_FACTORY
189 : : string OOXMLFactory_dml_shape3DCamera::getName() const
190 : : {
191 : : return "dml-shape3DCamera";
192 : : }
193 : : #endif
194 : :
195 : : /// @endcond
196 [ + - ][ + - ]: 60 : }}
|