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-shape3DLighting.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_shape3DLighting > OOXMLFactory_dml_shape3DLighting_Mutex;
19 : :
20 : 8 : OOXMLFactory_dml_shape3DLighting::OOXMLFactory_dml_shape3DLighting()
21 : : {
22 : : // multi-thread-safe mutex for all platforms
23 : :
24 [ + - ][ + - ]: 8 : osl::MutexGuard aGuard(OOXMLFactory_dml_shape3DLighting_Mutex::get());
[ + - ]
25 : 8 : }
26 : :
27 : 8 : OOXMLFactory_dml_shape3DLighting::~OOXMLFactory_dml_shape3DLighting()
28 : : {
29 [ - + ]: 16 : }
30 : :
31 : 20 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DLighting::m_pInstance;
32 : :
33 : 827 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DLighting::getInstance()
34 : : {
35 [ + + ]: 827 : if (m_pInstance.get() == NULL)
36 [ + - ]: 8 : m_pInstance.reset(new OOXMLFactory_dml_shape3DLighting());
37 : :
38 : 827 : return m_pInstance;
39 : : }
40 : :
41 : 0 : AttributeToResourceMapPointer OOXMLFactory_dml_shape3DLighting::createAttributeToResourceMap(Id nId)
42 : : {
43 [ # # ][ # # ]: 0 : AttributeToResourceMapPointer pMap(new AttributeToResourceMap());
[ # # ]
44 : :
45 [ # # ]: 0 : switch (nId)
46 : : {
47 : : case NN_dml_shape3DLighting|DEFINE_CT_LightRig:
48 : : // CT_LightRig
49 [ # # ][ # # ]: 0 : (*pMap)[OOXML_rig] = AttributeInfo(RT_List, NN_dml_shape3DLighting|DEFINE_ST_LightRigType);
50 [ # # ][ # # ]: 0 : (*pMap)[OOXML_dir] = AttributeInfo(RT_List, NN_dml_shape3DLighting|DEFINE_ST_LightRigDirection);
51 : 0 : break;
52 : : default:
53 : 0 : break;
54 : : }
55 : :
56 : 0 : return pMap;
57 : : }
58 : :
59 : 0 : ListValueMapPointer OOXMLFactory_dml_shape3DLighting::createListValueMap(Id nId)
60 : : {
61 [ # # ][ # # ]: 0 : ListValueMapPointer pMap(new ListValueMap());
[ # # ]
62 : :
63 [ # # # ]: 0 : switch (nId)
64 : : {
65 : : case NN_dml_shape3DLighting|DEFINE_ST_LightRigDirection:
66 [ # # ]: 0 : (*pMap)[OOXMLValueString_tl] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_tl;
67 [ # # ]: 0 : (*pMap)[OOXMLValueString_t] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_t;
68 [ # # ]: 0 : (*pMap)[OOXMLValueString_tr] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_tr;
69 [ # # ]: 0 : (*pMap)[OOXMLValueString_l] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_l;
70 [ # # ]: 0 : (*pMap)[OOXMLValueString_r] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_r;
71 [ # # ]: 0 : (*pMap)[OOXMLValueString_bl] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_bl;
72 [ # # ]: 0 : (*pMap)[OOXMLValueString_b] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_b;
73 [ # # ]: 0 : (*pMap)[OOXMLValueString_br] = NS_ooxml::LN_Value_drawingml_ST_LightRigDirection_br;
74 : 0 : break;
75 : : case NN_dml_shape3DLighting|DEFINE_ST_LightRigType:
76 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyFlat1] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyFlat1;
77 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyFlat2] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyFlat2;
78 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyFlat3] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyFlat3;
79 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyFlat4] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyFlat4;
80 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyNormal1] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyNormal1;
81 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyNormal2] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyNormal2;
82 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyNormal3] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyNormal3;
83 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyNormal4] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyNormal4;
84 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyHarsh1] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyHarsh1;
85 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyHarsh2] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyHarsh2;
86 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyHarsh3] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyHarsh3;
87 [ # # ]: 0 : (*pMap)[OOXMLValueString_legacyHarsh4] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_legacyHarsh4;
88 [ # # ]: 0 : (*pMap)[OOXMLValueString_threePt] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_threePt;
89 [ # # ]: 0 : (*pMap)[OOXMLValueString_balanced] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_balanced;
90 [ # # ]: 0 : (*pMap)[OOXMLValueString_soft] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_soft;
91 [ # # ]: 0 : (*pMap)[OOXMLValueString_harsh] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_harsh;
92 [ # # ]: 0 : (*pMap)[OOXMLValueString_flood] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_flood;
93 [ # # ]: 0 : (*pMap)[OOXMLValueString_contrasting] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_contrasting;
94 [ # # ]: 0 : (*pMap)[OOXMLValueString_morning] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_morning;
95 [ # # ]: 0 : (*pMap)[OOXMLValueString_sunrise] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_sunrise;
96 [ # # ]: 0 : (*pMap)[OOXMLValueString_sunset] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_sunset;
97 [ # # ]: 0 : (*pMap)[OOXMLValueString_chilly] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_chilly;
98 [ # # ]: 0 : (*pMap)[OOXMLValueString_freezing] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_freezing;
99 [ # # ]: 0 : (*pMap)[OOXMLValueString_flat] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_flat;
100 [ # # ]: 0 : (*pMap)[OOXMLValueString_twoPt] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_twoPt;
101 [ # # ]: 0 : (*pMap)[OOXMLValueString_glow] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_glow;
102 [ # # ]: 0 : (*pMap)[OOXMLValueString_brightRoom] = NS_ooxml::LN_Value_drawingml_ST_LightRigType_brightRoom;
103 : 0 : break;
104 : : default:
105 : 0 : break;
106 : : }
107 : :
108 : 0 : return pMap;
109 : : }
110 : 14 : CreateElementMapPointer OOXMLFactory_dml_shape3DLighting::createCreateElementMap(Id nId)
111 : : {
112 [ + - ][ + - ]: 14 : CreateElementMapPointer pMap(new CreateElementMap());
[ + - ]
113 : :
114 : : switch (nId)
115 : : {
116 : : default:
117 : 14 : break;
118 : : }
119 : :
120 : 14 : return pMap;
121 : : }
122 : :
123 : 0 : void OOXMLFactory_dml_shape3DLighting::charactersAction(OOXMLFastContextHandler*, const OUString &)
124 : : {
125 : 0 : }
126 : :
127 : 0 : string OOXMLFactory_dml_shape3DLighting::getDefineName(Id nId) const
128 : : {
129 [ # # ][ # # ]: 0 : static IdToStringMapPointer pMap;
[ # # ][ # # ]
130 : :
131 [ # # ]: 0 : if (pMap.get() == NULL)
132 : : {
133 [ # # ][ # # ]: 0 : pMap = IdToStringMapPointer(new IdToStringMap());
[ # # ][ # # ]
[ # # ]
134 : :
135 : :
136 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DLighting|DEFINE_ST_LightRigDirection] = "ST_LightRigDirection";
137 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DLighting|DEFINE_ST_LightRigType] = "ST_LightRigType";
138 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DLighting|DEFINE_CT_LightRig] = "CT_LightRig";
139 : : }
140 : :
141 : 0 : return (*pMap)[nId];
142 : : }
143 : :
144 : :
145 : 14 : TokenToIdMapPointer OOXMLFactory_dml_shape3DLighting::createTokenToIdMap(Id nId)
146 : : {
147 [ + - ][ + - ]: 14 : TokenToIdMapPointer pMap(new TokenToIdMap());
[ + - ]
148 : :
149 : : switch (nId)
150 : : {
151 : : default:
152 : 14 : break;
153 : : }
154 : :
155 : 14 : return pMap;
156 : : }
157 : :
158 : 0 : void OOXMLFactory_dml_shape3DLighting::attributeAction(OOXMLFastContextHandler *, Token_t, OOXMLValue::Pointer_t)
159 : : {
160 : 0 : }
161 : :
162 : : #ifdef DEBUG_FACTORY
163 : : string OOXMLFactory_dml_shape3DLighting::getName() const
164 : : {
165 : : return "dml-shape3DLighting";
166 : : }
167 : : #endif
168 : :
169 : : /// @endcond
170 [ + - ][ + - ]: 60 : }}
|