Teach symstore more duplicated DLLs
[LibreOffice.git] / drawinglayer / source / dumper / EnhancedShapeDumper.hxx
blob9de2ca3e90973c8bca347602eb8b171da1bc42ef
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
9 #ifndef INCLUDED_DRAWINGLAYER_SOURCE_DUMPER_ENHANCEDSHAPEDUMPER_HXX
10 #define INCLUDED_DRAWINGLAYER_SOURCE_DUMPER_ENHANCEDSHAPEDUMPER_HXX
12 #include <libxml/xmlwriter.h>
14 #include <com/sun/star/beans/XPropertySet.hpp>
15 #include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
16 #include <com/sun/star/drawing/Direction3D.hpp>
17 #include <com/sun/star/drawing/ShadeMode.hpp>
18 #include <com/sun/star/drawing/ProjectionMode.hpp>
19 #include <com/sun/star/drawing/Position3D.hpp>
21 #include <com/sun/star/awt/Rectangle.hpp>
22 #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
23 #include <com/sun/star/beans/PropertyValue.hpp>
24 #include <com/sun/star/beans/PropertyValues.hpp>
25 #include <com/sun/star/drawing/EnhancedCustomShapeParameter.hpp>
27 #include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
28 #include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
29 #include <com/sun/star/awt/Size.hpp>
31 #include <com/sun/star/drawing/EnhancedCustomShapeTextPathMode.hpp>
33 class EnhancedShapeDumper
35 public:
36 explicit EnhancedShapeDumper(xmlTextWriterPtr writer)
37 : xmlWriter(writer)
41 // auxiliary functions
42 void dumpEnhancedCustomShapeParameterPair(
43 const css::drawing::EnhancedCustomShapeParameterPair& aParameterPair);
44 void dumpDirection3D(css::drawing::Direction3D aDirection3D);
45 void dumpPropertyValueAsElement(const css::beans::PropertyValue& aPropertyValue);
46 void
47 dumpEnhancedCustomShapeParameter(const css::drawing::EnhancedCustomShapeParameter& aParameter);
49 // EnhancedCustomShapeExtrusion.idl
50 void dumpEnhancedCustomShapeExtrusionService(const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
51 void dumpExtrusionAsAttribute(bool bExtrusion);
52 void dumpBrightnessAsAttribute(double aBrightness);
53 void dumpDepthAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aDepth);
54 void dumpDiffusionAsAttribute(double aDiffusion);
55 void dumpNumberOfLineSegmentsAsAttribute(sal_Int32 aNumberOfLineSegments);
56 void dumpLightFaceAsAttribute(bool bLightFace);
57 void dumpFirstLightHarshAsAttribute(bool bFirstLightHarsh);
58 void dumpSecondLightHarshAsAttribute(bool bSecondLightHarsh);
59 void dumpFirstLightLevelAsAttribute(double aFirstLightLevel);
60 void dumpSecondLightLevelAsAttribute(double aSecondLightLevel);
61 void dumpFirstLightDirectionAsElement(css::drawing::Direction3D aFirstLightDirection);
62 void dumpSecondLightDirectionAsElement(css::drawing::Direction3D aSecondLightDirection);
63 void dumpMetalAsAttribute(bool bMetal);
64 void dumpShadeModeAsAttribute(css::drawing::ShadeMode eShadeMode);
65 void dumpRotateAngleAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aRotateAngle);
66 void dumpRotationCenterAsElement(css::drawing::Direction3D aRotationCenter);
67 void dumpShininessAsAttribute(double aShininess);
68 void dumpSkewAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aSkew);
69 void dumpSpecularityAsAttribute(double aSpecularity);
70 void dumpProjectionModeAsAttribute(css::drawing::ProjectionMode eProjectionMode);
71 void dumpViewPointAsElement(css::drawing::Position3D aViewPoint);
72 void dumpOriginAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aOrigin);
73 void dumpExtrusionColorAsAttribute(bool bExtrusionColor);
75 // EnhancedCustomShapeGeometry.idl
76 void dumpEnhancedCustomShapeGeometryService(const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
77 void dumpTypeAsAttribute(const OUString& sType);
78 void dumpViewBoxAsElement(css::awt::Rectangle aViewBox);
79 void dumpMirroredXAsAttribute(bool bMirroredX); // also used in EnhancedCustomShapeHandle
80 void dumpMirroredYAsAttribute(bool bMirroredY); // also used in EnhancedCustomShapeHandle
81 void dumpTextRotateAngleAsAttribute(double aTextRotateAngle);
82 void dumpAdjustmentValuesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeAdjustmentValue>& aAdjustmentValues);
83 void dumpExtrusionAsElement(const css::uno::Sequence< css::beans::PropertyValue >& aExtrusion);
84 void dumpPathAsElement(const css::uno::Sequence< css::beans::PropertyValue >& aPath);
85 void dumpTextPathAsElement(const css::uno::Sequence< css::beans::PropertyValue >& aTextPath);
86 void dumpEquationsAsElement(const css::uno::Sequence< OUString >& aEquations);
87 void dumpHandlesAsElement(const css::uno::Sequence< css::beans::PropertyValues >& aHandles);
89 // EnhancedCustomShapeHandle.idl
90 void dumpEnhancedCustomShapeHandleService(const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
91 void dumpSwitchedAsAttribute(bool bSwitched);
92 void dumpPositionAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aPosition);
93 void dumpPolarAsElement(const css::drawing::EnhancedCustomShapeParameterPair& aPolar);
94 void dumpRefXAsAttribute(sal_Int32 aRefX);
95 void dumpRefYAsAttribute(sal_Int32 aRefY);
96 void dumpRefAngleAsAttribute(sal_Int32 aRefAngle);
97 void dumpRefRAsAttribute(sal_Int32 aRefR);
98 void dumpRangeXMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRangeXMinimum);
99 void dumpRangeXMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRangeXMaximum);
100 void dumpRangeYMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRangeYMinimum);
101 void dumpRangeYMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRangeXMaximum);
102 void dumpRadiusRangeMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRadiusRangeMinimum);
103 void dumpRadiusRangeMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter& aRadiusRangeMaximum);
105 // EnhancedCustomShapePath.idl
106 void dumpEnhancedCustomShapePathService(const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
107 void dumpCoordinatesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair >& aCoordinates);
108 void dumpSegmentsAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeSegment >& aSegments);
109 void dumpStretchXAsAttribute(sal_Int32 aStretchX);
110 void dumpStretchYAsAttribute(sal_Int32 aStretchY);
111 void dumpTextFramesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeTextFrame >& aTextFrames);
112 void dumpGluePointsAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair >& aGluePoints);
113 void dumpGluePointLeavingDirectionsAsElement(const css::uno::Sequence< double >& aGluePointLeavingDirections);
114 void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType);
115 void dumpExtrusionAllowedAsAttribute(bool bExtrusionAllowed);
116 void dumpConcentricGradientFillAllowedAsAttribute(bool bConcentricGradientFillAllowed);
117 void dumpTextPathAllowedAsAttribute(bool bTextPathAllowed);
118 void dumpSubViewSizeAsElement(const css::uno::Sequence< css::awt::Size >& aSubViewSize);
120 // EnhancedCustomShapePath.idl
121 void dumpEnhancedCustomShapeTextPathService(const css::uno::Reference< css::beans::XPropertySet >& xPropSet);
122 void dumpTextPathAsAttribute(bool bTextPath);
123 void dumpTextPathModeAsAttribute(css::drawing::EnhancedCustomShapeTextPathMode eTextPathMode);
124 void dumpScaleXAsAttribute(bool bScaleX);
126 private:
127 xmlTextWriterPtr xmlWriter;
129 #endif
131 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */