Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / include / svx / msdffdef.hxx
blob924ac986b2721a04dabead2867132bb4e454f0c8
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVX_MSDFFDEF_HXX
21 #define INCLUDED_SVX_MSDFFDEF_HXX
23 #include <sal/types.h>
24 #include <svx/svxdllapi.h>
25 #include <tools/stream.hxx>
27 #define DFF_COMMON_RECORD_HEADER_SIZE 8
29 const sal_uInt32 nMaxLegalDffRecordLength = \
30 SAL_MAX_UINT32 - DFF_COMMON_RECORD_HEADER_SIZE;
32 #define DFF_PSFLAG_CONTAINER 0x0F // If the version field of a record
33 // header takes on this value, the
34 // record header marks the start of
35 // a container.
37 #define DFF_PST_Unknown 0
38 #define DFF_PST_SubContainerCompleted 1
39 #define DFF_PST_IRRAtom 2
40 #define DFF_PST_PSS 3
41 #define DFF_PST_SubContainerException 4
42 #define DFF_PST_ClientSignal1 6
43 #define DFF_PST_ClientSignal2 7
44 #define DFF_PST_PowerPointStateInfoAtom 10
45 #define DFF_PST_Document 1000
46 #define DFF_PST_DocumentAtom 1001
47 #define DFF_PST_EndDocument 1002
48 #define DFF_PST_SlidePersist 1003
49 #define DFF_PST_SlideBase 1004
50 #define DFF_PST_SlideBaseAtom 1005
51 #define DFF_PST_Slide 1006
52 #define DFF_PST_SlideAtom 1007
53 #define DFF_PST_Notes 1008
54 #define DFF_PST_NotesAtom 1009
55 #define DFF_PST_Environment 1010
56 #define DFF_PST_SlidePersistAtom 1011
57 #define DFF_PST_Scheme 1012
58 #define DFF_PST_SchemeAtom 1013
59 #define DFF_PST_DocViewInfo 1014
60 #define DFF_PST_SslideLayoutAtom 1015
61 #define DFF_PST_MainMaster 1016
62 #define DFF_PST_SSSlideInfoAtom 1017
63 #define DFF_PST_SlideViewInfo 1018
64 #define DFF_PST_GuideAtom 1019
65 #define DFF_PST_ViewInfo 1020
66 #define DFF_PST_ViewInfoAtom 1021
67 #define DFF_PST_SlideViewInfoAtom 1022
68 #define DFF_PST_VBAInfo 1023
69 #define DFF_PST_VBAInfoAtom 1024
70 #define DFF_PST_SSDocInfoAtom 1025
71 #define DFF_PST_Summary 1026
72 #define DFF_PST_Texture 1027
73 #define DFF_PST_VBASlideInfo 1028
74 #define DFF_PST_VBASlideInfoAtom 1029
75 #define DFF_PST_DocRoutingSlip 1030
76 #define DFF_PST_OutlineViewInfo 1031
77 #define DFF_PST_SorterViewInfo 1032
78 #define DFF_PST_ExObjList 1033
79 #define DFF_PST_ExObjListAtom 1034
80 #define DFF_PST_PPDrawingGroup 1035
81 #define DFF_PST_PPDrawing 1036
82 #define DFF_PST_NamedShows 1040
83 #define DFF_PST_NamedShow 1041
84 #define DFF_PST_NamedShowSlides 1042
85 #define DFF_PST_List 2000
86 #define DFF_PST_FontCollection 2005
87 #define DFF_PST_ListPlaceholder 2017
88 #define DFF_PST_BookmarkCollection 2019
89 #define DFF_PST_SoundCollection 2020
90 #define DFF_PST_SoundCollAtom 2021
91 #define DFF_PST_Sound 2022
92 #define DFF_PST_SoundData 2023
93 #define DFF_PST_BookmarkSeedAtom 2025
94 #define DFF_PST_GuideList 2026
95 #define DFF_PST_RunArray 2028
96 #define DFF_PST_RunArrayAtom 2029
97 #define DFF_PST_ArrayElementAtom 2030
98 #define DFF_PST_Int4ArrayAtom 2031
99 #define DFF_PST_ColorSchemeAtom 2032
100 #define DFF_PST_OEShape 3008
101 #define DFF_PST_ExObjRefAtom 3009
102 #define DFF_PST_OEPlaceholderAtom 3011
103 #define DFF_PST_GrColor 3020
104 #define DFF_PST_GrectAtom 3025
105 #define DFF_PST_GratioAtom 3031
106 #define DFF_PST_Gscaling 3032
107 #define DFF_PST_GpointAtom 3034
108 #define DFF_PST_OEShapeAtom 3035
109 #define DFF_PST_OutlineTextRefAtom 3998
110 #define DFF_PST_TextHeaderAtom 3999
111 #define DFF_PST_TextCharsAtom 4000
112 #define DFF_PST_StyleTextPropAtom 4001
113 #define DFF_PST_BaseTextPropAtom 4002
114 #define DFF_PST_TxMasterStyleAtom 4003
115 #define DFF_PST_TxCFStyleAtom 4004
116 #define DFF_PST_TxPFStyleAtom 4005
117 #define DFF_PST_TextRulerAtom 4006
118 #define DFF_PST_TextBookmarkAtom 4007
119 #define DFF_PST_TextBytesAtom 4008
120 #define DFF_PST_TxSIStyleAtom 4009
121 #define DFF_PST_TextSpecInfoAtom 4010
122 #define DFF_PST_DefaultRulerAtom 4011
123 #define DFF_PST_FontEntityAtom 4023
124 #define DFF_PST_FontEmbedData 4024
125 #define DFF_PST_TypeFace 4025
126 #define DFF_PST_CString 4026
127 #define DFF_PST_ExternalObject 4027
128 #define DFF_PST_MetaFile 4033
129 #define DFF_PST_ExOleObj 4034
130 #define DFF_PST_ExOleObjAtom 4035
131 #define DFF_PST_ExPlainLinkAtom 4036
132 #define DFF_PST_CorePict 4037
133 #define DFF_PST_CorePictAtom 4038
134 #define DFF_PST_ExPlainAtom 4039
135 #define DFF_PST_SrKinsoku 4040
136 #define DFF_PST_Handout 4041
137 #define DFF_PST_ExEmbed 4044
138 #define DFF_PST_ExEmbedAtom 4045
139 #define DFF_PST_ExLink 4046
140 #define DFF_PST_ExLinkAtom_old 4047
141 #define DFF_PST_BookmarkEntityAtom 4048
142 #define DFF_PST_ExLinkAtom 4049
143 #define DFF_PST_SrKinsokuAtom 4050
144 #define DFF_PST_ExHyperlinkAtom 4051
145 #define DFF_PST_ExPlain 4053
146 #define DFF_PST_ExPlainLink 4054
147 #define DFF_PST_ExHyperlink 4055
148 #define DFF_PST_SlideNumberMCAtom 4056
149 #define DFF_PST_HeadersFooters 4057
150 #define DFF_PST_HeadersFootersAtom 4058
151 #define DFF_PST_RecolorEntryAtom 4062
152 #define DFF_PST_TxInteractiveInfoAtom 4063
153 #define DFF_PST_EmFormatAtom 4065
154 #define DFF_PST_CharFormatAtom 4066
155 #define DFF_PST_ParaFormatAtom 4067
156 #define DFF_PST_MasterText 4068
157 #define DFF_PST_RecolorInfoAtom 4071
158 #define DFF_PST_ExQuickTime 4073
159 #define DFF_PST_ExQuickTimeMovie 4074
160 #define DFF_PST_ExQuickTimeMovieData 4075
161 #define DFF_PST_ExSubscription 4076
162 #define DFF_PST_ExSubscriptionSection 4077
163 #define DFF_PST_ExControl 4078
164 #define DFF_PST_ExControlAtom 4091
165 #define DFF_PST_SlideListWithText 4080
166 #define DFF_PST_AnimationInfoAtom 4081
167 #define DFF_PST_InteractiveInfo 4082
168 #define DFF_PST_InteractiveInfoAtom 4083
169 #define DFF_PST_SlideList 4084
170 #define DFF_PST_UserEditAtom 4085
171 #define DFF_PST_CurrentUserAtom 4086
172 #define DFF_PST_DateTimeMCAtom 4087
173 #define DFF_PST_GenericDateMCAtom 4088
174 #define DFF_PST_HeaderMCAtom 4089
175 #define DFF_PST_FooterMCAtom 4090
176 #define DFF_PST_ExMediaAtom 4100
177 #define DFF_PST_ExVideo 4101
178 #define DFF_PST_ExAviMovie 4102
179 #define DFF_PST_ExMCIMovie 4103
180 #define DFF_PST_ExMIDIAudio 4109
181 #define DFF_PST_ExCDAudio 4110
182 #define DFF_PST_ExWAVAudioEmbedded 4111
183 #define DFF_PST_ExWAVAudioLink 4112
184 #define DFF_PST_ExOleObjStg 4113
185 #define DFF_PST_ExCDAudioAtom 4114
186 #define DFF_PST_ExWAVAudioEmbeddedAtom 4115
187 #define DFF_PST_AnimationInfo 4116
188 #define DFF_PST_RTFDateTimeMCAtom 4117
189 #define DFF_PST_ProgTags 5000
190 #define DFF_PST_ProgStringTag 5001
191 #define DFF_PST_ProgBinaryTag 5002
192 #define DFF_PST_BinaryTagData 5003
193 #define DFF_PST_PrintOptions 6000
194 #define DFF_PST_PersistPtrFullBlock 6001
195 #define DFF_PST_PersistPtrIncrementalBlock 6002
196 #define DFF_PST_RulerIndentAtom 10000
197 #define DFF_PST_GscalingAtom 10001
198 #define DFF_PST_GrColorAtom 10002
199 #define DFF_PST_GLPointAtom 10003
200 #define DFF_PST_GlineAtom 10004
202 // Record Name FBT-Value Instance Contents Wrd Exl Ppt Ver
204 #define DFF_msofbtDggContainer 0xF000 // per-document data X X X
205 #define DFF_msofbtDgg 0xF006 // an FDGG and several FIDCLs X X X 0
206 #define DFF_msofbtCLSID 0xF016 // the CLSID of the application that put the data on the clipboard C C C 0
207 #define DFF_msofbtOPT 0xF00B // count of properties the document-wide default shape properties X X X 3
208 #define DFF_msofbtColorMRU 0xF11A // count of colors the colors in the MRU swatch X X X 0
209 #define DFF_msofbtSplitMenuColors 0xF11E // count of colors the colors in the top-level split menus X X X 0
210 #define DFF_msofbtBstoreContainer 0xF001 // count of BLIPs all images in the document (JPEGs, metafiles, etc.) X X X
211 #define DFF_msofbtBSE 0xF007 // BLIP type an FBSE (one per BLIP) X X X 2
212 #define DFF_msofbtBlipFirst 0xF018 // range of fbts reserved for various kinds of BLIPs X X X
213 #define DFF_msofbtBlipLast 0xF117 // range of fbts reserved for various kinds of BLIPs X X X
215 #define DFF_msofbtDgContainer 0xF002 // per-sheet/page/slide data X X X
216 #define DFF_msofbtDg 0xF008 // drawing ID an FDG X X X 0
217 #define DFF_msofbtRegroupItems 0xF118 // count of regroup entries several FRITs X X X 0
218 #define DFF_msofbtColorScheme 0xF120 // count of colors the colors of the source host's color scheme C C 0
219 #define DFF_msofbtSpgrContainer 0xF003 // several SpContainers, the first of which is the group shape itself X X X
220 #define DFF_msofbtSpContainer 0xF004 // a shape X X X
221 #define DFF_msofbtSpgr 0xF009 // an FSPGR; only present if the shape is a group shape X X X 1
222 #define DFF_msofbtSp 0xF00A // shape type an FSP X X X 2
223 #define DFF_msofbtTextbox 0xF00C // RTF text C C C 0
224 #define DFF_msofbtClientTextbox 0xF00D // host-defined the text in the textbox, in host-defined format X X X
225 #define DFF_msofbtAnchor 0xF00E // a RECT, in 100000ths of an inch C C C 0
226 #define DFF_msofbtChildAnchor 0xF00F // a RECT, in units relative to the parent group X X X 0
227 #define DFF_msofbtClientAnchor 0xF010 // host-defined the location of the shape, in a host-defined format X X X
228 #define DFF_msofbtClientData 0xF011 // host-defined host-specific data X X X
229 #define DFF_msofbtOleObject 0xF11F // a serialized IStorage for an OLE object C C C 0
230 #define DFF_msofbtDeletedPspl 0xF11D // an FPSPL; only present in top-level deleted shapes X 0
231 #define DFF_msofbtUDefProp 0xF122 // range of fbts reserved for various kinds of BLIPs X X X
232 #define DFF_msofbtSolverContainer 0xF005 // count of rules the rules governing shapes X X X
233 #define DFF_msofbtConnectorRule 0xF012 // an FConnectorRule X X 1
234 #define DFF_msofbtAlignRule 0xF013 // an FAlignRule X X X 0
235 #define DFF_msofbtArcRule 0xF014 // an FARCRU X X X 0
236 #define DFF_msofbtClientRule 0xF015 // host-defined host-defined
237 #define DFF_msofbtCalloutRule 0xF017 // an FCORU X X X 0
239 #define DFF_msofbtSelection 0xF119 // an FDGSL followed by the SPIDs of the shapes in the selection X 0
241 // Values for the ULONG in DFF_PST_TextHeaderAtom
242 enum DFF_TextHeader {
243 DFFTH_TITLE,
244 DFFTH_BODY,
245 DFFTH_NOTES,
246 DFFTH_NOTUSED,
247 DFFTH_OTHER, // Text in a Shape
248 DFFTH_CENTERBODY, // Subtitle in Title-Slide
249 DFFTH_CENTERTITLE, // Title in Title-Slide
250 DFFTH_HALFBODY, // Body in two-column slide
251 DFFTH_QUARTERBODY // Body in four-body slide
255 // Shape Properties
256 // 1pt = 12700 EMU (English Metric Units)
257 // 1pt = 20 Twip = 20/1440" = 1/72"
258 // 1twip=635 EMU
259 // 1" = 12700*72 = 914400 EMU
260 // 1" = 25.4mm
261 // 1mm = 36000 EMU
262 // Transform
263 #define DFF_Prop_Rotation 4 // Fixed Point 16.16 degrees
264 // Protection
265 #define DFF_Prop_LockRotation 119 // sal_Bool No rotation
266 #define DFF_Prop_LockAspectRatio 120 // sal_Bool Don't allow changes in aspect ratio
267 #define DFF_Prop_LockPosition 121 // sal_Bool Don't allow the shape to be moved
268 #define DFF_Prop_LockAgainstSelect 122 // sal_Bool Shape may not be selected
269 #define DFF_Prop_LockCropping 123 // sal_Bool No cropping this shape
270 #define DFF_Prop_LockVertices 124 // sal_Bool Edit Points not allowed
271 #define DFF_Prop_LockText 125 // sal_Bool Do not edit text
272 #define DFF_Prop_LockAdjustHandles 126 // sal_Bool Do not adjust
273 #define DFF_Prop_LockAgainstGrouping 127 // sal_Bool Do not group this shape
274 // Text
275 #define DFF_Prop_lTxid 128 // LONG id for the text, value determined by the host
276 #define DFF_Prop_dxTextLeft 129 // LONG margins relative to shape's inscribed text rectangle (in EMUs)
277 #define DFF_Prop_dyTextTop 130 // LONG
278 #define DFF_Prop_dxTextRight 131 // LONG
279 #define DFF_Prop_dyTextBottom 132 // LONG
280 #define DFF_Prop_WrapText 133 // MSO_WRAPMODE Wrap text at shape margins
281 #define DFF_Prop_scaleText 134 // LONG Text zoom/scale (used if fFitTextToShape)
282 #define DFF_Prop_anchorText 135 // MSO_ANCHOR How to anchor the text
283 #define DFF_Prop_txflTextFlow 136 // MSO_TXFL Text flow
284 #define DFF_Prop_cdirFont 137 // MSO_CDIR Font rotation
285 #define DFF_Prop_hspNext 138 // MSO_HSP ID of the next shape (used by Word for linked textboxes)
286 #define DFF_Prop_txdir 139 // MSO_TXDIR Bi-Di Text direction
287 #define DFF_Prop_SelectText 187 // sal_Bool sal_True if single click selects text, sal_False if two clicks
288 #define DFF_Prop_AutoTextMargin 188 // sal_Bool use host's margin calculations
289 #define DFF_Prop_RotateText 189 // sal_Bool Rotate text with shape
290 #define DFF_Prop_FitShapeToText 190 // sal_Bool Size shape to fit text size
291 #define DFF_Prop_FitTextToShape 191 // sal_Bool Size text to fit shape size
292 // GeoText
293 #define DFF_Prop_gtextUNICODE 192 // WCHAR* UNICODE text string
294 #define DFF_Prop_gtextRTF 193 // char* RTF text string
295 #define DFF_Prop_gtextAlign 194 // MSO_GEOTEXTALIGN alignment on curve
296 #define DFF_Prop_gtextSize 195 // LONG default point size
297 #define DFF_Prop_gtextSpacing 196 // LONG fixed point 16.16
298 #define DFF_Prop_gtextFont 197 // WCHAR* font family name
299 #define DFF_Prop_gtextFReverseRows 240 // sal_Bool 8000 Reverse row order
300 #define DFF_Prop_fGtext 241 // sal_Bool 4000 Has text effect
301 #define DFF_Prop_gtextFVertical 242 // sal_Bool 2000 Rotate characters
302 #define DFF_Prop_gtextFKern 243 // sal_Bool 1000 Kern characters
303 #define DFF_Prop_gtextFTight 244 // sal_Bool 800 Tightening or tracking
304 #define DFF_Prop_gtextFStretch 245 // sal_Bool 400 Stretch to fit shape
305 #define DFF_Prop_gtextFShrinkFit 246 // sal_Bool 200 Char bounding box
306 #define DFF_Prop_gtextFBestFit 247 // sal_Bool 100 Scale text-on-path
307 #define DFF_Prop_gtextFNormalize 248 // sal_Bool 80 Stretch char height
308 #define DFF_Prop_gtextFDxMeasure 249 // sal_Bool 40 Do not measure along path
309 #define DFF_Prop_gtextFBold 250 // sal_Bool 20 Bold font
310 #define DFF_Prop_gtextFItalic 251 // sal_Bool 10 Italic font
311 #define DFF_Prop_gtextFUnderline 252 // sal_Bool 8 Underline font
312 #define DFF_Prop_gtextFShadow 253 // sal_Bool 4 Shadow font
313 #define DFF_Prop_gtextFSmallcaps 254 // sal_Bool 2 Small caps font
314 #define DFF_Prop_gtextFStrikethrough 255 // sal_Bool 1 Strike through font
315 // Blip
316 #define DFF_Prop_cropFromTop 256 // LONG 16.16 fraction times total image width or height, as appropriate.
317 #define DFF_Prop_cropFromBottom 257 // LONG
318 #define DFF_Prop_cropFromLeft 258 // LONG
319 #define DFF_Prop_cropFromRight 259 // LONG
320 #define DFF_Prop_pib 260 // IMsoBlip* Blip to display
321 #define DFF_Prop_pibName 261 // WCHAR* Blip file name
322 #define DFF_Prop_pibFlags 262 // MSO_BLIPFLAGS Blip flags
323 #define DFF_Prop_pictureTransparent 263 // LONG transparent color (none if ~0UL)
324 #define DFF_Prop_pictureContrast 264 // LONG contrast setting
325 #define DFF_Prop_pictureBrightness 265 // LONG brightness setting
326 #define DFF_Prop_pictureGamma 266 // LONG 16.16 gamma
327 #define DFF_Prop_pictureId 267 // LONG Host-defined ID for OLE objects (usually a pointer)
328 #define DFF_Prop_pictureDblCrMod 268 // MSO_CLR Modification used if shape has double shadow
329 #define DFF_Prop_pictureFillCrMod 269 // MSO_CLR
330 #define DFF_Prop_pictureLineCrMod 270 // MSO_CLR
331 #define DFF_Prop_pibPrint 271 // IMsoBlip* Blip to display when printing
332 #define DFF_Prop_pibPrintName 272 // WCHAR* Blip file name
333 #define DFF_Prop_pibPrintFlags 273 // MSO_BLIPFLAGS Blip flags
334 #define DFF_Prop_fNoHitTestPicture 316 // sal_Bool Do not hit test the picture
335 #define DFF_Prop_pictureGray 317 // sal_Bool grayscale display
336 #define DFF_Prop_pictureBiLevel 318 // sal_Bool bi-level display
337 #define DFF_Prop_pictureActive 319 // sal_Bool Server is active (OLE objects only)
338 // Geometry
339 #define DFF_Prop_geoLeft 320 // LONG Defines the G (geometry) coordinate space.
340 #define DFF_Prop_geoTop 321 // LONG
341 #define DFF_Prop_geoRight 322 // LONG
342 #define DFF_Prop_geoBottom 323 // LONG
343 #define DFF_Prop_shapePath 324 // MSO_SHAPEPATH
344 #define DFF_Prop_pVertices 325 // IMsoArray An array of points, in G units.
345 #define DFF_Prop_pSegmentInfo 326 // IMsoArray
346 #define DFF_Prop_adjustValue 327 // LONG Adjustment values corresponding to the positions of the
347 #define DFF_Prop_adjust2Value 328 // LONG adjust handles of the shape. The number of values used
348 #define DFF_Prop_adjust3Value 329 // LONG and their allowable ranges vary from shape type to shape type.
349 #define DFF_Prop_adjust4Value 330 // LONG
350 #define DFF_Prop_adjust5Value 331 // LONG
351 #define DFF_Prop_adjust6Value 332 // LONG
352 #define DFF_Prop_adjust7Value 333 // LONG
353 #define DFF_Prop_adjust8Value 334 // LONG
354 #define DFF_Prop_adjust9Value 335 // LONG
355 #define DFF_Prop_adjust10Value 336 // LONG
356 #define DFF_Prop_connectorPoints 337 // IMsoArray
357 #define DFF_Prop_stretchPointX 339 // LONG
358 #define DFF_Prop_stretchPointY 340 // LONG
359 #define DFF_Prop_Handles 341 // H*
360 #define DFF_Prop_pFormulas 342 // LONG
361 #define DFF_Prop_textRectangles 343 // LONG
362 #define DFF_Prop_connectorType 344 // LONG ->0=none, 1=segments, 2=custom, 3=rect
363 #define DFF_Prop_fShadowOK 378 // sal_Bool Shadow may be set
364 #define DFF_Prop_f3DOK 379 // sal_Bool 3D may be set
365 #define DFF_Prop_fLineOK 380 // sal_Bool Line style may be set
366 #define DFF_Prop_fGtextOK 381 // sal_Bool Text effect (FontWork) supported
367 #define DFF_Prop_fFillShadeShapeOK 382 // BOOL
368 #define DFF_Prop_fFillOK 383 // sal_Bool OK to fill the shape through the UI or VBA?
369 // FillStyle
370 #define DFF_Prop_fillType 384 // MSO_FILLTYPE Type of fill
371 #define DFF_Prop_fillColor 385 // MSO_CLR Foreground color
372 #define DFF_Prop_fillOpacity 386 // LONG Fixed 16.16
373 #define DFF_Prop_fillBackColor 387 // MSO_CLR Background color
374 #define DFF_Prop_fillBackOpacity 388 // LONG Shades only
375 #define DFF_Prop_fillCrMod 389 // MSO_CLR Modification for BW views
376 #define DFF_Prop_fillBlip 390 // IMsoBlip* Pattern/texture
377 #define DFF_Prop_fillBlipName 391 // WCHAR* Blip file name
378 #define DFF_Prop_fillBlipFlags 392 // MSO_BLIPFLAGS Blip flags
379 #define DFF_Prop_fillWidth 393 // LONG How big (A units) to make a metafile texture.
380 #define DFF_Prop_fillHeight 394 // LONG
381 #define DFF_Prop_fillAngle 395 // LONG Fade angle - degrees in 16.16
382 #define DFF_Prop_fillFocus 396 // LONG Linear shaded fill focus percent
383 #define DFF_Prop_fillToLeft 397 // LONG Fraction 16.16
384 #define DFF_Prop_fillToTop 398 // LONG Fraction 16.16
385 #define DFF_Prop_fillToRight 399 // LONG Fraction 16.16
386 #define DFF_Prop_fillToBottom 400 // LONG Fraction 16.16
387 #define DFF_Prop_fillRectLeft 401 // LONG For shaded fills, use the specified rectangle instead of the shape's bounding rect to define how large the fade is going to be.
388 #define DFF_Prop_fillRectTop 402 // LONG
389 #define DFF_Prop_fillRectRight 403 // LONG
390 #define DFF_Prop_fillRectBottom 404 // LONG
391 #define DFF_Prop_fillDztype 405 // MSO_DZTYPE
392 #define DFF_Prop_fillShadePreset 406 // LONG Special shades
393 #define DFF_Prop_fillShadeColors 407 // IMsoArray a preset array of colors
394 #define DFF_Prop_fillOriginX 408 // LONG
395 #define DFF_Prop_fillOriginY 409 // LONG
396 #define DFF_Prop_fillShapeOriginX 410 // LONG
397 #define DFF_Prop_fillShapeOriginY 411 // LONG
398 #define DFF_Prop_fillShadeType 412 // MSO_SHADETYPE Type of shading, if a shaded (gradient) fill.
399 #define DFF_Prop_fFilled 443 // sal_Bool Is shape filled?
400 #define DFF_Prop_fHitTestFill 444 // sal_Bool Should we hit test fill?
401 #define DFF_Prop_fillShape 445 // sal_Bool Register pattern on shape
402 #define DFF_Prop_fillUseRect 446 // sal_Bool Use the large rect?
403 #define DFF_Prop_fNoFillHitTest 447 // sal_Bool Hit test a shape as though filled
404 // LineStyle
405 #define DFF_Prop_lineColor 448 // MSO_CLR Color of line
406 #define DFF_Prop_lineOpacity 449 // LONG Not implemented
407 #define DFF_Prop_lineBackColor 450 // MSO_CLR Background color
408 #define DFF_Prop_lineCrMod 451 // MSO_CLR Modification for BW views
409 #define DFF_Prop_lineType 452 // MSO_LINETYPE Type of line
410 #define DFF_Prop_lineFillBlip 453 // IMsoBlip* Pattern/texture
411 #define DFF_Prop_lineFillBlipName 454 // WCHAR* Blip file name
412 #define DFF_Prop_lineFillBlipFlags 455 // MSO_BLIPFLAGS Blip flags
413 #define DFF_Prop_lineFillWidth 456 // LONG How big (A units) to make a metafile texture.
414 #define DFF_Prop_lineFillHeight 457 // LONG
415 #define DFF_Prop_lineFillDztype 458 // MSO_DZTYPE How to interpret fillWidth/Height numbers.
416 #define DFF_Prop_lineWidth 459 // LONG A units; 1pt == 12700 EMUs
417 #define DFF_Prop_lineMiterLimit 460 // LONG ratio (16.16) of width
418 #define DFF_Prop_lineStyle 461 // MSO_LINESTYLE Draw parallel lines?
419 #define DFF_Prop_lineDashing 462 // MSO_LINEDASHING Can be overridden by:
420 #define DFF_Prop_lineDashStyle 463 // IMsoArray As Win32 ExtCreatePen
421 #define DFF_Prop_lineStartArrowhead 464 // MSO_LINEEND Arrow at start
422 #define DFF_Prop_lineEndArrowhead 465 // MSO_LINEEND Arrow at end
423 #define DFF_Prop_lineStartArrowWidth 466 // MSO_LINEENDWIDTH Arrow at start
424 #define DFF_Prop_lineStartArrowLength 467 // MSO_LINEENDLENGTH Arrow at end
425 #define DFF_Prop_lineEndArrowWidth 468 // MSO_LINEENDWIDTH Arrow at start
426 #define DFF_Prop_lineEndArrowLength 469 // MSO_LINEENDLENGTH Arrow at end
427 #define DFF_Prop_lineJoinStyle 470 // MSO_LINEJOIN How to join lines
428 #define DFF_Prop_lineEndCapStyle 471 // MSO_LINECAP How to end lines
429 #define DFF_Prop_fArrowheadsOK 507 // sal_Bool Allow arrowheads if prop. is set
430 #define DFF_Prop_fLine 508 // sal_Bool Any line?
431 #define DFF_Prop_fHitTestLine 509 // sal_Bool Should we hit test lines?
432 #define DFF_Prop_lineFillShape 510 // sal_Bool Register pattern on shape
433 #define DFF_Prop_fNoLineDrawDash 511 // sal_Bool Draw a dashed line if no line
434 // ShadowStyle
435 #define DFF_Prop_shadowType 512 // MSO_SHADOWTYPE Type of effect
436 #define DFF_Prop_shadowColor 513 // MSO_CLR Foreground color
437 #define DFF_Prop_shadowHighlight 514 // MSO_CLR Embossed color
438 #define DFF_Prop_shadowCrMod 515 // MSO_CLR Modification for BW views
439 #define DFF_Prop_shadowOpacity 516 // LONG Fixed 16.16
440 #define DFF_Prop_shadowOffsetX 517 // LONG Offset shadow
441 #define DFF_Prop_shadowOffsetY 518 // LONG Offset shadow
442 #define DFF_Prop_shadowSecondOffsetX 519 // LONG Double offset shadow
443 #define DFF_Prop_shadowSecondOffsetY 520 // LONG Double offset shadow
444 #define DFF_Prop_shadowScaleXToX 521 // LONG 16.16
445 #define DFF_Prop_shadowScaleYToX 522 // LONG 16.16
446 #define DFF_Prop_shadowScaleXToY 523 // LONG 16.16
447 #define DFF_Prop_shadowScaleYToY 524 // LONG 16.16
448 #define DFF_Prop_shadowPerspectiveX 525 // LONG 16.16 / weight
449 #define DFF_Prop_shadowPerspectiveY 526 // LONG 16.16 / weight
450 #define DFF_Prop_shadowWeight 527 // LONG scaling factor
451 #define DFF_Prop_shadowOriginX 528 // LONG
452 #define DFF_Prop_shadowOriginY 529 // LONG
453 #define DFF_Prop_fShadow 574 // sal_Bool Any shadow?
454 #define DFF_Prop_fshadowObscured 575 // sal_Bool Excel5-style shadow
455 // PerspectiveStyle
456 #define DFF_Prop_perspectiveType 576 // MSO_XFORMTYPE Where transform applies
457 #define DFF_Prop_perspectiveOffsetX 577 // LONG The LONG values define a transformation matrix, effectively, each value is scaled by the perspectiveWeight parameter.
458 #define DFF_Prop_perspectiveOffsetY 578 // LONG
459 #define DFF_Prop_perspectiveScaleXToX 579 // LONG
460 #define DFF_Prop_perspectiveScaleYToX 580 // LONG
461 #define DFF_Prop_perspectiveScaleXToY 581 // LONG
462 #define DFF_Prop_perspectiveScaleYToY 582 // LONG
463 #define DFF_Prop_perspectivePerspectiveX 583 // LONG
464 #define DFF_Prop_perspectivePerspectiveY 584 // LONG
465 #define DFF_Prop_perspectiveWeight 585 // LONG Scaling factor
466 #define DFF_Prop_perspectiveOriginX 586 // LONG
467 #define DFF_Prop_perspectiveOriginY 587 // LONG
468 #define DFF_Prop_fPerspective 639 // sal_Bool On/off
469 // 3D Object
470 #define DFF_Prop_c3DSpecularAmt 640 // LONG Fixed-point 16.16
471 #define DFF_Prop_c3DDiffuseAmt 641 // LONG Fixed-point 16.16
472 #define DFF_Prop_c3DShininess 642 // LONG Default gives OK results
473 #define DFF_Prop_c3DEdgeThickness 643 // LONG Specular edge thickness
474 #define DFF_Prop_c3DExtrudeForward 644 // LONG Distance of extrusion in EMUs
475 #define DFF_Prop_c3DExtrudeBackward 645 // LONG
476 #define DFF_Prop_c3DExtrudePlane 646 // LONG Extrusion direction
477 #define DFF_Prop_c3DExtrusionColor 647 // MSO_CLR Basic color of extruded part of shape; the lighting model used will determine the exact shades used when rendering.
478 #define DFF_Prop_c3DCrMod 648 // MSO_CLR Modification for BW views
479 #define DFF_Prop_f3D 700 // sal_Bool Does this shape have a 3D effect?
480 #define DFF_Prop_fc3DMetallic 701 // sal_Bool Use metallic specularity?
481 #define DFF_Prop_fc3DUseExtrusionColor 702 // BOOL
482 #define DFF_Prop_fc3DLightFace 703 // BOOL
483 // 3D Style
484 #define DFF_Prop_c3DYRotationAngle 704 // LONG degrees (16.16) about y axis
485 #define DFF_Prop_c3DXRotationAngle 705 // LONG degrees (16.16) about x axis
486 #define DFF_Prop_c3DRotationAxisX 706 // LONG These specify the rotation axis; only their relative magnitudes matter.
487 #define DFF_Prop_c3DRotationAxisY 707 // LONG
488 #define DFF_Prop_c3DRotationAxisZ 708 // LONG
489 #define DFF_Prop_c3DRotationAngle 709 // LONG degrees (16.16) about axis
490 #define DFF_Prop_c3DRotationCenterX 710 // LONG rotation center x (16.16 or g-units)
491 #define DFF_Prop_c3DRotationCenterY 711 // LONG rotation center y (16.16 or g-units)
492 #define DFF_Prop_c3DRotationCenterZ 712 // LONG rotation center z (absolute (emus))
493 #define DFF_Prop_c3DRenderMode 713 // MSO_3DRENDERMODE Full,wireframe, or bcube
494 #define DFF_Prop_c3DTolerance 714 // LONG pixels (16.16)
495 #define DFF_Prop_c3DXViewpoint 715 // LONG X view point (emus)
496 #define DFF_Prop_c3DYViewpoint 716 // LONG Y view point (emus)
497 #define DFF_Prop_c3DZViewpoint 717 // LONG Z view distance (emus)
498 #define DFF_Prop_c3DOriginX 718 // LONG
499 #define DFF_Prop_c3DOriginY 719 // LONG
500 #define DFF_Prop_c3DSkewAngle 720 // LONG degree (16.16) skew angle
501 #define DFF_Prop_c3DSkewAmount 721 // LONG Percentage skew amount
502 #define DFF_Prop_c3DAmbientIntensity 722 // LONG Fixed point intensity
503 #define DFF_Prop_c3DKeyX 723 // LONG Key light source direc-
504 #define DFF_Prop_c3DKeyY 724 // LONG tion; only their relative
505 #define DFF_Prop_c3DKeyZ 725 // LONG magnitudes matter
506 #define DFF_Prop_c3DKeyIntensity 726 // LONG Fixed point intensity
507 #define DFF_Prop_c3DFillX 727 // LONG Fill light source direc-
508 #define DFF_Prop_c3DFillY 728 // LONG tion; only their relative
509 #define DFF_Prop_c3DFillZ 729 // LONG magnitudes matter
510 #define DFF_Prop_c3DFillIntensity 730 // LONG Fixed point intensity
511 #define DFF_Prop_fc3DConstrainRotation 763 // BOOL
512 #define DFF_Prop_fc3DRotationCenterAuto 764 // BOOL
513 #define DFF_Prop_fc3DParallel 765 // sal_Bool Parallel projection?
514 #define DFF_Prop_fc3DKeyHarsh 766 // sal_Bool Is key lighting harsh?
515 #define DFF_Prop_fc3DFillHarsh 767 // sal_Bool Is fill lighting harsh?
516 // Shape
517 #define DFF_Prop_hspMaster 769 // MSO_HSP master shape
518 #define DFF_Prop_cxstyle 771 // MSO_CXSTYLE Type of connector
519 #define DFF_Prop_bWMode 772 // MSO_BWMODE Settings for modifications to be made when in different forms of black-and-white mode.
520 #define DFF_Prop_bWModePureBW 773 // MSO_BWMODE
521 #define DFF_Prop_bWModeBW 774 // MSO_BWMODE
522 #define DFF_Prop_fOleIcon 826 // sal_Bool For OLE objects, whether the object is in icon form
523 #define DFF_Prop_fPreferRelativeResize 827 // sal_Bool For UI only. Prefer relative resizing.
524 #define DFF_Prop_fLockShapeType 828 // sal_Bool Lock the shape type (don't allow Change Shape)
525 #define DFF_Prop_fDeleteAttachedObject 830 // BOOL
526 #define DFF_Prop_fBackground 831 // sal_Bool If sal_True, this is the background shape.
528 // Callout
529 #define DFF_Prop_spcot 832 // MSO_SPCOT Callout type
530 #define DFF_Prop_dxyCalloutGap 833 // LONG Distance from box to first point.(EMUs)
531 #define DFF_Prop_spcoa 834 // MSO_SPCOA Callout angle
532 #define DFF_Prop_spcod 835 // MSO_SPCOD Callout drop type
533 #define DFF_Prop_dxyCalloutDropSpecified 836 // LONG if mso_spcodSpecified, the actual drop distance
534 #define DFF_Prop_dxyCalloutLengthSpecified 837 // LONG if fCalloutLengthSpecified, the actual distance
535 #define DFF_Prop_fCallout 889 // sal_Bool Is the shape a callout?
536 #define DFF_Prop_fCalloutAccentBar 890 // sal_Bool does callout have accent bar
537 #define DFF_Prop_fCalloutTextBorder 891 // sal_Bool does callout have a text border
538 #define DFF_Prop_fCalloutMinusX 892 // BOOL
539 #define DFF_Prop_fCalloutMinusY 893 // BOOL
540 #define DFF_Prop_fCalloutDropAuto 894 // sal_Bool If true, then we occasionally invert the drop distance
541 #define DFF_Prop_fCalloutLengthSpecified 895 // sal_Bool if true, we look at dxyCalloutLengthSpecified
543 // GroupShape
544 #define DFF_Prop_wzName 896 // WCHAR* Shape Name (present only if explicitly set)
545 #define DFF_Prop_wzDescription 897 // WCHAR* alternate text
546 #define DFF_Prop_pihlShape 898 // IHlink* The hyperlink in the shape.
547 #define DFF_Prop_pWrapPolygonVertices 899 // IMsoArray The polygon that text will be wrapped around (Word)
548 #define DFF_Prop_dxWrapDistLeft 900 // LONG Left wrapping distance from text (Word)
549 #define DFF_Prop_dyWrapDistTop 901 // LONG Top wrapping distance from text (Word)
550 #define DFF_Prop_dxWrapDistRight 902 // LONG Right wrapping distance from text (Word)
551 #define DFF_Prop_dyWrapDistBottom 903 // LONG Bottom wrapping distance from text (Word)
552 #define DFF_Prop_lidRegroup 904 // LONG Regroup ID
553 #define DFF_Prop_tableProperties 927 // LONG
554 #define DFF_Prop_tableRowProperties 928 // LONG*
555 #define DFF_Prop_fEditedWrap 953 // sal_Bool Has the wrap polygon been edited?
556 #define DFF_Prop_fBehindDocument 954 // sal_Bool Word-only (shape is behind text)
557 #define DFF_Prop_fOnDblClickNotify 955 // sal_Bool Notify client on a double click
558 #define DFF_Prop_fIsButton 956 // sal_Bool A button shape (i.e., clicking performs an action). Set for shapes with attached hyperlinks or macros.
559 #define DFF_Prop_fOneD 957 // sal_Bool 1D adjustment
560 #define DFF_Prop_fHidden 958 // sal_Bool Do not display
561 #define DFF_Prop_fPrint 959 // sal_Bool Print this shape
562 // entsprechende BitFlags
563 #define DFF_PBit_EditedWrap 0x00000040
564 #define DFF_PBit_BehindDocument 0x00000020
565 #define DFF_PBit_OnDblClickNotify 0x00000010
566 #define DFF_PBit_IsButton 0x00000008
567 #define DFF_PBit_OneD 0x00000004
568 #define DFF_PBit_Hidden 0x00000002
569 #define DFF_PBit_Print 0x00000001
571 // properties of the second property set
572 #define DFF_Prop_metroBlob 937 // XML ZipPackage*
574 // linchpin: the shape type
575 typedef enum
577 mso_sptMin = 0,
578 mso_sptNotPrimitive = mso_sptMin,
579 mso_sptRectangle = 1,
580 mso_sptRoundRectangle = 2,
581 mso_sptEllipse = 3,
582 mso_sptDiamond = 4,
583 mso_sptIsocelesTriangle = 5,
584 mso_sptRightTriangle = 6,
585 mso_sptParallelogram = 7,
586 mso_sptTrapezoid = 8,
587 mso_sptHexagon = 9,
588 mso_sptOctagon = 10,
589 mso_sptPlus = 11,
590 mso_sptStar = 12,
591 mso_sptArrow = 13,
592 mso_sptThickArrow = 14,
593 mso_sptHomePlate = 15,
594 mso_sptCube = 16,
595 mso_sptBalloon = 17,
596 mso_sptSeal = 18,
597 mso_sptArc = 19,
598 mso_sptLine = 20,
599 mso_sptPlaque = 21,
600 mso_sptCan = 22,
601 mso_sptDonut = 23,
602 mso_sptTextSimple = 24,
603 mso_sptTextOctagon = 25,
604 mso_sptTextHexagon = 26,
605 mso_sptTextCurve = 27,
606 mso_sptTextWave = 28,
607 mso_sptTextRing = 29,
608 mso_sptTextOnCurve = 30,
609 mso_sptTextOnRing = 31,
610 mso_sptStraightConnector1 = 32,
611 mso_sptBentConnector2 = 33,
612 mso_sptBentConnector3 = 34,
613 mso_sptBentConnector4 = 35,
614 mso_sptBentConnector5 = 36,
615 mso_sptCurvedConnector2 = 37,
616 mso_sptCurvedConnector3 = 38,
617 mso_sptCurvedConnector4 = 39,
618 mso_sptCurvedConnector5 = 40,
619 mso_sptCallout1 = 41,
620 mso_sptCallout2 = 42,
621 mso_sptCallout3 = 43,
622 mso_sptAccentCallout1 = 44,
623 mso_sptAccentCallout2 = 45,
624 mso_sptAccentCallout3 = 46,
625 mso_sptBorderCallout1 = 47,
626 mso_sptBorderCallout2 = 48,
627 mso_sptBorderCallout3 = 49,
628 mso_sptAccentBorderCallout1 = 50,
629 mso_sptAccentBorderCallout2 = 51,
630 mso_sptAccentBorderCallout3 = 52,
631 mso_sptRibbon = 53,
632 mso_sptRibbon2 = 54,
633 mso_sptChevron = 55,
634 mso_sptPentagon = 56,
635 mso_sptNoSmoking = 57,
636 mso_sptSeal8 = 58,
637 mso_sptSeal16 = 59,
638 mso_sptSeal32 = 60,
639 mso_sptWedgeRectCallout = 61,
640 mso_sptWedgeRRectCallout = 62,
641 mso_sptWedgeEllipseCallout = 63,
642 mso_sptWave = 64,
643 mso_sptFoldedCorner = 65,
644 mso_sptLeftArrow = 66,
645 mso_sptDownArrow = 67,
646 mso_sptUpArrow = 68,
647 mso_sptLeftRightArrow = 69,
648 mso_sptUpDownArrow = 70,
649 mso_sptIrregularSeal1 = 71,
650 mso_sptIrregularSeal2 = 72,
651 mso_sptLightningBolt = 73,
652 mso_sptHeart = 74,
653 mso_sptPictureFrame = 75,
654 mso_sptQuadArrow = 76,
655 mso_sptLeftArrowCallout = 77,
656 mso_sptRightArrowCallout = 78,
657 mso_sptUpArrowCallout = 79,
658 mso_sptDownArrowCallout = 80,
659 mso_sptLeftRightArrowCallout = 81,
660 mso_sptUpDownArrowCallout = 82,
661 mso_sptQuadArrowCallout = 83,
662 mso_sptBevel = 84,
663 mso_sptLeftBracket = 85,
664 mso_sptRightBracket = 86,
665 mso_sptLeftBrace = 87,
666 mso_sptRightBrace = 88,
667 mso_sptLeftUpArrow = 89,
668 mso_sptBentUpArrow = 90,
669 mso_sptBentArrow = 91,
670 mso_sptSeal24 = 92,
671 mso_sptStripedRightArrow = 93,
672 mso_sptNotchedRightArrow = 94,
673 mso_sptBlockArc = 95,
674 mso_sptSmileyFace = 96,
675 mso_sptVerticalScroll = 97,
676 mso_sptHorizontalScroll = 98,
677 mso_sptCircularArrow = 99,
678 mso_sptNotchedCircularArrow = 100,
679 mso_sptUturnArrow = 101,
680 mso_sptCurvedRightArrow = 102,
681 mso_sptCurvedLeftArrow = 103,
682 mso_sptCurvedUpArrow = 104,
683 mso_sptCurvedDownArrow = 105,
684 mso_sptCloudCallout = 106,
685 mso_sptEllipseRibbon = 107,
686 mso_sptEllipseRibbon2 = 108,
687 mso_sptFlowChartProcess = 109,
688 mso_sptFlowChartDecision = 110,
689 mso_sptFlowChartInputOutput = 111,
690 mso_sptFlowChartPredefinedProcess = 112,
691 mso_sptFlowChartInternalStorage = 113,
692 mso_sptFlowChartDocument = 114,
693 mso_sptFlowChartMultidocument = 115,
694 mso_sptFlowChartTerminator = 116,
695 mso_sptFlowChartPreparation = 117,
696 mso_sptFlowChartManualInput = 118,
697 mso_sptFlowChartManualOperation = 119,
698 mso_sptFlowChartConnector = 120,
699 mso_sptFlowChartPunchedCard = 121,
700 mso_sptFlowChartPunchedTape = 122,
701 mso_sptFlowChartSummingJunction = 123,
702 mso_sptFlowChartOr = 124,
703 mso_sptFlowChartCollate = 125,
704 mso_sptFlowChartSort = 126,
705 mso_sptFlowChartExtract = 127,
706 mso_sptFlowChartMerge = 128,
707 mso_sptFlowChartOfflineStorage = 129,
708 mso_sptFlowChartOnlineStorage = 130,
709 mso_sptFlowChartMagneticTape = 131,
710 mso_sptFlowChartMagneticDisk = 132,
711 mso_sptFlowChartMagneticDrum = 133,
712 mso_sptFlowChartDisplay = 134,
713 mso_sptFlowChartDelay = 135,
714 mso_sptTextPlainText = 136,
715 mso_sptTextStop = 137,
716 mso_sptTextTriangle = 138,
717 mso_sptTextTriangleInverted = 139,
718 mso_sptTextChevron = 140,
719 mso_sptTextChevronInverted = 141,
720 mso_sptTextRingInside = 142,
721 mso_sptTextRingOutside = 143,
722 mso_sptTextArchUpCurve = 144,
723 mso_sptTextArchDownCurve = 145,
724 mso_sptTextCircleCurve = 146,
725 mso_sptTextButtonCurve = 147,
726 mso_sptTextArchUpPour = 148,
727 mso_sptTextArchDownPour = 149,
728 mso_sptTextCirclePour = 150,
729 mso_sptTextButtonPour = 151,
730 mso_sptTextCurveUp = 152,
731 mso_sptTextCurveDown = 153,
732 mso_sptTextCascadeUp = 154,
733 mso_sptTextCascadeDown = 155,
734 mso_sptTextWave1 = 156,
735 mso_sptTextWave2 = 157,
736 mso_sptTextWave3 = 158,
737 mso_sptTextWave4 = 159,
738 mso_sptTextInflate = 160,
739 mso_sptTextDeflate = 161,
740 mso_sptTextInflateBottom = 162,
741 mso_sptTextDeflateBottom = 163,
742 mso_sptTextInflateTop = 164,
743 mso_sptTextDeflateTop = 165,
744 mso_sptTextDeflateInflate = 166,
745 mso_sptTextDeflateInflateDeflate = 167,
746 mso_sptTextFadeRight = 168,
747 mso_sptTextFadeLeft = 169,
748 mso_sptTextFadeUp = 170,
749 mso_sptTextFadeDown = 171,
750 mso_sptTextSlantUp = 172,
751 mso_sptTextSlantDown = 173,
752 mso_sptTextCanUp = 174,
753 mso_sptTextCanDown = 175,
754 mso_sptFlowChartAlternateProcess = 176,
755 mso_sptFlowChartOffpageConnector = 177,
756 mso_sptCallout90 = 178,
757 mso_sptAccentCallout90 = 179,
758 mso_sptBorderCallout90 = 180,
759 mso_sptAccentBorderCallout90 = 181,
760 mso_sptLeftRightUpArrow = 182,
761 mso_sptSun = 183,
762 mso_sptMoon = 184,
763 mso_sptBracketPair = 185,
764 mso_sptBracePair = 186,
765 mso_sptSeal4 = 187,
766 mso_sptDoubleWave = 188,
767 mso_sptActionButtonBlank = 189,
768 mso_sptActionButtonHome = 190,
769 mso_sptActionButtonHelp = 191,
770 mso_sptActionButtonInformation = 192,
771 mso_sptActionButtonForwardNext = 193,
772 mso_sptActionButtonBackPrevious = 194,
773 mso_sptActionButtonEnd = 195,
774 mso_sptActionButtonBeginning = 196,
775 mso_sptActionButtonReturn = 197,
776 mso_sptActionButtonDocument = 198,
777 mso_sptActionButtonSound = 199,
778 mso_sptActionButtonMovie = 200,
779 mso_sptHostControl = 201,
780 mso_sptTextBox = 202,
781 //for pptx shape which doesn't exist in ppt
782 mso_sptTearDrop = 203,
783 mso_sptMax = 0x0FFF,
784 mso_sptNil = mso_sptMax
785 } MSO_SPT;
787 // different enums from the OfficeDraw documentation, Appendix D - beginning
789 // note: in opposite to the MS documentation, they all
790 // start with "mso_" instead of "mso"
792 enum MSO_ShapePath {
793 mso_shapeLines, // A line of straight segments
794 mso_shapeLinesClosed, // A closed polygonal object
795 mso_shapeCurves, // A line of Bezier curve segments
796 mso_shapeCurvesClosed, // A closed shape with curved edges
797 mso_shapeComplex // pSegmentInfo must be non-empty
800 enum MSO_WrapMode {
801 mso_wrapSquare,
802 mso_wrapByPoints,
803 mso_wrapNone,
804 mso_wrapTopBottom,
805 mso_wrapThrough
808 enum MSO_BWMode {
809 mso_bwColor, // only used for predefined shades
810 mso_bwAutomatic, // depends on object type
811 mso_bwGrayScale, // shades of gray only
812 mso_bwLightGrayScale, // shades of light gray only
813 mso_bwInverseGray, // dark gray mapped to light gray, etc.
814 mso_bwGrayOutline, // pure gray and white
815 mso_bwBlackTextLine, // black text and lines, all else grayscale
816 mso_bwHighContrast, // pure black and white mode (no grays)
817 mso_bwBlack, // solid black
818 mso_bwWhite, // solid white
819 mso_bwDontShow, // object not drawn
820 mso_bwNumModes // number of Black and white modes
823 enum MSO_Anchor {
824 mso_anchorTop,
825 mso_anchorMiddle,
826 mso_anchorBottom,
827 mso_anchorTopCentered,
828 mso_anchorMiddleCentered,
829 mso_anchorBottomCentered,
830 mso_anchorTopBaseline,
831 mso_anchorBottomBaseline,
832 mso_anchorTopCenteredBaseline,
833 mso_anchorBottomCenteredBaseline
836 enum MSO_CDir {
837 mso_cdir0, // Right
838 mso_cdir90, // Down
839 mso_cdir180, // Left
840 mso_cdir270 // Up
843 // connector style
844 enum MSO_ConnectorStyle {
845 mso_cxstyleStraight = 0,
846 mso_cxstyleBent,
847 mso_cxstyleCurved,
848 mso_cxstyleNone
851 // MSO_TXFL -- text flow
852 enum MSO_TextFlow {
853 mso_txflHorzN, // Horizontal non-@
854 mso_txflTtoBA, // Top to Bottom @-font
855 mso_txflBtoT, // Bottom to Top non-@
856 mso_txflTtoBN, // Top to Bottom non-@
857 mso_txflHorzA, // Horizontal @-font
858 mso_txflVertN // Vertical, non-@
861 // MSO_TXDIR - text direction (needed for Bi-Di support)
862 enum MSO_TextDir {
863 mso_txdirLTR, // left-to-right text direction
864 mso_txdirRTL, // right-to-left text direction
865 mso_txdirContext // context text direction
868 // MSO_SPCOT -- Callout Type
869 enum MSO_SPCalloutType {
870 mso_spcotRightAngle = 1,
871 mso_spcotOneSegment = 2,
872 mso_spcotTwoSegment = 3,
873 mso_spcotThreeSegment = 4
876 // MSO_SPCOA -- Callout Angle
877 enum MSO_SPCalloutAngle {
878 mso_spcoaAny,
879 mso_spcoa30,
880 mso_spcoa45,
881 mso_spcoa60,
882 mso_spcoa90,
883 mso_spcoa0
886 // MSO_SPCOD -- Callout Drop
887 enum MSO_SPCalloutDrop {
888 mso_spcodTop,
889 mso_spcodCenter,
890 mso_spcodBottom,
891 mso_spcodSpecified
894 // MSO_GEOTEXTALIGN - FontWork alignment
895 enum MSO_GeoTextAlign {
896 mso_alignTextStretch, /* Stretch each line of text to fit width. */
897 mso_alignTextCenter, /* Center text on width. */
898 mso_alignTextLeft, /* Left justify. */
899 mso_alignTextRight, /* Right justify. */
900 mso_alignTextLetterJust, /* Spread letters out to fit width. */
901 mso_alignTextWordJust, /* Spread words out to fit width. */
902 mso_alignTextInvalid /* Invalid */
905 // MSO_BLIPFLAGS - flags for pictures
906 enum MSO_BlipFlags {
907 mso_blipflagDefault = 0,
908 mso_blipflagComment = 0, // Blip name is a comment
909 mso_blipflagFile, // Blip name is a file name
910 mso_blipflagURL, // Blip name is a full URL
911 mso_blipflagType = 3, // Mask to extract type
912 /* Or the following flags with any of the above. */
913 mso_blipflagDontSave = 4, // A "dont" is the depression in the metal
914 // body work of an automobile caused when a
915 // cyclist violently thrusts his or her nose
916 // at it, thus a DontSave is another name for
917 // a cycle lane.
918 mso_blipflagDoNotSave = 4, // For those who prefer English
919 mso_blipflagLinkToFile = 8
922 enum MSO_3DRenderMode {
923 mso_FullRender, // Generate a full rendering
924 mso_Wireframe, // Generate a wireframe
925 mso_BoundingCube // Generate a bounding cube
928 enum MSO_XFormType {
929 mso_xformAbsolute, // Apply transform in absolute space centered on shape
930 mso_xformShape, // Apply transform to shape geometry
931 mso_xformDrawing // Apply transform in drawing space
934 enum MSO_ShadowType {
935 mso_shadowOffset, // N pixel offset shadow
936 mso_shadowDouble, // Use second offset too
937 mso_shadowRich, // Rich perspective shadow (cast relative to shape)
938 mso_shadowShape, // Rich perspective shadow (cast in shape space)
939 mso_shadowDrawing, // Perspective shadow cast in drawing space
940 mso_shadowEmbossOrEngrave
943 // MSO_DZTYPE - the type of a (length) measurement
944 enum MSO_DZType {
945 mso_dztypeMin = 0,
946 mso_dztypeDefault = 0, // Default size, ignore the values
947 mso_dztypeA = 1, // Values are in EMUs
948 mso_dztypeV = 2, // Values are in pixels
949 mso_dztypeShape = 3, // Values are 16.16 fractions of shape size
950 mso_dztypeFixedAspect = 4, // Aspect ratio is fixed
951 mso_dztypeAFixed = 5, // EMUs, fixed aspect ratio
952 mso_dztypeVFixed = 6, // Pixels, fixed aspect ratio
953 mso_dztypeShapeFixed = 7, // Proportion of shape, fixed aspect ratio
954 mso_dztypeFixedAspectEnlarge
955 = 8, // Aspect ratio is fixed, favor larger size
956 mso_dztypeAFixedBig = 9, // EMUs, fixed aspect ratio
957 mso_dztypeVFixedBig = 10, // Pixels, fixed aspect ratio
958 mso_dztypeShapeFixedBig= 11, // Proportion of shape, fixed aspect ratio
959 mso_dztypeMax = 11
962 enum MSO_FillType {
963 mso_fillSolid, // Fill with a solid color
964 mso_fillPattern, // Fill with a pattern (bitmap)
965 mso_fillTexture, // A texture (pattern with its own color map)
966 mso_fillPicture, // Center a picture in the shape
967 mso_fillShade, // Shade from start to end points
968 mso_fillShadeCenter, // Shade from bounding rectangle to end point
969 mso_fillShadeShape, // Shade from shape outline to end point
970 mso_fillShadeScale, // Similar to mso_fillShade, but the fillAngle
971 // is additionally scaled by the aspect ratio of
972 // the shape. If shape is square, it is the
973 // same as mso_fillShade.
974 mso_fillShadeTitle, // special type - shade to title --- for PP
975 mso_fillBackground // Use the background fill color/pattern
978 // MSO_SHADETYPE - how to interpret the colors in a shaded fill.
979 enum MSO_ShadeType {
980 mso_shadeNone = 0, // Interpolate without correction between RGBs
981 mso_shadeGamma = 1, // Apply gamma correction to colors
982 mso_shadeSigma = 2, // Apply a sigma transfer function to position
983 mso_shadeBand = 4, // Add a flat band at the start of the shade
984 mso_shadeOneColor = 8, // This is a one color shade
986 /* A parameter for the band or sigma function can be stored in the top
987 16 bits of the value - this is a proportion of *each* band of the
988 shade to make flat (or the approximate equal value for a sigma
989 function). NOTE: the parameter is not used for the sigma function,
990 instead a built in value is used. This value should not be changed
991 from the default! */
992 mso_shadeParameterShift = 16,
993 mso_shadeParameterMask = 0xffff0000,
995 mso_shadeDefault = (mso_shadeGamma|mso_shadeSigma|
996 (16384<<mso_shadeParameterShift))
999 // MSOLINESTYLE - compound line style
1000 enum MSO_LineStyle {
1001 mso_lineSimple, // Single line (of width lineWidth)
1002 mso_lineDouble, // Double lines of equal width
1003 mso_lineThickThin, // Double lines, one thick, one thin
1004 mso_lineThinThick, // Double lines, reverse order
1005 mso_lineTriple // Three lines, thin, thick, thin
1008 // MSO_LINETYPE - how to "fill" the line contour
1009 enum MSO_LineType {
1010 mso_lineSolidType, // Fill with a solid color
1011 mso_linePattern, // Fill with a pattern (bitmap)
1012 mso_lineTexture, // A texture (pattern with its own color map)
1013 mso_linePicture // Center a picture in the shape
1016 // MSO_LINEDASHING - dashed line style
1017 enum MSO_LineDashing {
1018 mso_lineSolid, // Solid (continuous) pen
1019 mso_lineDashSys, // PS_DASH system dash style
1020 mso_lineDotSys, // PS_DOT system dash style
1021 mso_lineDashDotSys, // PS_DASHDOT system dash style
1022 mso_lineDashDotDotSys, // PS_DASHDOTDOT system dash style
1023 mso_lineDotGEL, // square dot style
1024 mso_lineDashGEL, // dash style
1025 mso_lineLongDashGEL, // long dash style
1026 mso_lineDashDotGEL, // dash short dash
1027 mso_lineLongDashDotGEL, // long dash short dash
1028 mso_lineLongDashDotDotGEL // long dash short dash short dash
1031 // MSO_LINEEND - line end effect
1032 enum MSO_LineEnd {
1033 mso_lineNoEnd,
1034 mso_lineArrowEnd,
1035 mso_lineArrowStealthEnd,
1036 mso_lineArrowDiamondEnd,
1037 mso_lineArrowOvalEnd,
1038 mso_lineArrowOpenEnd
1041 // MSO_LINEENDWIDTH - size of arrowhead
1042 enum MSO_LineEndWidth {
1043 mso_lineNarrowArrow,
1044 mso_lineMediumWidthArrow,
1045 mso_lineWideArrow
1048 // MSO_LINEENDLENGTH - size of arrowhead
1049 enum MSO_LineEndLength {
1050 mso_lineShortArrow,
1051 mso_lineMediumLenArrow,
1052 mso_lineLongArrow
1055 // MSO_LINEJOIN - line join style.
1056 enum MSO_LineJoin {
1057 mso_lineJoinBevel, // Join edges by a straight line
1058 mso_lineJoinMiter, // Extend edges until they join
1059 mso_lineJoinRound // Draw an arc between the two edges
1062 // MSO_LINECAP - line cap style (applies to ends of dash segments too).
1063 enum MSO_LineCap {
1064 mso_lineEndCapRound, // Rounded ends - the default
1065 mso_lineEndCapSquare, // Square protrudes by half line width
1066 mso_lineEndCapFlat // Line ends at end point
1068 // Various enums from the OfficeDraw documentation Appendix D - End
1070 // BStore-Container
1071 // FBSE - File Blip Store Entry
1072 typedef struct _MSOF_BSE {
1073 sal_uInt8 btWin32; // Required type on Win32
1074 sal_uInt8 btMacOS; // Required type on Mac
1075 sal_uInt8 rgbUid[16]; // Identifier of blip
1076 sal_uInt16 tag; // currently unused
1077 sal_uIntPtr size; // Blip size in stream
1078 sal_uIntPtr cRef; // Reference count on the blip
1079 sal_uIntPtr /*MSOFO*/ foDelay; // File offset in the delay stream
1080 sal_uInt8 usage; // How this blip is used (MSOBLIPUSAGE)
1081 sal_uInt8 cbName; // length of the blip name
1082 sal_uInt8 unused2; // for the future
1083 sal_uInt8 unused3; // for the future
1084 } MSO_FBSE;
1086 typedef enum {
1087 mso_blipUsageDefault, // All non-texture fill blips get this.
1088 mso_blipUsageTexture,
1089 mso_blipUsageMax = 255 // Since this is stored in a byte
1090 } MSO_BLIPUSAGE;
1092 typedef enum { // GEL provided types...
1093 mso_blipERROR = 0, // An error occurred during loading
1094 mso_blipUNKNOWN, // An unknown blip type
1095 mso_blipEMF, // Windows Enhanced Metafile
1096 mso_blipWMF, // Windows Metafile
1097 mso_blipPICT, // Macintosh PICT
1098 mso_blipJPEG, // JFIF
1099 mso_blipPNG, // PNG
1100 mso_blipDIB, // Windows DIB
1101 mso_blipFirstClient = 32, // First client defined blip type
1102 mso_blipLastClient = 255 // Last client defined blip type
1103 } MSO_BLIPTYPE;
1105 typedef enum {
1106 mso_biUNKNOWN = 0,
1107 mso_biWMF = 0x216, // Metafile header then compressed WMF
1108 mso_biEMF = 0x3D4, // Metafile header then compressed EMF
1109 mso_biPICT = 0x542, // Metafile header then compressed PICT
1110 mso_biPNG = 0x6E0, // One byte tag then PNG data
1111 mso_biJFIF = 0x46A, // One byte tag then JFIF data
1112 mso_biJPEG = mso_biJFIF,
1113 mso_biDIB = 0x7A8, // One byte tag then DIB data
1114 mso_biClient=0x800 // Clients should set this bit
1115 } MSO_BI; // Blip signature as encoded in the MSO_FBH.inst
1117 typedef enum {
1118 mso_compressionDeflate = 0,
1119 mso_compressionNone = 254, // Used only if compression fails
1120 mso_compressionTest = 255 // For testing only
1121 } MSO_BLIPCOMPRESSION;
1123 typedef enum {
1124 mso_filterAdaptive = 0, // PNG type - not used/supported for metafile
1125 mso_filterNone = 254,
1126 mso_filterTest = 255 // For testing only
1127 } MSO_BLIPFILTER;
1129 typedef enum {
1130 mso_syscolorButtonFace, // COLOR_BTNFACE
1131 mso_syscolorWindowText, // COLOR_WINDOWTEXT
1132 mso_syscolorMenu, // COLOR_MENU
1133 mso_syscolorHighlight, // COLOR_HIGHLIGHT
1134 mso_syscolorHighlightText, // COLOR_HIGHLIGHTTEXT
1135 mso_syscolorCaptionText, // COLOR_CAPTIONTEXT
1136 mso_syscolorActiveCaption, // COLOR_ACTIVECAPTION
1137 mso_syscolorButtonHighlight, // COLOR_BTNHIGHLIGHT
1138 mso_syscolorButtonShadow, // COLOR_BTNSHADOW
1139 mso_syscolorButtonText, // COLOR_BTNTEXT
1140 mso_syscolorGrayText, // COLOR_GRAYTEXT
1141 mso_syscolorInactiveCaption, // COLOR_INACTIVECAPTION
1142 mso_syscolorInactiveCaptionText, // COLOR_INACTIVECAPTIONTEXT
1143 mso_syscolorInfoBackground, // COLOR_INFOBK
1144 mso_syscolorInfoText, // COLOR_INFOTEXT
1145 mso_syscolorMenuText, // COLOR_MENUTEXT
1146 mso_syscolorScrollbar, // COLOR_SCROLLBAR
1147 mso_syscolorWindow, // COLOR_WINDOW
1148 mso_syscolorWindowFrame, // COLOR_WINDOWFRAME
1149 mso_syscolor3DLight, // COLOR_3DLIGHT
1150 mso_syscolorMax, // Count of system colors
1152 mso_colorFillColor = 0xF0, // Use the fillColor property
1153 mso_colorLineOrFillColor, // Use the line color only if there is a line
1154 mso_colorLineColor, // Use the lineColor property
1155 mso_colorShadowColor, // Use the shadow color
1156 mso_colorThis, // Use this color (only valid as described below)
1157 mso_colorFillBackColor, // Use the fillBackColor property
1158 mso_colorLineBackColor, // Use the lineBackColor property
1159 mso_colorFillThenLine, // Use the fillColor unless no fill and line
1160 mso_colorIndexMask = 0xFF, // Extract the color index
1162 mso_colorProcessMask =0xFFFF00,// All the processing bits
1163 mso_colorModificationMask =0x0F00, // Just the function
1164 mso_colorModFlagMask =0xF000, // Just the additional flags
1165 mso_colorDarken =0x0100, // Darken color by parameter/255
1166 mso_colorLighten =0x0200, // Lighten color by parameter/255
1167 mso_colorAdd =0x0300, // Add grey level RGB(param,param,param)
1168 mso_colorSubtract =0x0400, // Subtract grey level RGB(p,p,p)
1169 mso_colorReverseSubtract =0x0500, // Subtract from grey level RGB(p,p,p)
1170 /* In the following "black" means maximum component value, white minimum.
1171 The operation is per component, to guarantee white combine with
1172 mso_colorGray */
1173 mso_colorBlackWhite =0x0600, // Black if < uParam, else white (>=)
1174 mso_colorInvert =0x2000, // Invert color (at the *end*)
1175 mso_colorInvert128 =0x4000, // Invert by toggling the top bit
1176 mso_colorGray =0x8000, // Make the color gray (before the above!)
1177 mso_colorBParamMask =0xFF0000,// Parameter used as above
1178 mso_colorBParamShift = 16 // To extract the parameter value
1179 } MSO_SYSCOLORINDEX;
1181 //ALT_TXT_MSINTEROP
1182 #define MSPROP_DESCRIPTION_MAX_LEN 4096
1184 #endif
1186 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */