2010-10-14 01:27:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2004-01-06 09:41:35 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
2008-04-11 01:19:31 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-01-06 09:41:35 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _TOOLS_VCLRSC_HXX
|
|
|
|
#define _TOOLS_VCLRSC_HXX
|
|
|
|
|
|
|
|
#include <sal/types.h>
|
|
|
|
#include <tools/solar.h>
|
2010-11-23 11:50:48 -06:00
|
|
|
#include <tools/wintypes.hxx>
|
|
|
|
#include <tools/fldunit.hxx>
|
|
|
|
#include <tools/mapunit.hxx>
|
2011-03-21 03:48:53 -05:00
|
|
|
#include <tools/wintypes.hxx>
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
// from vcl/inc/vclenum.hxx
|
|
|
|
#ifndef ENUM_TIMEFIELDFORMAT_DECLARED
|
|
|
|
#define ENUM_TIMEFIELDFORMAT_DECLARED
|
|
|
|
|
|
|
|
enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, TimeFieldFormat_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// -----------------
|
|
|
|
// - KeyCode-Types -
|
|
|
|
// -----------------
|
2006-07-10 10:31:10 -05:00
|
|
|
#include <com/sun/star/awt/Key.hpp>
|
|
|
|
#include <com/sun/star/awt/KeyGroup.hpp>
|
2005-01-03 10:24:21 -06:00
|
|
|
|
|
|
|
#define KEY_CODE ((sal_uInt16)0x0FFF)
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
// Modifier-Tasten
|
2005-01-03 10:24:21 -06:00
|
|
|
#define KEY_SHIFT ((sal_uInt16)0x1000)
|
|
|
|
#define KEY_MOD1 ((sal_uInt16)0x2000)
|
|
|
|
#define KEY_MOD2 ((sal_uInt16)0x4000)
|
2008-01-14 08:54:07 -06:00
|
|
|
#define KEY_MOD3 ((sal_uInt16)0x8000)
|
|
|
|
#define KEY_MODTYPE ((sal_uInt16)0xF000)
|
2005-01-03 10:24:21 -06:00
|
|
|
#define KEY_ALLMODTYPE ((sal_uInt16)0xF000)
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
|
|
|
|
// from vcl/inc/vclenum.hxx
|
|
|
|
#ifndef ENUM_KEYFUNCTYPE_DECLARED
|
|
|
|
#define ENUM_KEYFUNCTYPE_DECLARED
|
|
|
|
|
|
|
|
enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
|
|
|
|
KEYFUNC_SAVEAS, KEYFUNC_PRINT, KEYFUNC_CLOSE, KEYFUNC_QUIT,
|
|
|
|
KEYFUNC_CUT, KEYFUNC_COPY, KEYFUNC_PASTE, KEYFUNC_UNDO,
|
|
|
|
KEYFUNC_REDO, KEYFUNC_DELETE, KEYFUNC_REPEAT, KEYFUNC_FIND,
|
|
|
|
KEYFUNC_FINDBACKWARD, KEYFUNC_PROPERTIES, KEYFUNC_FRONT,
|
|
|
|
KeyFuncType_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------
|
|
|
|
// - Bits fuer ToolBoxItems -
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
// from vcl/inc/toolbox.hxx
|
2005-01-03 10:24:21 -06:00
|
|
|
typedef sal_uInt16 ToolBoxItemBits;
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
#define TIB_CHECKABLE ((ToolBoxItemBits)0x0001)
|
|
|
|
#define TIB_RADIOCHECK ((ToolBoxItemBits)0x0002)
|
|
|
|
#define TIB_AUTOCHECK ((ToolBoxItemBits)0x0004)
|
|
|
|
#define TIB_LEFT ((ToolBoxItemBits)0x0008)
|
|
|
|
#define TIB_AUTOSIZE ((ToolBoxItemBits)0x0010)
|
|
|
|
#define TIB_DROPDOWN ((ToolBoxItemBits)0x0020)
|
|
|
|
#define TIB_REPEAT ((ToolBoxItemBits)0x0040)
|
|
|
|
|
|
|
|
enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
|
|
|
|
|
|
|
|
enum ToolBoxItemType { TOOLBOXITEM_DONTKNOW, TOOLBOXITEM_BUTTON,
|
|
|
|
TOOLBOXITEM_SPACE, TOOLBOXITEM_SEPARATOR,
|
|
|
|
TOOLBOXITEM_BREAK };
|
|
|
|
|
|
|
|
|
2008-03-06 12:40:20 -06:00
|
|
|
// ---------------
|
|
|
|
// - BorderStyle -
|
|
|
|
// ---------------
|
|
|
|
|
|
|
|
typedef sal_uInt16 WindowBorderStyle;
|
|
|
|
|
|
|
|
#define WINDOW_BORDER_NORMAL ((WindowBorderStyle)0x0001)
|
|
|
|
#define WINDOW_BORDER_MONO ((WindowBorderStyle)0x0002)
|
|
|
|
#define WINDOW_BORDER_ACTIVE ((WindowBorderStyle)0x0004)
|
|
|
|
#define WINDOW_BORDER_DOUBLEOUT ((WindowBorderStyle)0x0008)
|
|
|
|
#define WINDOW_BORDER_MENU ((WindowBorderStyle)0x0010)
|
|
|
|
#define WINDOW_BORDER_NOBORDER ((WindowBorderStyle)0x1000)
|
|
|
|
|
2004-01-06 09:41:35 -06:00
|
|
|
// --------------
|
|
|
|
// - Menu-Types -
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
// from vcl/inc/menu.hxx
|
|
|
|
enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
|
|
|
|
MENUITEM_STRINGIMAGE, MENUITEM_SEPARATOR };
|
|
|
|
|
2005-01-03 10:24:21 -06:00
|
|
|
typedef sal_uInt16 MenuItemBits;
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
#define MIB_CHECKABLE ((MenuItemBits)0x0001)
|
|
|
|
#define MIB_RADIOCHECK ((MenuItemBits)0x0002)
|
|
|
|
#define MIB_AUTOCHECK ((MenuItemBits)0x0004)
|
|
|
|
#define MIB_ABOUT ((MenuItemBits)0x0008)
|
|
|
|
#define MIB_HELP ((MenuItemBits)0x0010)
|
|
|
|
#define MIB_POPUPSELECT ((MenuItemBits)0x0020)
|
|
|
|
|
|
|
|
// ----------------
|
|
|
|
// - Symbol-Types -
|
|
|
|
// ----------------
|
|
|
|
|
|
|
|
// from vcl/inc/symbol.hxx
|
2005-01-03 10:24:21 -06:00
|
|
|
typedef sal_uInt16 SymbolType;
|
2004-01-06 09:41:35 -06:00
|
|
|
#define SYMBOL_DONTKNOW ((SymbolType)0)
|
|
|
|
#define SYMBOL_IMAGE ((SymbolType)1)
|
|
|
|
#define SYMBOL_ARROW_UP ((SymbolType)2)
|
|
|
|
#define SYMBOL_ARROW_DOWN ((SymbolType)3)
|
|
|
|
#define SYMBOL_ARROW_LEFT ((SymbolType)4)
|
|
|
|
#define SYMBOL_ARROW_RIGHT ((SymbolType)5)
|
|
|
|
#define SYMBOL_SPIN_UP ((SymbolType)6)
|
|
|
|
#define SYMBOL_SPIN_DOWN ((SymbolType)7)
|
|
|
|
#define SYMBOL_SPIN_LEFT ((SymbolType)8)
|
|
|
|
#define SYMBOL_SPIN_RIGHT ((SymbolType)9)
|
|
|
|
#define SYMBOL_FIRST ((SymbolType)10)
|
|
|
|
#define SYMBOL_LAST ((SymbolType)11)
|
|
|
|
#define SYMBOL_PREV ((SymbolType)12)
|
|
|
|
#define SYMBOL_NEXT ((SymbolType)13)
|
|
|
|
#define SYMBOL_PAGEUP ((SymbolType)14)
|
|
|
|
#define SYMBOL_PAGEDOWN ((SymbolType)15)
|
|
|
|
#define SYMBOL_PLAY ((SymbolType)16)
|
|
|
|
#define SYMBOL_REVERSEPLAY ((SymbolType)17)
|
|
|
|
#define SYMBOL_RECORD ((SymbolType)18)
|
|
|
|
#define SYMBOL_STOP ((SymbolType)19)
|
|
|
|
#define SYMBOL_PAUSE ((SymbolType)20)
|
|
|
|
#define SYMBOL_WINDSTART ((SymbolType)21)
|
|
|
|
#define SYMBOL_WINDEND ((SymbolType)22)
|
|
|
|
#define SYMBOL_WINDBACKWARD ((SymbolType)23)
|
|
|
|
#define SYMBOL_WINDFORWARD ((SymbolType)24)
|
|
|
|
#define SYMBOL_CLOSE ((SymbolType)25)
|
|
|
|
#define SYMBOL_ROLLUP ((SymbolType)26)
|
|
|
|
#define SYMBOL_ROLLDOWN ((SymbolType)27)
|
|
|
|
#define SYMBOL_CHECKMARK ((SymbolType)28)
|
|
|
|
#define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
|
|
|
|
#define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
|
|
|
|
#define SYMBOL_FLOAT ((SymbolType)31)
|
|
|
|
#define SYMBOL_DOCK ((SymbolType)32)
|
|
|
|
#define SYMBOL_HIDE ((SymbolType)33)
|
|
|
|
#define SYMBOL_HELP ((SymbolType)34)
|
2011-09-13 07:42:17 -05:00
|
|
|
#define SYMBOL_PLUS ((SymbolType)35)
|
2004-01-06 09:41:35 -06:00
|
|
|
|
|
|
|
#define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 01:27:31 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|