merge the formfield patch from ooo-build
[ooovba.git] / UnoControls / inc / definesunocontrols.hxx
blob3c349a9cebf75a625617e02836918f2fe52b7e34
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: definesunocontrols.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX
32 #define _UNOCONTROLS_DEFINES_CTRL_HXX
34 //-------------------------------------------------------------------------------------------------------------------
35 // includes
36 #include <limits.h> // defines for min/max of INT
38 namespace unocontrols{
40 //-------------------------------------------------------------------------------------------------------------------
41 // global defines for all UnoControls
42 //-------------------------------------------------------------------------------------------------------------------
43 #define UNOCONTROLS_TRGB_COLORDATA( t,r,g,b ) ((INT32)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24))
44 //-------------------------------------------------------------------------------------------------------------------
46 // defines for BaseControl
47 #ifdef _UNOCONTROLS_BASECONTROL_CTRL_HXX
48 #define BASECONTROL_IDLCLASSNAME "BaseControl"
49 #define BASECONTROL_DEFAULT_PMULTIPLEXER NULL
50 #define BASECONTROL_DEFAULT_X 0
51 #define BASECONTROL_DEFAULT_Y 0
52 #define BASECONTROL_DEFAULT_WIDTH 100
53 #define BASECONTROL_DEFAULT_HEIGHT 100
54 #define BASECONTROL_DEFAULT_VISIBLE FALSE
55 #define BASECONTROL_DEFAULT_INDESIGNMODE FALSE
56 #define BASECONTROL_DEFAULT_ENABLE TRUE
57 #define BASECONTROL_SERVICE_VCLTOOLKIT "com.sun.star.awt.VclToolkit"
58 #endif
59 //-------------------------------------------------------------------------------------------------------------------
61 //-------------------------------------------------------------------------------------------------------------------
62 // defines for BaseContainerControl
63 #ifdef _UNOCONTROLS_BASECONTAINERCONTROL_CTRL_HXX
64 #define BASECONTAINERCONTROL_IDLCLASSNAME "BaseContainerControl"
65 #endif
66 //-------------------------------------------------------------------------------------------------------------------
68 //-------------------------------------------------------------------------------------------------------------------
69 // defines for ProgressBar
70 #ifdef _UNOCONTROLS_PROGRESSBAR_CTRL_HXX
71 #define PROGRESSBAR_IDLCLASSNAME "XProgressbar"
72 #define PROGRESSBAR_SERVICENAME "com.sun.star.awt.XProgressBar"
73 #define PROGRESSBAR_IMPLEMENTATIONNAME "stardiv.UnoControls.ProgressBar"
74 #define PROGRESSBAR_FREEBORDER 2
75 #define PROGRESSBAR_DEFAULT_HORIZONTAL TRUE
76 #define PROGRESSBAR_DEFAULT_BLOCKDIMENSION Size(1,1)
77 #define PROGRESSBAR_DEFAULT_BACKGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lightgray
78 #define PROGRESSBAR_DEFAULT_FOREGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x80 ) // blue
79 #define PROGRESSBAR_DEFAULT_MINRANGE INT_MIN
80 #define PROGRESSBAR_DEFAULT_MAXRANGE INT_MAX
81 #define PROGRESSBAR_DEFAULT_BLOCKVALUE 1
82 #define PROGRESSBAR_DEFAULT_VALUE PROGRESSBAR_DEFAULT_MINRANGE
83 #define PROGRESSBAR_LINECOLOR_BRIGHT UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white
84 #define PROGRESSBAR_LINECOLOR_SHADOW UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black
85 #endif
86 //-------------------------------------------------------------------------------------------------------------------
88 //-------------------------------------------------------------------------------------------------------------------
89 // defines for FrameControl
90 #ifdef _UNOCONTROLS_FRAMECONTROL_CTRL_HXX
91 #define FRAMECONTROL_IDLCLASSNAME "FrameControl"
92 #define FRAMECONTROL_SERVICENAME "com.sun.star.frame.FrameControl"
93 #define FRAMECONTROL_IMPLEMENTATIONNAME "stardiv.UnoControls.FrameControl"
94 #define FRAMECONTROL_DEFAULT_COMPONENTURL "private:factory/swriter"
95 #define FRAMECONTROL_PROPERTYNAME_LOADERARGUMENTS "LoaderArguments"
96 #define FRAMECONTROL_PROPERTYNAME_COMPONENTURL "ComponentURL"
97 #define FRAMECONTROL_PROPERTYNAME_FRAME "Frame"
98 #define FRAMECONTROL_PROPERTYNAME_IDLCLASSES "IDLClasses"
99 #define FRAMECONTROL_ERRORTEXT_VOSENSHURE "This is an invalid property handle."
100 #define FRAMECONTROL_PROPERTY_COUNT 4 // you must count the propertys
101 #define FRAMECONTROL_PROPERTY_COMPONENTURL 0 // Id must be the index into the array
102 #define FRAMECONTROL_PROPERTY_FRAME 1
103 #define FRAMECONTROL_PROPERTY_IDLCLASSES 2
104 #define FRAMECONTROL_PROPERTY_LOADERARGUMENTS 3
105 #endif
106 //-------------------------------------------------------------------------------------------------------------------
108 //-------------------------------------------------------------------------------------------------------------------
109 // defines for ProgressMonitor
110 #ifdef _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX
111 #define PROGRESSMONITOR_IDLCLASSNAME "XProgressMonitor"
112 #define PROGRESSMONITOR_SERVICENAME "com.sun.star.awt.XProgressMonitor"
113 #define PROGRESSMONITOR_IMPLEMENTATIONNAME "stardiv.UnoControls.ProgressMonitor"
114 #define PROGRESSMONITOR_FREEBORDER 10 // border around and between the controls
115 #define PROGRESSMONITOR_WIDTH_RELATION 4 // reserve 1/4 for button width and rest for progressbar width
116 #define PROGRESSMONITOR_HEIGHT_RELATION 5 // reserve 1/5 for button and progressbar heigth and rest for text height
117 #define PROGRESSMONITOR_FIXEDTEXT_SERVICENAME "com.sun.star.awt.UnoControlFixedText"
118 #define PROGRESSMONITOR_BUTTON_SERVICENAME "com.sun.star.awt.UnoControlButton"
119 #define PROGRESSMONITOR_FIXEDTEXT_MODELNAME "com.sun.star.awt.UnoControlFixedTextModel"
120 #define PROGRESSMONITOR_BUTTON_MODELNAME "com.sun.star.awt.UnoControlButtonModel"
121 #define PROGRESSMONITOR_CONTROLNAME_TEXT "Text" // identifier the control in container
122 #define PROGRESSMONITOR_CONTROLNAME_BUTTON "Button" // -||-
123 #define PROGRESSMONITOR_CONTROLNAME_PROGRESSBAR "ProgressBar" // -||-
124 #define PROGRESSMONITOR_DEFAULT_BUTTONLABEL "Abbrechen"
125 #define PROGRESSMONITOR_DEFAULT_TOPIC "\0"
126 #define PROGRESSMONITOR_DEFAULT_TEXT "\0"
127 #define PROGRESSMONITOR_BACKGROUNDCOLOR UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lighgray
128 #define PROGRESSMONITOR_LINECOLOR_BRIGHT UNOCONTROLS_TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white
129 #define PROGRESSMONITOR_LINECOLOR_SHADOW UNOCONTROLS_TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black
130 #define PROGRESSMONITOR_HEIGHT_PROGRESSBAR 15
131 #define PROGRESSMONITOR_DEFAULT_WIDTH 350
132 #define PROGRESSMONITOR_DEFAULT_HEIGHT 100
133 #endif
134 //-------------------------------------------------------------------------------------------------------------------
136 } // namespace unocontrols
138 #endif // #ifndef _UNOCONTROLS_DEFINES_CTRL_HXX