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-shape3DScene.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_shape3DScene > OOXMLFactory_dml_shape3DScene_Mutex;
19 : :
20 : 8 : OOXMLFactory_dml_shape3DScene::OOXMLFactory_dml_shape3DScene()
21 : : {
22 : : // multi-thread-safe mutex for all platforms
23 : :
24 [ + - ][ + - ]: 8 : osl::MutexGuard aGuard(OOXMLFactory_dml_shape3DScene_Mutex::get());
[ + - ]
25 : 8 : }
26 : :
27 : 8 : OOXMLFactory_dml_shape3DScene::~OOXMLFactory_dml_shape3DScene()
28 : : {
29 [ - + ]: 16 : }
30 : :
31 : 20 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DScene::m_pInstance;
32 : :
33 : 827 : OOXMLFactory_ns::Pointer_t OOXMLFactory_dml_shape3DScene::getInstance()
34 : : {
35 [ + + ]: 827 : if (m_pInstance.get() == NULL)
36 [ + - ]: 8 : m_pInstance.reset(new OOXMLFactory_dml_shape3DScene());
37 : :
38 : 827 : return m_pInstance;
39 : : }
40 : :
41 : 0 : AttributeToResourceMapPointer OOXMLFactory_dml_shape3DScene::createAttributeToResourceMap(Id nId)
42 : : {
43 [ # # ][ # # ]: 0 : AttributeToResourceMapPointer pMap(new AttributeToResourceMap());
[ # # ]
44 : :
45 : : switch (nId)
46 : : {
47 : : default:
48 : 0 : break;
49 : : }
50 : :
51 : 0 : return pMap;
52 : : }
53 : :
54 : 0 : ListValueMapPointer OOXMLFactory_dml_shape3DScene::createListValueMap(Id nId)
55 : : {
56 [ # # ][ # # ]: 0 : ListValueMapPointer pMap(new ListValueMap());
[ # # ]
57 : :
58 : : switch (nId)
59 : : {
60 : : default:
61 : 0 : break;
62 : : }
63 : :
64 : 0 : return pMap;
65 : : }
66 : 14 : CreateElementMapPointer OOXMLFactory_dml_shape3DScene::createCreateElementMap(Id nId)
67 : : {
68 [ + - ][ + - ]: 14 : CreateElementMapPointer pMap(new CreateElementMap());
[ + - ]
69 : :
70 : : switch (nId)
71 : : {
72 : : default:
73 : 14 : break;
74 : : }
75 : :
76 : 14 : return pMap;
77 : : }
78 : :
79 : 0 : void OOXMLFactory_dml_shape3DScene::charactersAction(OOXMLFastContextHandler*, const OUString &)
80 : : {
81 : 0 : }
82 : :
83 : 0 : string OOXMLFactory_dml_shape3DScene::getDefineName(Id nId) const
84 : : {
85 [ # # ][ # # ]: 0 : static IdToStringMapPointer pMap;
[ # # ][ # # ]
86 : :
87 [ # # ]: 0 : if (pMap.get() == NULL)
88 : : {
89 [ # # ][ # # ]: 0 : pMap = IdToStringMapPointer(new IdToStringMap());
[ # # ][ # # ]
[ # # ]
90 : :
91 : :
92 [ # # ][ # # ]: 0 : (*pMap)[NN_dml_shape3DScene|DEFINE_CT_Scene3D] = "CT_Scene3D";
93 : : }
94 : :
95 : 0 : return (*pMap)[nId];
96 : : }
97 : :
98 : :
99 : 14 : TokenToIdMapPointer OOXMLFactory_dml_shape3DScene::createTokenToIdMap(Id nId)
100 : : {
101 [ + - ][ + - ]: 14 : TokenToIdMapPointer pMap(new TokenToIdMap());
[ + - ]
102 : :
103 : : switch (nId)
104 : : {
105 : : default:
106 : 14 : break;
107 : : }
108 : :
109 : 14 : return pMap;
110 : : }
111 : :
112 : 0 : void OOXMLFactory_dml_shape3DScene::attributeAction(OOXMLFastContextHandler *, Token_t, OOXMLValue::Pointer_t)
113 : : {
114 : 0 : }
115 : :
116 : : #ifdef DEBUG_FACTORY
117 : : string OOXMLFactory_dml_shape3DScene::getName() const
118 : : {
119 : : return "dml-shape3DScene";
120 : : }
121 : : #endif
122 : :
123 : : /// @endcond
124 [ + - ][ + - ]: 60 : }}
|