1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24//item String XFillAttrSetItem; SfxSetItem! 25struct XFillBitmap 26{ 27 String Name MID_NAME; 28 String GraphicsURL MID_GRAFURL; 29// com::sun::star::awt::XBitmap 30}; 31item XFillBitmap XFillBitmapItem; 32 33item INT32 XFillColorItem; // XColorItem 34 35enum SvxGradientStyle 36{ 37 SVX_GRADIENTSTYLE_LINEAR, 38 SVX_GRADIENTSTYLE_AXIAL, 39 SVX_GRADIENTSTYLE_RADIAL, 40 SVX_GRADIENTSTYLE_ELLIPTICAL, 41 SVX_GRADIENTSTYLE_SQUARE, 42 SVX_GRADIENTSTYLE_RECT 43}; 44 45struct XFillGradient 46{ 47 String Name MID_NAME; 48 // com::sun::star::awt::Gradient 49 SvxGradientStyle Style MID_GRADIENT_STYLE; 50 INT32 StartColor MID_GRADIENT_STARTCOLOR; 51 INT32 EndColor MID_GRADIENT_ENDCOLOR; 52 INT16 Angle MID_GRADIENT_ANGLE; 53 INT16 Border MID_GRADIENT_BORDER; 54 INT16 XOffset MID_GRADIENT_XOFFSET; 55 INT16 YOffset MID_GRADIENT_YOFFSET; 56 INT16 StartIntensity MID_GRADIENT_STARTINTENSITY; 57 INT16 EndIntensity MID_GRADIENT_ENDINTENSITY; 58 INT16 StepCount MID_GRADIENT_STEPCOUNT; 59}; 60item XFillGradient XFillGradientItem; 61 62enum SvxHatchStyle 63{ 64 SVX_HATCHSTYLE_SINGLE, 65 SVX_HATCHSTYLE_DOUBLE, 66 SVX_HATCHSTYLE_TRIPLE 67}; 68 69struct XFillHatch 70{ 71 String Name MID_NAME; 72 // com::sun::star::drawing::Hatch 73 SvxHatchStyle Style MID_HATCH_STYLE; 74 INT32 Color MID_HATCH_COLOR; 75 INT32 Distance MID_HATCH_DISTANCE; 76 INT32 Angle MID_HATCH_ANGLE; 77}; 78item XFillHatch XFillHatchItem; 79 80enum SvxFillStyle 81{ 82 SVX_FILLSTYLE_NONE, 83 SVX_FILLSTYLE_SOLID, 84 SVX_FILLSTYLE_GRADIENT, 85 SVX_FILLSTYLE_HATCH, 86 SVX_FILLSTYLE_BITMAP 87}; 88 89item SvxFillStyle XFillStyleItem; 90 91//item String XLineAttrSetItem; SfxSetItem! 92 93item INT32 XLineColorItem; 94 95enum SvxDashStyle 96{ 97 SVX_DASHSTYLE_RECT, 98 SVX_DASHSTYLE_ROUND, 99 SVX_DASHSTYLE_RECTRELATIVE, 100 SVX_DASHSTYLE_ROUNDRELATIVE 101}; 102 103struct XLineDash 104{ 105 String Name MID_NAME; 106 // com::sun::star::drawing::LineDash 107 SvxDashStyle Style MID_LINEDASH_STYLE; 108 INT16 Dots MID_LINEDASH_DOTS; 109 INT32 DotLen MID_LINEDASH_DOTLEN; 110 INT16 Dashes MID_LINEDASH_DASHES; 111 INT32 DashLen MID_LINEDASH_DASHLEN; 112 INT32 Distance MID_LINEDASH_DISTANCE; 113}; 114item XLineDash XLineDashItem; 115 116struct XLineEnd 117{ 118 String Name MID_NAME; 119// com::sun::star::drawing::PolyPolygonBezierCoords 120}; 121item XLineEnd XLineEndItem; 122 123item INT32 XLineEndWidthItem; 124item BOOL XLineEndCenterItem; 125 126struct XLineStart 127{ 128 String Name MID_NAME; 129// com::sun::star::drawing::PolyPolygonBezierCoords 130}; 131item XLineStart XLineStartItem; 132 133item INT32 XLineStartWidthItem; 134item BOOL XLineStartCenterItem; 135 136enum SvxLineStyle 137{ 138 SVX_LINESTYLE_NONE, 139 SVX_LINESTYLE_SOLID, 140 SVX_LINESTYLE_DASH 141}; 142 143item SvxLineStyle XLineStyleItem; 144 145enum SvxLineJoint 146{ 147 // com::sun::star::drawing::LineJoint 148 SVX_LINEJOINT_NONE, // no rounding 149 SVX_LINEJOINT_MIDDLE, // calc middle value between joints 150 SVX_LINEJOINT_BEVEL, // join edges with line 151 SVX_LINEJOINT_MITER, // extend till cut 152 SVX_LINEJOINT_ROUND // create arc 153}; 154 155item SvxLineJoint XLineJointItem; 156 157enum SvxLineCap 158{ 159 // com::sun::star::drawing::LineCap 160 SVX_LINECAP_BUTT, 161 SVX_LINECAP_ROUND, 162 SVX_LINECAP_SQUARE 163}; 164 165item SvxLineCap XLineCapItem; 166 167item INT32 XLineWidthItem; 168item INT32 XFormTextStyleItem; 169item INT32 XFormTextAdjustItem; 170 171item INT32 XFormTextDistanceItem; // SfxInt32Item 172item INT32 XFormTextStartItem; // SfxInt32Item 173item BOOL XFormTextMirrorItem; // SfxBoolItem 174 175item INT32 XFormTextStdFormItem; // SfxEnumItem 176item BOOL XFormTextHideFormItem; // SfxBoolItem 177item BOOL XFormTextOutlineItem; // SfxBoolItem 178item INT32 XFormTextShadowItem; // SfxEnumItem 179item INT32 XFormTextShadowColorItem; // XColorItem 180item INT32 XFormTextShadowXValItem; // SfxMetricItem/SfxInt32Item 181item INT32 XFormTextShadowYValItem; // SfxMetricItem/SfxInt32Item 182 183item XFillGradient XFillFloatTransparenceItem; // XFillGradient 184 185struct AffineMatrix2D 186{ 187// com::sun::star::geometry::AffineMatrix2D 188// found no way to define doubles in *.sdi, so commenting out for now 189 190 float m00 MID_AFFINEMATRIX2D_M00; 191 float m01 MID_AFFINEMATRIX2D_M01; 192 float m02 MID_AFFINEMATRIX2D_M02; 193 float m10 MID_AFFINEMATRIX2D_M10; 194 float m11 MID_AFFINEMATRIX2D_M11; 195 float m12 MID_AFFINEMATRIX2D_M12; 196}; 197item AffineMatrix2D AffineMatrixItem; 198 199// eof 200