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 _SVX_FMGLOB_HXX
21 #define _SVX_FMGLOB_HXX
23 #include <tools/solar.h>
24 #include <svx/svdobj.hxx>
25 #include <com/sun/star/form/FormComponentType.hpp>
27 const sal_uInt32 FmFormInventor
= sal_uInt32('F')*0x00000001+
28 sal_uInt32('M')*0x00000100+
29 sal_uInt32('0')*0x00010000+
30 sal_uInt32('1')*0x01000000;
32 const sal_uInt16 OBJ_FM_CONTROL
= ::com::sun::star::form::FormComponentType::CONTROL
;
33 // for form components
34 const sal_uInt16 OBJ_FM_EDIT
= ::com::sun::star::form::FormComponentType::TEXTFIELD
;
35 const sal_uInt16 OBJ_FM_BUTTON
= ::com::sun::star::form::FormComponentType::COMMANDBUTTON
;
36 const sal_uInt16 OBJ_FM_FIXEDTEXT
= ::com::sun::star::form::FormComponentType::FIXEDTEXT
;
37 const sal_uInt16 OBJ_FM_LISTBOX
= ::com::sun::star::form::FormComponentType::LISTBOX
;
38 const sal_uInt16 OBJ_FM_CHECKBOX
= ::com::sun::star::form::FormComponentType::CHECKBOX
;
39 const sal_uInt16 OBJ_FM_COMBOBOX
= ::com::sun::star::form::FormComponentType::COMBOBOX
;
40 const sal_uInt16 OBJ_FM_RADIOBUTTON
= ::com::sun::star::form::FormComponentType::RADIOBUTTON
;
41 const sal_uInt16 OBJ_FM_GROUPBOX
= ::com::sun::star::form::FormComponentType::GROUPBOX
;
42 const sal_uInt16 OBJ_FM_GRID
= ::com::sun::star::form::FormComponentType::GRIDCONTROL
;
43 const sal_uInt16 OBJ_FM_IMAGEBUTTON
= ::com::sun::star::form::FormComponentType::IMAGEBUTTON
;
44 const sal_uInt16 OBJ_FM_FILECONTROL
= ::com::sun::star::form::FormComponentType::FILECONTROL
;
45 const sal_uInt16 OBJ_FM_DATEFIELD
= ::com::sun::star::form::FormComponentType::DATEFIELD
;
46 const sal_uInt16 OBJ_FM_TIMEFIELD
= ::com::sun::star::form::FormComponentType::TIMEFIELD
;
47 const sal_uInt16 OBJ_FM_NUMERICFIELD
= ::com::sun::star::form::FormComponentType::NUMERICFIELD
;
48 const sal_uInt16 OBJ_FM_CURRENCYFIELD
= ::com::sun::star::form::FormComponentType::CURRENCYFIELD
;
49 const sal_uInt16 OBJ_FM_PATTERNFIELD
= ::com::sun::star::form::FormComponentType::PATTERNFIELD
;
50 const sal_uInt16 OBJ_FM_HIDDEN
= ::com::sun::star::form::FormComponentType::HIDDENCONTROL
;
51 const sal_uInt16 OBJ_FM_IMAGECONTROL
= ::com::sun::star::form::FormComponentType::IMAGECONTROL
;
52 const sal_uInt16 OBJ_FM_FORMATTEDFIELD
= ::com::sun::star::form::FormComponentType::PATTERNFIELD
+ 1;
53 const sal_uInt16 OBJ_FM_SCROLLBAR
= ::com::sun::star::form::FormComponentType::PATTERNFIELD
+ 2;
54 const sal_uInt16 OBJ_FM_SPINBUTTON
= ::com::sun::star::form::FormComponentType::PATTERNFIELD
+ 3;
55 const sal_uInt16 OBJ_FM_NAVIGATIONBAR
= ::com::sun::star::form::FormComponentType::PATTERNFIELD
+ 4;
57 #endif // _FM_FMGLOB_HXX
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */