1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
11 #include <drawinglayer/primitive3d/Tools.hxx>
12 #include <drawinglayer/primitive3d/drawinglayer_primitivetypes3d.hxx>
16 namespace drawinglayer::primitive3d
18 OUString
idToString(sal_uInt32 nId
)
22 case PRIMITIVE3D_ID_GROUPPRIMITIVE3D
:
23 return "GROUPPRIMITIVE3D";
24 case PRIMITIVE3D_ID_HATCHTEXTUREPRIMITIVE3D
:
25 return "HATCHTEXTUREPRIMITIVE3D";
26 case PRIMITIVE3D_ID_MODIFIEDCOLORPRIMITIVE3D
:
27 return "MODIFIEDCOLORPRIMITIVE3D";
28 case PRIMITIVE3D_ID_POLYGONHAIRLINEPRIMITIVE3D
:
29 return "POLYGONHAIRLINEPRIMITIVE3D";
30 case PRIMITIVE3D_ID_POLYGONSTROKEPRIMITIVE3D
:
31 return "POLYGONSTROKEPRIMITIVE3D";
32 case PRIMITIVE3D_ID_POLYGONTUBEPRIMITIVE3D
:
33 return "POLYGONTUBEPRIMITIVE3D";
34 case PRIMITIVE3D_ID_POLYPOLYGONMATERIALPRIMITIVE3D
:
35 return "POLYPOLYGONMATERIALPRIMITIVE3D";
36 case PRIMITIVE3D_ID_SDRCUBEPRIMITIVE3D
:
37 return "SDRCUBEPRIMITIVE3D";
38 case PRIMITIVE3D_ID_SDREXTRUDEPRIMITIVE3D
:
39 return "SDREXTRUDEPRIMITIVE3D";
40 case PRIMITIVE3D_ID_SDRLATHEPRIMITIVE3D
:
41 return "SDRLATHEPRIMITIVE3D";
42 case PRIMITIVE3D_ID_SDRPOLYPOLYGONPRIMITIVE3D
:
43 return "SDRPOLYPOLYGONPRIMITIVE3D";
44 case PRIMITIVE3D_ID_SDRSPHEREPRIMITIVE3D
:
45 return "SDRSPHEREPRIMITIVE3D";
46 case PRIMITIVE3D_ID_SHADOWPRIMITIVE3D
:
47 return "SHADOWPRIMITIVE3D";
48 case PRIMITIVE3D_ID_UNIFIEDTRANSPARENCETEXTUREPRIMITIVE3D
:
49 return "UNIFIEDTRANSPARENCETEXTUREPRIMITIVE3D";
50 case PRIMITIVE3D_ID_GRADIENTTEXTUREPRIMITIVE3D
:
51 return "GRADIENTTEXTUREPRIMITIVE3D";
52 case PRIMITIVE3D_ID_BITMAPTEXTUREPRIMITIVE3D
:
53 return "BITMAPTEXTUREPRIMITIVE3D";
54 case PRIMITIVE3D_ID_TRANSPARENCETEXTUREPRIMITIVE3D
:
55 return "TRANSPARENCETEXTUREPRIMITIVE3D";
56 case PRIMITIVE3D_ID_TRANSFORMPRIMITIVE3D
:
57 return "TRANSFORMPRIMITIVE3D";
58 case PRIMITIVE3D_ID_HIDDENGEOMETRYPRIMITIVE3D
:
59 return "HIDDENGEOMETRYPRIMITIVE3D";
61 return OUString::number((nId
>> 16) & 0xFF) + "|" + OUString::number(nId
& 0xFF);
65 } // end of namespace drawinglayer::primitive2d
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */