summaryrefslogtreecommitdiff
path: root/include/sfx2/sfx.hrc
blob: 713514848377c3d3c706452c7fab5542dc3cdc6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */

#ifndef _SFX_HRC
#define _SFX_HRC

#include <svl/solar.hrc>
#include <svl/memberid.hrc>

#define RID_GROUPS_OFFSET           32000
#define RID_GROUPS_SFXOFFSET        32700
#define RID_GROUPS_END              32767

//--------------------------------------------------------------------

#define EVENT_SFX_START              5000
//      EVENT_SFX_END                9999

//      EVENT_LIB_START             10000
//      EVENT_LIB_END               19999

#define EVENT_APP_START             20000
//      EVENT_APP_END               29999

#define EVENT_OBJ_START             30000

#define EVENT_SVX_START             (EVENT_OBJ_START+0x0400)

// Warning: the following are simultaneously SID_ON_ ...
#define SFX_EVENT_CLOSEAPP          (EVENT_SFX_START + 1)
#define SFX_EVENT_CREATEDOC         (EVENT_SFX_START + 2)
#define SFX_EVENT_OPENDOC           (EVENT_SFX_START + 3)
#define SFX_EVENT_CLOSEDOC          (EVENT_SFX_START + 4)
#define SFX_EVENT_SAVEDOC           (EVENT_SFX_START + 5)
#define SFX_EVENT_SAVEASDOC         (EVENT_SFX_START + 6)
#define SFX_EVENT_ACTIVATEDOC       (EVENT_SFX_START + 7)
#define SFX_EVENT_DEACTIVATEDOC     (EVENT_SFX_START + 8)
#define SFX_EVENT_PRINTDOC          (EVENT_SFX_START + 9)
#define SFX_EVENT_SAVEACOPY         (EVENT_SFX_START + 10)

#define SFX_EVENT_LOADFINISHED      (EVENT_SFX_START + 11)

#define SFX_EVENT_MODIFYCHANGED     (EVENT_SFX_START + 13)
#define SFX_EVENT_PREPARECLOSEDOC   (EVENT_SFX_START + 14)
#define SFX_EVENT_TOGGLEFULLSCREENMODE  (EVENT_SFX_START + 16)
#define SFX_EVENT_SAVEDOCDONE       (EVENT_SFX_START + 17)
#define SFX_EVENT_SAVEASDOCDONE     (EVENT_SFX_START + 18)

#define SFX_EVENT_SAVETODOC         (EVENT_SFX_START + 19)
#define SFX_EVENT_SAVETODOCDONE     (EVENT_SFX_START + 20)

#define SFX_EVENT_VIEWCREATED       (EVENT_SFX_START + 21)
#define SFX_EVENT_PREPARECLOSEVIEW  (EVENT_SFX_START + 22)
#define SFX_EVENT_CLOSEVIEW         (EVENT_SFX_START + 23)

#define SFX_EVENT_STORAGECHANGED    (EVENT_SFX_START + 24)
#define SFX_EVENT_VISAREACHANGED    (EVENT_SFX_START + 25)

#define SFX_EVENT_DOCCREATED        (EVENT_SFX_START + 26)

#define SFX_EVENT_SAVEASDOCFAILED   (EVENT_SFX_START + 27)
#define SFX_EVENT_SAVEDOCFAILED     (EVENT_SFX_START + 28)
#define SFX_EVENT_SAVETODOCFAILED   (EVENT_SFX_START + 29)


// Events for Controls etc.
#define SFX_EVENT_MOUSEOVER_OBJECT     ( EVENT_SFX_START + 100 )
#define SFX_EVENT_MOUSECLICK_OBJECT    ( EVENT_SFX_START + 101 )
#define SFX_EVENT_MOUSEOUT_OBJECT      ( EVENT_SFX_START + 102 )

//--------------------------------------------------------------------

#define RID_SFX_APP_START                   (RID_SFX_START +  256)
#define RID_SFX_MENU_START                  (RID_SFX_START +  768)
//      RID_SFX_CONFIG_START                (RID_SFX_START + 1536)
#define RID_SFX_DOC_START                   (RID_SFX_START + 1792)
#define RID_SFX_DIALOG_START                (RID_SFX_START + 2048)
#define RID_SFX_BASTYP_START                (RID_SFX_START + 2304)
#define RID_SFX_EXPLORER_START              (RID_SFX_START + 2816)

//      RID_CNT_START                       (RID_SFX_START + 3072)

#define RID_SFX_SFXLOCAL_START              (RID_SFX_START + 3082)
#define RID_SFX_VIEW_START                  (RID_SFX_START + 4096)
#define RID_SFX_SIDEBAR_START               (RID_SFX_START + 4150)
//      RID_CNT_START2                      (RID_SFX_START + 4500)
//      RID_SFX_CHAOSDOC_START              (RID_SFX_START + 5120)
//      RID_SFX_TPLCOMPONENT_START          (RID_SFX_START + 6800)
//      RID_SFX_HELPCOMPONENT_START         (RID_SFX_START + 7000)

//--------------------------------------------------------------------

#define SFX_OBJECTBAR_APPLICATION       0
#define SFX_OBJECTBAR_OBJECT            1
#define SFX_OBJECTBAR_TOOLS             2
#define SFX_OBJECTBAR_MACRO             3
#define SFX_OBJECTBAR_FULLSCREEN        4
#define SFX_OBJECTBAR_RECORDING         5
#define SFX_OBJECTBAR_COMMONTASK        6
#define SFX_OBJECTBAR_OPTIONS           7
#define SFX_OBJECTBAR_NAVIGATION        12
#define SFX_OBJECTBAR_MAX               13

// temporary due to compatibility


#define MSG_QUERY_LASTVERSION               RID_SFX_START

#define RID_APPLICATION                     RID_SFX_START
#define RID_DEFAULTIMAGELIST_SC             (RID_SFX_START+15)
#define RID_DEFAULTIMAGELIST_LC             (RID_SFX_START+17)

#define RID_STYLECATALOG                    (RID_SFX_START+1201)

#define RID_DEFAULTABOUT                    (RID_SFX_START+0)

#define RID_APPTITLE                        (RID_SFX_START+4)



#define DLG_STYLE_DESIGNER                  (RID_SFX_START+8)

#define RID_SFX_INCORRECT_PASSWORD          (RID_SFX_START+216)

#define STR_STYLE_FILTER_AUTO               (RID_SFX_START+9)
#define STR_STYLE_FILTER_USED               (RID_SFX_START+10)
#define STR_STYLE_FILTER_USERDEF            (RID_SFX_START+11)
#define STR_STYLE_FILTER_ALL                (RID_SFX_START+12)
// +13 already used!
#define STR_STYLE_FILTER_HIERARCHICAL       (RID_SFX_START+1200)

#define STR_NONAME                          (RID_SFX_START+100)
#define STR_NONE                            (RID_SFX_START+101)
#define STR_CLOSE                           (RID_SFX_START+103)
#define STR_STANDARD                        (RID_SFX_START+104)
#define STR_READONLY                        (RID_SFX_START+105)

#define STR_SFX_FILTERNAME_ALL              (RID_SFX_START+106)
#define STR_EDIT                            (RID_SFX_START+108)

#define STR_BYTES                           (RID_SFX_START+111)
#define STR_KB                              (RID_SFX_START+112)
#define STR_MB                              (RID_SFX_START+113)
#define STR_GB                              (RID_SFX_START+114)


#define STR_STANDARD_SHORTCUT               (RID_SFX_START+117)
#define STR_REPAIREDDOCUMENT                (RID_SFX_START+118)
#define STR_ERRUNOEVENTBINDUNG              (RID_SFX_START+119)
#define STR_SHARED                          (RID_SFX_START+120)
#define RID_XMLSEC_DOCUMENTSIGNED           (RID_SFX_START+121)
#define STR_PASSWD                          (RID_SFX_START+122)
#define STR_PASSWD_EMPTY                    (RID_SFX_START+123)
#define STR_PASSWD_MIN_LEN                  (RID_SFX_START+124)
#define STR_NONCHECKEDOUT_DOCUMENT          (RID_SFX_START+125)
#define BT_CHECKOUT                         (RID_SFX_START+126)
#define STR_ACCTITLE_PRODUCTIVITYTOOLS      (RID_SFX_START+157)

#define SFX_THUMBNAIL_TEXT                  (RID_SFX_START+158)
#define SFX_THUMBNAIL_SHEET                 (RID_SFX_START+159)
#define SFX_THUMBNAIL_PRESENTATION          (RID_SFX_START+160)
#define SFX_THUMBNAIL_DRAWING               (RID_SFX_START+161)

#define SFX_FILE_THUMBNAIL_TEXT             (RID_SFX_START+162)
#define SFX_FILE_THUMBNAIL_SHEET            (RID_SFX_START+163)
#define SFX_FILE_THUMBNAIL_PRESENTATION     (RID_SFX_START+164)
#define SFX_FILE_THUMBNAIL_DRAWING          (RID_SFX_START+165)
#define SFX_FILE_THUMBNAIL_DATABASE         (RID_SFX_START+166)
#define SFX_FILE_THUMBNAIL_MATH             (RID_SFX_START+167)
#define SFX_FILE_THUMBNAIL_DEFAULT          (RID_SFX_START+168)

//=========================================================================

// group ids
//=========================================================================
// !! If you add a new group, please change sfxbasecontroller.cxx and
// !! com.sun.star.frame.CommandGroup accordingly!
//=========================================================================

#define GID_INTERN                          (RID_GROUPS_SFXOFFSET+ 0)
#define GID_APPLICATION                     (RID_GROUPS_SFXOFFSET+ 1)
#define GID_DOCUMENT                        (RID_GROUPS_SFXOFFSET+ 2)
#define GID_VIEW                            (RID_GROUPS_SFXOFFSET+ 3)
#define GID_EDIT                            (RID_GROUPS_SFXOFFSET+ 4)
#define GID_MACRO                           (RID_GROUPS_SFXOFFSET+ 5)
#define GID_OPTIONS                         (RID_GROUPS_SFXOFFSET+ 6)
#define GID_MATH                            (RID_GROUPS_SFXOFFSET+ 7)
#define GID_NAVIGATOR                       (RID_GROUPS_SFXOFFSET+ 8)
#define GID_INSERT                          (RID_GROUPS_SFXOFFSET+ 9)
#define GID_FORMAT                          (RID_GROUPS_SFXOFFSET+10)
#define GID_TEMPLATE                        (RID_GROUPS_SFXOFFSET+11)
#define GID_TEXT                            (RID_GROUPS_SFXOFFSET+12)
#define GID_FRAME                           (RID_GROUPS_SFXOFFSET+13)
#define GID_GRAPHIC                         (RID_GROUPS_SFXOFFSET+14)
#define GID_TABLE                           (RID_GROUPS_SFXOFFSET+15)
#define GID_ENUMERATION                     (RID_GROUPS_SFXOFFSET+16)
#define GID_DATA                            (RID_GROUPS_SFXOFFSET+17)
#define GID_SPECIAL                         (RID_GROUPS_SFXOFFSET+18)
#define GID_IMAGE                           (RID_GROUPS_SFXOFFSET+19)
#define GID_CHART                           (RID_GROUPS_SFXOFFSET+20)
#define GID_EXPLORER                        (RID_GROUPS_SFXOFFSET+21)
#define GID_CONNECTOR                       (RID_GROUPS_SFXOFFSET+22)
#define GID_MODIFY                          (RID_GROUPS_SFXOFFSET+23)
#define GID_DRAWING                         (RID_GROUPS_SFXOFFSET+24)
#define GID_CONTROLS                        (RID_GROUPS_SFXOFFSET+25)
#define GID_NAVIGATION                      (RID_GROUPS_SFXOFFSET+26)

// =========================================================================

#define RID_OPTIONS_START           (SID_LIB_START +    2000)
//      RID_OPTIONS_END             (RID_OPTIONS_START + 100)

// ResId's ------------------------------------------------------------------

#define RID_SFXPAGE_SAVE            (RID_OPTIONS_START +  0)
#define RID_SFXPAGE_GENERAL         (RID_OPTIONS_START +  1)
#define RID_SFXDLG_EDITDICT         (RID_OPTIONS_START +  4)
#define RID_SFXPAGE_PATH            (RID_OPTIONS_START +  6)
#define RID_SFXPAGE_LINGU           (RID_OPTIONS_START +  7)
#define RID_SFXQB_SET_LANGUAGE      (RID_OPTIONS_START + 10)
#define RID_SFXPAGE_PRINTOPTIONS    (RID_OPTIONS_START + 12)

#define RID_STR_NEW_TASK                    (RID_SFX_DOC_START+ 76)

// Member-Ids ------------------------------------------------------------

#define MID_DOCINFO_DESCRIPTION              0x13
#define MID_DOCINFO_KEYWORDS                 0x17
#define MID_DOCINFO_SUBJECT                  0x1b
#define MID_DOCINFO_TITLE                        0x1d
#define MID_DOCINFO_AUTOLOADENABLED          0x2d
#define MID_DOCINFO_AUTOLOADURL              0x2e
#define MID_DOCINFO_AUTOLOADSECS             0x2f
#define MID_DOCINFO_DEFAULTTARGET            0x30
#define MID_DOCINFO_USEUSERDATA              0x31
#define MID_DOCINFO_DELETEUSERDATA           0x32

// only for FastPropertySet
#define MID_DOCINFO_REVISION                 0x15
#define MID_DOCINFO_EDITTIME                 0x16
#define MID_DOCINFO_MODIFICATIONAUTHOR       0x18
#define MID_DOCINFO_TEMPLATE                 0x1c
#define MID_DOCINFO_PRINTDATE                0x28
#define MID_DOCINFO_PRINTEDBY                0x2a
#define MID_DOCINFO_TEMPLATEDATE             0x2b
#define MID_DOCINFO_STATISTIC                0x33
#define MID_DOCINFO_CHARLOCALE               0x34
#define MID_CATEGORY                         0x35
#define MID_COMPANY                          0x36
#define MID_MANAGER                          0x37
#define MID_TYPE                             0x38
#define MID_VALUE               	     0x39
#define MID_VALUESET   	                     0x40

// Config-Ids -----------------------------------------------------------

#define SFX_ITEMTYPE_SW_BEGIN       20000
//      SFX_ITEMTYPE_SW_END         22999

#define SFX_ITEMTYPE_SD_BEGIN       23000
//      SFX_ITEMTYPE_SD_END         25999

#define SFX_ITEMTYPE_SC_BEGIN       26000
//      SFX_ITEMTYPE_SC_END         27999

// free: 28000-32767

// Slot-Ids -------------------------------------------------------------

#include <sfx2/sfxsids.hrc>

#define HID_INTERFACE_SFXHELP_VIEWSH            24

#define RET_NEWTASK 200

#endif // #ifndef _SFX_HRC

// ******************************************************************* EOF

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */