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_shared-relationshipReference.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_shared_relationshipReference > OOXMLFactory_shared_relationshipReference_Mutex;
19 :
20 4 : OOXMLFactory_shared_relationshipReference::OOXMLFactory_shared_relationshipReference()
21 : {
22 : // multi-thread-safe mutex for all platforms
23 :
24 4 : osl::MutexGuard aGuard(OOXMLFactory_shared_relationshipReference_Mutex::get());
25 4 : }
26 :
27 8 : OOXMLFactory_shared_relationshipReference::~OOXMLFactory_shared_relationshipReference()
28 : {
29 8 : }
30 :
31 10 : OOXMLFactory_ns::Pointer_t OOXMLFactory_shared_relationshipReference::m_pInstance;
32 :
33 826 : OOXMLFactory_ns::Pointer_t OOXMLFactory_shared_relationshipReference::getInstance()
34 : {
35 826 : if (m_pInstance.get() == NULL)
36 4 : m_pInstance.reset(new OOXMLFactory_shared_relationshipReference());
37 :
38 826 : return m_pInstance;
39 : }
40 :
41 0 : AttributeToResourceMapPointer OOXMLFactory_shared_relationshipReference::createAttributeToResourceMap(Id nId)
42 : {
43 0 : AttributeToResourceMapPointer pMap(new AttributeToResourceMap());
44 :
45 0 : switch (nId)
46 : {
47 : case NN_shared_relationshipReference|DEFINE_id:
48 : // id
49 0 : (*pMap)[OOXML_id] = AttributeInfo(RT_String, 0);
50 0 : break;
51 : case NN_shared_relationshipReference|DEFINE_embed:
52 : // embed
53 0 : (*pMap)[OOXML_embed] = AttributeInfo(RT_String, 0);
54 0 : break;
55 : case NN_shared_relationshipReference|DEFINE_link:
56 : // link
57 : // empty resource: OOXML_link
58 0 : break;
59 : case NN_shared_relationshipReference|DEFINE_dm:
60 : // dm
61 : // empty resource: OOXML_dm
62 0 : break;
63 : case NN_shared_relationshipReference|DEFINE_lo:
64 : // lo
65 : // empty resource: OOXML_lo
66 0 : break;
67 : case NN_shared_relationshipReference|DEFINE_qs:
68 : // qs
69 : // empty resource: OOXML_qs
70 0 : break;
71 : case NN_shared_relationshipReference|DEFINE_cs:
72 : // cs
73 : // empty resource: OOXML_cs
74 0 : break;
75 : case NN_shared_relationshipReference|DEFINE_blip:
76 : // blip
77 : // empty resource: OOXML_blip
78 0 : break;
79 : case NN_shared_relationshipReference|DEFINE_pict:
80 : // pict
81 : // empty resource: OOXML_pict
82 0 : break;
83 : case NN_shared_relationshipReference|DEFINE_href:
84 : // href
85 0 : (*pMap)[OOXML_href] = AttributeInfo(RT_String, 0);
86 0 : break;
87 : default:
88 0 : break;
89 : }
90 :
91 0 : return pMap;
92 : }
93 :
94 0 : ListValueMapPointer OOXMLFactory_shared_relationshipReference::createListValueMap(Id nId)
95 : {
96 0 : ListValueMapPointer pMap(new ListValueMap());
97 :
98 : switch (nId)
99 : {
100 : default:
101 0 : break;
102 : }
103 :
104 0 : return pMap;
105 : }
106 6 : CreateElementMapPointer OOXMLFactory_shared_relationshipReference::createCreateElementMap(Id nId)
107 : {
108 6 : CreateElementMapPointer pMap(new CreateElementMap());
109 :
110 : switch (nId)
111 : {
112 : default:
113 6 : break;
114 : }
115 :
116 6 : return pMap;
117 : }
118 :
119 0 : void OOXMLFactory_shared_relationshipReference::charactersAction(OOXMLFastContextHandler*, const OUString &)
120 : {
121 0 : }
122 :
123 0 : string OOXMLFactory_shared_relationshipReference::getDefineName(Id nId) const
124 : {
125 0 : static IdToStringMapPointer pMap;
126 :
127 0 : if (pMap.get() == NULL)
128 : {
129 0 : pMap = IdToStringMapPointer(new IdToStringMap());
130 :
131 :
132 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_ST_RelationshipId] = "ST_RelationshipId";
133 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_id] = "id";
134 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_embed] = "embed";
135 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_link] = "link";
136 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_dm] = "dm";
137 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_lo] = "lo";
138 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_qs] = "qs";
139 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_cs] = "cs";
140 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_blip] = "blip";
141 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_pict] = "pict";
142 0 : (*pMap)[NN_shared_relationshipReference|DEFINE_href] = "href";
143 : }
144 :
145 0 : return (*pMap)[nId];
146 : }
147 :
148 :
149 6 : TokenToIdMapPointer OOXMLFactory_shared_relationshipReference::createTokenToIdMap(Id nId)
150 : {
151 6 : TokenToIdMapPointer pMap(new TokenToIdMap());
152 :
153 : switch (nId)
154 : {
155 : default:
156 6 : break;
157 : }
158 :
159 6 : return pMap;
160 : }
161 :
162 0 : void OOXMLFactory_shared_relationshipReference::attributeAction(OOXMLFastContextHandler *, Token_t, OOXMLValue::Pointer_t)
163 : {
164 0 : }
165 :
166 : #ifdef DEBUG_FACTORY
167 : string OOXMLFactory_shared_relationshipReference::getName() const
168 : {
169 : return "shared-relationshipReference";
170 : }
171 : #endif
172 :
173 : /// @endcond
174 30 : }}
|