xref: /trunk/main/starmath/sdi/smitems.sdi (revision 61624e8f)
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
25enum SvxAdjust
26{
27	SVX_ADJUST_LEFT,
28	SVX_ADJUST_RIGHT,
29	SVX_ADJUST_BLOCK,
30	SVX_ADJUST_CENTER,
31	SVX_ADJUST_BLOCKLINE,
32	SVX_ADJUST_END
33};
34item SvxAdjust SvxAdjustItem;
35
36//-------------------------------------------------------------------------
37
38enum SvxCaseMap
39{
40	SVX_CASEMAP_NOT_MAPPED,
41	SVX_CASEMAP_VERSALIEN,
42	SVX_CASEMAP_GEMEINE,
43	SVX_CASEMAP_TITEL,
44	SVX_CASEMAP_KAPITAELCHEN,
45	SVX_CASEMAP_END
46};
47item SvxCaseMap SvxCaseMapItem;
48
49//-------------------------------------------------------------------------
50
51enum CharSet
52{
53	CHARSET_DONTKNOW,
54	CHARSET_ANSI,
55	CHARSET_MAC,
56	CHARSET_IBMPC_437,
57	CHARSET_IBMPC_850,
58	CHARSET_IBMPC_860,
59	CHARSET_IBMPC_861,
60	CHARSET_IBMPC_863,
61	CHARSET_IBMPC_865,
62	CHARSET_SYSTEM,
63	CHARSET_SYMBOL
64};
65item CharSet CharSetItem;
66
67//-------------------------------------------------------------------------
68
69enum FontFamily
70{
71	FAMILY_DONTKNOW,
72	FAMILY_DECORATIVE,
73	FAMILY_MODERN,
74	FAMILY_ROMAN,
75	FAMILY_SCRIPT,
76	FAMILY_SWISS,
77	FAMILY_SYSTEM
78};
79item FontFamily FontFamilyItem;
80
81//-------------------------------------------------------------------------
82
83enum FontPitch
84{
85	PITCH_DONTKNOW,
86	PITCH_FIXED,
87	PITCH_VARIABLE
88};
89item FontPitch FontPitchItem;
90
91//-------------------------------------------------------------------------
92
93enum FontAlign
94{
95	ALIGN_TOP,
96	ALIGN_BASELINE,
97	ALIGN_BOTTOM
98};
99item FontAlign FontAlignItem;
100
101//-------------------------------------------------------------------------
102
103enum FontWeight
104{
105	WEIGHT_DONTKNOW,
106	WEIGHT_THIN,
107	WEIGHT_ULTRALIGHT,
108	WEIGHT_LIGHT,
109	WEIGHT_SEMILIGHT,
110	WEIGHT_NORMAL,
111	WEIGHT_MEDIUM,
112	WEIGHT_SEMIBOLD,
113	WEIGHT_BOLD,
114	WEIGHT_ULTRABOLD,
115	WEIGHT_BLACK
116};
117item FontWeight FontWeightItem;
118
119//-------------------------------------------------------------------------
120
121enum FontUnderline
122{
123	UNDERLINE_NONE,
124	UNDERLINE_SINGLE,
125	UNDERLINE_DOUBLE,
126	UNDERLINE_DOTTED
127};
128item FontUnderline FontUnderlineItem;
129
130//-------------------------------------------------------------------------
131
132enum FontStrikeout
133{
134	STRIKEOUT_NONE,
135	STRIKEOUT_SINGLE,
136	STRIKEOUT_DOUBLE
137};
138item FontStrikeout FontStrikeoutItem;
139
140//-------------------------------------------------------------------------
141
142enum FontItalic
143{
144	ITALIC_NONE,
145	ITALIC_OBLIQUE,
146	ITALIC_NORMAL
147};
148item FontItalic FontItalicItem;
149
150//-------------------------------------------------------------------------
151
152enum SvxDbType
153{
154	DBTYPE_STARBASE,
155	DBTYPE_ODBC,
156	DBTYPE_WATCOM
157};
158item SvxDbType SvxDbTypeItem;
159
160//-------------------------------------------------------------------------
161
162enum SvxLineSpace
163{
164	SVX_LINE_SPACE_AUTO,
165	SVX_LINE_SPACE_MAX,
166	SVX_LINE_SPACE_MIN,
167	SVX_LINE_SPACE_END
168};
169item SvxLineSpace SvxLineSpaceItem;
170
171//-------------------------------------------------------------------------
172
173enum SvxInterLineSpace
174{
175	SVX_INTER_LINE_SPACE_OFF,
176	SVX_INTER_LINE_SPACE_PROP,
177	SVX_INTER_LINE_SPACE_FIX,
178	SVX_INTER_LINE_SPACE_END
179};
180item SvxInterLineSpace SvxInterLineSpaceItem;
181
182//-------------------------------------------------------------------------
183
184enum SvxBreak
185{
186	SVX_BREAK_NONE,
187	SVX_BREAK_COLUMN_BEFORE,
188	SVX_BREAK_COLUMN_AFTER,
189	SVX_BREAK_COLUMN_BOTH,
190	SVX_BREAK_PAGE_BEFORE,
191	SVX_BREAK_PAGE_AFTER,
192	SVX_BREAK_PAGE_BOTH,
193	SVX_BREAK_END
194};
195item SvxBreak SvxBreakItem;
196
197//-------------------------------------------------------------------------
198
199enum BrushStyle
200{
201	BRUSH_NULL,
202	BRUSH_SOLID,
203	BRUSH_HORZ,
204	BRUSH_VERT,
205	BRUSH_CROSS,
206	BRUSH_DIAGCROSS,
207	BRUSH_UPDIAG,
208	BRUSH_DOWNDIAG,
209	BRUSH_25,
210	BRUSH_50,
211	BRUSH_75,
212	BRUSH_BITMAP
213};
214item BrushStyle BrushStyleItem;
215
216//-------------------------------------------------------------------------
217
218enum SvxNumType
219{
220	SVX_CHARS_UPPER_LETTER,
221	SVX_CHARS_LOWER_LETTER,
222	SVX_ROMAN_UPPER,
223	SVX_ROMAN_LOWER,
224	SVX_ARABIC,
225	SVX_NUMBER_NONE,
226	SVX_CHAR_SPECIAL,
227	SVX_PAGEDESC
228};
229item SvxNumType SvxNumTypeItem;
230
231//-------------------------------------------------------------------------
232
233enum SvxShadowLocation
234{
235	SVX_SHADOW_NONE,
236	SVX_SHADOW_TOPLEFT,
237	SVX_SHADOW_TOPRIGHT,
238	SVX_SHADOW_BOTTOMLEFT,
239	SVX_SHADOW_BOTTOMRIGHT,
240	SVX_SHADOW_END
241};
242item SvxShadowLocation SvxShadowLocationItem;
243
244//-------------------------------------------------------------------------
245
246struct SvxBrush
247{
248	BrushStyle	Style			MID_BRUSHSTYLE;
249	BOOL		Transparent 	MID_TRANSPARENT;
250	UINT32		BackColor		MID_BG_COLOR;
251	UINT32		FillColor		MID_FG_COLOR;
252};
253item SvxBrush SvxBrushItem;
254
255//-------------------------------------------------------------------------
256
257struct SvxCharSetColor
258{
259	CharSet 	CharSet 		MID_CHARSET;
260	UINT32		Color			MID_FG_COLOR;
261};
262item SvxCharSetColor SvxCharSetColorItem;
263
264//-------------------------------------------------------------------------
265
266item BOOL			SvxAutoKernItem;
267item UINT32         SvxColorItem;
268item BOOL			SvxContourItem;
269item FontStrikeout	SvxCrossedOutItem;
270
271//-------------------------------------------------------------------------
272
273struct SvxEscapement
274{
275	INT16		Esc 		MID_ESCAPEMENT;
276	BYTE		Prop		MID_PROPORTIONAL;
277};
278item SvxEscapement SvxEscapementItem;
279
280//-------------------------------------------------------------------------
281
282struct SvxFmtBreak
283{
284	BOOL		Auto		MID_AUTOBREAK;
285	UINT16		Break		MID_BREAKxxx;
286}
287item SvxFmtBreak SvxFmtBreakItem;
288
289//-------------------------------------------------------------------------
290
291item BOOL SvxFmtKeepItem;
292item BOOL SvxFmtSplitItem;
293
294struct SvxFontHeight
295{
296	UINT32		Height		MID_HEIGHT;
297	BYTE		Prop		MID_PROPORTIONAL;
298};
299item SvxFontHeight SvxFontHeightItem;
300
301//-------------------------------------------------------------------------
302
303struct SvxFont
304{
305	String		StyleName	MID_FONTSTYLE;
306	FontPitch	Pitch		MID_FONTPICTH;
307	CharSet 	CharSet 	MID_CHARSET;
308	FontFamily	Family		MID_FONTFAMILY;
309	String		FamilyName	MID_FONTFAMILYNAME;
310};
311item SvxFont SvxFontItem;
312
313//-------------------------------------------------------------------------
314
315struct SvxHyphenZone
316{
317	BOOL		Hyphen		MID_HYPHEN;
318	BOOL		PageEnd 	MID_PAGEEND;
319	BYTE		MinLead 	MID_MINLEAD;
320	BYTE		MinTrail	MID_MINTRAIL;
321	BYTE		MaxHyphens	MID_MAXHYPHENS;
322};
323item SvxHyphenZone SvxHyphenZoneItem;
324
325//-------------------------------------------------------------------------
326
327item INT16 SvxKerningItem;
328
329//-------------------------------------------------------------------------
330
331struct SvxLine
332{
333	UINT32		Color		MID_FG_COLOR;
334	UINT16		OutWidth	MID_OUTER_WIDTH;
335	UINT16		InWidth 	MID_INNER_WIDTH;
336	UINT16		Distance	MID_DISTANCE;
337};
338item SvxLine SvxLineItem;
339
340//-------------------------------------------------------------------------
341
342struct SvxLRSpace
343{
344	INT16		FirstLineOffset MID_FIRSTLINE_OFFSET;	// % or direct
345	UINT16		LeftMargin		MID_LEFT_MARGIN;		// % or direct
346	UINT16		RightMargin 	MID_RIGHT_MARGIN;		// % or direct
347};
348item SvxLRSpace SvxLRSpaceItem;
349
350//-------------------------------------------------------------------------
351
352item UINT16 SvxLanguage;
353
354struct SvxLineSpacing
355{
356	SvxLineSpace		LineSpace		MID_LINESPACE;
357	UINT16				LineHeight		MID_HEIGHT; 	// % or direct
358	SvxInterLineSpace	InterLineSpace	MID_INTER_LINESPACE;
359	INT16				InterSpace		MID_INTER_SPACE;
360};
361item SvxLineSpacing SvxLineSpacingItem;
362
363//-------------------------------------------------------------------------
364
365item BOOL SvxNoHyphenItem;
366item BOOL SvxNoLinebreakItem;
367item BOOL SvxOpaqueItem;
368item BYTE SvxOrphansItem;
369
370//-------------------------------------------------------------------------
371
372struct SvxPage
373{
374	String				DescName		MID_DESCNAMExxx;
375	BOOL				Landscape		MID_LANDSCAPE;
376	UINT16				Use 			MID_USExxx;
377	SvxNumType			NumType 		MID_NUMTYPExxx;
378};
379item SvxPage SvxPageItem;
380
381//-------------------------------------------------------------------------
382
383item String SvxPageModelItem;
384
385//-------------------------------------------------------------------------
386
387struct SvxPagePosSize
388{
389	INT32				XPos			MID_X;
390	INT32				YPos			MID_Y;
391	INT32				Width			MID_WIDTH;
392	INT32				Height			MID_HEIGHT;
393};
394item SvxPagePosSize SvxPagePosSizeItem;
395
396//-------------------------------------------------------------------------
397
398item BYTE SvxPaperBinItem;
399
400//-------------------------------------------------------------------------
401
402item String 	SvxPostItAuthorItem;
403item String 	SvxPostItDateItem;
404item String 	SvxPostItTextItem;
405item FontItalic SvxPostureItem;
406item BOOL		SvxPrintItem;
407item UINT16 	SvxPropSizeItem;
408
409//-------------------------------------------------------------------------
410
411struct SvxProtect
412{
413	BOOL			Content 		MID_CONTENT;
414	BOOL			Pos 			MID_POS;
415	BOOL			Size			MID_SIZE;
416};
417item SvxProtect SvxProtectItem;
418
419//-------------------------------------------------------------------------
420
421struct SvxSearch
422{
423	UINT16		Command 		MID_COMMAND;
424	String		SearchString	MID_SEARCH_STRING;
425	String		ReplaceString	MID_REPLACE_STRING;
426				// W)ord, E)xact, B)ack, S)election, R)egExpr, P)attern
427	String		Flags			MID_FLAGS;
428	UINT16		Family			MID_FAMILY;
429	UINT16		CellType		MID_CELLTYPE;
430	BOOL		RowDirection	MID_ROW_DIRECTION;
431	UINT16		AppFlag 		MID_APPFLAG;
432};
433item SvxSearch SvxSearchItem;
434
435//-------------------------------------------------------------------------
436
437item BOOL SvxShadowedItem;
438
439//-------------------------------------------------------------------------
440
441struct SvxShadow
442{
443	SvxShadowLocation	Location		MID_LOCATION;
444	UINT16				Width			MID_WIDTH;
445	BrushStyle			Style			MID_BRUSHSTYLE;
446	BOOL				Transparent 	MID_TRANSPARENT;
447	UINT32				BackColor		MID_BG_COLOR;
448	UINT32				FillColor		MID_FG_COLOR;
449};
450item SvxShadow SvxShadowItem;
451
452//-------------------------------------------------------------------------
453
454struct SvxSize
455{
456	UINT32				Width			MID_WIDTH;
457	UINT32				Height			MID_HEIGHT;
458};
459item SvxSize SvxSizeItem;
460
461//-------------------------------------------------------------------------
462
463struct SvxULSpace
464{
465	UINT16				Upper			MID_UPPER;	// % or direct
466	UINT16				Lower			MID_LOWER;	// % or direct
467};
468item SvxULSpace SvxULSpaceItem
469
470//-------------------------------------------------------------------------
471
472enum SvxChooseControlEnum
473{
474	SVX_SNAP_PUSHBUTTON,
475	SVX_SNAP_CHECKBOX,
476	SVX_SNAP_RADIOBUTTON,
477	SVX_SNAP_SPINBUTTON,
478	SVX_SNAP_FIXEDTEXT,
479	SVX_SNAP_GROUPBOX,
480	SVX_SNAP_LISTBOX,
481	SVX_SNAP_COMBOBOX,
482	SVX_SNAP_EDIT,
483	SVX_SNAP_HSCROLLBAR,
484	SVX_SNAP_VSCROLLBAR,
485	SVX_SNAP_PREVIEW,
486	SVX_SNAP_SELECT,
487	SVX_SNAP_NOTHING
488}
489item SvxChooseControlEnum SvxChooseControlEnumItem;
490
491//-------------------------------------------------------------------------
492
493enum SvxDrawToolEnum
494{
495	SVX_SNAP_DRAW_SELECT,
496	//
497	SVX_SNAP_DRAW_LINE,
498	SVX_SNAP_DRAW_RECT,
499	SVX_SNAP_DRAW_ELLIPSE,
500	SVX_SNAP_DRAW_POLYGON,
501	SVX_SNAP_DRAW_ARC,
502	SVX_SNAP_DRAW_PIE,
503	SVX_SNAP_DRAW_CIRCLECUT,
504	SVX_SNAP_DRAW_TEXT,
505	SVX_SNAP_DRAW_CAPTION,
506	SVX_SNAP_DRAW_NOTHING
507}
508item SvxDrawToolEnum SvxDrawToolEnumItem;
509
510//-------------------------------------------------------------------------
511
512item SvxChooseControlEnum SvxChooseControlItem;
513item SvxDrawToolEnum SvxDrawToolItem;
514item FontUnderline SvxUnderlineItem;
515item FontWeight SvxWeightItem;
516item BYTE SvxWidowsItem;
517item BOOL SvxWordLineModeItem;
518item String SvxBoxItem; //! Dummy
519
520//-------------------------------------------------------------------------
521
522enum SvxCellHorJustifyEnum
523{
524	SVX_HOR_JUSTIFY_STANDARD,
525	SVX_HOR_JUSTIFY_LEFT,
526	SVX_HOR_JUSTIFY_CENTER,
527	SVX_HOR_JUSTIFY_RIGHT,
528	SVX_HOR_JUSTIFY_BLOCK,
529	SVX_HOR_JUSTIFY_REPEAT
530};
531item SvxCellHorJustifyEnum SvxCellHorJustifyEnumItem;
532
533enum SvxCellVerJustifyEnum
534{
535	SVX_VER_JUSTIFY_STANDARD,
536	SVX_VER_JUSTIFY_TOP,
537	SVX_VER_JUSTIFY_CENTER,
538	SVX_VER_JUSTIFY_BOTTOM
539};
540item SvxCellVerJustifyEnum SvxCellVerJustifyEnumItem;
541
542//-------------------------------------------------------------------------
543
544enum SvxCellOrientationEnum
545{
546	SVX_ORIENTATION_STANDARD,
547	SVX_ORIENTATION_TOPBOTTOM,
548	SVX_ORIENTATION_BOTTOMTOP,
549	SVX_ORIENTATION_STACKED
550};
551item SvxCellOrientationEnum SvxCellOrientationEnumItem;
552
553//-------------------------------------------------------------------------
554
555item SvxCellHorJustifyEnum SvxHorJustifyItem;
556item SvxCellVerJustifyEnum SvxVerJustifyItem;
557item SvxCellOrientationEnum SvxOrientationItem;
558
559//-------------------------------------------------------------------------
560
561struct SvxLongLRSpace
562{
563	INT32			Left		MID_LEFT;
564	INT32			Right		MID_RIGHT;
565};
566item SvxLongLRSpace SvxLongLRSpaceItem;
567
568//-------------------------------------------------------------------------
569
570struct SvxLongULSpace
571{
572	INT32			Upper		MID_UPPER;
573	INT32			Lower		MID_LOWER;
574};
575item SvxLongULSpace SvxLongULSpaceItem;
576
577//-------------------------------------------------------------------------
578
579struct SvxZoom
580{
581	INT32			Type		MID_TYPE;
582	UINT16			ValueSet	MID_VALUESET;
583	INT32			Percent 	MID_PERCENT;
584};
585item SvxZoom SvxZoomItem;
586
587//-------------------------------------------------------------------------
588
589item SbxObject SvxTabStopItem;
590
591
592