update credits
[LibreOffice.git] / include / rsc / rsc-vcl-shared-types.hxx
blob4e8ca10090c73a2d8dfe9c2d48733f443284ac8f
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 _RSC_RSC_VCL_SHARED_TYPES_HXX
21 #define _RSC_RSC_VCL_SHARED_TYPES_HXX
23 enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, TimeFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
25 enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
26 KEYFUNC_SAVEAS, KEYFUNC_PRINT, KEYFUNC_CLOSE, KEYFUNC_QUIT,
27 KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
28 KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT, KEYFUNC_FIND,
29 KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES, KEYFUNC_FRONT,
30 KeyFuncType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
32 enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
33 MENUITEM_STRINGIMAGE, MENUITEM_SEPARATOR };
35 typedef sal_uInt16 MenuItemBits;
37 #define MIB_CHECKABLE ((MenuItemBits)0x0001)
38 #define MIB_RADIOCHECK ((MenuItemBits)0x0002)
39 #define MIB_AUTOCHECK ((MenuItemBits)0x0004)
40 #define MIB_ABOUT ((MenuItemBits)0x0008)
41 #define MIB_HELP ((MenuItemBits)0x0010)
42 #define MIB_POPUPSELECT ((MenuItemBits)0x0020)
44 // These have been said to be a prelimitary (sic) solution since 2007
45 #define MIB_NOSELECT ((MenuItemBits)0x0040)
46 #define MIB_ICON ((MenuItemBits)0x0080)
47 #define MIB_TEXT ((MenuItemBits)0x0100)
49 typedef sal_uInt16 ToolBoxItemBits;
51 #define TIB_CHECKABLE ((ToolBoxItemBits)0x0001)
52 #define TIB_RADIOCHECK ((ToolBoxItemBits)0x0002)
53 #define TIB_AUTOCHECK ((ToolBoxItemBits)0x0004)
54 #define TIB_LEFT ((ToolBoxItemBits)0x0008)
55 #define TIB_AUTOSIZE ((ToolBoxItemBits)0x0010)
56 #define TIB_DROPDOWN ((ToolBoxItemBits)0x0020)
57 #define TIB_REPEAT ((ToolBoxItemBits)0x0040)
58 #define TIB_DROPDOWNONLY ((ToolBoxItemBits)0x0080 | TIB_DROPDOWN)
59 #define TIB_TEXT_ONLY ((ToolBoxItemBits)0x0100)
60 #define TIB_ICON_ONLY ((ToolBoxItemBits)0x0200)
61 #define TIB_TEXTICON ((ToolBoxItemBits) TIB_TEXT_ONLY | TIB_ICON_ONLY )
63 enum ToolBoxItemType { TOOLBOXITEM_DONTKNOW, TOOLBOXITEM_BUTTON,
64 TOOLBOXITEM_SPACE, TOOLBOXITEM_SEPARATOR,
65 TOOLBOXITEM_BREAK };
67 enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
69 typedef sal_uInt16 SymbolType;
71 #define SYMBOL_DONTKNOW ((SymbolType)0)
72 #define SYMBOL_IMAGE ((SymbolType)1)
73 #define SYMBOL_ARROW_UP ((SymbolType)2)
74 #define SYMBOL_ARROW_DOWN ((SymbolType)3)
75 #define SYMBOL_ARROW_LEFT ((SymbolType)4)
76 #define SYMBOL_ARROW_RIGHT ((SymbolType)5)
77 #define SYMBOL_SPIN_UP ((SymbolType)6)
78 #define SYMBOL_SPIN_DOWN ((SymbolType)7)
79 #define SYMBOL_SPIN_LEFT ((SymbolType)8)
80 #define SYMBOL_SPIN_RIGHT ((SymbolType)9)
81 #define SYMBOL_FIRST ((SymbolType)10)
82 #define SYMBOL_LAST ((SymbolType)11)
83 #define SYMBOL_PREV ((SymbolType)12)
84 #define SYMBOL_NEXT ((SymbolType)13)
85 #define SYMBOL_PAGEUP ((SymbolType)14)
86 #define SYMBOL_PAGEDOWN ((SymbolType)15)
87 #define SYMBOL_PLAY ((SymbolType)16)
88 #define SYMBOL_REVERSEPLAY ((SymbolType)17)
89 #define SYMBOL_RECORD ((SymbolType)18)
90 #define SYMBOL_STOP ((SymbolType)19)
91 #define SYMBOL_PAUSE ((SymbolType)20)
92 #define SYMBOL_WINDSTART ((SymbolType)21)
93 #define SYMBOL_WINDEND ((SymbolType)22)
94 #define SYMBOL_WINDBACKWARD ((SymbolType)23)
95 #define SYMBOL_WINDFORWARD ((SymbolType)24)
96 #define SYMBOL_CLOSE ((SymbolType)25)
97 #define SYMBOL_ROLLUP ((SymbolType)26)
98 #define SYMBOL_ROLLDOWN ((SymbolType)27)
99 #define SYMBOL_CHECKMARK ((SymbolType)28)
100 #define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
101 #define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
102 #define SYMBOL_FLOAT ((SymbolType)31)
103 #define SYMBOL_DOCK ((SymbolType)32)
104 #define SYMBOL_HIDE ((SymbolType)33)
105 #define SYMBOL_HELP ((SymbolType)34)
106 #define SYMBOL_PLUS ((SymbolType)35)
107 #define SYMBOL_MENU SYMBOL_SPIN_DOWN
109 #define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
111 // Border-Styles fuer SetBorder()
112 typedef sal_uInt16 WindowBorderStyle;
114 #define WINDOW_BORDER_NORMAL ((WindowBorderStyle)0x0001)
115 #define WINDOW_BORDER_MONO ((WindowBorderStyle)0x0002)
116 #define WINDOW_BORDER_MENU ((WindowBorderStyle)0x0010)
117 #define WINDOW_BORDER_NWF ((WindowBorderStyle)0x0020)
118 #define WINDOW_BORDER_NOBORDER ((WindowBorderStyle)0x1000)
119 #define WINDOW_BORDER_REMOVEBORDER ((WindowBorderStyle)0x2000)
121 #define KEY_CODE ((sal_uInt16)0x0FFF)
123 // Modifier-Tasten
124 #define KEY_SHIFT ((sal_uInt16)0x1000)
125 #define KEY_MOD1 ((sal_uInt16)0x2000)
126 #define KEY_MOD2 ((sal_uInt16)0x4000)
127 #define KEY_MOD3 ((sal_uInt16)0x8000)
128 #define KEY_MODTYPE ((sal_uInt16)0xF000)
129 #define KEY_ALLMODTYPE ((sal_uInt16)0xF000)
131 #endif
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */