update dev300-m57
[ooovba.git] / sw / inc / unomap.hxx
blobe9f0b58ffcd7c32517eea32e96c8b589c5309595
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unomap.hxx,v $
10 * $Revision: 1.63 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _UNOMAP_HXX
31 #define _UNOMAP_HXX
33 #include <svtools/itemprop.hxx>
35 #define PROPERTY_NONE 0
37 #define PROPERTY_MAP_TEXT_CURSOR 0
38 #define PROPERTY_MAP_CHAR_STYLE 1
39 #define PROPERTY_MAP_PARA_STYLE 2
40 #define PROPERTY_MAP_FRAME_STYLE 3
41 #define PROPERTY_MAP_PAGE_STYLE 4
42 #define PROPERTY_MAP_NUM_STYLE 5
43 #define PROPERTY_MAP_SECTION 6
44 #define PROPERTY_MAP_TEXT_TABLE 7
45 #define PROPERTY_MAP_TABLE_CELL 8
46 #define PROPERTY_MAP_TABLE_RANGE 9
47 #define PROPERTY_MAP_TEXT_SEARCH 10
48 #define PROPERTY_MAP_TEXT_FRAME 11
49 #define PROPERTY_MAP_TEXT_GRAPHIC 12
50 #define PROPERTY_MAP_TEXT_SHAPE 13
51 #define PROPERTY_MAP_INDEX_USER 14
52 #define PROPERTY_MAP_INDEX_CNTNT 15
53 #define PROPERTY_MAP_INDEX_IDX 16
54 #define PROPERTY_MAP_USER_MARK 17
55 #define PROPERTY_MAP_CNTIDX_MARK 18
56 #define PROPERTY_MAP_INDEX_MARK 19
57 #define PROPERTY_MAP_TEXT_TABLE_ROW 20
58 #define PROPERTY_MAP_TEXT_SHAPE_DESCRIPTOR 21
59 #define PROPERTY_MAP_TEXT_TABLE_CURSOR 22
60 #define PROPERTY_MAP_BOOKMARK 23
61 #define PROPERTY_MAP_PARAGRAPH_EXTENSIONS 24
62 #define PROPERTY_MAP_INDEX_ILLUSTRATIONS 25
63 #define PROPERTY_MAP_INDEX_OBJECTS 26
64 #define PROPERTY_MAP_INDEX_TABLES 27
65 #define PROPERTY_MAP_BIBLIOGRAPHY 28
66 #define PROPERTY_MAP_TEXT_DOCUMENT 29
67 #define PROPERTY_MAP_LINK_TARGET 30
68 #define PROPERTY_MAP_AUTO_TEXT_GROUP 31
69 #define PROPERTY_MAP_TEXTPORTION_EXTENSIONS 34
70 #define PROPERTY_MAP_FOOTNOTE 35
71 #define PROPERTY_MAP_TEXT_COLUMS 36
72 #define PROPERTY_MAP_PARAGRAPH 37
73 #define PROPERTY_MAP_EMBEDDED_OBJECT 38
74 #define PROPERTY_MAP_REDLINE 39
75 #define PROPERTY_MAP_TEXT_DEFAULT 40
77 #define PROPERTY_MAP_FLDTYP_DATETIME 41
78 #define PROPERTY_MAP_FLDTYP_USER 42
79 #define PROPERTY_MAP_FLDTYP_SET_EXP 43
80 #define PROPERTY_MAP_FLDTYP_GET_EXP 44
81 #define PROPERTY_MAP_FLDTYP_FILE_NAME 45
82 #define PROPERTY_MAP_FLDTYP_PAGE_NUM 46
83 #define PROPERTY_MAP_FLDTYP_AUTHOR 47
84 #define PROPERTY_MAP_FLDTYP_CHAPTER 48
85 #define PROPERTY_MAP_FLDTYP_GET_REFERENCE 49
86 #define PROPERTY_MAP_FLDTYP_CONDITIONED_TEXT 50
87 #define PROPERTY_MAP_FLDTYP_HIDDEN_TEXT 51
88 #define PROPERTY_MAP_FLDTYP_ANNOTATION 52
89 #define PROPERTY_MAP_FLDTYP_INPUT 53
90 #define PROPERTY_MAP_FLDTYP_MACRO 54
91 #define PROPERTY_MAP_FLDTYP_DDE 55
92 #define PROPERTY_MAP_FLDTYP_HIDDEN_PARA 56
93 #define PROPERTY_MAP_FLDTYP_DOC_INFO 57
94 #define PROPERTY_MAP_FLDTYP_TEMPLATE_NAME 58
95 #define PROPERTY_MAP_FLDTYP_USER_EXT 59
96 #define PROPERTY_MAP_FLDTYP_REF_PAGE_SET 60
97 #define PROPERTY_MAP_FLDTYP_REF_PAGE_GET 61
98 #define PROPERTY_MAP_FLDTYP_JUMP_EDIT 62
99 #define PROPERTY_MAP_FLDTYP_SCRIPT 63
100 #define PROPERTY_MAP_FLDTYP_DATABASE_NEXT_SET 64
101 #define PROPERTY_MAP_FLDTYP_DATABASE_NUM_SET 65
102 #define PROPERTY_MAP_FLDTYP_DATABASE_SET_NUM 66
103 #define PROPERTY_MAP_FLDTYP_DATABASE 67
104 #define PROPERTY_MAP_FLDTYP_DATABASE_NAME 68
105 #define PROPERTY_MAP_FLDTYP_DOCSTAT 69
106 #define PROPERTY_MAP_FLDTYP_DOCINFO_AUTHOR 70
107 #define PROPERTY_MAP_FLDTYP_DOCINFO_DATE_TIME 71
108 #define PROPERTY_MAP_FLDTYP_DOCINFO_CHANGE_DATE_TIME 72
109 #define PROPERTY_MAP_FLDTYP_DOCINFO_CREATE_DATE_TIME 73
110 #define PROPERTY_MAP_FLDTYP_DOCINFO_EDIT_TIME 74
111 #define PROPERTY_MAP_FLDTYP_DOCINFO_MISC 75
112 #define PROPERTY_MAP_FLDTYP_DOCINFO_REVISION 76
113 #define PROPERTY_MAP_FLDTYP_COMBINED_CHARACTERS 77
114 #define PROPERTY_MAP_FLDTYP_DUMMY_0 78
115 #define PROPERTY_MAP_FLDTYP_TABLE_FORMULA 79
116 #define PROPERTY_MAP_FLDMSTR_USER 80
117 #define PROPERTY_MAP_FLDMSTR_DDE 81
118 #define PROPERTY_MAP_FLDMSTR_SET_EXP 82
119 #define PROPERTY_MAP_FLDMSTR_DATABASE 83
120 #define PROPERTY_MAP_FLDMSTR_DUMMY0 84
121 #define PROPERTY_MAP_FLDTYP_BIBLIOGRAPHY 85
122 #define PROPERTY_MAP_FLDMSTR_BIBLIOGRAPHY 86
123 #define PROPERTY_MAP_TEXT 87
124 #define PROPERTY_MAP_REDLINE_PORTION 88
125 #define PROPERTY_MAP_MAILMERGE 89
126 #define PROPERTY_MAP_FLDTYP_DROPDOWN 90
127 #define PROPERTY_MAP_CHART2_DATA_SEQUENCE 91
128 #define PROPERTY_MAP_TEXT_VIEW 92
129 #define PROPERTY_MAP_CONDITIONAL_PARA_STYLE 93
130 #define PROPERTY_MAP_CHAR_AUTO_STYLE 94
131 #define PROPERTY_MAP_RUBY_AUTO_STYLE 95
132 #define PROPERTY_MAP_PARA_AUTO_STYLE 96
133 #define PROPERTY_MAP_FLDTYP_DOCINFO_CUSTOM 97
135 #define PROPERTY_MAP_END 98
137 //S&E
138 #define WID_WORDS 0
139 #define WID_BACKWARDS 1
140 #define WID_REGULAR_EXPRESSION 2
141 #define WID_CASE_SENSITIVE 3
142 #define WID_IN_SELECTION 4
143 #define WID_STYLES 5
144 #define WID_SIMILARITY 6
145 #define WID_SIMILARITY_RELAX 7
146 #define WID_SIMILARITY_EXCHANGE 8
147 #define WID_SIMILARITY_ADD 9
148 #define WID_SIMILARITY_REMOVE 10
149 #define WID_SEARCH_ALL 11
151 //Sections
152 #define WID_SECT_CONDITION 8000
153 #define WID_SECT_DDE_TYPE 8001
154 #define WID_SECT_DDE_FILE 8002
155 #define WID_SECT_DDE_ELEMENT 8003
156 #define WID_SECT_LINK 8004
157 #define WID_SECT_VISIBLE 8005
158 #define WID_SECT_PROTECTED 8006
159 #define WID_SECT_REGION 8007
160 #define WID_SECT_DDE_AUTOUPDATE 8008
161 #define WID_SECT_DOCUMENT_INDEX 8009
162 #define WID_SECT_IS_GLOBAL_DOC_SECTION 8010
163 #define WID_SECT_PASSWORD 8011
164 #define WID_SECT_CURRENTLY_VISIBLE 8012
165 #define WID_SECT_EDIT_IN_READONLY 8013
168 //Verzeichnisse
169 #define WID_PRIMARY_KEY 1000
170 #define WID_SECONDARY_KEY 1001
171 #define WID_ALT_TEXT 1002
172 #define WID_IDX_TITLE 1003
173 #define WID_LEVEL 1004
174 #define WID_CREATE_FROM_MARKS 1005
175 #define WID_CREATE_FROM_OUTLINE 1006
176 #define WID_MAIN_ENTRY 1007
177 #define WID_CREATE_FROM_CHAPTER 1008
178 #define WID_CREATE_FROM_LABELS 1009
179 #define WID_USE_ALPHABETICAL_SEPARATORS 1010
180 #define WID_USE_KEY_AS_ENTRY 1011
181 #define WID_USE_COMBINED_ENTRIES 1012
182 #define WID_IS_CASE_SENSITIVE 1013
183 #define WID_USE_P_P 1014
184 #define WID_USE_DASH 1015
185 #define WID_USE_UPPER_CASE 1016
186 #define WID_INDEX_AUTO_MARK_FILE_U_R_L 1017
187 #define WID_LABEL_CATEGORY 1018
188 #define WID_LABEL_DISPLAY_TYPE 1019
189 #define WID_USE_LEVEL_FROM_SOURCE 1020
190 #define WID_LEVEL_FORMAT 1021
191 #define WID_LEVEL_PARAGRAPH_STYLES 1022
192 #define WID_RECALC_TAB_STOPS 1023
193 //#define WID_??? 1024
194 #define WID_MAIN_ENTRY_CHARACTER_STYLE_NAME 1025
195 #define WID_CREATE_FROM_TABLES 1026
196 #define WID_CREATE_FROM_TEXT_FRAMES 1027
197 #define WID_CREATE_FROM_GRAPHIC_OBJECTS 1028
198 #define WID_CREATE_FROM_EMBEDDED_OBJECTS 1029
199 #define WID_CREATE_FROM_STAR_MATH 1030
200 #define WID_PROTECTED 1031
202 #define WID_CREATE_FROM_STAR_CHART 1032
203 #define WID_CREATE_FROM_STAR_CALC 1033
204 #define WID_CREATE_FROM_STAR_DRAW 1034
205 #define WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS 1035
206 #define WID_USER_IDX_NAME 1036
207 #define WID_PARA_HEAD 1037
208 #define WID_PARA_SEP 1038
209 #define WID_PARA_LEV1 1039
210 #define WID_PARA_LEV2 1040
211 #define WID_PARA_LEV3 1041
212 #define WID_PARA_LEV4 1042
213 #define WID_PARA_LEV5 1043
214 #define WID_PARA_LEV6 1044
215 #define WID_PARA_LEV7 1045
216 #define WID_PARA_LEV8 1046
217 #define WID_PARA_LEV9 1047
218 #define WID_PARA_LEV10 1048
219 #define WID_IS_COMMA_SEPARATED 1049
220 #define WID_INDEX_MARKS 1050
221 #define WID_IS_RELATIVE_TABSTOPS 1051
222 #define WID_CREATE_FROM_PARAGRAPH_STYLES 1052
223 #define WID_IDX_CONTENT_SECTION 1053
224 #define WID_IDX_HEADER_SECTION 1054
225 #define WID_IDX_LOCALE 1055
226 #define WID_IDX_SORT_ALGORITHM 1056
227 #define WID_IDX_NAME 1057
229 #define WID_TEXT_READING 1058
230 #define WID_PRIMARY_KEY_READING 1059
231 #define WID_SECONDARY_KEY_READING 1060
233 //text document
234 #define WID_DOC_CHAR_COUNT 1000
235 #define WID_DOC_PARA_COUNT 1001
236 #define WID_DOC_WORD_COUNT 1002
237 #define WID_DOC_WORD_SEPARATOR 1003
238 #define WID_DOC_CHANGES_SHOW 1004
239 #define WID_DOC_CHANGES_RECORD 1005
240 #define WID_DOC_AUTO_MARK_URL 1006
241 #define WID_DOC_HIDE_TIPS 1007
242 #define WID_DOC_REDLINE_DISPLAY 1008
243 #define WID_DOC_FORBIDDEN_CHARS 1009
244 #define WID_DOC_CHANGES_PASSWORD 1010
245 #define WID_DOC_TWO_DIGIT_YEAR 1011
246 #define WID_DOC_AUTOMATIC_CONTROL_FOCUS 1012
247 #define WID_DOC_APPLY_FORM_DESIGN_MODE 1013
248 #define WID_DOC_BASIC_LIBRARIES 1014
249 #define WID_DOC_RUNTIME_UID 1015
250 #define WID_DOC_LOCK_UPDATES 1016
251 #define WID_DOC_HAS_VALID_SIGNATURES 1017
252 #define WID_DOC_BUILDID 1024
253 #define WID_DOC_ISTEMPLATEID 1025
254 // --> OD 2006-03-21 #b6375613#
255 #define WID_APPLY_WORKAROUND_FOR_B6375613 1070
256 // <--
258 //MailMerge
259 #define WID_SELECTION 1071
260 #define WID_RESULT_SET 1072
261 #define WID_CONNECTION 1073
262 #define WID_MODEL 1074
263 #define WID_DATA_SOURCE_NAME 1075
264 #define WID_DATA_COMMAND 1076
265 #define WID_FILTER 1077
266 #define WID_DOCUMENT_URL 1078
267 #define WID_OUTPUT_URL 1079
268 #define WID_DATA_COMMAND_TYPE 1080
269 #define WID_OUTPUT_TYPE 1081
270 #define WID_ESCAPE_PROCESSING 1082
271 #define WID_SINGLE_PRINT_JOBS 1083
272 #define WID_FILE_NAME_FROM_COLUMN 1084
273 #define WID_FILE_NAME_PREFIX 1085
274 #define WID_MAIL_SUBJECT 1086
275 #define WID_ADDRESS_FROM_COLUMN 1087
276 #define WID_SEND_AS_HTML 1088
277 #define WID_SEND_AS_ATTACHMENT 1089
278 #define WID_MAIL_BODY 1090
279 #define WID_ATTACHMENT_NAME 1091
280 #define WID_ATTACHMENT_FILTER 1092
281 #define WID_PRINT_OPTIONS 1093
282 #define WID_SAVE_AS_SINGLE_FILE 1094
283 #define WID_SAVE_FILTER 1095
284 #define WID_COPIES_TO 1096
285 #define WID_BLIND_COPIES_TO 1097
286 #define WID_IN_SERVER_PASSWORD 1098
287 #define WID_OUT_SERVER_PASSWORD 1099
288 #define WID_SAVE_FILTER_OPTIONS 1100
289 #define WID_SAVE_FILTER_DATA 1101
291 #define WID_PAGE_COUNT 1100
292 #define WID_LINE_COUNT 1101
293 #define WID_IS_CONSTANT_SPELLCHECK 1102
294 #define WID_IS_HIDE_SPELL_MARKS 1103 /* deprecated #i91949 */
296 #define WID_LAYOUT_SIZE 1104
297 #define WID_DOC_DIALOG_LIBRARIES 1105
298 #define WID_DOC_VBA_DOCOBJ 1106
301 //AutoText
302 #define WID_GROUP_PATH 0
303 #define WID_GROUP_TITLE 1
305 //NumberingRules
306 #define WID_IS_AUTOMATIC 0
307 #define WID_CONTINUOUS 1
308 #define WID_RULE_NAME 2
309 #define WID_IS_ABS_MARGINS 3
310 #define WID_IS_OUTLINE 4
311 #define WID_DEFAULT_LIST_ID 5
313 //TextColumns
314 #define WID_TXTCOL_LINE_WIDTH 0
315 #define WID_TXTCOL_LINE_COLOR 1
316 #define WID_TXTCOL_LINE_REL_HGT 2
317 #define WID_TXTCOL_LINE_ALIGN 3
318 #define WID_TXTCOL_LINE_IS_ON 4
319 #define WID_TXTCOL_IS_AUTOMATIC 5
320 #define WID_TXTCOL_AUTO_DISTANCE 6
322 /* -----------------04.07.98 11:41-------------------
324 * --------------------------------------------------*/
325 class SwItemPropertySet : public SfxItemPropertySet
327 protected:
328 virtual sal_Bool FillItem(SfxItemSet& rSet, sal_uInt16 nWhich, sal_Bool bGetProperty) const;
329 public:
330 SwItemPropertySet( const SfxItemPropertyMapEntry *pMap ) :
331 SfxItemPropertySet( pMap ){}
333 /* -----------------04.07.98 11:41-------------------
335 * --------------------------------------------------*/
336 class SwUnoPropertyMapProvider
338 SfxItemPropertyMapEntry* aMapEntriesArr[PROPERTY_MAP_END];
339 SfxItemPropertySet* aPropertySetArr[PROPERTY_MAP_END];
341 public:
342 SwUnoPropertyMapProvider();
343 ~SwUnoPropertyMapProvider();
345 const SfxItemPropertyMapEntry* GetPropertyMapEntries(sal_uInt16 PropertyId);
346 const SfxItemPropertySet* GetPropertySet( sal_uInt16 PropertyId );
350 extern SwUnoPropertyMapProvider aSwMapProvider;
351 #endif