1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_TOOLS_RC_H
21 #define INCLUDED_TOOLS_RC_H
23 #include <tools/rcid.h>
25 // Defines for all "Window" resources.
26 // (Here are all window styles that are not in WinBits)
27 #define RSC_EXTRAMAPUNIT 0xFFFF // do not change that value!
30 #define RSWND_DISABLED 0x01
31 #define RSWND_CLIENTSIZE 0x02
33 #define WINDOW_XYMAPMODE 0x0001
34 #define WINDOW_X 0x0002
35 #define WINDOW_Y 0x0004
36 #define WINDOW_WHMAPMODE 0x0008
37 #define WINDOW_WIDTH 0x0010
38 #define WINDOW_HEIGHT 0x0020
39 #define WINDOW_TEXT 0x0080
40 #define WINDOW_HELPTEXT 0x0100
41 #define WINDOW_QUICKTEXT 0x0200
42 #define WINDOW_EXTRALONG 0x0800
43 #define WINDOW_UNIQUEID 0x1000
44 #define WINDOW_BORDER_STYLE 0x2000
45 #define WINDOW_HELPID 0x4000
47 // For "WorkWindow" resources:
48 #define WORKWIN_SHOWNORMAL 0
49 #define WORKWIN_SHOWMINIMIZED 1
50 #define WORKWIN_SHOWMAXIMIZED 2
52 // For "FixedImage" resource:
53 #define RSC_FIXEDIMAGE_IMAGE 0x0001
55 // For all menu resources:
56 #define RSC_MENU_ITEMS 0x01
57 #define RSC_MENU_TEXT 0x02
58 #define RSC_MENU_DEFAULTITEMID 0x04
60 // "MenuItem" resource options:
61 #define RSC_MENUITEM_SEPARATOR 0x001
62 #define RSC_MENUITEM_ID 0x002
63 #define RSC_MENUITEM_STATUS 0x004
64 #define RSC_MENUITEM_TEXT 0x008
65 #define RSC_MENUITEM_BITMAP 0x010
66 #define RSC_MENUITEM_HELPTEXT 0x020
67 #define RSC_MENUITEM_HELPID 0x040
68 #define RSC_MENUITEM_KEYCODE 0x080
69 #define RSC_MENUITEM_MENU 0x100
70 #define RSC_MENUITEM_CHECKED 0x200
71 #define RSC_MENUITEM_DISABLE 0x400
72 #define RSC_MENUITEM_COMMAND 0x800
74 // "AccelKey" resource options:
75 #define ACCELITEM_ACCEL 0x01
76 #define ACCELITEM_KEY 0x02
78 // For "Field" resources:
80 #define NUMERICFORMATTER_MIN 0x01
81 #define NUMERICFORMATTER_MAX 0x02
82 #define NUMERICFORMATTER_STRICTFORMAT 0x04
83 //#define NUMERICFORMATTER_I12 0x08 // removed (2005-06-17)
84 #define NUMERICFORMATTER_DECIMALDIGITS 0x10
85 #define NUMERICFORMATTER_VALUE 0x20
86 #define NUMERICFORMATTER_NOTHOUSANDSEP 0x40
88 #define METRICFORMATTER_UNIT 0x01
89 #define METRICFORMATTER_CUSTOMUNITTEXT 0x02
91 #define NUMERICFIELD_FIRST 0x01
92 #define NUMERICFIELD_LAST 0x02
93 #define NUMERICFIELD_SPINSIZE 0x04
95 #define METRICFIELD_FIRST 0x01
96 #define METRICFIELD_LAST 0x02
97 #define METRICFIELD_SPINSIZE 0x04
99 // For "ToolBoxItem" resources:
100 #define RSC_TOOLBOXITEM_ID 0x0001
101 #define RSC_TOOLBOXITEM_TYPE 0x0002
102 #define RSC_TOOLBOXITEM_STATUS 0x0004
103 #define RSC_TOOLBOXITEM_HELPID 0x0008
104 #define RSC_TOOLBOXITEM_TEXT 0x0010
105 #define RSC_TOOLBOXITEM_HELPTEXT 0x0020
106 #define RSC_TOOLBOXITEM_BITMAP 0x0040
107 #define RSC_TOOLBOXITEM_IMAGE 0x0080
108 #define RSC_TOOLBOXITEM_DISABLE 0x0100
109 #define RSC_TOOLBOXITEM_STATE 0x0200
110 #define RSC_TOOLBOXITEM_HIDE 0x0400
111 #define RSC_TOOLBOXITEM_COMMAND 0x0800
113 // For "ToolBox" resources:
114 #define RSC_TOOLBOX_BUTTONTYPE 0x01
115 #define RSC_TOOLBOX_ALIGN 0x02
116 #define RSC_TOOLBOX_LINECOUNT 0x04
117 #define RSC_TOOLBOX_FLOATLINES 0x08
118 #define RSC_TOOLBOX_CUSTOMIZE 0x10
119 #define RSC_TOOLBOX_MENUSTRINGS 0x20
120 #define RSC_TOOLBOX_ITEMIMAGELIST 0x40
121 #define RSC_TOOLBOX_ITEMLIST 0x80
123 // For "DockingWindow" resources:
124 #define RSC_DOCKINGWINDOW_XYMAPMODE 0x01
125 #define RSC_DOCKINGWINDOW_X 0x02
126 #define RSC_DOCKINGWINDOW_Y 0x04
127 #define RSC_DOCKINGWINDOW_FLOATING 0x08
129 // For "ImageButtons":
130 #define RSC_IMAGEBUTTON_IMAGE 0x01
131 #define RSC_IMAGEBUTTON_SYMBOL 0x02
132 #define RSC_IMAGEBUTTON_STATE 0x04
135 #define RSC_IMAGE_IMAGEBITMAP 0x01
136 #define RSC_IMAGE_MASKBITMAP 0x02
137 #define RSC_IMAGE_MASKCOLOR 0x04
140 #define RSC_IMAGELIST_MASKCOLOR 0x04
141 #define RSC_IMAGELIST_IDLIST 0x08
142 #define RSC_IMAGELIST_IDCOUNT 0x10
144 // FIXME obsolete, should be removed by MM
145 #define RSC_COLOR (RSC_NOTYPE + 0x16)
149 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */